Abstract
VAFO-Loss is a novel "feature-aware" loss function designed to enhance retinal artery/vein segmentation by optimizing for clinically relevant biomarkers such as vessel density and fractal dimension. While standard deep learning models often achieve high pixel-level accuracy, they frequently suffer from intra-segment misclassification at vessel intersections, which severely impacts the reliability of vascular features used in medical diagnosis. VAFO-Loss addresses this by integrating global structural constraints—specifically vessel density and box counts—into the training process. Evaluated on public benchmarks and a clinical dataset of 1,548 patients, VAFO-Loss significantly improves segmentation performance and the accuracy of downstream clinical tasks, such as predicting three-year ischemic stroke incidence, achieving an AUC-ROC of 0.70.
Introduction: The Challenge of Oculomics
In the emerging field of "oculomics," researchers utilize retinal scans as non-invasive windows into systemic health, identifying biomarkers for diseases like hypertension, diabetes, and stroke. A critical step in this workflow is the segmentation of retinal arteries and veins to calculate features such as vessel density, fractal dimension, and tortuosity.
However, standard deep learning models often struggle with intra-segment misclassification. This phenomenon occurs most frequently at branch intersections where an artery and vein cross. A model may correctly identify the vessel's morphology but "flip" the labels—for instance, misidentifying an entire artery segment as a vein. While these errors might only affect a small percentage of total pixels, maintaining a high Dice score, they introduce catastrophic errors into the calculated clinical features, rendering them useless for medical diagnosis.
Methodology: VAFO-Loss
To address these structural inconsistencies, we introduce VAFO-Loss (VAscular Feature Optimised Loss). Unlike standard pixel-level loss functions like Cross-Entropy (CE), VAFO-Loss integrates two global vascular features directly into the optimization process:
- Vessel Density Loss ($Loss_V$): This term ensures that the total area of predicted arteries and veins matches the ground truth. It provides a global regularizing effect that penalizes large-scale misclassifications.
- Box Counts Loss ($Loss_B$): Based on the concept of Fractal Dimension, this term utilizes multi-scale "boxes" to measure the complexity of the vessel network. Larger boxes capture high-level semantic information (the "big picture"), while smaller boxes focus on local high-resolution details.
By combining these terms with standard segmentation loss, the network is forced to produce vascular maps that are not only pixel-accurate but also structurally and clinically consistent. Mathematically, the authors demonstrated that vessel density and fractal dimension are significantly more sensitive to label-flipping errors than other metrics like tortuosity, justifying their inclusion in the loss function.
Experimental Results and Discussion
The proposed method was evaluated on three public benchmarks—DRIVE-AV, LES-AV, and HRF-AV—and a private clinical dataset of 1,548 patients (774 stroke cases and 774 controls).
Segmentation Performance
VAFO-Loss consistently outperformed state-of-the-art loss functions such as clDice and Active Contour. On the DRIVE-AV dataset, VAFO-Loss increased the F1-score by approximately 2.75% and the IoU by 3.4% compared to the next best competitor. This suggests that optimizing for the meaning and structure of the image actually helps the network understand the individual pixels better.
Clinical Feature Agreement
A key metric in this study was the Intraclass Correlation Coefficient (ICC), which measures how well the predicted features match the ground truth. VAFO-Loss improved the ICC for artery fractal dimension by up to 11%. As shown in the comparison below, standard CE loss often fails to capture the correct fractal dimension and vessel density, whereas VAFO-Loss results are nearly identical to the ground truth.
Downstream Clinical Impact
The ultimate test of VAFO-Loss was its utility in predicting three-year ischemic stroke incidence. Features derived from VAFO-Loss segmentations achieved an AUC-ROC of 0.70, significantly outperforming other loss functions, which typically hovered between 0.62 and 0.65. This demonstrates that structural accuracy is more important than pixel-level accuracy for clinical applications.
Conclusion
VAFO-Loss represents a significant step forward in making deep learning models "clinically aware." By optimizing for global vascular features, it mitigates the impact of intra-segment misclassification at vessel crossings. While the method is computationally efficient ($O(n^2)$ complexity), future work will explore incorporating additional features like bifurcation patterns and tortuosity to further refine the model's understanding of complex vascular architectures.
Summary updated