Per-Lesion Mask-Supervised Attention for Multi-Label Diabetic Retinopathy Lesion Detection
- 1Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia
- 2Department of Information Systems, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia
Abstract
Background/Objectives: Deep learning models for diabetic retinopathy (DR) usually report a severity grade, and their attention maps explain that grade rather than individual lesions. We aimed to detect microaneurysms, hemorrhages, hard exudates and soft exudates (cotton-wool spots) separately, each with an attention map trained to fall on that lesion. Methods: An EfficientNet-B4 and Transformer encoder, pretrained on severity grades, feeds four lesion queries that each return a score and an attention map; a localization loss trains each map toward its lesion mask. We trained it on DDR and TJDR, tested it on their test sets and on two external sets (IDRiD and e-ophtha), and compared it with a U-Net. Results: The mean areas under the curve (AUCs) were 0.93–0.94 for hemorrhages, 0.90–0.96 for hard exudates and 0.81–0.90 for soft exudates; microaneurysms reached 0.91–0.96, except on DDR (0.58). We analyze this drop in detail. Attention ranked lesion pixels above the rest of the retina with an AUC-Judd of 0.948–0.996. Without the localization loss, detection was slightly lower, and attention moved to regions outside the lesions that still raised the prediction. The model detected lesions better than U-Net (mean AUC of 0.876 against 0.853) and, unlike the latter, also learned from images that have labels but no masks: with masks on half of the training images, detection and AUC-Judd were nearly unchanged. Conclusions: Supervising each lesion’s attention with its own mask gives a per-lesion score and a map that falls on that lesion, without reducing detection.
Related
- A unified deep learning framework for multi-lesion detection in diabetic retinopathy using fundus images
- A Modular Diabetic Retinopathy Analysis Framework for Lesion Segmentation and Severity Grading: Cross-Dataset External Validation from APTOS to Messidor-2
- A Patch-Based Attention Framework for Automated Diabetic Retinopathy Severity Grading Using Fundus Images
- Weakly supervised attention-based learning supports breast cancer detection on deep ultraviolet-excitation fluorescence images
- iSL-YOLOv11: global–local attention enhanced small lesion detection in mammography images
BibTeX
@article{alghamdi2026perlesion,
title = {{Per-Lesion Mask-Supervised Attention for Multi-Label Diabetic Retinopathy Lesion Detection}},
author = {Wael Alghamdi and Fawaz Alsolami and Mostafa Saleh},
journal = {Diagnostics},
year = {2026},
month = nov,
doi = {10.3390/diagnostics16213662},
url = {https://doi.org/10.3390/diagnostics16213662},
note = {CC BY 4.0},
}
RIS
TY - JOUR
TI - Per-Lesion Mask-Supervised Attention for Multi-Label Diabetic Retinopathy Lesion Detection
AU - Wael Alghamdi
AU - Fawaz Alsolami
AU - Mostafa Saleh
PY - 2026
DA - 2026/11/05
JO - Diagnostics
DO - 10.3390/diagnostics16213662
UR - https://doi.org/10.3390/diagnostics16213662
AB - Background/Objectives: Deep learning models for diabetic retinopathy (DR) usually report a severity grade, and their attention maps explain that grade rather than individual lesions. We aimed to detect microaneurysms, hemorrhages, hard exudates and soft exudates (cotton-wool spots) separately, each with an attention map trained to fall on that lesion. Methods: An EfficientNet-B4 and Transformer encoder, pretrained on severity grades, feeds four lesion queries that each return a score and an attention map; a localization loss trains each map toward its lesion mask. We trained it on DDR and TJDR, tested it on their test sets and on two external sets (IDRiD and e-ophtha), and compared it with a U-Net. Results: The mean areas under the curve (AUCs) were 0.93–0.94 for hemorrhages, 0.90–0.96 for hard exudates and 0.81–0.90 for soft exudates; microaneurysms reached 0.91–0.96, except on DDR (0.58). We analyze this drop in detail. Attention ranked lesion pixels above the rest of the retina with an AUC-Judd of 0.948–0.996. Without the localization loss, detection was slightly lower, and attention moved to regions outside the lesions that still raised the prediction. The model detected lesions better than U-Net (mean AUC of 0.876 against 0.853) and, unlike the latter, also learned from images that have labels but no masks: with masks on half of the training images, detection and AUC-Judd were nearly unchanged. Conclusions: Supervising each lesion’s attention with its own mask gives a per-lesion score and a map that falls on that lesion, without reducing detection.
SN - 2075-4418
ER -