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

Heng Guo, Jianfeng Zhang, Ke Yan, Le Lu, Minfeng Xu · DOI

Introduction

Parsing human anatomy from 3D Computed Tomography (CT) scans is a cornerstone of clinical workflows, including radiation therapy planning and disease screening. However, traditional methods often struggle with the computational overhead of processing entire volumes and the geometric complexity of structures like ribs. Med-Query introduces a "steerable" framework that treats anatomical parsing as a retrieval task, allowing users to query specific structures (e.g., "the 5th right rib") on demand.

The Med-Query framework allows for steerable anatomy retrieval, functioning like a search engine for specific bones or organs within a 3D CT scan.

The Challenge of 3D Anatomy Parsing

Current deep-learning models for 3D medical imaging face three primary hurdles:

  1. Computational Inefficiency: Most models process the entire 3D volume uniformly, wasting resources on irrelevant regions if only a specific organ is needed.
  2. Geometric Complexity: Structures like ribs are long, curved, and tilted. Standard axis-aligned bounding boxes lead to significant overlap and "spatial collisions," making it difficult to distinguish neighboring instances.
  3. Fragility: Heuristic-based rules often fail in the presence of pathologies (e.g., fractures) or limited fields-of-view (FOV).

Methodology: A Three-Stage Pipeline

Med-Query employs a "detection-then-segmentation" approach designed for both accuracy and efficiency.

The Med-Query architecture consists of (A) a coarse ROI extractor, (B) a Transformer-based 9-DoF anatomy detector with deterministic query embedding, and (C) a high-resolution segmentation head.

1. ROI Extractor

A coarse U-Net identifies the general region of interest (e.g., the ribcage or abdomen) at low resolution, significantly reducing the search space for subsequent stages.

2. Steerable Anatomy Detector

The core of the system is a single-stage Transformer based on the DETR architecture, enhanced with two key innovations:

  • 9-DoF Parameterization: Instead of axis-aligned boxes, the model predicts 9 parameters: 3 for center position, 3 for scale, and 3 for Euler angles (rotation). This allows the bounding boxes to tilt and wrap tightly around slanted, curved structures.
  • Deterministic Query Embedding: Unlike standard Transformers where query-to-object mapping is random, Med-Query uses a weighted adjacency matrix to force a fixed mapping. For example, Query #5 is specifically trained to look for Rib #5, enabling the "steerable" retrieval functionality.

3. Segmentation Head

Once a 9-DoF box is detected, a high-resolution U-Net performs binary segmentation within that specific tilted crop, producing the final precise mask.

Datasets and Evaluation

The framework was validated across three distinct tasks:

  • RibInst: A newly curated dataset of 654 CT scans with instance-level rib annotations.
  • CTSpine1K: A large-scale benchmark for vertebrae segmentation.
  • FLARE22: A benchmark for abdominal multi-organ segmentation (liver, spleen, pancreas, etc.).

Key Results

  • State-of-the-Art Performance: On the RibInst dataset, Med-Query achieved a 97.0% identification rate and a 90.9 Dice score, outperforming baselines like CenterNet and nnU-Net.
  • Efficiency: The entire pipeline processes a full CT scan in approximately 3 seconds on an NVIDIA V100. By querying only a subset of organs, the detection stage can be up to 10x faster than traditional CNN architectures.
  • Generalization: The model ranked in the top 3% of the FLARE22 leaderboard, demonstrating its effectiveness for soft tissue organs in addition to skeletal structures.

Conclusion and Future Directions

Med-Query demonstrates that treating anatomical parsing as a steerable retrieval task with 9-DoF geometric modeling significantly improves both efficiency and accuracy. While the current model relies on a fixed query system, future work aims to integrate natural language processing (e.g., CLIP) to allow clinicians to use free-text queries like "find the fractured rib."

Summary updated

BibTeX
@article{guo2024med,
  author = {Heng Guo and Jianfeng Zhang and Ke Yan and Le Lu 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