Hierarchical Attention Networks for Medical Image Segmentation

Fei Ding, Gang Yang, Jinlu Liu, Jun Wu, Dayong Ding, Jie Xu, Gangwei Cheng, Xirong Li · DOI

Abstract: Medical image segmentation is characterized by inter-class indistinction, high variability, and noise, making pixel recognition challenging. Unlike previous self-attention methods that capture context from a single level, we reformulate self-attention through high-order graphs and propose the Hierarchical Attention Network (HANet). The core Hierarchical Attention (HA) module captures context from multi-level neighbors extracted from a high-order graph. By establishing edges only between highly correlated nodes, the model naturally reduces noisy attention information. HANet is robust to input variance and can be flexibly integrated into existing convolutional neural networks. Experiments on optic disc/cup, blood vessel, and lung segmentation tasks demonstrate that HANet is more effective and robust than current state-of-the-art methods.

Introduction

Medical image segmentation—the task of labeling every pixel to identify anatomical boundaries—is a cornerstone of computer-aided diagnosis. However, medical scans often suffer from inter-class indistinction, where different tissues share similar textures, and high noise levels due to varying imaging equipment.

Standard self-attention mechanisms, while powerful in capturing global context, often introduce "visual clutter" in medical contexts. By forcing every pixel to attend to every other pixel, these models can pull in confusing information from unrelated categories. The Hierarchical Attention Network (HANet) addresses this by reimagining self-attention as a sparse, high-order graph process that filters out low-correlation noise and focuses on relevant structural relationships.

The Hierarchical Attention Module

The fundamental innovation of HANet is the Hierarchical Attention (HA) module. This module treats the feature map as a graph where pixels are nodes. The process follows four key stages:

  1. Dense Similarity: The model calculates an initial similarity matrix between all pixels, similar to standard self-attention.
  2. Hard Thresholding: To combat noise, the HA module applies a threshold ($\delta$). Edges are only maintained between pixels with high correlation, creating a sparse adjacency matrix.
  3. Attention Propagation: By calculating powers of the adjacency matrix, the model identifies "neighbors' neighbors." This allows a pixel to learn from distant but relevant context through high-confidence paths (e.g., if A is similar to B, and B to C, A can attend to C).
  4. Information Aggregation: These multi-level hierarchical features are fused to create a discriminative representation that is both global in scope and local in precision.
The overall architecture of HANet, featuring the Hierarchical Attention Module (HAM) integrated into an encoder-decoder framework.

Experimental Evaluation

The authors evaluated HANet across several challenging benchmarks, including the REFUGE and Drishti-GS1 datasets for optic disc/cup segmentation, the DRIVE dataset for retinal blood vessels, and the LUNA dataset for lung segmentation.

Key Results

  • Superior Accuracy: On the REFUGE dataset, HANet achieved a mean Dice (mDice) score of 0.9302, outperforming DeepLabv3+ (0.9215) and DANet (0.9192).
  • Robustness to Domain Shift: When trained on REFUGE and tested on the different Drishti-GS1 dataset, HANet maintained significantly higher performance than baseline models, proving its resilience to variations in lighting and equipment.
  • Sharper Attention: Qualitative analysis reveals that HANet's attention maps are strictly confined to relevant anatomical structures, whereas standard self-attention maps are often blurry and cross tissue boundaries.
Qualitative comparison of attention maps and segmentation results. HANet produces sharper attention maps confined to relevant structures compared to DANet.

Conclusion

HANet provides a robust solution to the noise and indistinction inherent in medical imaging. By leveraging high-order graphs to sparsify and propagate attention, the model captures complex contextual relationships without the interference of unrelated pixels. While future work may explore 3D volumetric data and automated hyperparameter tuning, HANet currently sets a new standard for precision and reliability in 2D medical image segmentation.

Summary updated

BibTeX
@misc{ding2019hierarchical,
  author = {Fei Ding and Gang Yang and Jinlu Liu and Jun Wu and Dayong Ding and Jie Xu and Gangwei Cheng and Xirong Li},
  title = {{Hierarchical Attention Networks for Medical Image Segmentation}},
  year = {2019},
  eprint = {1911.08777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.08777},
}
Figure