NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HU-Based Foreground Masking for 3D Medical Masked Image Modeling

Jin Lee, Vu Dang, Gwang-Hyun Yu, Anh Le, Zahid Rahman, Jin-Ho Jang, Heonzoo Lee, Kun-Yung Kim, Jin-Sul Kim, Jin-Young Kim

Abstract

Masked Image Modeling (MIM) has emerged as a powerful self-supervised learning paradigm, yet its application to 3D medical imaging often suffers from computational inefficiency due to the high volume of uninformative background voxels. We present a novel HU-based Foreground Masking strategy that leverages the physical properties of Hounsfield Units (HU) in CT scans to focus the reconstruction task on anatomically dense regions. By prioritizing informative foreground subvolumes over empty space, our method achieves state-of-the-art performance across multiple 3D segmentation benchmarks, including BTCV and Flare22, while demonstrating surprising cross-modality generalization to MRI data.

Introduction

Self-supervised learning via Masked Image Modeling (MIM) has revolutionized computer vision by enabling models to learn robust representations from unlabeled data. The core mechanism involves masking portions of an input and requiring the network to reconstruct the missing content. While random masking is effective for natural images, it is suboptimal for 3D medical volumes like CT scans. In these datasets, a significant portion of the volume consists of air, fluid, or background noise that lacks clinical relevance. Standard random masking often forces the model to waste capacity reconstructing these uninformative regions, leading to diluted feature representations for critical anatomical structures.

To address this, we introduce HU-based Foreground Masking, a domain-aware pretraining strategy that utilizes the absolute physical measurements provided by Hounsfield Units to guide the masking process toward high-entropy, tissue-dense regions.

Methodology

HU-based Foreground Masking

The proposed framework integrates a targeted masking strategy into the standard MIM pipeline. The process consists of three primary stages:

  1. Subvolume Partitioning: The input 3D CT volume is divided into non-overlapping subvolumes (cubes) of size $16 \times 16 \times 16$.
  2. Intensity-Based Filtering: Unlike natural images where pixel intensity is relative to lighting, CT voxel intensities are measured in Hounsfield Units (HU), which correspond to physical density. We normalize these values and calculate the average intensity for each subvolume. A threshold $\lambda = 0.1$ is applied; subvolumes exceeding this threshold are classified as "foreground" (containing organs, bones, or tissues), while those below are considered "background."
  3. Targeted Reconstruction: During pretraining, the masking process is restricted to these foreground subvolumes. The model (utilizing backbones such as UNETR or SwinUNETR) is tasked with reconstructing these specific informative indices using a voxel-wise $L_1$ loss.

Information Density Analysis

To validate this approach, we conducted a Region of Interest (ROI) analysis comparing foreground and background subvolumes. Our findings indicate that foreground regions possess significantly higher entropy, structural complexity, and mutual information. By focusing on these areas, the pretext task becomes more challenging and semantically meaningful, forcing the model to learn the complex geometries of visceral organs.

Experimental Setup

Datasets

The model was pretrained on a large-scale aggregate of approximately 1,600 CT scans from the BTCV, TCIA Covid19, and LUNA datasets. For downstream evaluation, we tested the representations on several diverse benchmarks:

  • BTCV & Amos22: Multi-organ and large-scale abdominal segmentation.
  • Flare22: Abdominal organ segmentation.
  • MM-WHS: Multi-modality whole heart segmentation.
  • BraTS: Brain tumor segmentation (MRI-based) to evaluate cross-modality generalization.

Results and Discussion

Performance Benchmarks

Our HU-based masking strategy consistently outperformed both random masking and existing state-of-the-art (SOTA) self-supervised methods. Using the SwinUNETR backbone, the method achieved a Dice Score of 84.64% on BTCV and 92.43% on Flare22. Notably, it surpassed VoCo (a volume-based contrastive learning approach) and SimMIM, demonstrating the superiority of domain-aware masking over generic strategies.

Qualitative Improvements

Visual analysis of the segmentation masks revealed that models pretrained with HU-based masking produce sharper boundaries and better spatial continuity, particularly for difficult-to-segment organs like the pancreas. This suggests that the model develops a more sophisticated understanding of organ morphology during the pretraining phase.

Cross-Modality Generalization

An unexpected finding was the method's effectiveness on MRI data (BraTS). Despite the threshold being tuned for CT Hounsfield Units, the heuristic of prioritizing "bright" or dense regions translated well to MRI intensities, suggesting that the principle of foreground-focused masking is a robust prior for medical imaging in general.

Conclusion

HU-based Foreground Masking provides a simple yet highly effective way to inject domain knowledge into self-supervised pretraining for medical imaging. By leveraging the physical consistency of CT scans, we ensure that the model's computational resources are focused on clinically relevant structures. While the current use of a fixed global threshold is effective, future work will investigate adaptive thresholding techniques to further refine the selection of informative subvolumes across diverse imaging protocols.

Summary updated

BibTeX
@inproceedings{lee2025hu,
  author = {Jin Lee and Vu Dang and Gwang-Hyun Yu and Anh Le and Zahid Rahman and Jin-Ho Jang and Heonzoo Lee and Kun-Yung Kim and Jin-Sul Kim and Jin-Young Kim},
  title = {{HU-Based Foreground Masking for 3D Medical Masked Image Modeling}},
  booktitle = {AMAI @ MICCAI},
  year = {2025},
  doi = {10.1007/978-3-032-09569-5\_13},
}
Figure