ErrorNet: Learning Error Representations from Limited Data to Improve Vascular Segmentation

Nima Tajbakhsh, Brian Lai, Shilpa P. Ananth, Xiaowei Ding

TL;DR

ErrorNet is a novel segmentation framework designed to "self-correct" non-intuitive mistakes—like broken vessel lines or holes in organs—that occur when training data is scarce or comes from a different source than the test data. By using a Variational Autoencoder (VAE) to intentionally inject realistic, anatomy-based errors during training, the system learns a robust error-correction mapping that significantly improves performance in cross-domain medical imaging tasks without needing any data from the target domain.

What Problem Does This Paper Address?

Deep learning models for medical image segmentation often struggle with two major hurdles: small sample sizes and domain shift. Medical datasets are expensive to annotate, and a model trained on images from one specific clinic or camera (the source domain) often fails when applied to another (the target domain).

When these models fail, they don't just get the boundaries slightly wrong; they often produce "non-intuitive" errors that a human would never make, such as fragmented vessels or gaps in connected tissues. Existing solutions like Conditional Random Fields (CRFs) require tedious manual tuning, while Unsupervised Domain Adaptation (UDA) requires unlabeled data from the target domain—which isn't always available in a clinical rollout. ErrorNet aims to fix these systematic errors automatically, using only the original training data.

Methods

The ErrorNet architecture consists of three distinct components working in sequence:

  1. Base Segmentation Network: A standard U-Net that produces an initial, potentially imperfect segmentation mask ($S$).
  2. Error Injection Network (VAE): This is the "secret sauce." The authors use a Variational Autoencoder to learn a "shape prior" of the anatomy (in this case, retinal vessels). During training, this network takes the initial mask and degrades it, injecting systematic errors that mimic real-world failures. Because it's a VAE, it can sample from a latent space to generate a diverse variety of realistic "mistakes."
  3. Error Prediction Network: A shallow U-Net that takes both the original image and the degraded mask as input. Its job is to predict an "error map"—a pixel-level representation of what needs to be added or removed to reach the ground truth.

The Workflow: * Training: The model learns to segment, then learns to break those segmentations realistically, and finally learns to predict exactly how they were broken. * Inference: The Error Injection Network is bypassed. The initial segmentation from the base network is fed directly into the Error Prediction Network, which outputs a correction map. This map is added to the initial result to produce the final, "cleaned" segmentation.

Datasets

The authors evaluated ErrorNet on five public retinal vessel segmentation datasets, which vary in population (healthy vs. diseased) and image quality:

  • DRIVE: 40 images (mostly healthy).
  • STARE: 20 images (50% diseased).
  • CHASE: 20 images (healthy children).
  • ARIA: 143 images (the largest set, mixed population).
  • HRF: 45 images (high resolution, mixed population).

These datasets allowed the authors to test "cross-dataset" performance (e.g., training on the small CHASE set and testing on the others) to simulate real-world domain shift.

Key Insights and Ideas

  • Learning the "Anatomy of a Mistake": Instead of just trying to minimize loss, ErrorNet explicitly models how the segmentation is likely to fail. By using a VAE to learn shape priors, the injected errors aren't just random noise; they are anatomically plausible "breaks" and "holes."
  • Tanh for Bi-directional Correction: The error prediction network uses a hyperbolic tangent (tanh) activation function. This allows it to output values between -1 and 1, meaning it can both "strengthen" a vessel (positive correction) or "weaken" a false positive (negative correction).
  • Independence from Target Data: Unlike domain adaptation methods, ErrorNet doesn't need to see a single image from the test domain to work. It builds its robustness by exploring a wide variety of synthetic errors during the training phase on the source data.

Key Results

  • Superiority in Cross-Domain Tasks: ErrorNet consistently outperformed base U-Nets and CRF-based methods. When trained on the small CHASE dataset and tested across all others, ErrorNet achieved an average Dice score of 71.0, outperforming the next best domain adaptation method by roughly 2.5 points.
  • Small Data Resilience: On its own training set (CHASE), ErrorNet improved the Dice score from 79.3 (base U-Net) to 81.5.
  • Qualitative Improvements: Visual results show that ErrorNet is particularly effective at "bridging" fragmented vessels—connecting segments that the base model left disconnected.
  • Ablation Success: The authors proved that both the VAE-based error injection and the joint training strategy were necessary to achieve peak performance.

Limitations and Future Work

  • Dimensionality: The current study focuses on 2D retinal images. Extending this to 3D volumes (like CT or MRI scans) would increase computational complexity significantly.
  • Task Specificity: While effective for vascular structures, it remains to be seen how well the "shape prior" approach translates to more amorphous structures like tumors.
  • Future Directions: The authors suggest exploring ErrorNet in the context of active learning and evaluating it on a broader range of medical imaging tasks beyond ophthalmology.

Summary updated

BibTeX
@inproceedings{tajbakhsh2020errornet,
  author = {Nima Tajbakhsh and Brian Lai and Shilpa P. Ananth and Xiaowei Ding},
  title = {{ErrorNet: Learning Error Representations from Limited Data to Improve Vascular Segmentation}},
  booktitle = {ISBI},
  year = {2020},
  url = {https://openreview.net/forum?id=g9slHOPW6O},
}
Figure