NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Joint Learning of Vessel Segmentation and Artery/Vein Classification with Post-processing

Liangzhi Li, Manisha Verma, Yuta Nakashima, Ryo Kawasaki, Hajime Nagahara

Abstract

Automated retinal vessel analysis is critical for diagnosing systemic diseases like diabetes and hypertension. However, standard deep learning approaches often struggle with extreme class imbalance and inconsistent labeling along continuous vessels. This paper introduces SeqNet, a sequential deep learning framework that first segments the vascular tree and then classifies vessels as arteries or veins. By combining this architecture with a structural post-processing step that propagates labels along connected vessel segments, the proposed method achieves state-of-the-art accuracy (0.92) on the DRIVE dataset.

Introduction

Analyzing retinal fundus images is a cornerstone of modern diagnostics. Despite its importance, automation remains challenging due to two primary factors:

  1. Extreme Class Imbalance: Background pixels significantly outnumber vessel pixels, causing ternary classifiers (artery vs. vein vs. background) to be overwhelmed by the background signal.
  2. CNN Locality: Standard Convolutional Neural Networks (CNNs) make decisions based on local patches. This often results in "checkerboard" artifacts where a single continuous vessel is assigned conflicting labels.

Methodology

SeqNet: The Neural Architecture

SeqNet addresses the class imbalance problem by decoupling segmentation from classification. Instead of a single ternary task, it employs a sequential pipeline:

  • Segmentation Stream: Utilizes IterNet (a series of mini-UNets) to generate a high-quality binary mask of the entire vascular tree.
  • Classification Stream: The original input image is masked by the segmentation result. This "hard-attention" mechanism removes background noise, forcing the second UNet to focus exclusively on distinguishing arteries from veins based on vessel-specific textures.
  • Joint Training: The streams are trained together, but a "block" layer prevents classification errors from corrupting the robust segmentation stream.
The SeqNet architecture consists of a segmentation stream (IterNet) followed by a masked classification stream.

Structural Post-Processing (PP)

To overcome the locality limitations of CNNs, the authors incorporate a graph-based post-processing step that leverages the biological continuity of vessels:

  1. Intra-segment Unification: The vessel skeleton is decomposed into segments between junctions. All pixels within a single physical segment are forced to share the same label based on the highest average confidence score.
  2. Inter-segment Propagation: A custom algorithm "pushes" labels from high-confidence segments to adjacent ones. This propagation is guided by geometric constraints, including junction angles, vessel thickness, and distance, ensuring labels only traverse segments likely to belong to the same branch.
Post-processing steps: (a) binary segmentation, (b) identification of junctions and endpoints, and (c) decomposition into individual vessel segments for label unification.

Experimental Results

The model was evaluated on two gold-standard datasets: DRIVE and LES-AV.

  • DRIVE Dataset: Achieved a segmentation AUC of 0.98 and a classification accuracy of 0.92 (rising to 0.953 for major vessels).
  • LES-AV Dataset: Achieved a classification accuracy of 0.874 for the center-line and 0.930 for major vessels.

Qualitatively, the post-processing step significantly improved results at vessel crossings, where arteries and veins overlap—a common failure point for purely pixel-based models.

Discussion and Key Insights

The success of SeqNet highlights that sequential learning is superior to simultaneous learning for tasks with high class imbalance. By isolating "where" the vessel is from "what" type it is, the model maintains gradient stability. Furthermore, the integration of domain knowledge through geometric post-processing allows the system to resolve errors that local CNN features cannot detect.

Limitations

A notable challenge remains the optic cup area, where vessel density is too high for current geometric propagation rules to handle reliably. Additionally, the iterative nature of the post-processing adds computational overhead. Future work may involve integrating these structural constraints directly into the neural network's loss function to enable end-to-end learning of geometric priors.

Summary updated

BibTeX
@inproceedings{li2020joint,
  author = {Liangzhi Li and Manisha Verma and Yuta Nakashima and Ryo Kawasaki and Hajime Nagahara},
  title = {{Joint Learning of Vessel Segmentation and Artery/Vein Classification with Post-processing}},
  booktitle = {MIDL},
  year = {2020},
}
Figure