U-Net with Hierarchical Bottleneck Attention for Landmark Detection in Fundus Images of the Degenerated Retina

Shuyun Tang, Ziming Qi, Jacob Granley, Michael Beyeler · DOI

Abstract

Fundus photography has routinely been used to document the presence and severity of retinal degenerative diseases such as age-related macular degeneration (AMD), glaucoma, and diabetic retinopathy (DR) in clinical practice, for which the fovea and optic disc (OD) are important retinal landmarks. However, the occurrence of lesions, drusen, and other retinal abnormalities during retinal degeneration severely complicates automatic landmark detection and segmentation. Here we propose HBA-U-Net: a U-Net backbone enriched with hierarchical bottleneck attention. The network consists of a novel bottleneck attention block that combines and refines self-attention, channel attention, and relative-position attention to highlight retinal abnormalities that may be important for fovea and OD segmentation in the degenerated retina. HBA-U-Net achieved state-of-the-art results on fovea detection across datasets and eye conditions (ADAM: Euclidean Distance (ED) of 25.4 pixels, REFUGE: 32.5 pixels, IDRiD: 32.1 pixels), on OD segmentation for AMD (ADAM: Dice Coefficient (DC) of 0.947), and on OD detection for DR (IDRiD: ED of 20.5 pixels). Our results suggest that HBA-U-Net may be well suited for landmark detection in the presence of a variety of retinal degenerative diseases.

Introduction

Detecting key anatomical landmarks in retinal images—specifically the fovea and the optic disc (OD)—is a fundamental step in diagnosing leading causes of blindness, including Age-related Macular Degeneration (AMD), glaucoma, and Diabetic Retinopathy (DR). While automated analysis has advanced significantly, most existing models struggle when presented with degenerated retinas. Pathological abnormalities such as drusen, hemorrhages, and lesions create visual clutter that often confuses standard convolutional neural networks (CNNs), which are typically optimized for healthy eye anatomy.

To address this, we introduce HBA-U-Net, an architecture designed to maintain robustness across diverse pathological conditions by effectively learning the complex spatial and channel-wise relationships of retinal structures.

The HBA-U-Net Architecture

The core of our approach is the integration of a novel Hierarchical Bottleneck Attention (HBA) mechanism into a standard U-Net backbone utilizing a pre-trained ResNet-50 encoder. Unlike traditional attention mechanisms that are often applied only at the deepest bottleneck of a network, HBA-U-Net places these blocks across all levels of the hierarchy via redesigned skip connections.

HBA-U-Net architecture featuring a ResNet50 encoder and hierarchical HBA blocks integrated into the skip connections.

The HBA block itself is a hybrid module that combines three distinct attention types to navigate pathological clutter:

  1. Content (Self) Attention: Captures global context through standard pixel-to-pixel relationships.
  2. Relative-Position Attention: Encodes spatial offsets between features. This is critical for retinal imaging, as the fovea and optic disc maintain a predictable anatomical spatial relationship.
  3. Channel Attention: Uses max and average pooling passed through a shared Multi-Layer Perceptron (MLP) to weigh the importance of specific feature channels.

By processing these relationships at multiple spatial resolutions, the network can adapt to varying sizes of retinal lesions and maintain focus on the relevant landmarks.

Experimental Setup and Datasets

We evaluated HBA-U-Net on three prominent benchmark datasets, each representing a different degenerative disease:

  • ADAM: 400 images focusing on AMD.
  • REFUGE: 1,200 images focusing on Glaucoma.
  • IDRiD: 516 images focusing on Diabetic Retinopathy.

Because these datasets primarily provide coordinates for the fovea, we generated circular ground-truth masks centered on these coordinates to facilitate training for the segmentation task.

Results and Discussion

HBA-U-Net achieved state-of-the-art (SOTA) performance across all evaluated datasets. Quantitatively, the model significantly reduced fovea detection error compared to vanilla U-Net and modern baselines like EfficientNet-encoded U-Net++. For instance, on the ADAM dataset, fovea detection error (Euclidean Distance) was reduced from 70.7 pixels (U-Net) to 25.4 pixels.

Qualitative comparison of landmark detection results across different retinal pathologies (Healthy, AMD, Glaucoma, DR).

Qualitative analysis (Figure 3) demonstrates the model's superior ability to isolate the fovea and optic disc even when surrounded by significant disease-related artifacts. Our ablation studies further revealed that the synergy between different attention types is vital; while standard self-attention improved fovea detection, it actually degraded optic disc segmentation performance. Only the full HBA block, combining content, position, and channel attention, achieved improvements across both landmarks simultaneously.

Conclusion

HBA-U-Net provides a robust and computationally efficient solution for retinal landmark detection in the presence of degenerative disease. By embedding hierarchical attention into the skip connections of a U-Net, the model successfully navigates pathological clutter that typically hinders automated diagnostic tools. The lightweight nature of the HBA block makes it a promising candidate for broader applications in medical image segmentation where anatomical landmarks are obscured by pathology.

Summary updated

Abstract

Fundus photography has routinely been used to document the presence and severity of retinal degenerative diseases such as age-related macular degeneration (AMD), glaucoma, and diabetic retinopathy (DR) in clinical practice, for which the fovea and optic disc (OD) are important retinal landmarks. However, the occurrence of lesions, drusen, and other retinal abnormalities during retinal degeneration severely complicates automatic landmark detection and segmentation. Here we propose HBA-U-Net: a U-Net backbone enriched with hierarchical bottleneck attention. The network consists of a novel bottleneck attention block that combines and refines self-attention, channel attention, and relative-position attention to highlight retinal abnormalities that may be important for fovea and OD segmentation in the degenerated retina. HBA-U-Net achieved state-of-the-art results on fovea detection across datasets and eye conditions (ADAM: Euclidean Distance (ED) of 25.4 pixels, REFUGE: 32.5 pixels, IDRiD: 32.1 pixels), on OD segmentation for AMD (ADAM: Dice Coefficient (DC) of 0.947), and on OD detection for DR (IDRiD: ED of 20.5 pixels). Our results suggest that HBA-U-Net may be well suited for landmark detection in the presence of a variety of retinal degenerative diseases.
BibTeX
@inproceedings{tang2021u,
  author = {Shuyun Tang and Ziming Qi and Jacob Granley and Michael Beyeler},
  title = {{U-Net with Hierarchical Bottleneck Attention for Landmark Detection in Fundus Images of the Degenerated Retina}},
  booktitle = {OMIA @ MICCAI},
  year = {2021},
  url = {https://openreview.net/forum?id=4bHOSsfgiD},
}
Figure