1 Introduction

Three-dimensional (3D) bone reconstruction using medical imaging as one of the most effective modelling methods is used for different purposes such as mechanical tests, surgical preplanning, and kinematic study. Magnetic resonance imaging (MRI) [1] and computed tomography (CT) scan [2] are the leading imaging systems for creating 3D models. However, the introduced approaches have many disadvantages; X-ray imaging is ionizing and deleterious for the body tissue. MRI is very expensive and imposes a high cost on the health system. Hence, employing an alternative imaging method with the lesser drawbacks is crucial.

Meanwhile, ultrasound imaging as an affordable, portable, and non-ionizing modality can fill the available gap. Although in the opinion of many researchers, this imaging method still faces many limitations, validation results of the ultrasound images compared to other methods like comparison with CT scan in aortic aneurysm diameter measurements with a measurement error of 0.11 ± 4.26 mm [3], comparison with MRI-CT images of a beating heart phantom with a measurement error of 1.7 ± 0.4 mm [4], comparison with a caliper in spine height measurement with a measurement error of 5.5 ± 1.5% [5], and recent innovative developments have made it replaceable with other imaging systems in certain situations. As an example, several intra-operative applications like fracture reduction [6], arthroscopic surgeries [7], screw insertion, anatomical bone landmark determination, tumour border delineation [8], and point-of-care applications like bone fractures identification [9,10,11], spinal cord injuries diagnosis [12] could be mentioned.

In addition, ultrasound images have been recently used for bone 3D reconstruction to make the less intelligible images highly acceptable. Newly, many applications of ultrasound-based bone 3D modelling have been reported, such as the modelling of the knee joint for robotic knee arthroplasty [13], co-applying of the ultrasound imaging system and the electromagnetic tracker for the knee 3D reconstruction [14], and co-registering the ultrasound with CT scan images to model cow femur [15]. Moreover, various methods of spine 3D modelling have been applied in order to measure spinal rotation, scoliosis, and other deformities using a 3D ultrasound machine [16,17,18,19].

Nevertheless, among the ultrasound applications, less attention has been paid to the issue of spine kinematics measurement, and the existing studies have been limited to two-dimensional measurements [20]. While spine kinematics, as an essential criterion in movement limitation examination, should be analysed three-dimensionally. On the other hand, since the spine 3D models could be used to localize bone landmarks to determine spine kinematics, we decided to study the possibility of 3D reconstruction of the lumbar spine through ultrasound images. In this regard, we aimed to assess and develop an available algorithm of one dry lumbar spine 3D reconstruction [21] to a more substantial version by reconstructing complete lumbar spines (T12-S1) with soft tissues and different fat pad thicknesses, so linked to the body mass indexes (BMIs). Thanks to valid 3D bone models from ultrasound we will be able to determine in vivo lumbar spine kinematics in a near future.

2 Materials and Methods

2.1 Specimen

After attaining approval from the Université du Québec à Trois-Rivières Institutional Review Board (SCELERA 21 − 13), Six human cadavers with different BMIs ranged from 18 to 26 (Mean: 21.8, SD: ± 3.3) and ages from 62 to 89 years (Mean: 76.3 SD: ± 10) were dissected to extract the lumbar spines from T12 to S2. During the dissections process, First, palpating the spinous processes, two longitudinal incisions were made 15 to 20 cm laterally away from the spinous processes to leave an adequate amount of soft tissue covering the lumbar spine posteriorly. Then, dissections were continued obliquely up to the anterior side of the vertebral body to keep all the attached lateral soft tissues intact. Next, the edges of the skins were sutured to get a cylindrical form, and two orthopaedic Schanz screws were inserted through all vertebral bodies to avoid inter vertebral displacement (Fig. 1a). Then, the Schanz screws were fixed on a threaded rod using external fixation clamps. Following, each specimen was installed in the centre of a home-made cylinder plastic frame (D = 165 mm), and the frame was filled up with porcine gelatine (Gelatine, Type A, Pork Skin, mi. Bloom 225) (Fig. 1b).

Fig. 1
figure 1

(a) a dissected lumbar spine after suture. (b) a specimen fixed in the gelatine after hardening

2.2 CT Scan

After gelatine hardening, a CT scan device (GE Healthcare, Revolution EVO) was used to collect the images of the specimens. In this regard, after setting up the CT scan machine (convolution Kernel = standard, filter type = body filter, window centre = 50, window width = 500, focal spot = 1.2 mm) the DICOM format images (reconstruction slice thickness = 0.5 mm, inter-slice spacing = 0.625 mm, each image size = 514 KB) were obtained.

2.3 Ultrasound

After CT scan imaging, the specimens were stabilized into a computer-assisted mechanical frame (CAM) [21], facilitating whole-length ultrasonography. The CAM (Fig. 2) provides a graduated circular mobile plate that moves upward and downward at the desired speed, controlled by a step motor. Moreover, this mobile plate contains a holder for the ultrasound transducer, which could be set at the desired degree. Through these facilities, ultrasound collects the images from down to up at each upward movement of the mobile plate. Then, the transducer holder is moved in the circular path to the next position, and the imaging is repeated; this process is continued until finishing imaging all around the spine. For this study, the imaging processes were performed using a linear transducer of an ultrasound machine (NextGen LOGIQ e Ultrasound, GE Healthcare, USA - Mode = Musculoskeletal, Frequency = 8.0 MHz, Distance = 8 cm, Gain = 76). Furthermore, the CAM setup was at 0.5 mm/s of linear velocity (upward-downward) and every 30 to 40 degrees (circular path). These degrees were calculated using the Eq. (1) and depending on the circumferences of the specimens; to be fully covered in the images with the fewest overlap, preventing shadows.

Fig. 2
figure 2

The procedure of ultrasound imaging using CAM.

$$\theta \cong \frac{{360{\text{T}}}}{{2\pi {\text{r}}}}$$
(1)

In this equation, “θ” is the degree setup of the mobile plate, “T” is the transducer width and “2πr” is the circumference of the specimen.

2.4 Image Processing and 3D Reconstruction

After finishing the ultrasound imaging process, 9 to 12 (360/θ) sets of ultrasound files, including 400 DICOM format images (each image size = 22.2 KB), were obtained. Then, using a homemade MATLAB software (MathWorks, R2021 a) script, the sets of images were merged to produce one series of 360-degree DICOM format images (image amount = 400). Next, to simplify the reconstruction process, the quality of images was enhanced using intensity transform, Laplacian spatial filter, high pass filter, and colour thresholds (Fig. 3).

Fig. 3
figure 3

(a) one of the obtained images from ultrasound. (b) a 360-degree image after merging process. (c) a quality enhanced image after image processing. (d) intensity boundaries changed CT scan image of the same level

In the following step, using the segmentation tool of Amira software (5.2.2®, Germany), the images obtained from the ultrasound and the CT scan (gold standard) were separately segmented to create 3D models (Fig. 4).

Fig. 4
figure 4

The lateral view (a1) and the posterior view (a2) of a CT-scan-based 3D model. the lateral view (b1) and the posterior view (b2) of an ultrasound-based 3D model from one specimen

2.5 Comparison and Measurement

2.5.1 Reliability Procedure

The segmentation processes of the ultrasound images and CT scan images belonging to the first and second specimens were each repeated three times by the same operator. Then, using CloudCompare software (v2.12 Beta, France) all vertebrae were separated, the volumes were determined and compared to measure the intra-operator reliability of 3D reconstruction. To separate the vertebrae, since the articular processes were not easily separable between two vertebrae in ultrasound-based 3D models because of the limitations, first CT-scan-based and ultrasound-based 3D models were aligned by picking equivalent point pairs. Then, the vertebrae in the ultrasound-based models were separated using the pattern created through the CT-scan-based models. After separating the vertebrae, the volume of each were determined.

2.5.2 Validation Process

After reconstructions, two validation steps were applied. Concerning the first step, using CloudCompare [22], ultrasound-based models were directly compared to the CT-scan-based models as the gold standard; in this step, all vertebrae were separated and compared one by one. In this comparison, the distances are computed based on the nearest neighbour distance technique. It means that the software selects a point on the reference model (CT scan), then searches for the nearest point on the compared model (ultrasound), measures the direct distance (mm), and finally reports the mean of all point-to-point (mesh-to-mesh) distances as the reconstruction error. In addition, colour maps were provided in the comparison images to highlight the differences between the two models graphically.

Then, in the second step, using the same software, the volume of each vertebra was computed, the mean volumes of vertebrae were compared and the agreement between the two modelling techniques were analysed.

2.5.3 Correlation Measurement

Since posterior elements are the most important part of 3D reconstructions to be used in kinematic studies, the thickness of the fad pad between the skin and spinous process was considered a criterion and was measured using CT scan images. For this measurement, the image slides in which spinous processes were in the maximum length were used. Then, the correlation of the fat pad with reconstruction errors was calculated to see the effect of the fat pad on ultrasound-based 3D reconstructions.

2.6 Statistical Analysis

In order to assess the intra-operator reliability, intraclass correlations coefficient (ICC – 2.1 Two-Way random) on volumes measured on CT-scan- and ultrasound-based 3D bone reconstructions with 95% CI were calculated.

Regarding the second step of validation, since the specimens are considered as whole samples, the limits of agreement between CT-scan- and ultrasound-based models were calculated and Bland-Altman plots were reported. Finally, the linear regression was graphed to calculate the correlation between reconstruction error and fat pad thickness. All statistical analysis was performed using SPSS software (SPSS Statistics 236 for Windows, version 28.0; IBM Corp., Armonk, NY, 237 USA).

3 Results

Concerning the intra-operator reliability, the intraclass correlations coefficients [95% CI] between different times of reconstructions were calculated (Table 1), and the mean intra-operator reliabilities for the CT-scan-based and the ultrasound-based models were 0.966 ± 0.014 and 0.930 ± 0.012, respectively.

Table 1 Intra-operator intraclass correlation coefficient [95% CI]

Concerning the verification of the validity of the ultrasound-based 3D models, first, they were directly compared with the CT-scan-based 3D models as a gold standard. In this comparison, the mean mean reconstruction errors (mm) by specimen were: 0.18 ± 0.04 for specimen 1, 0.24 ± 0.11 for specimen 2, 0.06 ± 0.15 for specimen 3, 0.04 ± 0.36 for specimen 4, 0.44 ± 0.24 for specimen 5 and 0.42 ± 0.27 for specimen 6. Moreover, the mean mean reconstruction errors (mm) by vertebra were: 0.23 ± 0.12 for L1, 0.15 ± 0.39 for L2, 0.3 ± 0.31 for L3, 0.31 ± 0.29 for L4 and 0.15 ± 0.05 for L5. The reconstruction errors of each specimen and vertebra are reported in Table 2.

Table 2 Reconstruction errors (mm) between the ultrasound-based and the CT-scan-based models. In this table, SP stands for specimen and L stands for Lumbar vertebra. The negative errors mean the compared models (ultrasound) have lower values

Also, the graphical models indicating colormaps in the range of − 1 to 1 mm were extracted to demonstrate the comparisons (Fig. 5). one specimen’s figures are presented here due to space limitations.

Fig. 5
figure 5

Lateral views of 3D reconstructions comparative images from one specimen

In addition, as the second validation step, the volume of each vertebra was calculated in two methods separately; the mean mean volume of all vertebrae for the CT-scan-based 3D models was 55788.8 ± 1942.32 mm3 with a coefficient of variation of 3.48% and standard error of 868.63 mm3 and for the ultrasound-based 3D models was 56790.5 ± 2100.71 mm3 with a coefficient of variation of 3.69% and standard error of 939.46 mm3. The mean values are presented in Table 3. Then, considering specimens as whole samples, limits of agreement (95% ± 1.96 Sd) (Table 4) and the Bland-Altman plot (Fig. 6) between the two reconstruction techniques were obtained. The mean mean difference was 1001.7 ± 683.16 mm3.

Fig. 6
figure 6

Bland and Altman plots: comparisons between ultrasound-based 3D models and CT-scan-based 3D models. Dotted lines represent the mean differences and continuous lines represent the upper and lower limits of agreement. Values are reported in Table 3

Table 3 Mean volume, standard deviation (SD), coefficient of variation (%), and standard error (SE) of the mean of the all lumbar vertebrae (L) among all specimens. All values are in mm3
Table 4 Mean differences (MD), upper and lower limits of agreements (95%±1.96 Sd) for all specimens with overall vertebrae. All values are in mm3

Concerning the correlation between the reconstruction error and the fat pad thickness (Table 5), the linear regression (Fig. 7) showed a correlation of R = 0.33.

Fig. 7
figure 7

Linear regression of reconstruction error and spinous process fat pad thickness

Table 5 Fat pad thickness between spinous process and skin. These values were measured in the image slides in which spinous processes were in the maximum length. The letters L stand for Lumbar vertebrae. All values are in mm

4 Discussion

Measuring spine kinematics is essential to analyse and diagnose the spine’s movement abnormalities, such as hypermobility or hypo-mobility. Today, several methods are used to measure spine kinematics; meanwhile, clinically, it has been limited to a physical examination. Still, for 3D measurement, the method of localizing bone landmarks on the spine 3D model has been developed recently. Concerning obtaining 3D models of the spine, two imaging modalities are mostly used: CT scan and MRI. Yet, these modalities have disadvantages as previously mentioned.

In the meantime, the ultrasound machine could act as an alternative. Therefore, the primary purpose of this study was to improve an algorithm for imaging the spine using ultrasound and converting the obtained images into 3D models. For this purpose, since an innovative technique for 3D reconstruction of a dry vertebra has been recently introduced with significant accuracy and precision [21], in this study, we tried to assess and improve this technique in the 3D reconstruction of six lumbar spines with different BMIs and fat pad thicknesses. So, in this regard, the imaging operations were experimentally performed in certain degrees, definable by Eq. (1), to cover the entire specimen and reduce the shadow. Then, since the vertebrae were covered with soft tissue, the image processing techniques were applied to enhance the quality of images and facilitate the segmentation process (Fig. 3).

After finishing the 3D reconstruction processes, two steps were introduced to verify the validity of the ultrasound-based 3D models compared to the CT-scan-based 3D models (gold standard). In the first step, using CloudCompare, all vertebrae of each specimen were separated and compared one by one. In this regard, the mean mean reconstruction errors reported in Table 2 show that, globally, there are a slight overestimation for the ultrasound-based 3D models compared to the CT-scan-based 3D models. However, although there are overestimations for the ultrasound-based models, low variations between the reconstructions regarding the vertebrae sizes demonstrate the high validity of the models obtained from ultrasound. Moreover, the overestimated results in this research, in addition to being similar to the previous study [21] which was 0.44 ± 0.63 mm, have also been observed in other ultrasound-Ct scan comparative studies, like in measuring kidney stone size with an average overestimation of 3.8 ± 2.4 mm [23], and measuring aortic aneurysm diameter with an average overestimation of 0.11 ± 4.26 mm [3].

In addition, the graphical models (Fig. 5) with the related colour map in the range of − 1 to 1 mm were extracted to show the differences between the two methods of reconstructions. Since in these graphical models, the vertebrae were coloured in white, and the errors in each area were changed from white at zero to black at − 1 and 1 mm, the slight colour change in the comparative image indicates the high accuracy of ultrasound models.

Concerning the second validation step, the volumes of all vertebrae in the ultrasound- and CT-scan-based 3D models were computed and compared. Since the first validation step showed overestimations in linear distance between ultrasound-and CT-scan-based 3D models, larger volumes for ultrasound-based 3D models are expectable. Therefore, based on the reported values in Table 3, the vertebrae of the ultrasound-based 3D models have higher volumes than the CT-scan-based 3D models, although the differences are insignificant considering the amounts of volumes. Also, the CVs of mean volumes coming from the same table showed the low variability of measurement for both ultrasound-based and CT-scan-based methods. In addition, considering all specimens as whole samples, the limits of agreement were calculated and plotted using the Bland-Altman method. As observed in Fig. 6, all differences were included within the limit of agreement, which indicates that the results obtained from ultrasound compared to CT scan are valid.

Concerning the intra-operator reliability, a high degree of reliability was observed between the different reconstruction times of CT-scan (0.966 ± 0.014) and ultrasound images (0.930 ± 0.012). These reliability results are similar to the previous studies [5, 21, 24,25,26] and showed a high consistency for the current reconstruction algorithm.

On the other hand, one of the main objectives of this study was to investigate the effect of the soft tissue of the lumbar spine on the results of reconstructions. Therefore, the soft tissue in the posterior part of the lumbar spine remained intact. Since fat tissue has the most significant effect on ultrasound, in this study, the amount of fat pad between the spinous processes and the skin was considered a criterion for examining the correlation between the fat pad thickness and reconstruction error. Based on the linear regression diagram results in Fig. 6, there is a weak correlation (r = 0.33) between reconstruction error and the fat pad thickness. Although there have been slightly higher errors for some of the vertebrae, the weak correlation shows that the posterior soft tissues would not significantly affect the reconstructions. Since the posterior elements are the most functional anatomical parts for the kinematic study to locate the landmarks, only posterior soft tissues were kept intact. Otherwise, if the abdominal fat tissue in the anterior part was kept, it could make difficulties in imaging.

Regardless of all numerical data, the delicate appearance of the spinous and costiform processes in the ultrasound-based 3D models would indicate an acceptable ability of this method to be used for kinematic studies and locate bones landmarks.

As limitations of this study, as previously mentioned, the CT-scan-based 3D models were used as a pattern to separate the facet joints of vertebrae in ultrasound-based models. Although this method covers the reconstruction errors in the ultrasound-based models, the limitations are negligible since the articular processes are not considered to be used for the kinematic study. The second limitation of this study was the 3D reconstruction of all around the vertebrae, which is not applicable for in-vivo kinematic study because of the abdominal fat pad and viscera. Still, since the precise localization of three landmarks is required to introduce a coordinate system and accurately measure the kinematic, the complete lumbar spines were used for this in-vitro study.

Regarding the feasibility of this method in clinical measurements, as mentioned in the limitation, although it is not practicable in the current format, the improvement of ultrasound imaging methods and 3D reconstruction of the posterior elements of the lumbar spine will make this method easily achievable for clinical measurement.

In conclusion, this study’s results showed that the 3D reconstruction of the lumbar spine obtained from ultrasound images is highly similar to those obtained from CT scan images and is not significantly affected by the posterior fat pad, which makes it appropriate for kinematic studies.