Intensity Confusion Matters: An Intensity-Distance Guided Loss for Bronchus Segmentation

Haifan Gong, Wenhao Huang, Huan Zhang, Yu Wang, Xiang Wan, Hong Shen, Guanbin Li, Haofeng Li

Abstract

Automatic segmentation of the bronchial tree from CT imaging is important, as it provides structural information for disease diagnosis. Despite the merits of previous automatic bronchus segmentation methods, they have paid less attention to the issue we term as Intensity Confusion, wherein the intensity values of certain background voxels approach those of the foreground voxels within bronchi. Conversely, the intensity values of some foreground voxels are nearly identical to those of background voxels. This proximity in intensity values introduces significant challenges to neural network methodologies. To address the issue, we introduce a novel Intensity-Distance Guided loss function, which assigns adaptive weights to different image voxels for mining hard samples that cause the intensity confusion. The proposed loss estimates the voxel-level hardness of samples on the basis of intensity and distance priors. Extensive experiments not only show the superiority of our method compared with the state-of-the-art methods, but also verify that tackling the intensity confusion issue helps to significantly improve bronchus segmentation.

The Challenge of Intensity Confusion

In lung CT imaging, segmenting the bronchial tree is notoriously difficult because lung tissue and air-filled bronchi often share nearly identical Hounsfield Unit (HU) values. This phenomenon, termed "Intensity Confusion," manifests in two primary ways:

  1. False Positives: Background tissues, such as pulmonary alveoli, can have intensity values very similar to the air inside the bronchi.
  2. False Negatives: Certain areas within the bronchus may appear brighter than expected due to noise or partial volume effects, leading models to misclassify them as background.
Figure 2: HU distribution of misclassified voxels showing the significant overlap between airway mean values and background intensities.

Standard loss functions like Binary Cross-Entropy (BCE) or Focal Loss treat all misclassified voxels with similar "hardness" based solely on model confidence. However, in bronchus segmentation, an error adjacent to a branch is far more damaging than a distant error because it can break the connectivity of the entire tree. The authors argue that incorporating anatomical and physical priors—specifically intensity and distance—directly into the loss function is essential to focus on these critical "hard" samples.

Methodology: Intensity-Distance Guided (IDG) Loss

The proposed Intensity-Distance Guided (IDG) loss function adaptively weights voxels by multiplying a standard loss (BCE) with two specialized weight maps derived from anatomical priors.

Figure 4: Overview of the proposed framework, illustrating how intensity and distance priors are combined to create the final loss weight map.

Intensity Prior Weight Map ($W^{in}$)

The authors model the intensity distribution of the airway using a Gaussian distribution to identify two "hard" cases:

  • Outside the airway: Darker voxels (closer to air intensity) are harder to distinguish and receive higher weights.
  • Inside the airway: Brighter voxels (atypical for air) receive higher weights to prevent false negatives.

Distance Prior Weight Map ($W^{dis}$)

Errors near the bronchial wall are more likely to affect the topology (connected structure) of the tree. Using a dilation operator and skeletonization-based distance transform, the model assigns higher weights to voxels in close physical proximity to the bronchus. By combining these maps, the model is forced to prioritize voxels that are both physically close to the structure and have confusing intensity values.

Datasets and Benchmarking

The study utilizes two primary datasets to validate the IDG loss:

  1. ATM’22: A public benchmark from a popular bronchus segmentation competition.
  2. BronAtlas: A new, high-quality benchmark curated by the authors consisting of 100 thoracic CT scans. BronAtlas addresses the issue of "noisy" or incomplete labels in existing sets by employing a meticulous two-step re-labeling process by medical experts.

Experimental Results

The IDG loss was tested using a standard 3D U-Net backbone and compared against state-of-the-art (SOTA) methods. The results emphasize that connectivity is often a more vital metric than simple pixel accuracy (Dice score) for tubular structures.

  • Superiority on BronAtlas: The method achieved a Dice score of 88.20%, outperforming HybridUNet (86.75%) and TSCNN (84.65%).
  • Enhanced Connectivity: On the ATM’22 long-term validation set, the method achieved a Tree Length Detected (TD) of 94.83% and Branches Detected (BD) of 92.24%, significantly higher than the baseline U-Net (TD: 64.77%, BD: 53.75%).
  • Efficiency: Despite using only 270 training samples—far fewer than competition winners who often use large ensembles—the IDG loss remained highly competitive, particularly in detecting small, difficult branches.

Conclusion

The Intensity-Distance Guided loss function demonstrates that "hardness" in medical imaging is contextual. By formalizing the "Darker is Harder" rule for background voxels and prioritizing topological connectivity, the IDG loss significantly improves the segmentation of complex bronchial trees. Future work may involve applying this "Intensity Confusion" framework to other tubular structures, such as blood vessels or nerves, where similar intensity overlaps present challenges.

Summary updated

Abstract

Automatic segmentation of the bronchial tree from CT imaging is important, as it provides structural information for disease diagnosis. Despite the merits of previous automatic bronchus segmentation methods, they have paied less attention to the issue we term as \textit{Intensity Confusion}, wherein the intensity values of certain background voxels approach those of the foreground voxels within bronchi. Conversely, the intensity values of some foreground voxels are nearly identical to those of background voxels. This proximity in intensity values introduces significant challenges to neural network methodologies. To address the issue, we introduce a novel Intensity-Distance Guided loss function, which assigns adaptive weights to different image voxels for mining hard samples that cause the intensity confusion. The proposed loss estimates the voxel-level hardness of samples, on the basis of the following intensity and distance priors. We regard a voxel as a hard sample if it is in: (1) the background and has an intensity value close to the bronchus region; (2) the bronchus region and is of higher intensity than most voxels inside the bronchus; (3) the background region and at a short distance from the bronchus. Extensive experiments not only show the superiority of our method compared with the state-of-the-art methods, but also verify that tackling the intensity confusion issue helps to significantly improve bronchus segmentation. Project page: https://github.com/lhaof/ICM.
BibTeX
@inproceedings{gong2024intensity,
  author = {Haifan Gong and Wenhao Huang and Huan Zhang and Yu Wang and Xiang Wan and Hong Shen and Guanbin Li and Haofeng Li},
  title = {{Intensity Confusion Matters: An Intensity-Distance Guided Loss for Bronchus Segmentation}},
  booktitle = {ICME},
  year = {2024},
  doi = {10.1109/icme57554.2024.10687680},
}
Figure