FM-OSD: Foundation Model-Enabled One-Shot Detection of Anatomical Landmarks

Juzheng Miao, Cheng Chen, Keli Zhang, Jie Chuai, Quanzheng Li, Pheng-Ann Heng

Abstract

Anatomical landmark detection is a cornerstone of medical image analysis, yet standard deep learning approaches are often hampered by the requirement for extensive labeled datasets. "One-shot" learning offers a potential solution, but existing methods typically rely on large volumes of unlabeled domain-specific data for pre-training. We present FM-OSD, a novel framework that leverages visual foundation models to achieve high-precision landmark detection using truly only a single labeled image. By integrating a frozen foundation encoder with a bidirectional matching strategy and a coarse-to-fine decoding architecture, FM-OSD outperforms state-of-the-art methods on both head and hand X-ray benchmarks without requiring any additional unlabeled data.

Introduction

Accurate localization of anatomical landmarks in medical imaging—such as cephalometric points in head X-rays or joint centers in hand radiographs—is essential for clinical diagnosis, surgical planning, and longitudinal monitoring. While supervised deep learning has achieved remarkable success in this domain, its reliance on large-scale annotated datasets poses a significant barrier in clinical settings where expert time is limited and rare pathologies are common.

To address this, "one-shot" landmark detection methods have emerged, aiming to generalize from a single labeled template image to unseen query images. However, a critical limitation persists: most current "one-shot" frameworks are not truly one-shot. They often require hundreds or thousands of unlabeled images from the target domain to pre-train feature extractors through self-supervised learning. This "hidden" data requirement limits their applicability in scenarios where even unlabeled data is scarce.

FM-OSD (Foundation Model-Enabled One-Shot Detection) overcomes this bottleneck by repurposing visual foundation models (VFMs) like DINO, which are pre-trained on massive datasets of natural images. We demonstrate that the robust, general-purpose features learned by these models can be adapted to the medical domain with minimal overhead, enabling high-performance landmark detection with zero additional unlabeled medical data.

Methodology

The FM-OSD framework is built upon three core components designed to bridge the gap between natural image foundation models and specialized medical tasks.

1. Frozen Foundation Encoder

At the heart of FM-OSD is a frozen image encoder (DINO-S). Unlike traditional methods that fine-tune the entire network or pre-train on medical data, we keep the foundation model's weights fixed. This preserves the rich, hierarchical feature representations learned during large-scale pre-training and prevents overfitting to the single available medical image.

2. Dual-Branch Coarse-to-Fine Decoders

Foundation models typically produce patch-wise features at a lower resolution than the input image. To achieve the sub-millimeter precision required for medical applications, we introduce a dual-branch decoding strategy:

  • Global Decoder: This branch processes the full-scale image to identify the coarse region of interest for a landmark.
  • Local Decoder: This branch operates on high-resolution crops centered around the coarse prediction, refining the coordinates to achieve high precision.

These decoders are lightweight and are the only components trained during the "one-shot" phase. Training is guided by a Distance-aware Similarity Learning Loss, which supervises the model to produce high similarity scores only in the immediate vicinity of the ground-truth landmark, modeled by a 2D Gaussian distribution.

Overview of the FM-OSD architecture, showing the training process with a single template and the inference pipeline using bidirectional matching.

3. Bidirectional Matching Strategy (BDM)

Medical images frequently contain repetitive structures (e.g., multiple phalanges in a hand X-ray) that can lead to false positive matches. To enhance robustness, we implement a Bidirectional Matching (BDM) strategy. During inference, the model identifies the top-$k$ candidate matches in the query image. For each candidate, it performs an "inverse match" back to the template image. A match is only considered valid if it consistently points back to the original landmark location on the template. This cycle-consistency check effectively filters out ambiguous matches and significantly reduces outlier errors.

Experimental Results

We evaluated FM-OSD on two public benchmarks: the Head X-ray dataset (400 images, 19 landmarks) and the Hand X-ray dataset (909 images, 37 landmarks). In all experiments, only one image was used as the template, with no additional unlabeled data.

Quantitative Performance

FM-OSD established new state-of-the-art performance for one-shot detection:

  • Hand X-ray: Achieved a Mean Radial Error (MRE) of 1.41 mm, representing a 16% improvement over the previous SOTA (SAEM), which utilized 608 unlabeled images.
  • Head X-ray: Achieved an MRE of 1.82 mm, outperforming the previous best (EGTNLR) by 19%.
  • Successful Detection Rate (SDR): At a 2.0 mm precision threshold, FM-OSD reached an SDR of 86.66% on the hand dataset, significantly higher than the 76.61% achieved by competing one-shot methods.

Qualitative Analysis

Visual comparisons highlight FM-OSD's superior localization, particularly in regions with complex or overlapping structures where baseline methods often drift.

Qualitative comparison of landmark detection results on head and hand X-ray datasets. FM-OSD (ours) shows closer alignment to ground truth (green) compared to SAEM and EGTNLR.

Discussion and Conclusion

The success of FM-OSD demonstrates that the "zero-shot" capabilities of large-scale foundation models can be effectively harnessed for highly specialized medical tasks. By using a single template image and clever augmentation (500 variations of the single image), the model learns to interpret foundation features for specific anatomical points. The Bidirectional Matching strategy further ensures that the model remains robust against the inherent symmetries and repetitions found in human anatomy.

While currently focused on 2D radiographs, the principles of FM-OSD—leveraging frozen foundation features and consistency-based matching—provide a promising roadmap for truly data-efficient medical AI. Future work will explore extending this framework to 3D volumetric data and cross-modality landmark transfer.

Summary updated

BibTeX
@inproceedings{miao2024fm,
  author = {Juzheng Miao and Cheng Chen and Keli Zhang and Jie Chuai and Quanzheng Li and Pheng-Ann Heng},
  title = {{FM-OSD: Foundation Model-Enabled One-Shot Detection of Anatomical Landmarks}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  doi = {10.1007/978-3-031-72120-5\_28},
}
Figure