# Uncertainty-Aware Training for Ophthalmic Segmentation Using MedSAM

**Authors:** Christopher William Clark, Scott Kinder, Giacomo Nebbia, Yoga Advaith Veturi, Steven McNamara, Niranjan Manoharan, Talisa Forest, Malik Kahook, Naresh Mandava, Praveer Singh, Jayashree Kalpathy-Cramer

PMC · DOI: 10.1167/tvst.15.2.19 · Translational Vision Science & Technology · 2026-02-17

## TL;DR

This paper introduces a method called Uncertainty-Aware Training (UAT) that improves deep learning models for eye-related image segmentation by focusing on uncertain areas during training.

## Contribution

UAT introduces uncertainty maps during training to guide model learning, improving performance on ophthalmic segmentation tasks.

## Key findings

- UAT improved model performance on three ophthalmic segmentation tasks: GA, OC, and FAZ.
- Entropy-weighing maps consistently enhanced performance across all datasets.
- Conformal prediction with Least Ambiguous Set-Valued Classifier improved GA and OC segmentation.

## Abstract

Uncertainty quantification (UQ) has been applied to deep learning (DL) models to enhance not only their interpretability, but to guide model learning. This work presents Uncertainty-Aware Training (UAT), which generates uncertainty maps at train time and augments the loss function with them to allow the models to concentrate on areas of high uncertainty during learning. By highlighting uncertain pixels as requiring more scrutiny, model performance is enhanced on three ophthalmic segmentation tasks.

We applied UAT to three ophthalmic segmentation, or pixel-level classification, tasks: geographic atrophy (GA), optic cup (OC), and foveal avascular zone (FAZ). UAT weighs the loss function binary cross-entropy according to uncertainty, forcing the model to focus on ambiguous areas. We experimented with output-based UQ methods, such as entropy, and post -hoc techniques like conformal prediction. UAT was evaluated on a state-of-the-art foundational model fine-tuned for these specific segmentation tasks.

The addition of an entropy-weighing map at loss calculation time consistently improved model performance across all three datasets, with conformal prediction using the Least Ambiguous Set-Valued Classifier version also achieving higher overall performance for GA and OC segmentation. The easy-to-integrate implementation of UAT proved feasible without significant training structure modifications.

UAT enhances DL model performance and interpretability by focusing on uncertainty in addition to error, improving segmentation accuracy.

UAT uses interpretable uncertainty maps to enhance DL segmentation performance. Its lightweight integration makes it practical for adoption and leads to improved model performance on ophthalmic segmentation tasks.

## Full-text entities

- **Diseases:** MedSAM (MESH:C537538), OC (MESH:D009901), diabetic (MESH:D003920), myopia (MESH:D009216), spinal stenosis (MESH:D013130), GA (MESH:D057092), stroke (MESH:D020521), DL (MESH:D007859)
- **Chemicals:** FAZ (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12922709/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12922709/full.md

## References

32 references — full list in the complete paper: https://tomesphere.com/paper/PMC12922709/full.md

---
Source: https://tomesphere.com/paper/PMC12922709