TLDR: Researchers have developed a new lesion-aware AI framework for automated image captioning of ulcerative colitis (UC) endoscopic examinations. This system integrates ResNet for visual features, Grad-CAM for lesion highlighting, CBAM for attention enhancement, and a T5 decoder guided by clinical metadata. It significantly improves both captioning quality and MES classification accuracy compared to previous methods, offering structured, interpretable, and diagnostically aligned descriptions for clinical practice.
Automated image captioning has shown great promise in medical imaging, particularly in areas like radiology. However, when it comes to conditions like ulcerative colitis (UC), where lesions can be subtle and localized, standard models often struggle to capture the crucial clinical details needed for accurate diagnosis and reporting.
Researchers Alexis Iván López Escamilla, Gilberto Ochoa, and Sharib Ali have introduced a novel framework designed to overcome these challenges. Their work, titled “Lesion-Aware Visual-Language Fusion for Automated Image Captioning of Ulcerative Colitis Endoscopic Examinations,” presents a sophisticated approach that integrates several advanced techniques to produce more accurate, interpretable, and clinically relevant descriptions of UC endoscopic images. You can find the full research paper here: Lesion-Aware Visual-Language Fusion for Automated Image Captioning of Ulcerative Colitis Endoscopic Examinations.
A New Approach to Medical Image Captioning
The core of this new framework lies in its ‘lesion-aware’ design. It combines several powerful components:
- ResNet Embeddings: A type of convolutional neural network (CNN) used for robust feature extraction from the endoscopic images.
- Grad-CAM Heatmaps: These are crucial for interpretability, as they generate visual explanations by highlighting the specific regions in the image that the model focuses on. Unlike previous methods that used Grad-CAM post-hoc, this framework integrates it directly into the training process to emphasize pathological regions.
- CBAM-Enhanced Attention: The Convolutional Block Attention Module (CBAM) further refines visual features by applying both channel and spatial attention, helping the model to focus on the most salient parts of the image and suppress noise.
- T5 Decoder: A powerful transformer-based language model responsible for generating the structured clinical reports.
A key innovation is the incorporation of clinical metadata, such as Mayo Endoscopic Subscore (MES) scores, and observations of bleeding or vascular patterns. This information is fed into the model as natural language prompts, guiding the T5 decoder to generate captions that are not only accurate but also contextually rich and consistent with clinical terminology.
How the System Works
The framework processes colonoscopy images through a dual-branch ResNet. One branch is dedicated to classifying the MES score and generating Grad-CAM attention maps, which pinpoint clinically relevant lesions. The second branch extracts visual features, which are then enhanced by the CBAM module. These enhanced features are then fused with the Grad-CAM lesion attention map and projected into an embedding space for the T5 transformer decoder.
Structured clinical metadata, like “MES-2; bleeding: yes; friability: moderate,” acts as a prompt for the T5 decoder, ensuring that the generated captions are diagnostically aligned. The model is trained using a dual loss function, optimizing both captioning quality and MES classification accuracy.
Significant Improvements and Clinical Impact
The results demonstrate a notable leap forward in automated UC image captioning. The model achieved an 84.7% MES classification accuracy, significantly outperforming previous state-of-the-art methods which reported 77.8% on the same dataset. In terms of captioning quality, it reached BLEU-4 scores of 0.87 and ROUGE-L scores of 0.85, surpassing prior benchmarks of 0.77 and 0.72 respectively.
These improvements are attributed to the synergistic effect of the attention strategy. Grad-CAM provides spatial supervision by highlighting areas like ulcers and bleeding, while CBAM refines features, enhancing focus and reducing noise. The use of structured clinical prompts further guides the T5 model towards precise diagnostic phrasing.
Qualitative analysis also showed that the model can identify subtle disease markers that might be overlooked in standard reports, providing more nuanced clinical features. An ablation study confirmed the individual importance of each component – CBAM, Grad-CAM integration, and clinical prompts – in achieving the high performance.
Also Read:
- SurgLLM: Enhancing Surgical Video Understanding with Advanced AI
- Advancing 3D Vision in Endoscopy with Adaptive Depth Estimation
Towards Trustworthy AI in Gastroenterology
This framework represents a significant step towards creating trustworthy and explainable AI in gastrointestinal diagnosis. By balancing interpretability with diagnostic precision, it produces attention-guided, clinically aligned descriptions that can assist clinicians in real-time interpretation, reporting, and integration with electronic medical records. The system’s robust performance on modest hardware also suggests its feasibility for real-time or batch deployment in clinical settings.


