Test-time augmentation with synthetic data addresses distribution shifts in spectral imaging

Ahmad Bin Qasim, Alessandro Motta, Alexander Studier-Fischer, Jan Sellner, Leonardo Ayala, Marco Hübner, Marc Bressan, Berkin Özdemir, Karl-Friedrich Kowalewski, Felix Nickel, Silvia Seidlitz, Lena Maier-HeinInt. J. Comput. Assist. Radiol. Surg 2024

Abstract

Surgical scene segmentation is crucial for providing context-aware surgical assistance. Recent studies highlight the significant advantages of hyperspectral imaging (HSI) over traditional RGB data in enhancing segmentation performance. Nevertheless, the current hyperspectral imaging (HSI) datasets remain limited and do not capture the full range of tissue variations encountered clinically.

Introduction: The Challenge of Spectral Distribution Shifts

Hyperspectral imaging (HSI) is a powerful tool for surgeons, capturing light across hundreds of narrow spectral bands to reveal functional information—such as tissue oxygenation—that is invisible to the human eye. However, deep learning models trained on HSI data are often brittle when faced with distribution shifts.

Most existing HSI datasets consist of "well-perfused" (healthy) tissue. During surgery, interventions like clamping arteries or veins cause tissue to become ischemic or congested, fundamentally altering its spectral signature. As shown in Figure 1, these physiological changes lead to extreme domain shifts. For kidney segmentation, a state-of-the-art model’s accuracy was found to drop by a staggering 93% when blood flow was restricted.

Spectral shifts between physiological (well-perfused) and avascular (poorly-perfused) tissue states.

Methodology: Synthetic Test-Time Augmentation

To address these shifts without the need for expensive retraining, the authors propose a novel Test-Time Augmentation (TTA) strategy that leverages a synthetic database of spectra. The pipeline consists of four main stages:

  1. Digital Twin Generation: For every pixel in an incoming HSI image, the system finds the closest match in a synthetic database generated via Monte Carlo simulations. This "digital twin" provides estimated physiological parameters, specifically oxygen saturation ($StO_2$) and blood volume fraction ($VHb$).
  2. Out-of-Distribution (OOD) Detection: The system checks if these $StO_2$ and $VHb$ values fall within the "normal" range seen during the model's original training.
  3. Hybrid Image Generation: Pixels flagged as OOD are "corrected" by replacing them with synthetic spectra that represent the same tissue but with "in-distribution" (healthy) physiological values.
  4. Inference: This transformed "hybrid" image is fed into a frozen segmentation network.
The proposed test-time augmentation pipeline using digital twins and hybrid image generation to normalize input data.

Experimental Setup

The study utilized a robust mix of real in vivo porcine data and simulated data:

  • In vivo Porcine Data: 615 hyperspectral images from 16 pigs, covering specific scenarios like kidney surgery (physiological, avascular, arterial ischemia, and venous congestion states).
  • Synthetic Database: 500,000 reflectance spectra simulated using a Monte Carlo method, covering a wide range of $StO_2$ (0–100%) and $VHb$ (0–30%) values.
  • HeiPorSPECTRAL: The authors leveraged this public dataset for baseline training.

Results and Discussion

The proposed TTA method significantly boosted segmentation performance across all pathological states. While the baseline kidney model's Dice Similarity Coefficient (DSC) dropped from 0.73 (healthy) to 0.05 (venous congestion), the TTA approach provided substantial recovery, improving the DSC by:

  • 1.63x for avascular tissue.
  • 1.55x for arterial ischemia.
  • 4.6x for venous congestion.

Interestingly, the impact of perfusion shifts varied by organ. While the kidney model failed spectacularly under ischemia, models for the colon and liver were more resilient, suggesting that some organs have more distinct spectral "fingerprints" that survive physiological changes better than others.

Conclusion

This work demonstrates that synthetic data can act as a real-time "lookup table" to normalize incoming data, bypassing the need for domain adaptation during training. By translating "unhealthy" spectra into a representation the model already understands, the method achieves significant gains in robustness. Future work will focus on expanding the synthetic database to include more complex chromophores and optimizing the process for real-time surgical assistance.

Summary updated

Abstract

Surgical scene segmentation is crucial for providing context-aware surgical assistance. Recent studies highlight the significant advantages of hyperspectral imaging (HSI) over traditional RGB data in enhancing segmentation performance. Nevertheless, the current hyperspectral imaging (HSI) datasets remain limited and do not capture the full range of tissue variations encountered clinically.
BibTeX
@article{qasim2024test,
  author = {Ahmad Bin Qasim and Alessandro Motta and Alexander Studier-Fischer and Jan Sellner and Leonardo Ayala and Marco Hübner and Marc Bressan and Berkin Özdemir and Karl-Friedrich Kowalewski and Felix Nickel and Silvia Seidlitz and Lena Maier-Hein},
  title = {{Test-time augmentation with synthetic data addresses distribution shifts in spectral imaging}},
  journal = {Int. J. Comput. Assist. Radiol. Surg.},
  year = {2024},
  url = {https://openreview.net/forum?id=UX1IxoiNZQ},
}

Loading related content...

Figure