Researchers Develop UNet Model to Measure Cobb Angles From X-Rays

Researchers have developed an automated system that uses frequency-domain analysis to measure spinal curvature from X-rays, potentially reducing the variability that plagues manual assessments of adolescent idiopathic scoliosis.

The study describes a model that translates the spine’s centerline into a Fourier spectral representation before predicting Cobb angles, the standard metric for curve severity.

The method departs from spatial-domain approaches that regress angles directly from pixel data. Instead, a UNet backbone segments the spinal column, extracts a centerline, and feeds a compressed latent vector into two sequential multi-layer perceptrons.

The first predicts the real and imaginary components of the lowest-frequency Fourier coefficients; the second maps that spectral descriptor to three Cobb angles. The team evaluated the architecture on the AASCE19 and Spinal-AI2024 datasets, using five-fold cross-validation and an NVIDIA H100 GPU.

Performance was reported on the official test splits of both the AASCE19 and Spinal-AI2024 datasets. During training, samples for which any Cobb angle lay more than three standard deviations from the corresponding training-set mean were removed as outliers.

A smooth centerline was extracted from the segmentation mask by identifying the leftmost and rightmost foreground pixels in each image row, defining their midpoint as the centerline coordinate, stacking these midpoints across rows, and smoothing the resulting discrete centerline with a spline to reduce noise and minor segmentation irregularities.

After centerline extraction, both the radiograph and mask were resized to 256 × 256 pixels. The resized radiograph served as input to the UNet, and the resized mask as the segmentation target.

Measurement of cobbs angle in spine x ray the cobbs angle measurs the angle of the

The centered centerline signal y(x) was downsampled with factor d and then zero-padded or truncated to a fixed length L to form a discrete sequence. The one-sided discrete Fourier transform (DFT) of this sequence was computed. The DC component was discarded and only the lowest-frequency components, determined by fraction K, were retained to emphasize global curvature patterns while suppressing high-frequency noise.

Earlier work employed a VGG-16 transfer-learning model on the MICCAI 2019 SpineWeb dataset. That work reported a Pearson correlation of 0.9382 for curvature estimation and a symmetric mean absolute percentage error (SMAPE) of 12.25% for Cobb angle measurement, figures the authors said were comparable to other top models.

The current paper replaces the VGG-16 backbone with a UNet, adds explicit segmentation supervision, and introduces a weighted multi-task loss that prioritizes angle regression (λ_angle = 0.9) over segmentation and intermediate curvature losses (λ_seg = λ_curve = 0.05).

Because public datasets label curves as one major and two minor angles rather than by fixed anatomical levels (PT, MT, TL), the researchers designated them Angle 1, Angle 2, and Angle 3 for consistency. Preprocessing resizes radiographs and masks to 256 × 256 pixels after a 2:1 center-crop at 512-pixel height. Data augmentation includes geometric transforms applied to both image and mask, plus photometric jitter on the radiograph alone.

Clinical reliability metrics include intraclass correlation coefficient (ICC), alongside MAE, SMAPE, and R². Segmentation quality is tracked via binary cross-entropy; the intermediate spectral prediction is monitored with mean squared error (MSE) loss.

Training uses AdamW at a 3 × 10⁻⁴ learning rate, batch size 64, and early stopping after 50 epochs without validation MAE improvement. The authors frame the spectral approach as a route to better explainability: the predicted Fourier coefficients can be inverse-transformed to visualize the estimated curvature shape.