Weakly Supervised Object Detection in Chest X-Rays With Differentiable ROI Proposal Networks and Soft ROI Pooling

Philip Müller, Felix Meissen, Georgios Kaissis, Daniel Rueckert · DOI

TL;DR

This paper introduces Weakly Supervised ROI Proposal Networks (WSRPN), a novel framework that learns to detect diseases in chest X-rays using only image-level labels. By replacing traditional heuristic-based region proposals with a differentiable attention mechanism and "soft" Gaussian ROI pooling, the authors achieve a new state-of-the-art in medical object localization without requiring expensive, hand-drawn bounding boxes for training.

What Problem Does This Paper Address?

In medical imaging, "localization" (pointing to exactly where a disease is) is just as important as "classification" (saying a disease exists). However, training standard object detectors requires thousands of hand-annotated bounding boxes, which are incredibly costly and time-consuming for radiologists to produce.

Weakly Supervised Object Detection (WSup-OD) aims to solve this by training models using only image-level labels (e.g., "this X-ray shows pneumonia"), which can be automatically mined from radiology reports. While WSup-OD works well for natural images (like finding a cat in a photo), it fails in medical imaging. Why? Because natural objects have clear edges and distinct colors that algorithms can easily "propose" as regions of interest. Pathologies in X-rays are subtle, blurry, and often lack clear boundaries, making traditional proposal methods like Selective Search or Edge Boxes ineffective.

Methods

The authors propose WSRPN, an end-to-end trainable architecture that learns to generate its own region proposals on the fly. The system consists of two main branches:

  1. The Patch Branch: A standard Multiple Instance Learning (MIL) approach that treats the image as a grid of patches. It uses a DenseNet121 backbone to classify each patch and aggregates the results to make an image-level prediction.
  2. The ROI Branch: This is the core innovation. It uses learned query tokens and an attention mechanism to predict the coordinates (center and size) of potential disease regions.
  3. Soft ROI Pooling: Instead of "hard" cropping (which isn't differentiable), they use a 2D Gaussian distribution centered on the predicted coordinates to weight the features. This allows gradients to flow back through the network, letting the model "learn" how to draw better boxes.
  4. Consistency Regularization: To keep the two branches in sync, a KL-divergence loss forces the ROI branch’s spatial predictions to align with the Patch branch’s classification heatmaps.
  5. Supervised Contrastive Loss: This helps the model group similar pathologies together in the feature space, making the detection more robust.

Datasets

The model was evaluated on the ChestXray-8 (CXR8) dataset, which contains 108,948 X-ray images.

  • Training: Performed using noisy image-level labels for eight disease types mined from radiology reports.
  • Evaluation: Tested against a gold-standard set of 984 hand-labeled bounding boxes on 882 images provided by a board-certified radiologist.

Key Insights and Ideas

  • Differentiability is the "Secret Sauce": By making the entire proposal process differentiable, the model doesn't have to rely on "guessing" where objects are based on edges. It learns to optimize the box parameters directly to improve classification accuracy.
  • Inductive Bias via Gaussians: Using a Gaussian distribution for ROI pooling introduces a helpful "spatial prior." It forces the model to focus on a single, localized area rather than scattering its attention across the whole image.
  • The "No-Finding" Logic: The authors found that handling the "background" (no-finding) class using specific logical aggregations (AND/OR logic) was crucial for stabilizing training in a weakly supervised setting.
  • Heuristics Fail Medical Images: The paper quantitatively proves that standard proposal algorithms (Selective Search) have very low overlap with actual medical pathologies, justifying the need for a learned approach.

Key Results

WSRPN significantly outperformed all existing baselines (including CheXNet and CAM-based methods) across multiple metrics:

  • RoDeO Score: Achieved a score of 34.0%, representing a 96.5% relative improvement over the best baseline (CheXNet with noisyOR aggregation).
  • Localization Accuracy: On the "Cardiomegaly" (enlarged heart) task, the model achieved a staggering 95.0% localization accuracy at an IoU of 0.3.
  • Box Quality: Qualitatively, the boxes produced by WSRPN look much more like human annotations than the "blobs" typically produced by heatmap-based (CAM) methods.

Limitations and Future Work

  • Confusing Similar Pathologies: The model sometimes struggles to distinguish between clinically similar appearances, such as "Infiltration" vs. "Pneumonia."
  • Small Object Detection: Like many weakly supervised models, it still finds small, subtle objects (like tiny nodules) challenging to locate accurately.
  • Future Directions: The authors suggest integrating multimodal data (like the actual text from radiology reports) or anatomical priors (knowledge of where organs are) to further refine the bounding box predictions.

Summary updated

BibTeX
@article{muller2025weakly,
  author = {Philip Müller and Felix Meissen and Georgios Kaissis and Daniel Rueckert},
  title = {{Weakly Supervised Object Detection in Chest X-Rays With Differentiable ROI Proposal Networks and Soft ROI Pooling}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2025},
  doi = {10.1109/tmi.2024.3435015},
}
Figure