Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan 17;15(2):207.
doi: 10.3390/diagnostics15020207.

Deep Transfer Learning for Classification of Late Gadolinium Enhancement Cardiac MRI Images into Myocardial Infarction, Myocarditis, and Healthy Classes: Comparison with Subjective Visual Evaluation

Affiliations

Deep Transfer Learning for Classification of Late Gadolinium Enhancement Cardiac MRI Images into Myocardial Infarction, Myocarditis, and Healthy Classes: Comparison with Subjective Visual Evaluation

Amani Ben Khalifa et al. Diagnostics (Basel). .

Abstract

Background/Objectives: To develop a computer-aided diagnosis (CAD) method for the classification of late gadolinium enhancement (LGE) cardiac MRI images into myocardial infarction (MI), myocarditis, and healthy classes using a fine-tuned VGG16 model hybridized with multi-layer perceptron (MLP) (VGG16-MLP) and assess our model's performance in comparison to various pre-trained base models and MRI readers. Methods: This study included 361 LGE images for MI, 222 for myocarditis, and 254 for the healthy class. The left ventricle was extracted automatically using a U-net segmentation model on LGE images. Fine-tuned VGG16 was performed for feature extraction. A spatial attention mechanism was implemented as a part of the neural network architecture. The MLP architecture was used for the classification. The evaluation metrics were calculated using a separate test set. To compare the VGG16 model's performance in feature extraction, various pre-trained base models were evaluated: VGG19, DenseNet121, DenseNet201, MobileNet, InceptionV3, and InceptionResNetV2. The Support Vector Machine (SVM) classifier was evaluated and compared to MLP for the classification task. The performance of the VGG16-MLP model was compared with a subjective visual analysis conducted by two blinded independent readers. Results: The VGG16-MLP model allowed high-performance differentiation between MI, myocarditis, and healthy LGE cardiac MRI images. It outperformed the other tested models with 96% accuracy, 97% precision, 96% sensitivity, and 96% F1-score. Our model surpassed the accuracy of Reader 1 by 27% and Reader 2 by 17%. Conclusions: Our study demonstrated that the VGG16-MLP model permits accurate classification of MI, myocarditis, and healthy LGE cardiac MRI images and could be considered a reliable computer-aided diagnosis approach specifically for radiologists with limited experience in cardiovascular imaging.

Keywords: VGG16; deep learning; myocardial infarction; myocarditis.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Framework for the extraction of the region of interest (ROI).
Figure 2
Figure 2
Descriptive architecture of our deep learning model VGG16-MLP composed of fine-tuned Visual Geometry Group (VGG16), spatial attention mechanism, and multi-layer perceptron (MLP).
Figure 3
Figure 3
A visual representation of the input images, ground truth masks, and predicted masks.
Figure 4
Figure 4
Bar charts of accuracy, dice coefficient, sensitivity, and precision of segmentation of the region of interest.
Figure 5
Figure 5
Confusion matrices of VGG16-MLP, VGG19-MLP, DenseNet121-MLP, DenseNet201-MLP, MobileNet-MLP, InceptionV3-MLP, InceptionResNetV2-MLP, and VGG16-SVM.
Figure 6
Figure 6
Bar charts of VGG16-MLP model’s accuracy, precision, sensitivity, and F1-score for myocardial infarction (class 0), myocarditis (class 1), and healthy (class 2). For the myocardial infarction, myocarditis, and healthy classes, the accuracy was 97%, 98%, and 98%; the precision was 95%, 100%, and 96%; the sensitivity was 99%, 91%, and 98%; and the F1-score was 97%, 95%, and 97%, respectively.
Figure 7
Figure 7
The receiver operating characteristic (ROC) curve and precision–recall curve of the myocardial infarction (class 0), myocarditis (class 1), and healthy (class 2) classes obtained from the VGG16-MLP model. In the ROC curves for the three classes, the true-positive rates are close to one, the false-positive rates are near zero, and the area under the curve (AUC) exceeds 0.9. The precision–recall curves indicate high values of precision and recall for the three classes, with AUCs of 1.00, 0.98, and 0.99 for the myocardial infarction, myocarditis, and healthy classes, respectively.
Figure 8
Figure 8
Bar charts of the accuracy, precision, sensitivity, and F1-score of our model VGG16-MLP, reader 1, and reader 2.

References

    1. Russo V., Lovato L., Ligabue G. Cardiac MRI: Technical basis. La Radiol. Med. 2020;125:1040–1055. doi: 10.1007/s11547-020-01282-z. - DOI - PubMed
    1. Sechtem U., Mahrholdt H., Vogelsberg H. Cardiac magnetic resonance in myocardial disease. Heart. 2007;93:1520–1527. doi: 10.1136/hrt.2005.067355. - DOI - PMC - PubMed
    1. Nucifora G., Miani D., Di Chiara A., Piccoli G., Artico J., Puppato M., Slavich G., De Biasio M., Gasparini D., Proclemer A. Infarct-like acute myocarditis: Relation between electrocardiographic findings and myocardial damage as assessed by cardiac magnetic resonance imaging. Clin. Cardiol. 2013;36:146–152. doi: 10.1002/clc.22088. - DOI - PMC - PubMed
    1. Valevičienė, N.; Petrulionienė, Z.; Petrauskienė, B.; Lauraitis, G.; Glaveckaitė, S.; Palionis, D.; Tamošiūnas, A.; Laucevičius, A. Differentiation of acute myocarditis and acute myocardial infarction by the regional distribution of myocardial irreversible injury using cardiovascular magnetic resonance imaging. Medicina 2012, 48, 132–137. [(accessed on 8 November 2023)]; doi: 10.3390/medicina48030018. Available online: https://pubmed.ncbi.nlm.nih.gov/22588344/ - DOI - PubMed
    1. Di Noto T., von Spiczak J., Mannil M., Gantert E., Soda P., Manka R., Alkadhi H. Radiomics for Distinguishing Myocardial Infarction from Myocarditis at Late Gadolinium Enhancement at MRI: Comparison with Subjective Visual Analysis. Radiol. Cardiothorac. Imaging. 2019;1:e180026. doi: 10.1148/ryct.2019180026. - DOI - PMC - PubMed

LinkOut - more resources