Retinal vessel segmentation—the process of mapping out the tiny blood vessels in the back of the eye—is a cornerstone of diagnosing conditions ranging from diabetes to cardiovascular disease. However, deep learning models are notoriously sensitive to domain shift. A model trained on images from one hospital’s camera often fails when tested on a different camera or a newer imaging modality like OCT Angiography (OCTA).
A new paper, VesselMorph, proposes a clever solution: instead of just looking at pixel brightness, the model is taught to recognize the underlying shape of the vessels, which remains constant even when lighting and resolution change.
TL;DR
VesselMorph improves domain generalization for retinal vessel segmentation by extracting "shape-aware" representations. By combining raw intensity data with a novel Bipolar Tensor Field (BTF) that describes vessel geometry, the model achieves superior performance across different cameras, resolutions, and even entirely different imaging modalities.
The Challenge of Domain Shift
In medical imaging, "standardization" is often elusive. Images vary wildly in contrast, resolution, and noise depending on the equipment used. While a human expert can easily identify a blood vessel whether it is in a grainy black-and-white photo or a high-res color scan, deep learning models often overfit to the specific "look" (intensity distribution) of their training data.
When these models encounter "out-of-distribution" (OOD) data, their performance plummets. Existing solutions like data augmentation help, but they don't fundamentally address the fact that the tubular morphology of a vessel is its most reliable, domain-invariant feature.
Methods: Fusing Intensity and Geometry
The authors introduce VesselMorph, which uses a dual-pathway architecture to fuse intensity information with geometric shape information.
- Bipolar Tensor Field (BTF): Inspired by classical Frangi filters and Diffusion Tensor Imaging (DTI), the authors create a BTF. This is a map where every pixel is assigned a "tensor" describing local orientation and "vesselness." The "bipolar" approach better differentiates between points inside a vessel and points near a boundary, reducing the blurring common in traditional filters.
- Dual-Pathway Encoding: The system uses two encoders: an Intensity Encoder ($E^I$) for the raw image and a Structure Encoder ($E^S$) for the BTF.
- Teacher-Student Training: To stabilize the structure encoder, the authors first train the intensity encoder as a "teacher." The structure encoder then learns to produce a similar latent representation while simultaneously performing segmentation.
- The Patch-Swapping Trick: To prevent the network from relying too heavily on one pathway, the authors randomly swap patches between the two latent representations during training. This forces the model to learn from both intensity and shape features equally.
Datasets and Modality Shifts
The study evaluated the model on six public datasets to test various "domain shift" scenarios, moving from standard Fundus images to high-resolution and alternative modalities.
- Source Domain: DRIVE, STARE, and healthy subjects from ARIA (Fundus images).
- Target Domains:
- Resolution Shift: The HRF dataset (very high resolution).
- Modality Shift: OCTA-500 and ROSE (OCT Angiography images, which look significantly different from Fundus photos).
Key Results
VesselMorph consistently outperformed state-of-the-art domain generalization methods like BigAug and MASF.
- Cross-Resolution: On the high-resolution HRF dataset, VesselMorph achieved a Dice score of 0.7420, significantly higher than the baseline's 0.6406.
- Cross-Modality: Moving from Fundus to OCTA is a massive leap. On the ROSE dataset, VesselMorph hit 0.7308, outperforming the next best competing method (VFT) at 0.7281 and the baseline at 0.6741.
- Latent Alignment: t-SNE visualizations showed that while raw images from different datasets are clustered far apart, the latent representations produced by VesselMorph are much closer together, proving the model successfully "aligned" the different domains.
Conclusion
While VesselMorph excels in cross-modality and cross-resolution tasks, its performance on pathology-specific shifts (like heavy lesions) remains an area for growth. The authors suggest that this "shape-aware" logic could be extended to 3D volumes or other tubular structures, such as airways in lung CT scans or white matter tracts in brain MRIs.
Source Paper: Hu, D., et al. (2023). VesselMorph: Domain-Generalized Retinal Vessel Segmentation via Shape-Aware Representation. arXiv:2307.00240v2
Summary updated