Light-weight Retinal Layer Segmentation with Global Reasoning

Xiang He, Weiye Song, Yiming Wang, Fabio Poiesi, Ji Yi, Manishi Desai, Quanqing Xu, Kongzheng Yang, Yi Wan

Abstract

Automatic retinal layer segmentation with medical images, such as optical coherence tomography (OCT) images, serves as an important tool for diagnosing ophthalmic diseases. However, it is challenging to achieve accurate segmentation due to low contrast and blood flow noises presented in the images. In addition, the algorithm should be light-weight to be deployed for practical clinical applications. Therefore, it is desired to design a light-weight network with high performance for retinal layer segmentation. In this paper, we propose LightReSeg for retinal layer segmentation which can be applied to OCT images. Specifically, our approach follows an encoder-decoder structure, where the encoder part employs multi-scale feature extraction and a Transformer block for fully exploiting the semantic information of feature maps at all scales and making the features have better global reasoning capabilities, while the decoder part, we design a multi-scale asymmetric attention (MAA) module for preserving the semantic information at each encoder scale. The experiments show that our approach achieves a better segmentation performance compared to the current state-of-the-art method TransUnet with 105.7M parameters on both our collected dataset and two other public datasets, with only 3.3M parameters.

Introduction

Retinal layer thickness is a primary biomarker for diagnosing and monitoring ophthalmic diseases such as glaucoma and diabetic retinopathy. While Optical Coherence Tomography (OCT) imaging provides non-invasive, high-resolution 3D views of these layers, manual segmentation by clinical experts is time-consuming and subjective. Automated deep learning solutions have emerged, but they face two significant hurdles: the need for global spatial reasoning to handle low-contrast regions and the requirement for lightweight architectures suitable for real-time clinical deployment. This paper introduces LightReSeg, a novel encoder-decoder network that achieves state-of-the-art performance with minimal computational overhead.

Methodology

LightReSeg is built upon a U-shaped architecture optimized for both efficiency and global context. The model incorporates several key innovations to balance performance and size:

  • Transformer Bottleneck: At the deepest level of the encoder, a Transformer block is utilized to capture long-range dependencies. Unlike standard convolutions that focus on local patches, the Transformer uses self-attention to reason about the relative positions of retinal layers across the entire image, significantly reducing false positives in the background.
  • Multi-scale Asymmetric Attention (MAA): This module replaces traditional skip connections. It employs asymmetric convolutions (e.g., $1 \times 11$ and $11 \times 1$ kernels) to expand the receptive field without a large increase in parameters. A channel attention mechanism is also integrated to emphasize the most relevant features during the fusion process.
  • Depthwise Separable Convolutions (DS-Conv): To maintain a lightweight profile, the network uses DS-Conv for down-sampling, which reduces the parameter count by approximately 11% compared to standard convolutions while preserving feature extraction quality.
The architecture of LightReSeg, featuring the Transformer bottleneck and MAA modules for global reasoning and efficient feature fusion.

Experimental Results

The model was evaluated on three datasets: the authors' own Vis-105H dataset (105 high-quality visible-light OCT images), a public Glaucoma dataset, and a DME (Diabetic Macular Edema) dataset from Duke University.

LightReSeg demonstrated superior performance across all benchmarks. On the Vis-105H dataset, it achieved a mean Intersection over Union (mIoU) of 84.6%, surpassing the much larger TransUnet (83.5%) and Attention U-Net (83.1%). Most notably, LightReSeg achieves these results with only 3.3M parameters, making it roughly 32 times smaller than TransUnet (105.7M).

Comparison of mIoU vs. number of parameters for various segmentation models, highlighting LightReSeg's (red star) efficiency.

Ablation studies confirmed that the Transformer block is essential for global reasoning, particularly in distinguishing retinal tissue from empty background space. Furthermore, the results suggest that architectural efficiency—driven by attention mechanisms and global context—is more effective for this task than simply increasing the model's parameter count.

Conclusion

LightReSeg offers a highly efficient and accurate solution for automated retinal layer segmentation. By combining a Transformer-based bottleneck with asymmetric attention modules, the model provides the global reasoning necessary for medical imaging tasks while remaining small enough for clinical hardware. Future work will focus on improving domain generalization across different OCT devices and integrating the system into real-time clinical workflows.

Summary updated

BibTeX
@article{he2024light,
  author = {Xiang He and Weiye Song and Yiming Wang and Fabio Poiesi and Ji Yi and Manishi Desai and Quanqing Xu and Kongzheng Yang and Yi Wan},
  title = {{Light-weight Retinal Layer Segmentation with Global Reasoning}},
  journal = {IEEE Trans. Instrumentation \& Measurement},
  year = {2024},
  doi = {10.1109/tim.2024.3400305},
}
Figure