Introduction

Pathologies of the spine such as adolescent idiopathic scoliosis (AIS) are three-dimensional deformities that affect position and orientation of vertebrae in space [1]. Methods providing 3D reconstructions of the spine allow the quantitative assessment of the deformity, the objective assessment of treatment effect [2, 3], the detection of progressive scoliosis [4] and the surgical planning and simulation [5]. Moreover, the interest of considering these deformities from head to pelvis has been demonstrated [6, 7].

Computed tomography (CT) is considered a gold standard for 3D reconstructions, using various segmentation algorithms (see, for instance, [8]). However, these acquisitions cause high ionizing radiations exposure [9], and therefore, they are not appropriate for children with repetitive follow-up examinations. Furthermore, the patient lies in supine position which considerably affects the spine configuration [10]. Alternatively, biplanar X-rays systems providing frontal and lateral views at a lower radiation dose level and in weight-bearing position are increasingly used for spine imaging [11].

Semi-automated 3D reconstruction methods of the thoracolumbar spine from biplanar X-rays have considerably evolved in the last decades, reducing the requested operator time and improving accuracy. An original method relying on the manual identification of the spinal curve and a very few set of landmarks has been proposed in [12], allowing fast generation of a first solution for the 3D reconstruction using a statistical parametric model. After manual adjustments of anatomical features in the model, the 3D reconstruction allowed accurate clinical measurements. This method has been extensively validated for mild and severe scoliosis [13,14,15], and it is, to the best of our knowledge, the only one widely used both in research and in clinical routine. However, the main limitation regarding the clinical daily use is its operator dependency. While endplate digitization is widely used for clinical parameters measurements (Cobb angle, kyphosis, lordosis), feedback from operators and radiology technicians is that manual adjustments of the 3D model remain an issue in daily routine.

Other similar approaches based on reduced digitalized information and statistical models have been developed [16, 17]. Further approaches are aiming to design quasi or fully automatic method based on artificial intelligence [18, 19]. However, these studies are limited to thoracolumbar spine and pelvis while global analysis appears essential to investigate compensatory adaptations not only at the pelvis level [20, 21] but also at the cervical level [6, 22].

The aim of the present study was to develop a quasi-automatic 3D reconstruction method of the spine, from cervical spine to pelvis, reliable and sufficiently fast to be compatible with clinical daily practice. The manual input of the proposed method was designed to be closer to the type of radiographic measurements routinely performed by clinicians, such as Cobb and sagittal angles.

Materials and methods

Database

Two hundred and twenty-eight asymptomatic and AIS patients were retrospectively included in the present study. One hundred and seventy-one of them (age range 6–72 years old) were included in the training group for the statistical model, including 106 asymptomatic patients, 21 moderate AIS scoliotic patients (Cobb range 14°–29°) and 44 severe scoliotic patients (Cobb range 31°–93°). On the other hand, 57 patients were included in the validation process (Table 1). All patients underwent low-dose biplanar X-rays (EOS system, EOS Imaging, Paris, France).

Table 1 Description of the in vivo testing database

Full 3D reconstructions integrating the lower cervical and thoracolumbar spine were performed for all patients by experienced operators using the previous method [12] and an extension of it for cervical spine reconstruction (C3–C7) [23]. For each subject of the training database, a set of parameters already described in [12] was calculated, to which vertebral endplates orientations were added. Patient inclusions were validated by the Ethical Committee (C.P.P. Ile de France VI).

A previously described in vitro database of dry thoracic and lumbar vertebrae was scanned with CT or physical contact measurement to obtain their 3D geometry [12]. Abnormal vertebrae were excluded, and the database was completed by 27 cervical spines. In total, 1285 vertebrae were measured.

Manual identifications by a trained user

The user mainly digitalized vertebral endplates on traditional 2D views (Fig. 1). On the sagittal view, the operator identified the upper endplate of C7, the lower endplate of T12 and the sacral endplate. On the frontal view, the operator identified the sacral endplate, helped by a tool displaying the epipolar lines. According to the spinal deformity in the frontal plane, the operator also digitalized endplates corresponding to the 2D Cobb angles (two endplates for a single curvature and three for a double curve). In addition, the operator was asked to identify the odontoid and the acetabula on both views. Based on these identifications, an interactive spinal midline was provided to the user, who could adjust it on both views to make it pass through the centres of all vertebral endplates.

Fig. 1
figure 1

Manual identifications

Estimation of the vertebrae position and orientation

From these two 2D curves, a 3D curve was reconstructed to approximate the spinal midline from the sacrum to the odontoid. The longitudinal inferences previously described in [12] have been adapted to estimate the positions of all vertebral endplates along the 3D spinal curve, their depth, width and orientations, thanks to the previously digitized endplates. The manually identified data were used as predictive parameters to determine the whole set of parameters using the a priori knowledge provided by the in vivo training database and Gaussian process regression [24]. The regression method is iterative and it self-improves the model as the algorithm automatically decides to which vertebrae the digitalized endplates belong to. Moreover, lumbar and cervical vertebral corners and visible thoracic endplates were detected automatically and accurately using image processing [25] and machine learning (see Fig. 2). The obtained pieces of information enabled to compute new predictors that again improved the model. At the end of this process, a simplified parametric model of the spine consisting of ellipses representing the endplates was computed.

Fig. 2
figure 2

Automatic corner detection using the method presented in [25]

Estimation of the vertebrae shape

For each vertebra, transversal inferences from the in vitro database were used to estimate the 3D geometrical vertebral shape. The method previously proposed in [12] has been adapted to take the lower cervical spine into account. Finally, the operator had the opportunity to refine the model through manual rigid registration of the vertebrae. An example of final output of this reconstruction method is illustrated in Fig. 3.

Fig. 3
figure 3

3D reconstruction of the spine: retroprojection on the radiographs and 3D output

Evaluation

Reconstructions obtained by the presented algorithm were compared to the ones obtained with the previous method [12] on the testing set of 57 AIS patients. For each vertebra of each reconstruction, a vertebral frame was computed. Hence, vertebrae positions and orientations could be compared. Table 2 summarizes the signed mean errors and standard deviations (SD) of vertebrae position (X—antero-posterior, Y—lateral, Z—vertical) and orientations (lateral, sagittal, axial). Agreement on spine clinical indices (Cobb angle, axial vertebral rotation at the apex (AVR), T1T12 kyphosis, L1L5 and L1S1 lordosis) and pelvic parameters (pelvic tilt, pelvic incidence and sacral slope) was also considered (Tables 3 and 4, respectively).

Table 2 Evaluation of the agreement between the proposed method and [12] with signed differences (mean ± SD) for position (X anteroposterior, Y lateral, Z vertical) and orientation (L lateral, S sagittal, A axial)
Table 3 Evaluation of the agreement between the proposed method and [12] with signed differences (mean ± SD) for spinal clinical parameters
Table 4 Evaluation of the agreement between the proposed method and [12] with signed differences (mean ± SD) for spinal clinical parameters

Results

Mean signed differences of vertebral position between the proposed method and the previous one were lower than 1 mm in all directions, in all vertebral level and irrespectively of scoliosis severity (Table 2). Standard deviations were lower than 1.6 mm, and 30% of them were lower than 1 mm.

Most of the mean signed orientation differences (78%) were lower than 1° and the remaining ones—which are the mean signed sagittal orientation differences—were lower than 2°. Standard deviations were mostly lower than 4° and only one exceeded 5° (axial rotation at the thoracic level for severe scoliotic subjects).

Mean differences on spine clinical parameters, described in Table 3, were limited to 1° except for the Cobb angle (lower than 3°) and L1L5 lordosis. Standard deviations were lower than 6° and in particular lower than 3° for the L1S1 lordosis. Figure 4 shows a Bland–Altman graph for the agreement between the reference and the proposed method for axial vertebral rotation of the apical vertebra.

Fig. 4
figure 4

Bland–Altman plot for the agreement between the method [12] and the proposed method for axial vertebral rotation of the apical vertebra

A similar table is provided for pelvic parameters (Table 4). For all of them, mean differences were no higher than a degree and standard deviation were not exceeding 2°.

Table 5 reports the mean absolute differences (and standard deviations) of vertebral positions and orientation between the current and previous methods, as well as a comparison with a recently published 3D reconstruction algorithm [19] on a cohort of severe scoliotic patients. While the testing datasets were different, mean Cobb angles were similar: 49° in this study and 45° in [19]. With our approach, mean differences were globally similar but smaller than this alternative method, apart from lateral and sagittal vertebral orientations (and consequently, kyphosis and lordosis) where the difference between the two methods did not exceed 1°. Moreover, standard deviations of the differences were systematically lower—of more than 1 mm for position measurements and between 0.8° and 3.2° for angle measurements—with the proposed approach, yielding to lower maximal differences and more reliable reconstructions.

Table 5 Evaluation of the agreement between the proposed method and [12] on severe scoliotic patients using absolute differences (mean ± SD)

Discussion and conclusion

Scientific and clinical value of 3D reconstruction of the spine from biplanar X-ray is increasingly confirmed, but complexity and operator dependency of the currently used method in clinical routine is a real limitation to its systematic use. Through a more intuitive initialization process, a combination of automatic and soft manual adjustments, a quasi-automatic method for 3D reconstruction of the spine from biplanar radiographs has been proposed in this study. It is the first one to the best of our knowledge that also includes cervical vertebrae (C3–C7), which can be of great value to characterize compensation mechanisms.

The new identification method was based on standard radiographic identifications. Indeed, orthopaedic surgeons routinely identify junctional vertebrae on frontal radiographs. Moreover, identifications required on the sagittal view are very similar to classical 2D measurements of thoracic kyphosis and lumbar lordosis. A possible improvement of the method is the full automation of the spinal line adjustment, as it can be challenging for severe scoliosis. When vertebrae are axially rotated, the user has to check that the spinal midline passes through the centre of vertebra endplates and modifies it accordingly. Nonetheless, this identification process was ergonomic and not time-consuming. Indeed, it took less than 2 min 30 per patient (depending on the scoliosis severity) for a trained user.

The automated adjustments proposed in this work—based on statistical inferences, image processing and machine learning—limit the tedious work of adjusting each vertebra manually via elastic deformation. When dealing with scoliotic patients, this step required in the method of [12] took in average more than 10 min for a well-trained user. In the proposed method, faster manual adjustments of the model were possible by rigidly translating and rotating the vertebrae, when necessary. This process took between 1 min 30 and 2 min 30 depending on the scoliosis severity. Therefore, in total, the reconstruction process took less than 5 min per patient, even for severe scoliosis.

The training database was voluntarily constituted of a wide variety of spine morphologies and patient ages. Indeed, the parametric spine representation—taking into account the spinal line curvature, its developed length and some vertebrae dimensions—allows the longitudinal inference model to easily identify whether the patient is young and scoliotic, adult and asymptomatic or every other combination. While this study focused on AIS patients, our method could be then used for a larger population.

Overall, the level of agreement for position between the present method and the previous one [12] was close to the uncertainty range of the latter. Further work should focus on improving the vertebral body and endplates orientation accuracy, although the level of agreement for apical vertebrae axial rotation was close to the uncertainty range documented in [13] for severe scoliosis, which was 6.5°. In this article, the essential pelvic parameters were also considered. As they are computed exactly like in the previous method based on the digitalization of pelvis landmarks [12], we have observed an agreement consistent with the reproducibility study performed in the same article. (For moderate scoliosis, the authors reported an uncertainty of 1.4°, 3.4° and 3.0° for pelvic tilt, pelvic incidence and sacral slope, respectively.) Our approach also offered a better agreement to the previous method than the fully automatic approach described in [19] for vertebrae position, orientation and clinical indices. While a fully automatic method is the target of further research, the proposed method combining automatic adjustments and soft manual intervention constitutes a trade-off between automation and accuracy. Moreover, it contributes to simplify the process of 3D reconstruction of the spine from head to pelvis. This is essential for a wider application of 3D analysis in clinical routine for diagnosis and treatment planning of scoliosis.