Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Aug;36(4):1447-1459.
doi: 10.1007/s10278-023-00830-z. Epub 2023 May 2.

Automatic Spine Segmentation and Parameter Measurement for Radiological Analysis of Whole-Spine Lateral Radiographs Using Deep Learning and Computer Vision

Affiliations

Automatic Spine Segmentation and Parameter Measurement for Radiological Analysis of Whole-Spine Lateral Radiographs Using Deep Learning and Computer Vision

Yong-Tae Kim et al. J Digit Imaging. 2023 Aug.

Abstract

Radiographic examination is essential for diagnosing spinal disorders, and the measurement of spino-pelvic parameters provides important information for the diagnosis and treatment planning of spinal sagittal deformities. While manual measurement methods are the golden standard for measuring parameters, they can be time consuming, inefficient, and rater dependent. Previous studies that have used automatic measurement methods to alleviate the downsides of manual measurements showed low accuracy or could not be applied to general films. We propose a pipeline for automated measurement of spinal parameters by combining a Mask R-CNN model for spine segmentation with computer vision algorithms. This pipeline can be incorporated into clinical workflows to provide clinical utility in diagnosis and treatment planning. A total of 1807 lateral radiographs were used for the training (n = 1607) and validation (n = 200) of the spine segmentation model. An additional 200 radiographs, which were also used for validation, were examined by three surgeons to evaluate the performance of the pipeline. Parameters automatically measured by the algorithm in the test set were statistically compared to parameters measured manually by the three surgeons. The Mask R-CNN model achieved an average precision at 50% intersection over union (AP50) of 96.2% and a Dice score of 92.6% for the spine segmentation task in the test set. The mean absolute error values of the spino-pelvic parameters measurement results were within the range of 0.4° (pelvic tilt) to 3.0° (lumbar lordosis, pelvic incidence), and the standard error of estimate was within the range of 0.5° (pelvic tilt) to 4.0° (pelvic incidence). The intraclass correlation coefficient values ranged from 0.86 (sacral slope) to 0.99 (pelvic tilt, sagittal vertical axis).

Keywords: Computer vision; Computer-assisted diagnosis; Mask R-CNN; Spine.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Fig. 1
Fig. 1
A flowchart illustrating an automated measurement pipeline, which consists of instance segmentation models and computer vision algorithms
Fig. 2
Fig. 2
Overview of image data allocation for training the Mask R-CNN model
Fig. 3
Fig. 3
Methods for measuring spinal parameters. a SVA was measured from the C7 and sacral vertebrae. b TK, TLK, and LL were measured in T4-T12, T10-L2, and L1-sacrum, respectively. c SS is the slope of the straight line through the left and top points (red points) of the sacral endplate, and PT was estimated from the line through the HA at the midpoint (green points) of the sacral endplate. d An example of upper and lower endplate slope measurement
Fig. 4
Fig. 4
Block diagram of Mask R-CNN algorithm for spine segmentation (FM = feature maps; RPN = region proposal network; FCN = fully connected network; FC layer = fully connected layer)
Fig. 5
Fig. 5
Vertebral body polygon approximation procedure of DP algorithm. a When Distmaxε from l1, Pstart and P2 are then used for the baseline. b Distmax is computed at the points between Pstart and P2. When Distmax < ε from l2, P2 becomes the starting point. c When Distmaxε from l2, P2 and P3 are used for the next baseline. d Distmax is calculated at the points between P2 and P3. When Distmax < ε from l2, P3 becomes the starting point. e, f The repetition of the above process
Fig. 6
Fig. 6
Computer vision analysis results for predicted and ground truth masks. a Lateral X-ray images. b Ground truth images. c Predicted images of Mask R-CNN model. d Vertebral bodies in the T4-L5 vertebrae class are identified based on the central coordinates of the sacral. e The results of parameter measurement of the computer vision algorithm were visualized
Fig. 7
Fig. 7
There were two types of failed inference results from the Mask R-CNN model on the test-set. a T4 segmentation failure image. b Case of segmentation failure where the sacrum and L5 overlap
Fig. 8
Fig. 8
Bland–Altman plots: kyphosis and spino-pelvic parameters
Fig. 9
Fig. 9
Vertebral segmentation results of Mask R-CNN in an untrained clinical case. a Spinal instruments. b Fractured vertebrae. c Bone cement

References

    1. Schwab F, Dubey A, Gamez L, El Fegoun AB, Hwang K, Pagala M, Farcy JP. Adult scoliosis: prevalence, SF-36, and nutritional parameters in an elderly volunteer population. Spine. 2005;30(9):1082–1085. doi: 10.1097/01.brs.0000160842.43482.cd. - DOI - PubMed
    1. Schwab F, Ungar B, Blondel B, Buchowski J, Coe J, Deinlein D, DeWald C, Mehdian H, Shaffrey C, Tribus C, Lafage V. Scoliosis Research Society—Schwab adult spinal deformity classification: a validation study. Spine. 2012;37(12):1077–1082. doi: 10.1097/BRS.0b013e31823e15e2. - DOI - PubMed
    1. Schwab FJ, Blondel B, Bess S, Hostin R, Shaffrey CI, Smith JS, Boachie-Adjei O, Burton DC, Akbarnia BA, Mundis GM, Ames CP. Radiographical spinopelvic parameters and disability in the setting of adult spinal deformity: a prospective multicenter analysis. Spine. 2013;38(13):E803–E812. doi: 10.1097/BRS.0b013e318292b7b9. - DOI - PubMed
    1. Smith JS, Bess S, Shaffrey CI, Burton DC, Hart RA, Hostin R, Klineberg E, International Spine Study Group. Dynamic changes of the pelvis and spine are key to predicting postoperative sagittal alignment after pedicle subtraction osteotomy: a critical analysis of preoperative planning techniques. Spine. 2012 May 1;37(10):845–53. 10.1097/BRS.0b013e31823b0892 - PubMed
    1. Glassman SD, Bridwell K, Dimar JR, Horton W, Berven S, Schwab F. The impact of positive sagittal balance in adult spinal deformity. Spine. 2005;30(18):2024–2029. doi: 10.1097/01.brs.0000179086.30449.96. - DOI - PubMed

Publication types

LinkOut - more resources