Automating Cobb Angle Measurement for Adolescent Idiopathic Scoliosis using Instance Segmentation

Chaojun Chen, Khashayar Namdar, Yujie Wu, Shahob Hosseinpour, Manohar Shroff, Andrea Doria, Farzad KhalvatiEMBC 2022

TL;DR

This paper introduces a novel method for automatically measuring Cobb angles, a crucial metric for assessing scoliosis severity, using YOLACT instance segmentation. By accurately segmenting vertebrae and identifying key landmarks, their approach significantly reduces the inter- and intra-observer variability inherent in manual measurements, achieving a competitive SMAPE of 10.76%.

What Problem Does This Paper Address?

Scoliosis, an abnormal lateral curvature of the spine, affects millions and can lead to chronic pain and even disability. Accurately assessing its severity is critical for timely and effective treatment. The current gold standard involves measuring Cobb angles from X-ray images, a manual process that is both time-consuming and prone to significant errors due to variations in how different clinicians (inter-observer variance) or even the same clinician at different times (intra-observer variance) identify the relevant vertebrae and measure the angle. This inconsistency can lead to suboptimal treatment decisions.

Methods

The authors propose an automated approach leveraging instance segmentation, specifically the YOLACT model. The process involves three main steps:

  1. Vertebrae Segmentation: YOLACT, a real-time instance segmentation model, is used to identify and segment individual vertebrae within X-ray images. YOLACT's architecture combines a feature pyramid network with two parallel pathways: a Protonet for generating high-quality masks and a Prediction Head for predicting mask coefficients. These outputs are then assembled to produce the final segmentation masks.
  2. Landmark Extraction: Once vertebrae are segmented, the contour of each segmented vertebra is identified using OpenCV. A minimum bounding box is then drawn around this contour, and the four corners of this bounding box are designated as the key landmarks for each vertebra.
  3. Cobb Angle Calculation: Trigonometry is applied to the extracted landmarks. Specifically, lines are drawn along the endplates of the identified vertebrae, and the angle between these lines (or more precisely, the angle formed by perpendiculars to these lines) is calculated to determine the Cobb angle. The algorithm is designed to identify three key angles corresponding to different regions of the spine (proximal thoracic, main thoracic, and thoracolumbar).

Datasets

The study utilized a dataset of 609 AP X-ray images obtained from SpineWeb. These images contained ground-truth annotations of anatomical landmarks for 17 vertebrae (12 thoracic and 5 lumbar), along with pre-calculated Cobb angle measurements for specific spinal regions. The dataset was augmented using conventional methods (tilting, flipping, histogram equalization) to improve model robustness. The data was split into training (70%), validation (15%), and testing (15%) sets. The authors also noted the presence of "flawed images" with incorrect landmark ordering, which were excluded from the test set.

Key Insights and Ideas

  • Instance Segmentation for Precision: Moving beyond traditional regression or object detection, instance segmentation (YOLACT) allows for precise delineation of each vertebra, which is crucial for accurate landmark identification.
  • Bounding Box Corners as Landmarks: Using the corners of the minimum bounding box around segmented vertebrae provides a consistent and automatable way to extract the necessary points for angle calculation.
  • Addressing Observer Variability: The core motivation is to eliminate the subjective nature of manual Cobb angle measurement, offering a reproducible and objective alternative.
  • Single Model Efficiency: YOLACT's ability to perform segmentation and mask coefficient prediction within a single model architecture is highlighted as an advantage over methods requiring multiple models.

Key Results

  • SMAPE Performance: The proposed YOLACT-based method achieved a Symmetric Mean Absolute Percentage Error (SMAPE) of 10.76%. This performance is competitive, outperforming several other methods listed in Table 1, including Revised U-Net, Fast RCNN, and BoostNet. It is comparable to ResNet (10.81%), which required two ML models.
  • Absolute Difference: The majority of predictions showed an absolute angle difference of less than 5 degrees (64.86%), with 94.59% of predictions having an error less than 10 degrees, indicating high reliability.
  • Qualitative Results: Visualizations show that YOLACT produces acceptable segmentation results that generally follow the curve of the spine without major deviation.

Limitations and Future Work

  • Over-segmentation: The authors observed that YOLACT sometimes identifies more vertebrae than intended, including those in the cervical region, leading to segmentation of 18-19 vertebrae instead of the target 17.
  • Future Improvements: The paper suggests implementing outlier rejection techniques to correct segmentation errors and remove undesirable noise or false positives. Further improvements could focus on refining the landmark extraction and angle calculation steps.

Summary updated

BibTeX
@inproceedings{chen2022automating,
  author = {Chaojun Chen and Khashayar Namdar and Yujie Wu and Shahob Hosseinpour and Manohar Shroff and Andrea Doria and Farzad Khalvati},
  title = {{Automating Cobb Angle Measurement for Adolescent Idiopathic Scoliosis using Instance Segmentation}},
  booktitle = {EMBC},
  year = {2022},
}
Figure