Multi-scale Microaneurysms Segmentation Using Embedding Triplet Loss

Mhd Hasan Sarhan, Shadi Albarqouni, Mehmet Yigitsoy, Nassir Navab, Abouzar Eslami

Abstract

Detecting microaneurysms (MAs) is a critical first step in diagnosing diabetic retinopathy, yet their minute size and low contrast make them exceptionally difficult to segment. This paper presents a two-stage deep learning framework designed to address this "needle in a haystack" problem. The system utilizes a multi-scale Hypothesis Generation Network (HGN) to identify potential regions of interest, followed by a Patch-wise Refinement Network (PRN) optimized with an embedding triplet loss. This approach effectively handles extreme class imbalance and captures both local detail and global context, resulting in a 30.29% relative improvement in segmentation performance over standard baseline models.

Introduction

Diabetic Retinopathy (DR) remains a leading cause of vision loss globally. Microaneurysms, appearing as small red dots on the retina, are the earliest clinical signs of the disease. Automated detection of MAs is challenging because they typically occupy less than 1% of a high-resolution fundus image and often exhibit low contrast against the retinal background, making them easily confused with small vessels or hemorrhages. Standard deep learning models often fail due to the massive imbalance between healthy tissue and lesion pixels.

Methodology

The proposed framework consists of two primary components:

  1. Hypothesis Generation Network (HGN): To balance spatial precision with semantic context, the HGN employs two parallel Fully Convolutional Networks (FCNs). One network operates at full resolution (1x) to maintain spatial accuracy, while the second operates at half resolution (0.5x) to capture a broader anatomical context. The outputs are fused to generate candidate Regions of Interest (ROIs).
  2. Patch-wise Refinement Network (PRN): The ROIs are further analyzed by a classification stage based on a modified ResNet-50. The core innovation here is the use of Embedding Triplet Loss. Rather than simple binary classification, the network learns to map patches into a feature space where lesion patches are clustered together and pushed away from healthy patches by a defined margin.
Overview of the training and inference pipeline for the HGN and PRN stages.

To combat class imbalance during training, the authors implemented selective sampling, prioritizing "hard" examples—patches that yield higher loss—to improve the model's discriminative power.

Experimental Results

The framework was evaluated using the Indian Diabetic Retinopathy Image Dataset (IDRiD). The multi-scale approach proved superior to single-scale baselines, as the fusion of 1x and 0.5x scales effectively mitigated the trade-off between resolution and context.

The complete pipeline (Multi-scale HGN + PRN with Triplet Loss) achieved a peak Area Under the Precision-Recall Curve (PR AUC) of 0.4196. This represents a significant 30.29% relative improvement over the baseline 1x HGN model. The refinement stage was particularly effective at increasing precision (from ~0.30 to ~0.61), successfully filtering out false positives generated during the initial hypothesis stage.

Comparison of performance metrics across different model configurations and against IDRiD challenge leaders.

Conclusion

By combining multi-scale feature extraction with embedding-based refinement, this framework significantly advances the state-of-the-art in microaneurysm segmentation. While the model shows robust performance, future work will focus on reducing false positives near complex vascular structures and exploring the benefits of multi-lesion joint segmentation to further enhance diagnostic accuracy.

Summary updated

BibTeX
@inproceedings{sarhan2019multi,
  author = {Mhd Hasan Sarhan and Shadi Albarqouni and Mehmet Yigitsoy and Nassir Navab and Abouzar Eslami},
  title = {{Multi-scale Microaneurysms Segmentation Using Embedding Triplet Loss}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2019},
  doi = {10.1007/978-3-030-32239-7\_20},
}
Figure