(04) — Publication · Jan 2025
Context-AwareAlt-Text
Multimodal image descriptions for screen-reader users
A multimodal pipeline that turns one image into layered descriptions (a short caption, a scene context, a richer description) plus a sentiment reading. Published in IJSRCSEIT.
Headline result
4-stage
caption → context → description → sentiment
- Role
- Co-author (2nd of 6)
- Timeline
- Jan 2025
- Status
- Published & presented
- Stack
- Llama-3.2-11B-Vision-Instruct · GPT-3.5-turbo · Hugging Face Inference API · Flask · Next.js
(01) — Problem
Standard alt-text names the objects in an image but misses the mood, relationships and context that people using screen readers need to understand it.
(02) — Goal
Generate layered, context-aware image descriptions with a sentiment reading, and deliver them in a form that is easy to navigate with assistive technology.
(03) — Approach
Chained four model calls behind one Flask endpoint: Llama-3.2-11B-Vision-Instruct (via the Hugging Face Inference API) produces a short caption and a scene context from resized images, a text pass enriches the context, and a sentiment pass extracts dominant emotion, a sentiment score and emotional elements as JSON (GPT-3.5-turbo in the published version; now the same Llama model, so one key covers every step). A Next.js upload page presents caption, description and sentiment under separate headings.
(04) — Outcome
Published as a co-authored paper in IJSRCSEIT (2nd of 6 authors), with the implementation open-sourced as AltTextPro and shown as a poster at the UW Tacoma SET Masters Seminar.
(05) — Highlights
- 01The paper’s method, now in the code: structured multimodal prompting, pairing each image with an instruction and optional contextual metadata (location, objects, hints), extended to sentiment analysis and storytelling.
- 02Caption: Llama-3.2-11B-Vision-Instruct writes a 15–25 word caption from the image (resized to at most 1024 px) and any context the user gives.
- 03Scene context: a 150–175 word description of the scene that refers to people generically ("a man", "a dog") instead of identifying individuals.
- 04Rich description: a text pass rewrites the context into a fuller 175–200 word description.
- 05Sentiment: the model returns JSON with the dominant emotion, a score from −1 to 1, and the emotional elements it noticed (GPT-3.5-turbo in the published version, the same Llama model now).
- 06Flask API with one endpoint for the whole pipeline; a Next.js upload page takes optional context and shows results under clear headings; the paper-era code and its 100-image sample set are preserved as the v0-paper release.
- 07Honest about the gap: the README tables what the paper describes against what the code does. The paper’s fine-tuning and accuracy figures are not reproducible from the repository.
- 08Journal publication with DOI 10.32628/CSEIT25111238 (IJSRCSEIT 11(1):379–387); also presented as a poster at the UW Tacoma SET Masters Seminar.
(06) — Takeaways
Accessibility is an architectural priority: concise, layered details beat one long block of text for people using screen readers.
What's next
The paper points to richer data sources, support for more languages, real-time processing and augmented-reality applications, while reducing the compute cost of an 11B-parameter model. Next for the code: a live, accessible web tool that writes short alt text from the image and its page context, with an evaluation anyone can rerun.
Next case study