Med-Query: Steerable Parsing of 9-DoF Medical Anatomies With Query Embedding

Heng Guo, Jianfeng Zhang, Ke Yan, Le Lü, Minfeng Xu

TL;DR

This paper introduces Med-Query, a novel Transformer-based framework for automatically identifying and segmenting specific anatomical structures within 3D medical scans (CT). It achieves "steerability" by allowing users to query for particular anatomies, significantly boosting efficiency and accuracy, especially for complex structures like ribs.

What Problem Does This Paper Address?

Accurately identifying and segmenting individual anatomical structures in 3D medical images, like CT scans, is crucial for many clinical applications. However, existing methods often struggle with:

  • Variability: Anatomies can have complex shapes, sizes, and orientations, especially when pathologies are present or the field-of-view is limited.
  • Inefficiency: Many algorithms process the entire scan uniformly, leading to wasted computation and slow inference times, which is problematic in time-sensitive clinical settings.
  • Specificity: Clinicians often need to focus on only a subset of anatomies (e.g., specific ribs for radiation therapy planning), but current tools aren't designed to adapt their focus efficiently.
  • Data Scarcity: High-quality, instance-level annotations for certain anatomical structures, like individual ribs, are scarce, hindering research and development.

Methods

Med-Query tackles these challenges by proposing a unified, "detection-then-segmentation" framework that leverages a Transformer architecture. Key innovations include:

  • 9-DoF Bounding Box Parameterization: Instead of simple axis-aligned boxes, Med-Query uses a 9-Degrees-of-Freedom (9-DoF) representation to capture the full 3D pose and scale of anatomies. This is crucial for elongated and oblique structures like ribs. They propose a novel, single-stage, non-hierarchical approach to estimate these 9-DoF parameters.
  • Steerable Anatomy Detection: The core of Med-Query's steerability comes from its Transformer-based detector, inspired by DETR. By introducing a "weighted adjacency matrix" during the bipartite matching process, the model learns a fixed, deterministic mapping between queries and anatomical structures. This allows the system to focus its attention on specific, queried anatomies, improving efficiency.
  • Task-Oriented ROI Extraction: Before detailed detection, a simplified U-Net model extracts a Region of Interest (ROI) relevant to the target anatomy, reducing the computational load.
  • Stand-alone Segmentation Head: After detection, a separate segmentation module (also U-Net based) refines the instance segmentation within the detected ROI at a higher resolution. This modular design allows for flexibility and the integration of more powerful segmentation models.

Datasets

The paper introduces a new benchmark and utilizes existing ones:

  • RibInst: A newly curated, elaborately annotated instance-level rib parsing dataset. It's built upon a previous chest-abdomen CT dataset for rib fracture detection and classification. This dataset is made publicly available to address the scarcity of high-quality rib annotations.
  • CTSpine1K: A public dataset for instance-level vertebra annotation, used for spine parsing tasks.
  • FLARE22: A challenge dataset for abdominal organ segmentation, used for multi-organ segmentation tasks.

Key Insights and Ideas

  • Steerability for Efficiency: The ability to "query" for specific anatomies is a significant advancement, allowing the system to bypass irrelevant structures and dramatically speed up inference. This is a paradigm shift from processing entire scans.
  • Transformer's Advantage in Medical Imaging: The paper suggests that Transformers, with their ability to model long-range dependencies and holistic spatial information, are particularly well-suited for complex anatomy parsing tasks in medical imaging, outperforming CNN-based detectors in certain aspects.
  • 9-DoF for Complex Shapes: The 9-DoF bounding box representation is essential for accurately localizing and segmenting anatomies with non-trivial shapes and orientations, a common challenge in medical imaging.
  • Unified Framework: Med-Query demonstrates strong performance across diverse tasks (ribs, spine, abdominal organs), highlighting the generality and robustness of its detection-then-segmentation approach.

Key Results

  • Rib Parsing: Med-Query achieved a state-of-the-art identification rate of 97.0% and a segmentation Dice score of 90.9% on the RibInst dataset. It also demonstrated significantly faster inference times (e.g., 0.065s for detection vs. 2.575s for CenterNet).
  • Spine Parsing: Achieved competitive results on par with state-of-the-art methods on the CTSpine1K dataset.
  • Abdominal Organ Segmentation: Performed competitively on the FLARE22 competition, achieving an average DSC of 89.7%, ranking in the top 3% of entries.
  • Efficiency: The entire pipeline for rib parsing can be completed in approximately 3 seconds per CT scan on a V100 GPU, with further speedups possible by querying fewer anatomies.

Limitations and Future Work

  • Separate Training Stages: The framework's stages (ROI extraction, detection, segmentation) are trained separately, which adds complexity and may hinder end-to-end optimization.
  • Detection Accuracy Dependency: The segmentation accuracy is still somewhat dependent on the precision of the 9-DoF box detection. In cases of very close or overlapping structures, the box might still include adjacent anatomy.
  • Abnormal Structures: Highly complex or abnormal anatomical variations (e.g., twisted rib shapes) can still pose challenges for accurate detection.
  • Steerability Flexibility: The current steerability relies on ordered query embeddings, which might limit its adaptability. Future work aims to integrate natural language embeddings (e.g., from CLIP) for more intuitive and user-friendly interaction.
  • Dataset Generality: The RibInst dataset, while valuable, is derived from a fracture detection dataset, potentially limiting its representativeness of broader anatomical variations. Handling cases with atypical numbers of ribs or vertebrae might require more diverse data or specialized post-processing.

Summary updated

BibTeX
@article{guo2024med,
  author = {Heng Guo and Jianfeng Zhang and Ke Yan and Le Lü and Minfeng Xu},
  title = {{Med-Query: Steerable Parsing of 9-DoF Medical Anatomies With Query Embedding}},
  journal = {IEEE Journal of Biomedical and Health Informatics},
  year = {2024},
  doi = {10.1109/jbhi.2024.3461951},
}
Figure