MIRAProject

TFFM+: Topology-Reliable Retinal Artery–Vein Segmentation via Spatially-Aware Differentiable Graph Pruning

TFFM_main

Photos of the back of the eye can reveal signs of heart, brain, and metabolic disease. Measurements of the retinal blood vessels, such as their width, how twisted they are (tortuosity) and how they branch, are increasingly used as biomarkers. These measurements are taken from a segmentation mask, a map of where the arteries and veins are. The problem is that a mask can score well on standard overlap metrics like Dice while breaking thin vessels into disconnected pieces. Each break deletes a branch or a junction, which distorts every measurement built on it. TFFM+ is a segmentation module designed to keep the vessel network connected, not just to cover the right pixels.

TFFM+ builds on our earlier Topological Feature Fusion Module (TFFM). The network uses an EfficientNet-B0 encoder and a U-Net++ decoder, and TFFM+ sits only at the bottleneck, the network's most compressed stage. That keeps graph reasoning cheap and leaves fine detail untouched. There, TFFM+ turns the image features into a graph on a 16×16 grid, where each node also keeps its position so that connections reflect physical closeness as well as appearance. The original TFFM linked each node to a fixed number of neighbours. TFFM+ instead learns how strong each connection should be, so weak links fade out. Two rounds of graph attention then reason over this graph, and the result is added back to the original features through a gate, which repairs broken structure without overwriting local detail. The full model has 7.55 million parameters and is trained with a loss that directly rewards connected vessels (Tversky + clDice).

On the Fundus-AVSeg dataset (100 images), TFFM+ kept overlap accuracy on par with TFFM, with Dice of 86.09% for arteries and 87.82% for veins. Its structure improved, though. Betti-0 error, the mismatch in the number of separate vessel pieces, dropped by 20.0% for veins and 5.7% for arteries. Junction recall, the share of branch points found, rose by about 25% for arteries and 15% for veins. These gains come with a trade-off: lower recall and higher boundary distance (HD95). On five external datasets the model never saw during training, mean Betti-0 error fell by 32.2%, from 36.76 to 24.94, and Dice stayed above 80% on every one.

A side-by-side comparison of predictions shows the difference. Where TFFM leaves thin arteries and veins in fragments, TFFM+ keeps more of them connected.

By preserving the vessel network rather than just pixel overlap, and by holding up across different cameras and datasets, TFFM+ could make retinal biomarkers more stable and trustworthy when measured across clinics and research cohorts.

Team