Abstract
Automating vertebrae segmentation and identification in spinal X-rays is a critical yet challenging task due to low image contrast and high anatomical similarity. We present VertXNet, a novel ensemble deep learning pipeline that combines semantic segmentation (U-Net) and instance segmentation (Mask R-CNN) through a rule-based system. VertXNet achieves a mean Dice score of 0.90, significantly outperforming standalone models. By leveraging anatomical priors for identification, the system provides a robust solution for clinical spinal analysis.
Introduction
Analyzing spinal health for surgical planning or abnormality quantification requires precise annotation of each vertebra. Currently, this task falls to radiologists, making it expensive, slow, and prone to inter-reader variability. Automation is hindered by the visual similarity of vertebrae, low signal-to-noise ratios in 2D X-rays, and data scarcity. Standard models often fail: U-Net may merge adjacent vertebrae into a single mass, while Mask R-CNN can miss vertebrae entirely if bounding box detection fails.
Methods
VertXNet addresses these challenges through a two-stage approach: an ensemble segmentation module followed by anatomical identification.
The Ensemble Segmentation Module
The pipeline runs U-Net and Mask R-CNN in parallel. A rule-based system then merges their outputs based on agreement (overlapping detections), separation (using Mask R-CNN to split U-Net "blobs"), and recovery (using average size and spacing to fill gaps left by one model).
Anatomical Identification
Instead of direct multi-class classification, VertXNet identifies a "reference" vertebra—C2 in the cervical spine or S1 in the lumbar spine. Once this anchor is established, the system labels the remaining vertebrae sequentially according to known anatomical order.
Key Insights and Results
The core innovation of VertXNet lies in exploiting the complementary strengths of its constituent models. While U-Net excels at pixel-level bone detection, it lacks boundary precision; conversely, Mask R-CNN provides clear boundaries but can suffer from "blind spots."
VertXNet demonstrated a significant performance leap, achieving a 0.90 mean Dice score on the MEASURE 1 test set, compared to 0.73 for Mask R-CNN and 0.72 for U-Net. The model also showed strong generalization, scoring 0.89 on the PREVENT dataset and 0.88 on the public NHANES II dataset. It proved particularly effective at identifying difficult vertebrae at image edges, such as T1, T11, and T12.
Conclusion
VertXNet demonstrates that a carefully crafted ensemble of deep learning models, guided by anatomical priors and rule-based logic, can provide the reliability necessary for clinical applications. While the current reliance on manual rules and specific reference vertebrae presents opportunities for future optimization—such as implementing meta-learners—the pipeline sets a new benchmark for automated spinal X-ray analysis.
Summary updated