Sliding Window Fastedit: A Framework for Lesion Annotation in Whole-Body Pet Images

Matthias Hadlich, Zdravko Marinov, Moon Kim, Enrico Nasca, Jens Kleesiek, Rainer Stiefelhagen

TL;DR

SW-FASTEDIT introduces a sliding window framework to interactive medical image segmentation, enabling full-resolution processing of large whole-body PET volumes without running out of GPU memory. By replacing tedious voxel-wise labeling with a few guided user clicks, the framework reduces annotation time from an hour to just a few minutes while outperforming traditional cropping or resizing methods.

What Problem Does This Paper Address?

Training deep learning models for lesion segmentation in whole-body Positron Emission Tomography (PET) scans requires massive amounts of voxel-wise manual annotations. For radiologists, this is an incredibly tedious task—often taking up to 60 minutes per volume due to the complex 3D structures and scattered nature of lesions throughout the body.

Interactive segmentation models (where a user provides guiding "clicks" to refine a model's predictions) offer a solution, but they hit a major hardware bottleneck: whole-body 3D images are too large for standard GPU memory. To avoid Out-Of-Memory (OOM) errors, prior interactive frameworks either downsample the image (losing fine boundary details) or crop it (potentially missing lesions entirely).

Traditional vs. Sliding Window Interactive Segmentation

Methods

The authors introduce SW-FASTEDIT, which seamlessly blends sliding window inference into both the training and evaluation loops of interactive segmentation. Instead of feeding the entire volume into the network, the framework breaks the volume into smaller, overlapping 3D patches, processes them individually, and stitches them back together using Gaussian weighting.

Key methodological innovations include:

  • Differentiable Sliding Window Training: Because standard sliding window operations are non-differentiable, the authors leverage MONAI's differentiable implementation to linearly combine and average gradients across overlapping windows during backpropagation.
  • Local Patch-wise Corrections: During the interactive inference phase, instead of looking globally across the whole volume for errors, the framework identifies the specific local patch with the worst Dice score and simulates corrective clicks inside that patch. This mimics how a real radiologist focuses on poorly segmented sub-regions.
  • Smart Stopping Criteria & Pre-training: The model simulates both "tumor" and "background" clicks during training. To prevent the model from becoming overly reliant on clicks, they introduce a hybrid stopping criterion (stopping randomly or when a target Dice score is met) and utilize a non-interactive pre-training phase so the model can generate strong initial predictions even with zero clicks.
Local patch-wise correction workflow

Datasets

The framework was trained and evaluated on two major datasets:

  1. AutoPET: A large dataset containing whole-body PET/CT scans of patients with lung cancer, melanoma, or lymphoma. The authors used 396 volumes for training and 105 for testing.
  2. HECKTOR: A Head and Neck Tumor PET/CT dataset. This was used strictly as an unseen, out-of-distribution dataset to test how well the model generalizes without any fine-tuning.

Key Insights and Ideas

  • Localized Feedback Beats Global Feedback: Simulating user clicks based on local patch errors (Local Patch-wise) rather than global errors consistently yielded better validation results, showing that localized refinement helps the model handle fine details better.
  • Solving the "Cold Start" Problem: Interactive models trained purely with clicks perform terribly when given zero clicks (achieving only a 24.47% Dice score). Pre-training the network without clicks for 400 epochs before introducing click-based training solved this, boosting the 0-click baseline to 68.03% while maintaining high interactive accuracy.
  • Memory Efficiency without Sacrifice: Standard interactive models like DeepEdit completely fail due to OOM errors on a 48 GB GPU when processing full-resolution whole-body volumes. SW-FASTEDIT bypasses this entirely via its patch-based approach without sacrificing the global context needed for segmentation.

Key Results

  • State-of-the-Art Performance: On the AutoPET dataset, SW-FASTEDIT achieved a 85.50% Dice score after 10 simulated clicks, outperforming the non-sliding window baseline (DeepEdit) on cropped volumes.
  • Zero-Shot Generalization: When evaluated on the completely unseen HECKTOR dataset, the model's performance jumped from a meager 3.59% Dice score (with 0 clicks) to 40.77% with just 10 corrective clicks, proving its robustness to domain shifts.
  • Proven Human Utility: In a user study involving medical professionals, the framework reduced annotation times to 6–8 minutes per volume (down from up to 60 minutes manually). Furthermore, the annotators reported low physical and mental workload scores on the NASA-TLX index, noting that most cases required only 3–4 updates to achieve high-quality labels.

Limitations and Future Work

While SW-FASTEDIT demonstrates excellent performance on PET scans, the authors note that its generalizability across other imaging modalities (like MRI or standard CT) and different anatomical segmentation tasks still needs to be thoroughly validated. Additionally, while the dataset includes PET/CT scans, the current framework primarily focuses on utilizing the PET volumes; the authors plan to explicitly extend this into a fully multimodal setting to leverage fused PET/CT data in the future.

Summary updated

BibTeX
@inproceedings{hadlich2024sliding,
  author = {Matthias Hadlich and Zdravko Marinov and Moon Kim and Enrico Nasca and Jens Kleesiek and Rainer Stiefelhagen},
  title = {{Sliding Window Fastedit: A Framework for Lesion Annotation in Whole-Body Pet Images}},
  booktitle = {ISBI},
  year = {2024},
  doi = {10.1109/isbi56570.2024.10635459},
}
Figure