Abstract
Deep learning models for Computed Tomography (CT) segmentation often struggle with variability in contrast timing and acquisition protocols. Standard intensity augmentations applied to windowed images introduce artifacts and discard useful context. We propose Random Windowing, a physics-aware augmentation technique that stochastically varies the CT viewing window on raw Hounsfield Unit (HU) data during training. Evaluated on liver tumor segmentation tasks across multiple datasets (LiTS, HepaticVessel, CRLM, HCC-TACE), our method significantly improves robustness to non-standard contrast phases and outperforms established baselines like nnU-Net.
Introduction
In Computed Tomography (CT), pixel values represent Hounsfield Units (HU), which correspond to physical tissue density (e.g., water is 0, air is -1000). To visualize specific tissues, clinicians use a "viewing window" to clip these values to a narrow range (e.g., the "liver window").
A major flaw in current deep learning pipelines is that researchers typically apply standard "natural image" augmentations (like brightness and contrast shifts) after this clipping process. This creates two primary problems:
- Artifacts: Shifting clipped data creates "dead zones" or unnatural intensities that do not exist in real physics.
- Lost Context: Standard clipping discards data outside the window that might contain useful features for the model.
This is particularly problematic for contrast-enhanced CTs, where the appearance of a tumor depends heavily on the timing of the contrast dye injection. If the timing is slightly off, standard AI models often fail to generalize.
Methods: Random Windowing
We propose Random Windowing, which moves the augmentation step before the clipping and normalization process. Instead of using a fixed liver window during training, we stochastically vary two parameters on the raw HU data:
- Window Shifting: Randomly moving the center level ($L$) of the window.
- Window Scaling: Randomly expanding or shrinking the width ($W$) of the window.
By operating on raw HU data, the model is exposed to a wider variety of realistic-looking "views" of the same anatomy. It learns to recognize a tumor whether the scan looks "bright and contrasty" or "dark and washed out." This method is computationally efficient as it replaces the static preprocessing step already present in most pipelines.
Experimental Setup and Datasets
The models were trained and evaluated on several major liver imaging benchmarks to test generalization:
- LiTS (Liver Tumor Segmentation): Primary training set (4-fold cross-validation).
- HepaticVessel (HV): 303 cases used as an external test set.
- CRLM (Colorectal Liver Metastases): 197 cases.
- HCC-TACE: 104 cases involving Hepatocellular carcinoma, representing a difficult "out-of-domain" set.
Key Results and Discussion
The proposed method consistently outperformed heavy-hitting baselines such as the nnU-Net and UNETR pipelines.
- General Performance: On the HepaticVessel dataset, Random Windowing achieved a Dice Similarity Coefficient (DSC) of 0.566, compared to 0.544 for the nnU-Net baseline and 0.507 with no intensity augmentation.
- Robustness to Suboptimal Scans: The gains were most dramatic on scans with poor contrast timing. In these "hard" cases, the model maintained significantly higher accuracy while baseline models saw performance craters.
- Physics-Awareness: Ablation studies confirmed that the most critical factor was the stochastic adjustment of HU values themselves. This prevented the model from over-relying on specific, narrow intensity ranges and allowed it to recover "lost" information from high-density bone or low-density fat that would normally be clipped.
Conclusion
Random Windowing acts as a form of "data recovery," allowing models to maintain performance in real-world clinical settings where "perfect" scans are rare. While the current study focused on liver tumors, the logic of physics-respecting augmentations is likely applicable to other organs and quantitative modalities like MRI or PET. Future work will explore the application of this technique to non-contrast CT scans and other anatomical regions.
Summary updated