Localization with Limited Annotation for Chest X-rays

Eyal Rozenberg, Daniel Freedman, Alex M. Bronstein

TL;DR

Training deep learning models to locate diseases in medical images usually requires thousands of hand-drawn bounding boxes—a task that is both expensive and exhausting for radiologists. This paper introduces a novel framework that achieves state-of-the-art localization performance using bounding boxes for less than 1% of the dataset, relying instead on a clever new loss function, spatial consistency layers, and anti-aliasing filters to fill the gaps.

What Problem Does This Paper Address?

In the world of medical AI, data is plentiful, but "gold standard" labels are scarce. While it is relatively easy to get a "whole-image" label (e.g., "this X-ray shows Pneumonia"), it is much harder to get a "localization" label (a bounding box showing exactly where the pneumonia is).

Previous attempts at "weakly supervised" localization often relied on Multiple Instance Learning (MIL), treating an image as a bag of patches. However, these methods suffered from three major flaws:

  1. Noise Sensitivity: They often triggered a positive result based on a single "noisy" patch rather than a coherent region of disease.
  2. Numerical Instability: The math involved multiplying many small probabilities, leading to computer "underflow" errors.
  3. Spatial Ignorance: Standard CNNs often treat neighboring patches as independent and are surprisingly sensitive to small shifts in the input image (lack of shift-invariance).

Methods

The authors propose a three-pronged upgrade to the standard localization pipeline:

Architecture overview
  1. A Better Loss Function: Instead of the traditional MIL approach that looks for at least one positive patch, the authors developed a "continuous relaxation" of a discrete formulation. They replaced sigmoid functions with ReLUs to prevent vanishing gradients and designed the loss to encourage "blobs" of positive patches. This makes the model more robust to noise and numerically stable.
  2. PAC-CRF Layers: To ensure that if one patch is labeled "disease," its neighbors are likely to be as well, they integrated a Pixel-Adaptive Convolutional Conditional Random Field (PAC-CRF). This explicitly models the spatial dependencies between patches.
  3. Anti-Aliasing Filters: Modern CNNs often lose their "shift-invariance" due to downsampling (pooling) layers. The authors added low-pass blur filters before downsampling steps, ensuring that moving an image by a few pixels doesn't radically change the model's prediction—a crucial feature for precise localization.

Datasets

The study uses the ChestX-ray14 dataset (Wang et al., 2017).

  • Total Images: Over 112,000 front-view X-rays.
  • Labels: 14 thoracic pathology classes.
  • The Constraint: Only 880 images (less than 1%) have hand-labeled bounding boxes for 8 specific diseases. The rest only have image-level "Yes/No" labels.

Key Insights and Ideas

  • The "Blob" Logic: A single positive patch is often just noise. By requiring a minimum "blob size" (a threshold of patches) to declare a disease present, the model avoids many false positives common in weakly supervised learning.
  • ReLU over Sigmoid: In complex loss functions, sigmoids can "saturate," causing gradients to disappear and stopping the model from learning. Switching to a ReLU-based formulation kept the gradients flowing and the training stable.
  • Shift-Invariance Matters: We often assume CNNs are naturally good at handling shifts, but they aren't. Adding anti-aliasing is a simple architectural tweak that significantly boosts the reliability of localization.

Key Results

The proposed method significantly outperformed the previous state-of-the-art (SOTA) across all eight disease categories.

Localization examples

Using the Intersection over Union (IoU) metric (where 1.0 is a perfect match with the ground truth):

  • Atelectasis: Jumped from 0.488 (previous SOTA) to 0.818.
  • Mass: Jumped from 0.342 to 0.695.
  • Nodule: Saw a five-fold improvement, moving from 0.081 to 0.404.

Even when the model was trained with zero unannotated data (using only the 880 images with boxes), it still outperformed previous methods that used the entire 112k image dataset, proving the efficiency of their new loss function and architecture.

Limitations and Future Work

  • Training Complexity: The authors noted that treating the thresholds ($\tau, \rho$) as learnable parameters can lead to "degenerate" solutions (where the model cheats to get zero loss). They had to use an alternating training regime—freezing the weights to find thresholds, then freezing thresholds to train weights—to keep the model on track.
  • Disease Scope: The bounding box evaluation was limited to the 8 diseases provided in the dataset.
  • Future Directions: The authors suggest that these ideas—specifically the numerically stable loss and the spatial consistency layers—could be extended to full semantic segmentation (pixel-level labeling) in the future.

Summary updated

BibTeX
@inproceedings{rozenberg2019localization,
  author = {Eyal Rozenberg and Daniel Freedman and Alex M. Bronstein},
  title = {{Localization with Limited Annotation for Chest X-rays}},
  booktitle = {ML4H @ NeurIPS},
  year = {2019},
}
Figure