1 Introduction

Intervertebral Disc (IVD) is a part of a spine that is interposed between two adjacent vertebral bodies. IVDs are deformable structures built by fibrocartilage—each of them acts as a buffer, allowing movements of the vertebrae and acting as a ligament holding the vertebrae together. Diseases of the IVDs, also known as discopathies, are one of the most common civilization diseases [1,2,3]. Degenerative disc disease (DDD) is initiated through biochemical changes in the structure of discs [4,5,6]. It is responsible for the pain syndrome and in some cases the weakness of extremities [7, 8].

There are many studies concerning methods of discopathy treatment [6, 9,10,11,12,13]. New experimental therapies aim to treat DDD at the genetic, cellular, and molecular levels. Cellular therapies may stop or reduce the pain associated with the degeneration of IVDs. The aim of this therapy is the restoration of intercellular matrix and restoring the biochemical function of discs. Recent preclinical studies indicate that mesenchymal stem cells have the ability to repair damaged discs by differentiating toward the nucleus pulposus-like cells [14, 15].

Animal models, in which in a certain way is initiated the process of degeneration of the IVDs, are often used to evaluate the effectiveness of particular therapies. Many of them base on animal models, like dogs [16], mice [17], pigs [9, 18], goats [19], rabbits [20] or rats [21]. Most commonly used method of determination of the degree of degeneration/damage and possible subsequent regeneration of IVDs is magnetic resonance imaging (MRI) [9, 17, 22,23,24,25]—mainly because this imaging technique is safe and non-invasive. Quantification of temporal changes in disc degeneration is performed based on the MRI signal intensity inside IVDs, i.e. discs cross-sections [9, 26,27,28]. While using this approach there appear factors, whose impact is often underestimated.

First of them are differences that may arise in the assessment of the same cases based on images obtained in different (i.e. coronal or sagittal) cross-sections of the same MRI research.

The second problem is IVD segmentation. As the manual disc segmentation is time-consuming and the influence of human perception is always hard to assess, there is a need of automatic segmentation of IVD area from the MRI scans. Another problem is that severely damaged discs can have unclear boundaries, very hard to delineate.

Both these problems were the inspiration for this paper, which is the presentation of our effort to evaluate properly the condition of the porcine IVDs based on MRI. We propose a method of automatic segmentation of IVDs from MRI scans, basing on some specific properties of spine MRI. It is worth mentioning that the method described in this paper was successfully utilized in Ref. [9].

It should be also noted that there are studies concerning IVD segmentation [29,30,31,32,33]. Our method has slightly different aim. It is destined for the purpose of preliminary segmentation of IVDs in an undamaged spine and next using it for segmentation of degenerated discs in the same subject. There are two main advantages of proposed method. The first of them is its simplicity, which is achieved due to the uncomplicated binarization algorithm, often embedded in computing environments, (Otsu method of automatic thresholding). The second advantage results from the use of basic operators of morphological image processing, which are easily programmable.

2 Materials

2.1 Animals and Surgical Procedures

The surgical procedure described previously was followed in this study [34].

All animals were housed and treated in accordance with rules approved by the ethics committee (conforming to Principles of Laboratory Animal Care, NIH publication no. 86-23, revised 1985).

2.2 Isolation of MSCs

MSCs were isolated from the bone marrow of porcine donors according to their adhesive properties to tissue culture plastic under sterile conditions. Briefly, a phosphate-buffered saline (PBS)-diluted cell fraction of bone marrow was layered over a Ficoll density gradient (1.077 g/mL, GE Healthcare), followed by centrifugation at 400g at room temperature for 40 min. Nucleated cells were collected, diluted with two volumes of PBS, centrifuged twice at 100g for 10 min, and finally resuspended in culture medium. Cells were plated and expanded in a T-75 flask and grown for 14 days at 37 °C and 5% CO2, with medium changes every 3 days.

2.3 IVD Vaporization Procedure

The IVD vaporization procedure was performed using the transcutaneous needle insertion under fluoroscopy control and the energy of the medical laser, as previously described [34].

2.4 Cell Transplantation

Immediately prior to transplantation, cells were washed with PBS, harvested by trypsinization, and suspended in HyStem hydrogel (Glycosan Biosystems) at a concentration of 1 × 106/mL. Autogenic MSCs embedded in HyStem hydrogel were transplanted into the degeneration-induced discs in anesthetized pigs. The entire cell transplantation procedure was performed as described previously [34].

2.5 Magnetic Resonance Imaging

Our research is based on the MRI study obtained for the purpose of evaluation of the process of regeneration of IVDs after administration of mesenchymal stem cells isolated from bone marrow in porcine animal model, after the damage caused by the surgical laser vaporization of the nucleus pulposus [9]. MRI scans of the pigs were obtained using a 3 T MRI scanner (Magnetom TRIO—Siemens production). The pigs were examined in a supine position and the T2-weighted images of the spine were acquired with the same coil geometry. A spinal surface coil was placed over the backs of the animals. Parameters of imaging were as follows: TE/TR = 102/4500, AV = 1, Res = 560 × 560 × 3000 μm. MRI scans were obtained for the time of 4, 8, and 12 weeks from the time of damage and at the start of the experiment.

Exemplary images from the MRI study used in the article are shown in Fig. 1. Figure 1a presents a view of a swine spine in a sagittal plane while Fig. 1b presents a view of the same spine in a coronal (frontal) plane. Figure 1c–e presents MRI scan of the same pig after 4, 8 and 12 weeks from induction of disc degeneration. It is easy to notice that borders of IVDs after induction of IVDs degeneration are much harder to delineate.

Fig. 1
figure 1

Exemplary MRI images of a pig spine in a sagittal (a) and coronal (b) plane at the start of the experiment and a scan of the same animal after 4, 8 and 12 weeks after exposure to the laser surgery (c, d and e, respectively, the coronal plane)

3 Methods

3.1 Imaging Plane

The evaluation of the reliability of assessment of IVD degeneration depending on the choice of imaging plane in MRI study was performed based on the manually outlined contours of discs. On that basis, degeneration of IVD was assessed through changes in the intensity of the MRI signal in time of 4, 8 and 12 weeks after surgery—the data for the graph were obtained from both (i.e. coronal and sagittal) imaging planes. MRI signal intensity was normalized by the MRI signal for the reference discs, i.e. healthy IVDs of the same animal.

3.2 Methods of Image Processing Used in Intervertebral Disc Segmentation

3.2.1 Binarization

The method of segmentation proposed in the paper utilizes the two basic morphological operations: erosion and dilation, more precisely their compositions, i.e. opening and closing. The operators of morphological processing are particularly useful for the analysis of binary images, so the MRI images need to be previously binarized. The original eight-bit ‘grayscale’ MRI images have to be converted into one-bit ‘binary’ images. To discriminate the greyscale images, i.e. to convert them into binary matrices, the Otsu method of automatic global thresholding is used. This method is one of the most referenced methods [35, 36], often embedded in computing environments. It selects the binarization threshold by minimizing the weighted sum of within-class variances of the foreground and background pixels [35, 36]. Binarized image from Fig. 1b is shown in Fig. 2.

Fig. 2
figure 2

Image from Fig. 1b after binarization using Otsu method of automatic thresholding

Figure 2 shows that in a binarized image, there are clearly noticeable shapes of IVDs, but there are many other undesirable white regions as well. In order to remove them, we utilize operators of mathematical morphology applied in image processing.

3.2.2 Morphological Image Processing

The methods of morphological image processing can be successfully implemented for the purpose of medical image segmentation [37,38,39,40,41]. The operators of mathematical morphology take two items of data as input: the image to be processed and a structuring element that is a matrix used to define the neighborhood size and shape. The two fundamental operators of mathematical morphology applied in image processing are dilation and erosion. The erosion of the binary image B by the structuring element S is defined as follows [42, 43]:

$$B \otimes S = \{ x,y:S_{x,y} \subseteq B\} .$$
(1)

The basic effect of the erosion operation on a binary image is to erode the boundaries of the foreground pixel region.

The dilation of the binary image B by the structuring element S is defined by the following formula [42, 43]:

$$B \oplus S = \{ x,y:S_{x,y} \cap B \ne \emptyset \} .$$
(2)

The basic effect of the dilation on a binary image is to enlarge the boundaries of the foreground pixel region.

The operations of morphological closing \(B \bullet S\) and morphological opening \(B \circ S\) in binary and grayscale images are the combinations of erosion and dilation, both using the same structuring element. Morphological opening is erosion followed by dilation and morphological closing is dilation followed by erosion. Main features of these operations are [42, 43] the following:

  • neither of the operations changes shape or size of big figures with smoothed edges;

  • opening removes small objects and details from an image; it can also uncouple objects with thin connections;

  • closing fills in waists and gaps inside a processed figure; it can also join objects that are close to each other.

The sensitivity of the morphological operations to specific shapes appearing in the processed image is dependent on the size and shape of the structuring element. The proposed method uses this feature to remove unnecessary objects from the previously binarized image (i.e. image shown in Fig. 3). Expected results depend on an adequate choice of a structuring element as well as on its shape.

Fig. 3
figure 3

Binary mask obtained for the MRI scan from Fig. 1b (a) and intervertebral discs separated with the use of this mask (b)

To remove the leftover pixels, we use the following, experimentally designed, morphological operator:

$${\text{MO}} = (B \circ S_{1} ) \oplus S_{2} ,$$
(3)

where S1 and S2 are structuring elements with following shapes and sizes: rectangle with dimensions of 4 by 30 pixels and disc with a radius equal to 4 pixels (S1 and S2, respectively).

As the result of performed morphological operation, all the undesired objects are removed from the background. Figure 3a shows the cleared image from Fig. 2. This image represents a mask that gives direct information of which pixels of image from Fig. 1b should be treated as belonging to the area representing IVDs. Figure 3b shows IVDs segmented from Fig. 1b with the use of mask from Fig. 3a.

3.2.3 Segmentation of Images Containing Degenerated Intervertebral Discs

As mentioned above, degenerated IVDs can have boundaries that are very hard to delineate. It is clearly noticeable in Fig. 1c, d and especially e, which shows the scans of the pig spine after 4, 8 and 12 weeks from the surgery. Even a superficial assessment of these images allows noticing that with the progress of damage, problems with the delimitation of the IVDs on MRI scans may appear. We propose to use the mask obtained for non-degenerated discs and then to superimpose it on the MRI scans of degenerated IVDs with the use of position of non-impacted IVDs as reference points in the process of matching mask to the images obtained in the subsequent MRI studies.

4 Results and Discussion

4.1 Influence of Imaging Plane Choice

There are studies, where MRI scans in the sagittal plane of a spine (shown in Fig. 1a) are being used for the purpose of the evaluation of degeneration/regeneration of IVDs [19, 44]. In our opinion, this approach may result in less reliable assessment than one based on the coronal (frontal) plane (shown in Fig. 1b). This statement stems directly from the fact that the frontal plane provides more information. In case of comparison of images shown in Fig. 1a, b, the difference is as high as 155% in favour of the frontal plane (4153 vs. 1626 pixels covering the area of interest, i.e. IVDs). Figure 4 shows (on an example of one swine) the degeneration of IVD assessed through changes in the intensity of the MRI signal in time of 4, 8 and 12 weeks after surgery—the data for the graph were obtained from both imaging planes.

Fig. 4
figure 4

Progress of the degeneration of the intervertebral discs evaluated in the coronal (solid line) and the sagittal plane (dashed line)

As it can be seen, data obtained for two imaging planes show a similar pattern of changes in damage over time. However, the data obtained for 8 week from the surgery shows difference, as the evaluation in the frontal plane indicates less damage. Given the fact that in that plane about 2.5-times more the measurement data were available, it seems reasonable to say that it is more reliable.

Summarizing, in our opinion approach using sagittal plane is not recommended, as it carries less information that coronal (frontal) one.

At this point it is worth noting that axial sequences can be also used when assessing porcine IVDs condition [45, 46]. This approach, although it can be very useful in case of classic diagnosis, cannot be used for the purpose of objective (i.e. given numerically) evaluation of the discs condition under treatment, as in that case it is impossible to obtain exactly the same cross-section of the IVD, what in turn makes direct comparison impossible. The same comment refers to 3D images.

4.2 Segmentation of Intervertebral Discs

The effect of procedure of segmentation of IVDs that is described in subsection 3.2 is shown in Fig. 5 on one undamaged and four degenerating discs (Fig. 1b–e).

Fig. 5
figure 5

Process of four IVDs’ degeneration—MRI scans obtained on the start of the experiment (a), and after 4 (b), 8 (c) and 12 weeks (d); the 5th disc from the top is undamaged disc, next used for normalization of the MRI signal intensity value

Values of MRI signal intensity for four IVDs of the above exemplary pig spine are shown in Fig. 6. Data used for creating this image was obtained using the described method. In order to normalize the MRI signal intensity, it was calculated through dividing the signal intensity of the impacted disc by that of the normal disc of the same pig.

Fig. 6
figure 6

Temporal changes in intervertebral disc degeneration observed as MRI signal intensity: thick line represents IVD used as impacted control, thin lines represent three damaged IVDs after mesenchymal stem cells transplantation

In the context of IVD segmentation, the most common approach is the one in which the human operator manually indicates an elliptical or a rectangular area of the disc in the MRI scan. On the one hand, this approach allows avoiding an extremely time-consuming process of manual delimitation of an area of interest; on the other hand, it is difficult to treat this approach as sufficiently reliable. Figure 7 shows the progress of the degeneration of the IVDs evaluated based on the area of interest indicated manually, as a rectangular area, as well as using the proposed method. There are clearly noticeable differences in assessing the degree of degeneration of the discs. The differences at such level cannot be neglected, as they can lead to misinterpretation of the results of the experiment. For this reason, we recommend the use of methods of (semi)automatic segmentation area of IVDs, such as the one proposed in the paper.

Fig. 7
figure 7

Progress of the degeneration of the intervertebral discs evaluated in the coronal (frontal) plane (Fig. 1b–e), based on the area of interest referred to as the rectangular (dashed line) and with the use of the described method (solid line)

5 Conclusions

Our study attempted to identify the most reliable methodology that could be used to assess the degree of degeneration/regeneration of IVDs. The paper presents inter alia a methodology of assessing the degree of degeneration of the porcine IVDs based on MRI. We propose a procedure basing on some specific properties of MRI images of porcine spine, specifically the fact that IVDs are visible in these scans in similar way in terms of their contour and size.

An advantage of the proposed method is its simplicity, achieved due to the uncomplicated, often embedded in computing environments binarization algorithm, and next basic operators of morphological image processing, which are also easily programmable.

The outcome is binary mask giving direct information about locations of IVDs in MRI scans. The obtained mask is next being used to separate locations of IVDs in following MRI studies of the same animals, in cases where they are much harder to delineate due to their degeneration.

Other conclusions that can be drawn based on our study are as follows:

Due to the greater number of available measurement data, the use of frontal (coronal) plane is recommended, as it can be indicated as more reliable than sagittal.

Use of the one of the basic geometrical shapes as the discs’ shape approximation can lead to significant errors in the evaluation of the results of the experiment—the borders of the IVD should be determined using more complex shapes, i.e. considering the anatomy. Advisable is the use of one of the methods of automatic or semi-manual segmentation of the area of interest.