Keywords

1 Introduction

The segmentation of the ventricles of the heart remains an active area of medical image analysis. It is of key interest to radiologists who use the results to evaluate the cardiac function. Many fully automatic solutions have been presented in the literature for the left ventricle (LV) [5], and the right ventricle (RV) [6]. However, most of the tools available to clinicians are semi-automatic and require manual input. This manual input is usually required for every image and, therefore, represents a tedious task prone to observer variability.

Fig. 1.
figure 1

Examples of short-axis slices illustrating the variability between images in terms of (i) image quality (\(a\ne d\)), (ii) RV shape (\(a \ne b\)), (iii) respective position (\(a \ne c\)) and (iv) contrast (\(d \ne c\)).

In this paper, we focus on the automatic detection of the centres of the ventricles. Localizing the centres of the ventricles will remove the need for manual input in commercial software such as Segment MedvisoFootnote 1, CMR tools from Cardiovascular Imaging SolutionsFootnote 2 or Circle Cardiovascular ImagingFootnote 3. Additionally, the centres are necessary to define the LV central axis. From the LV central axis, 3D reconstruction can be performed after realignment of the short axis slices. Moreover, LV central axis and RV centres allow the definition of the 17 AHA zones for regional measurements.

The automatic detection of these centres is challenging, especially, in the case of the RV. Despite the variability in image quality, heart shape, thickness as illustrated in Fig. 1, current methods make assumptions such as [7] on the respective position, or [2] on the intensity profile, which remains difficult to predict because of the blood flow, the fat, and the trabeculations. We tackle this centre detection without these assumptions by a coarse-to-fine approach to detect the centre of each ventricle in every single image of a 4D sequence.

The proposed method was tested on 32 patients from the MICCAI 2012 RVSC Test1 and Test2 datasets and 10 volunteers. We also present an application of the LV centre detection algorithm to realign misaligned short-axis slices.

2 Methods

The proposed method uses motion and pixel intensity to detect, recognize, and select centres for both ventricles. First, the heart is located and cropped by estimating the motion throughout the frames at the basal slice. Then, a coarse segmentation of each ventricles is performed at the basal slice at the end-diastolic (ED) frame. The segmented LV is then propagated through the slices and frames to reduce the area of search. The LV centres are used to define a region of interest for the RV. The pipeline is illustrated in Fig. 2.

Fig. 2.
figure 2

Pipeline for 4D automatic centre detection. First, a cropping is performed on the 4D image. Then at the basal slice, both ventricles are detected, recognized and centres are selected. The result of this detection is then used to search in the 4D volume the centres of the LV. Finally, the LV centres are used to define elliptic areas of search around the RV centres.

2.1 Cropping

The first step of the proposed coarse-to-fine approach consists in cropping the image to delimit the heart. This will help in the detection by preventing possible false positives, and also reduce the overall computational time. The cropping method is first used on the basal slice. The basal slice is selected manually, as the first slice where the ventricles are the biggest and form a full ring (for instance Fig. 3a). However, automatic selection will be considered in the future using recently published method [4].

This cropping method is quite similar to the heart localization approach presented in [2], as we look for the region presenting most of the motion in the image. To observe the motion, we compute the sum of the absolute pixel-wise difference between 2 images of the cardiac cycle:

$$ I_\varDelta = \displaystyle \sum _{t=2}^{N} |I_1-I_t| $$

where \(I_t\) is the 2D image representing the basal slice at time t.

The effect of the background noise is reduced by summing the absolute difference between the first frame and the following frames. Moreover, the small motions are attenuated by smoothing \(I_\varDelta \) with a Gaussian kernel (choosing a large \(\sigma \) to reduce the amount of noise). Otsu’s thresholding algorithm is then applied to approximate the shape of the heart (Fig. 3), which may contain surrounding objects. The bounding box is defined as the smallest window W containing every pixel of the mask. In order to make up for possible errors W’s size is increased by 5 pixels in every directions. The bounding box defined at the basal slice is then used for all the slices.

Fig. 3.
figure 3

Illustration of the cropping step. (a) Original image (size 192\(\,\times \,\)192). (b) The smoothed \(I_\varDelta \). (c) Otsu’s binarization with in red the bounding box. (d) The result of the cropping (size 94\(\,\times \,\)88). (Color figure online)

2.2 Centre Detection at Basal Slice

The ventricles are the most filled with blood in the ED frame, where they appear as big structures with high intensity. At that specific time, the ventricles can easily be discriminated from the background by using a thresholding method. In the literature, Otsu’s model has been used for the same purpose [7].

The result obtained is an approximation of the blood pool of the ventricles, on which is applied a morphological reconstruction [3] to fill the holes present in all connected components and remove small papillary muscles.

The previously computed \(I_\varDelta \) is then used to reduce the number of potential ventricles. Only the 3 largest connected components sharing pixels with \(I_\varDelta \) are kept as illustrated in Fig. 4. We identify the LV as being the object with the highest circularity measure C [1] defined as \( C = \dfrac{4\pi A}{P^2} \) where P is the perimeter, and A the area. The centre of the LV is chosen as the barycentre of the object and denoted \(LV_c\).

Fig. 4.
figure 4

(a) Original basal slice. (b) Otsu’s binarization, in colours the 3 connected components kept. (c) The LV extracted with its centre (green star). (d) RV’s distance map. (e) The RV extracted with its chosen centre (red star), and its barycentre (blue star). (Color figure online)

The RV is then estimated between the two other objects \(\varOmega _1\), \(\varOmega _2\), by optimising the following function

$$ \displaystyle \max _{\varOmega _1, \varOmega _2} \bigg [\dfrac{C_{\varOmega _i}}{max(C_{\varOmega _1},C_{\varOmega _2})} +\dfrac{|\varOmega _{i}|}{max(|\varOmega _{1}|,|\varOmega _{2}|)}-\dfrac{dist(\varOmega _{i}-LV_c)}{max(dist(\varOmega _{1}-LV_c), dist(\varOmega _{2}-LV_c))}\bigg ] $$
Fig. 5.
figure 5

(a) Original image. (b) The LV extracted at the previous slice (in green) is intersected with the result of Otsu on the original image. (c) The result of the intersection. In yellow, the centre of the previous slice, and in green the LV segmentation chosen for this slice. (d) The result of the detection in green. (Color figure online)

The largest and closest object to the LV with the highest circularity measure is selected. The centre of the RV is chosen as the maximum of the distance map (Fig. 4d and e) to account for the potential presence of fat and the non-circular shape of the RV, that will misplace the barycentre.

2.3 Left Ventricle Centre Detection on the 4D Sequence

To detect the centre of the other slices and frames, the area of search is reduced to allow faster computation, to prevent false positive due to fat tissue around the heart and to take into account the muscle narrowing toward the apex. Both the coarse segmentation of the LV and the detected centre (Fig. 4c) from the basal slice at ED are used to detect the LV centre of first the other slices and then the other frames of the cardiac cycle. First, for each new slice, Otsu’s binarization is performed and intersected with the coarse mask from the previous slice, as described Fig. 5b. This intersection may contain several disconnected objects (Fig. 5c) from which the LV is detected as the object containing, or closest to, the LV centre from the previous slice. The centre of this LV is then defined as the barycentre of the selected coarse object (Fig. 5d).

To detect the centre of the LV for the other time frames, a similar process is applied using the coarse LV masks and the LV centres detected at ED. However, instead of performing Otsu on the whole image, it is only applied on the intersection with the coarse mask in order to give an apriori localization of the blood pool at end-systole (ES). Using the same ED inputs for all time frames allows parallel computing.

Fig. 6.
figure 6

From left to right. (a) Definition of the ellipse. (b) Binarization of the inside of the ellipse. (c) The selected centres.

2.4 Right Ventricle Centre Detection on the 4D Sequence

Even more importantly for the RV, the area of search needs to be reduced to prevent the risk of detecting fat tissue which presents brighter intensity and sharper contrast than the very thin RV muscle. Similarly to the LV, the centre detection is first performed on all slices at ED, then on the other time frames of the cardiac cycle. Due to the reliability of the LV detection, the LV centre can be used as a landmark to define the area of search in which the RV blood pool is assumed to be found. First, an ellipse is defined around the RV centre obtained from the previous slice at ED. Based on geometrical observations, the main axis size is set to a fourth of the distance between the current LV centre and the previous RV centre, and the minor axis size is set to a sixth of this distance (Fig. 6a). The ellipse is assumed to follow the narrowing of the RV towards the apex, and its motion during contraction. Otsu’s algorithm is once again used to differentiate the blood pool from the background within the ellipse (Fig. 6b). Similarly to LV detection, the RV is chosen as the closest object to the centre of the ellipse and its barycentre defined as the centre of the RV for the current slice. The ellipses defined at ED are used to detect the RV centre in the other frames of the cardiac cycle, which allows parallel computing.

3 Results

We evaluated our algorithm on 32 patient short-axis volumes from the Test1 and Test2 datasets of the MICCAI 2012 RVS challenge [6] acquired on a Siemens Symphony Tim 1.5T MRI, and 10 volunteer scans acquired on a Siemens 3T Prisma. In total, the algorithm has been tested on 7485 images. The cropping is done on average in 65 ms, the detection on the basal slice (all frames) in 250 ms, and the detection on a slice (all frames) in 110 ms. The overall time for a 4D detection of 1 subject is less than 2 s. The tests were done on a Intel Xeon CPU ES-1650 3.20 GHz (12 cores). The detection is considered as successful if the centre is detected in the middle for the LV, and in the blood pool for the RV. Examples of successful detection are shown in the first row of the Fig. 7, for 2 apical and 2 basal slices.

The algorithm performs extremely well for the LV with a 99.3% success rate for all the patients, and a mean of 99.4% per patient. The failed detection happens only when the blood pool is not visible anymore due to the contraction. As for the RV, we achieved a satisfying 89.8% success rate over the 7485 images. There are several reasons to be considered for the 10% failures, Fig. 7 second row illustrates some of them.

Fig. 7.
figure 7

Example results of the centre detector for the LV (green) and RV (red). (Color figure online)

In some cases, the presence of fat or fluid around the wall may be detected as part of the blood pool, especially, close to the apex at ES (Fig. 7e). Similarly to the LV, it might fail when the ventricle is completely closed by the contraction which usually happens around the apex at ES as shown in Fig. 7f. Overall, most of the errors are close to the apical slice, the algorithm fails to follow the sudden narrowing of the heart ventricles (Fig. 7g and h). Future improvements will consider a linear interpolation of the distance between the RV and LV centres to redefine the area of search towards the apex, and hopefully decrease the error rate.

3.1 LV Central Axis and Alignment

Misaligned slices are a frequent issue in short axis Cine MRI due to different breath-hold positions. In order to detect and correct the misaligned slices, we propose to use the LV central axis. The LV central axis is defined as the line joining the LV centre of the basal slice and the apex. To estimate the misalignment, the distance between the LV centre of each intermediates slices and the axis is computed. Then, Tukey’s boxplot method [8] is used to detect the outliers among the set of distances. The outliers are considered as misaligned slices, and the translations needed to align them is calculated and applied. In our example, two iterations of the LV centre detection and alignment algorithm was needed to perfectly align the slices as shown in Fig. 8. This alignment method can only be efficient for a small number of misaligned slices. Aligning short-axis slices allows to perform 3D reconstruction of the LV geometry for further analysis such as motion tracking.

Fig. 8.
figure 8

First row: results of LV detector on misaligned slices, the middle image is clearly misaligned. Second row: results of the alignment algorithm, the middle image is perfectly aligned with the other slices. Last column illustrates on top a LV misaligned, and in the bottom a LV after alignment, the blue line represents the central axis. (Color figure online)

4 Discussion and Conclusion

The segmentation of ventricles in cine MRI is a challenging task due to the large variability in shape, motion, and image quality. Especially, in the case of the RV where, to the best of our knowledge, no robust automatic method has been made available to clinicians. We aimed through this work at presenting a robust technique for ventricle centre detection in 4D. Our goal is to simplify the traditional usage of segmentation tools by replacing the manual input required from clinicians. Our solution was tested on a database of 7485 images, presenting a large variability, in heart sizes, image quality, presence of artefact, and motion.

The LV centre detector showed close to 100% success rate, which makes it extremely reliable as an add-on to any semi-automatic tool directed to clinicians. Moreover, its precision allows us to use it to define the LV central axis. This central axis can be useful to detect and correct misalignment but also for 3D LV models and AHA regional segments definition. The results of RV detector were also satisfying as they reached the 90% threshold and represent, therefore, a usable solution to initialize a centre-based automatic segmentation method.