Abstract

This research aimed to evaluate the right ventricular segmentation ability of magnetic resonance imaging (MRI) images based on deep learning and evaluate the influence of curcumin (Cur) on the psychological state of patients with pulmonary hypertension (PH). The heart MRI images were detected based on the You Only Look Once (YOLO) algorithm, and then the MRI image right ventricle segmentation algorithm was established based on the convolutional neural network (CNN) algorithm. The segmentation effect of the right ventricle in cardiac MRI images was evaluated regarding intersection-over-union (IOU), Dice coefficient, accuracy, and Jaccard coefficient. 30 cases of PH patients were taken as the research object. According to different treatments, they were rolled into control group (conventional treatment) and Cur group (conventional treatment + Cur), with 15 cases in each group. Changes in the scores of the self-rating anxiety scale (SAS) and self-rating depression scale (SDS) of the two groups of patients before and after treatment were analyzed. It was found that the average IOU of the heart target detection frame of the MRI image and the true bounding box before correction was 0.7023, and the IOU after correction was 0.9016. The Loss of the MRI image processed by the CNN algorithm was 0.05, which was greatly smaller than those processed by other algorithms. The Dice coefficient, Jaccard coefficient, and accuracy of the MRI image processed by CNN were 0.89, 0.881, and 0.994, respectively. The MRI images of PH patients showed that the anterior wall of the right ventricle was notably thickened, and the main pulmonary artery was greatly widened. After treatment, the SAR and SDS scores of the two groups were lower than those before treatment (), and the SAR and SDS scores of the curcumin group were lower than those of the control group (). To sum up, the right ventricular segmentation ability of MRI images based on deep learning was improved, and Cur can remarkably alleviate the psychological state of PH patients, which provided a reference for the diagnosis and treatment for PH patients.

1. Introduction

Pulmonary hypertension (PH) is a pathophysiological syndrome characterized by increased pulmonary circulatory resistance and pressure, which causes right heart insufficiency and causes premature death of patients [1]. PH treatment drugs mainly include prostacyclin analogs, endothelin receptors, and antagonists, which have a positive impact on the prognosis of PH [2]. Curcumin (Cur) reduces aortic pressure and improves left ventricular remodeling by inhibiting Na+-K+ ATPase in improving cardiac function [3]. Commonly used methods for PH detection include chest X-ray, computed tomography (CT), cardiac magnetic resonance (CMR), right heart catheterization, and lung ventilation and perfusion. The chest X-ray film is easily affected by breathing during the detection process, and the measurement error is relatively large [4]. Multislice spiral CT is less accurate than MRI in measuring right ventricular ejection fraction [5]. Right heart catheterization is the gold standard for the diagnosis of PH, but it is an invasive examination and has certain risks [6]. Cardiac magnetic resonance imaging (CMRI) can directly assess the volume, shape, and function of the right ventricle and can provide pulmonary hemodynamic parameters in a noninvasive way. It has become an ideal method for noninvasive evaluation of the structure and function of the right ventricle and has significant advantages in the diagnosis of PH.

The function of the right ventricle (RV) can be realized by segmentation of the right ventricle, but its myocardial wall is thin, adjacent to fat, papillary muscle and other tissues, and individual structures vary greatly. In addition, partial volume effects and cardiac motion often cause poor signal-to-noise ratios in CMRI short-axis movie images. The YOLO algorithm is widely used in target detection because of its fast detection speed and simple operation. Common right ventricular image segmentations include threshold segmentation, region growing segmentation algorithm, and level set segmentation. Among which, the level set segmentation process is complicated, and the amount of calculation is large, which leads to a longer operation time [7]. The segmentation effect of the region growing segmentation algorithm has been improved a lot compared with the threshold segmentation algorithm, but it is affected by the relaxation of the heartbeat during the heart image acquisition process, which leads to its poor robustness. Due to the poor contrast between the blood pool of the right ventricle and the myocardium and the large structural variation, the traditional segmentation is not very effective in the segmentation of the right ventricle. With the progression of computer technology in recent years, segmentation technology based on CNN algorithm has gradually been applied to medical image processing. Zabihollahy et al. [8] adopted CNN algorithm to realize automatic heart target detection and right ventricular initialization segmentation, then utilized a deformable model to optimize segmentation, and finally improved the accuracy and robustness of segmentation. Some researchers adopted the FCN-8 network to segment the ventricles and found that the network had a good segmentation effect on the left ventricle of the heart, with a Dice score of 0.93, while the Dice score of the right ventricle segmentation was only 0.87 [9].

In summary, although the CNN algorithm was applied to the segmentation of the right ventricle, it needed to be further optimized in clinical adoption. Based on the function of Cur, it was speculated that it may reduce PH and improved right heart function, and its effect on the psychological state of patients with PH has not been reported. In this research, the PH patients diagnosed with right heart catheterization were taken as the research object. The segmentation algorithm was optimized based on the CNN algorithm, which was then applied to the segmentation of MRI images of PH patients to evaluate the influence of Cur on the psychological state of PH patients, so as to provide a reference for the diagnosis and treatment of PH.

2. Materials and Methods

2.1. Research Objects and Grouping

Thirty patients with PH who were diagnosed with right heart catheterization in hospital from June 2019 to September 2020 were taken as the research object, all of which underwent MRI examination. There were 5 males and 25 females. The age range of the patients was 18–75 years old, and the average age was 38.62 ± 7.35 years old. According to different treatments, they were rolled into a control group (conventional antidepressant treatment) and a Cur group (Cur + conventional treatment), with 15 cases in each group. Inclusion criteria: I, patients diagnosed in accordance with the PH diagnosis and treatment guidelines of the European Society of Cardiology; II, patients with chronic thromboembolic PH; III, patients not receiving treatment with prostacyclin and endothelin receptor antagonists. Exclusion criteria: I, patients with coronary heart disease, valvular heart disease, chronic obstructive pulmonary disease, or other cardiopulmonary diseases; II, patients with severe obstructive lung disease; III, patients with severe liver and kidney damage. The process had been approved by the ethics committee of the Hospital, and all subjects included in the study had signed informed consent forms.

2.2. Establishment of a Heart Target Detection Model Based on YOLO Algorithm

MRI images of different organs are similar. The MRI images acquired in the short-axis direction of the heart included the heart of the region of interest and other organ structures of the body. Similar interference signals of different organs would cause a certain degree of difficulty in segmentation [10]. In this research, the heart target detection method was established based on the YOLO algorithm. For each MRI image, the horizontal and vertical coordinates xmin and ymin of the upper left point of the target area and the horizontal and vertical coordinates xmax and ymax of the lower right point were calculated according to the gold standard. Then, there were the following equations.x and y represented the horizontal and vertical coordinates of the center point of the target area, respectively. and h represented the width and height of the target area, respectively. The vector was set as the gold standard for target detection and training in each MRI image.

To ensure the accuracy of the ROI, corrections were made based on the information between the MRI image sequences. The redundant detection frame in the detection result was removed according to equation (2) for the obtained position of the heart center point.

In equation (2), was the average value of the entire MRI sequence excluding the center point of the current slice of the heart.

MRI image with a size of 416 × 416 was input and analyzed by the heart detection network of the YOLO algorithm, and a 7 × 7 grid was output. Each grid included five bounding boxes. Each bounding box contained six element vectors , where was the probability of detecting the heart; and represented the width and height of the detected heart, respectively; and represented the abscissa and ordinate of the center point of the heart, respectively. c was the confidence that the heart appeared in the bounding box. Then, the MRI image vector output by the heart detection network was (7, 7, 30). The heart detection process based on the YOLO algorithm is shown in Figure 1.

2.3. Establishment of Right Ventricular Segmentation Model Based on CNN Algorithm

CNN is mainly composed of convolutional layer, pooling layer, fully connected layer, and deconvolutional layer. The convolutional layer detected the local features of different positions in the input MRI image, which was expressed as the following equation:

In equation (3), was the convolution kernel, i was the feature map of the l − 1th layer, j was the feature map of the lth layer, was the feature map of the convolutional layer l, was the feature map of the adjacent layer , was the number of feature maps of the l − 1th layer, represented the convolution, was the bias, and was the nonlinear activation function.

The activation function is mainly for processing linear inseparable data [11]. In this research, ReLu, which had a faster calculation speed, was taken as the activation function. The ReLu activation function was expressed as equation (4), and the corresponding derivative function was expressed as equation (5).

For MRI image A, X represented the set of all pixels in image A: , and B represented the category included in the segmentation, and . 1, 2, 3, and 4 represented the background, right ventricle, left ventricular myocardium, and left ventricular cavity, respectively. Then, for the pixel of the jth channel, the probability to correspondingly output was as follows:

In equation (6), represented the value of , Z represented the regularization term, and the obtained predicted value for was expressed as , and the corresponding loss function was expressed as follows:

Adam is one of the commonly used optimization methods for training neural networks [12]. Based on the CNN algorithm, Adam was employed to optimize it, and the expressions of update parameter and offset and were expressed as follows:

was the number of cycles of Adam, and represented the hyperparameters that controlled the average value of the two exponential weights, respectively, was the learning rate, and was a very small number and was set to avoid the denominator being zero.

After the MRI image with a size of 100 × 100 × 64 processed by the heart detection of the YOLO algorithm was processed by a convolutional network (Conv) for six times, an MRI image with a size of 25 × 25 × 256 was obtained. After further six times of deconvolutional network (Reonv) processing, the MRI right ventricle segmentation image with a size of 100 × 100 × 64 was obtained. The right ventricle segmentation process based on CNN algorithm is shown in Figure 2.

2.4. Quality Evaluation of MRI Image Based on Deep Learning Processing

The target detection algorithm was evaluated regarding intersection-over-union (IOU). IOU refers to the area of the intersection of the predicted boundary and the actual boundary compared to the area of the union. The higher the IOU, the more accurate the target detection bounding box.

The shape of the right ventricle of the heart is mostly variable and irregular. Therefore, the segmentation effect of the right ventricle of the heart was evaluated regarding the Dice coefficient, accuracy, and the Jaccard coefficient. The Dice coefficient refers to a measure of the overlap between the segmentation result and the gold standard area. The calculation of the Dice coefficient was as follows:

In equation (9), A represented the standard value segmented by the doctor, and B represented the predicted value segmented by the CNN model. TP meant that the segmentation result and the gold standard result were both true, that is, true positive. FP meant that the segmentation result was false, but the gold standard results were all true. FN meant that the segmentation result was true, but the gold standard results were all false. The smaller the Dice coefficient, the larger the gap between the predicted result and the actual result.

The equation for calculating accuracy was as follows:

Jaccard coefficient reflected the size of the difference between the data, which represented the intersection of the predicted value of the neural network and the standard value provided by the expert. The calculation was as follows:

In equation (11), X represented the right ventricular area predicted by CNN, and Y represented the right ventricular area delineated by the doctor.

2.5. Treatment Method and Evaluation Index of Pulmonary Hypertension

Patients in control group received conventional treatment such as oxygen inhalation, anticoagulation, cardiac strengthening, and diuresis. Patients in the Cur group were treated with Cur based on the conventional treatment, and the initial dose of Cur was 60 mg/d. According to the condition of the disease, the dose was gradually increased to 120 mg/d within 0–3 months. The treatment course of both groups was 3 months.

The self-rating anxiety scale (SAS) and self-rating depression scale (SDS) were adopted to evaluate the psychological state of patients before and after the intervention. SAS was used to evaluate the subjective feelings of anxiety patients. It consists of 20 items and is scored according to the grade of 1 to 4. “1” means no or very little time; “2” means a small part of the time; “3” means a lot of time; “4” means most of or all the time. It was scored as 4∼1 for reverse score. SDS was mainly used to assess the frequency of each symptom, using a 4-level score. “1” means no or very little time; “2” means a small part of the time; “3” means a lot of time; “4” means most of or all the time. The scoring standard: S = 1.25 × T, where S was the standard score and T was the total rough score. The lower the score, the milder the patient’s symptoms.

2.6. Statistical Methods

The test data processing was carried out using SPSS19.0. Mean ± standard deviation () was how measurement data were expressed, and the comparison of the mean between each group was performed by t-test. Percentage (%) was how count data were expressed, and the χ2 test was used. indicated that the difference was statistically considerable.

3. Results

3.1. Analysis of Heart Detection Results Based on YOLO Algorithm

The heart detection results before and after correction were analyzed based on the YOLO algorithm (Figure 3(a)). The average IOU of the heart target detection frame and the true bounding box before correction was 0.7023, the IOU after correction was 0.9016, and the average IOU of the heart detection frame after correction was increased by 0.19. The Euclidean distance between the center point based on the YOLO detection result and the true center point of the MRI heart was further calculated (Figure 3(b)), and the Euclidean distance between the two was distributed between 0 and 20 mm, most of which were less than 5 mm. The percentage of center points with Euclidean distance less than 20 mm was calculated, and the Euclidean distance less than 10 mm accounted for 96.4%.

3.2. Quality Evaluation of MRI Image Based on Deep Learning Processing

Under different training cycles, the Dice coefficients of MRI images processed by CNN, active shape model (ASM), and random forests (RF) algorithms were compared (Figure 4). As the training period increased, the Dice coefficients of different algorithms showed a significant upward trend. The Dice coefficient based on the CNN algorithm was greater than that of ASM and RF under different training cycles. The Dice coefficient based on CNN algorithm was up to 0.9, then that based on ASM was up to 0.85, and that based on RF was up to 0.75.

Loss value changes of MRI images processed by different algorithms under different cycle periods were compared (Figure 5). As the training period increased, the Loss values of different algorithms showed a significant downward trend. The Loss value of the proposed CNN algorithm was smaller than ASM and RF under different training cycles. When the cycle period was 100, the Loss value of the CNN algorithm was 0.05, that of ASM was 0.4, and that of RF was 0.18.

The Dice coefficient, Jaccard coefficient, and accuracy rate of MRI images processed by different algorithms were compared (Figure 6). The Dice coefficients of CNN, RF, and ASM algorithms were 0.89, 0.85, and 0.77, respectively. The Jaccard coefficients were 0.881, 0.815, and 0.752, and the accuracy was 0.994, 0.991, and 0.986, respectively.

3.3. MRI Image Features of PH Patients Based on Deep Learning

The features of PH patients’ MRI image based on deep learning processing were analyzed (Figure 7). In contrast to the normal anterior wall of the right ventricle (Figure 7(a)), the anterior wall of the right ventricle in PH patients was obviously thickened (shown by the red arrow) (Figure 7(b)). In contrast to the normal pulmonary aorta (Figure 7(c)), the main pulmonary artery in patients with pulmonary aortic hypertension was significantly enlarged (red area) (Figure 7(d)).

3.4. Comparison of Basic Data of Patients in Different Groups

A comparative analysis of the age, sex ratio, and educational background of patients in control group and the Cur group is presented in Table 1. There was no remarkable difference between the two groups of patients in age, the proportion of male patients, the proportion of junior high school educational level or above, the proportion of high school and technical secondary school educational level, and the proportion of college educational level or above ().

3.5. Comparison of the Psychological State of the Two Groups of Patients before and after Treatment

The SAS scores of the two groups of patients before and after treatment were compared (Figure 8). There was no considerable difference in the SAS scores of the two groups before treatment (). After treatment, the SAR scores of the two groups of patients were lower than those before treatment, and the differences were statistically significant (), and the SAR scores of patients in the curcumin group were significantly lower than those of the control group ().

The SDS score results of the two groups of patients before and after treatment were compared (Figure 9). The SDS scores of the two groups of patients before treatment were not notably different (). The SDS scores of the two groups after treatment were lower than those before treatment (), and the SDS scores of the patients in Cur group were remarkably inferior to those of control group ().

4. Discussion

The YOLO algorithm runs faster and is suitable for cardiac MRI images with relatively complex structures [13]. Based on the advantages of the YOLO algorithm, the information between cardiac MRI image sequences was corrected in this research. The results showed that the average IOU of the heart target detection frame and the true bounding box before correction was 0.7023, the IOU after correction was 0.9016, and the average IOU of the heart detection frame after correction increased by 0.19. Euclidean distance less than 10 mm accounted for 96.4%. These results showed that the YOLO correction algorithm can accurately determine whether the MRI image contained a heart target, and the center point of the heart area was directly obtained. The region of interest can be extracted based on the center point for further heart segmentation [14]. Dice coefficient is also called F1 score in the field of information retrieval, and it is widely utilized in verifying the effect of 3D medical image segmentation [15]. Using Dice coefficient can well characterize the segmentation effect [16]. The research results showed that the Dice coefficient of the CNN algorithm was greater than that of ASM and RF under different training cycles. The maximum Dice coefficient of the CNN algorithm was 0.9, that of ASM was 0.85, and that of RF was 0.75. The Dice coefficients of CNN, RF, and ASM algorithms were 0.89, 0.85, and 0.77, respectively, indicating that the algorithm based on deep learning (CNN) proposed had a relatively higher segmentation effect on the right ventricle, which was greatly improved relative to the results of Chen et al. [17]. The Loss value of CNN algorithm was smaller than ASM and RF under different training cycles. When the cycle period was 100, the Loss value of the CNN algorithm was 0.05, that of ASM was 0.4, and that of RF was 0.18. Such results indicated that the CNN algorithm can converge relatively faster and had a lower loss value. It was suggested that the CNN algorithm proposed can reduce the calculation works. The method of hybrid three-dimensional cavity convolution to extract long-range features was suitable for medical images, which can abstract features and had better fitting capabilities [18].

PH is a kind of psychosomatic disease. With the development of the disease, it can cause emotional and psychological fluctuations and obstacles in patients and clinically manifests as anxiety and depression. Studies suggested that targeted psychological intervention and psychological counseling for PH patients during treatment can remarkably improve the psychological state of patients and can increase the 5-year survival rate of patients [19]. In this research, no substantial difference was found in the SAR and SDS scores between the two groups of patients before treatment (). However, the SAR and SDS scores of the two groups of patients after treatment were inferior to those before treatment (), and the SAR and SDS scores of the Cur group were lower relative to control group (). It was suggested that both conventional therapy and Cur can relieve the patient’s psychological state to a certain extent, while Cur can relieve the patient’s psychological state to a greater degree. Cur can improve the psychological state of PH patients and can reduce their anxiety and depression. Filardi et al. [20] pointed out that the use of Cur can greatly improve the symptoms of postpartum depression in patients, but the mechanism of Cur action was very complicated, and further research was needed.

5. Conclusion

In this work, a heart segmentation algorithm was established based on the YOLO algorithm and the CNN algorithm, which was applied to the diagnosis of PH patients. In addition, Cur was used to treat PH patients, and the value of MRI based on deep learning in the diagnosis of PH and the influence of Cur on its psychological state were discussed. It was found that MRI based on deep learning significantly improved the right ventricular segmentation ability and increased the accuracy of PH diagnosis. Cur can obviously improve the psychological state of PH patients. However, this work still has some shortcomings that only the SAR and SDS scores are used to analyze the impact of Cur on the psychological state, while the psychological state indicators such as HAMD score and SAQ are not used for further analysis, which will be implemented in future work. In summary, the right ventricular segmentation ability of MRI images based on deep learning is improved, and Cur can greatly alleviate the psychological state of PH patients, which provides a reference for the diagnosis and treatment of PH patients.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest.

Acknowledgments

This work was supported by the Scientific Research Projects of Basic Scientific Research in Colleges and Universities Operating Expenses of Heilongjiang Province in 2018, China (Grant No. 2018-KYYWFMY-0014).