An Interpretable CNN for the Segmentation of the Left Ventricle in Cardiac MRI by Real-Time Visualization

Jun Liu, Geng Yuan, Changdi Yang, Houbing Song, Liang LuoComputer 2022

Abstract

The interpretability of deep learning models is a critical requirement in medical imaging, where safety and accountability are paramount. Traditional convolutional neural networks (CNNs) for left ventricular (LV) segmentation often function as "black boxes," and the common practice of transfer learning from ImageNet datasets can introduce irrelevant parameters and obscure explanations. This study presents a novel, interpretable CNN architecture trained from scratch for autonomous LV segmentation in cardiac MRI. By implementing Global Average Pooling (GAP) and real-time dynamic visualization of gradient changes, the model provides plausible explanations for its outputs. Our results show a Dice coefficient of 94.48% and an accuracy of 99.7%, demonstrating that a lightweight, purpose-built model can outperform larger transfer-learning architectures while remaining suitable for mobile deployment.

Introduction

Cardiovascular disease remains a leading cause of global mortality. Accurate segmentation of the left ventricle (LV) from cardiac magnetic resonance imaging (MRI) is essential for calculating clinical metrics such as ejection fraction and myocardial mass. While automated deep learning solutions have advanced this field, they face two significant challenges: the "black box" nature of their decision-making and the inefficiencies of transfer learning.

In clinical settings, a model's output must be verifiable. Most existing models provide a segmentation mask without explaining which features led to that result. Furthermore, many researchers rely on transfer learning from massive datasets like ImageNet. While this can speed up training, it often introduces millions of parameters that are not relevant to medical anatomy, leading to bulky models that are difficult to interpret and deploy on resource-constrained mobile devices.

Methodology

To address these issues, we developed an "interpretable-by-design" architecture.

Model Architecture

Instead of adopting a pre-trained model, we designed a CNN from scratch using a multi-convolution stack inspired by VGGnet. By using consecutive $3 \times 3$ convolution layers, the model gains non-linearity and decision power while maintaining a significantly lower parameter count compared to models using larger filters.

The core of our interpretability lies in the replacement of traditional fully connected (dense) layers with a Global Average Pooling (GAP) layer. This design choice preserves spatial information throughout the network, enabling the generation of Class Activation Maps (CAM). These heatmaps allow clinicians to see exactly which pixels in the MRI scan influenced the model's segmentation decision.

Real-Time Visualization and Training

We utilized an enhanced version of the NVIDIA DIGITS system to monitor gradient changes and feature maps during the training process. This real-time visualization allowed us to analyze how the model learned to identify the LV and select the optimal deployment model based on its internal feature representation rather than just its final output score.

Datasets

The study utilized the Sunnybrook Cardiac MR Database (2009 MICCAI LV Segmentation Challenge). This dataset consists of 45 cine-MRI images representing various clinical conditions, including healthy subjects, hypertrophy, and heart failure with or without infarction.

A representative cardiac MRI slice showing the anatomical structure of the heart, including the left ventricle.

The data was split into 334 images for training and 96 images for validation. All images were processed in their original $256 \times 256$ grayscale DICOM format to ensure high fidelity.

Results and Discussion

The proposed model demonstrated superior performance compared to several established architectures, including FCN-8s, U-Net, and Attention U-Net.

Metric Proposed Model
Dice Coefficient 94.48%
Pixel Accuracy 99.7%
Average Perpendicular Distance (APD) 1.93 mm

The high Dice coefficient and low APD indicate that the model's contours align very closely with expert manual annotations. Crucially, the model achieved these results while being significantly more lightweight than transfer-learning-based counterparts.

The Value of Interpretability

By providing CAM heatmaps, the model transforms from a "black box" into a collaborative tool. If the heatmap highlights the center of the LV, the clinician can trust the segmentation. If the heatmap highlights an artifact or an unrelated structure, the clinician is immediately alerted to a potential error, enhancing diagnostic safety.

Conclusion

This research demonstrates that for specialized medical tasks, "less is more." A lightweight model trained specifically on cardiac data can outperform general-purpose models while offering the transparency required for clinical use. Future work will focus on testing the model's performance on mobile hardware and further optimizing it through model pruning to facilitate real-time bedside diagnostics.

Summary updated

BibTeX
@inproceedings{liu2022interpretable,
  author = {Jun Liu and Geng Yuan and Changdi Yang and Houbing Song and Liang Luo},
  title = {{An Interpretable CNN for the Segmentation of the Left Ventricle in Cardiac MRI by Real-Time Visualization}},
  booktitle = {Computer},
  year = {2022},
  doi = {10.32604/cmes.2022.023195},
}
Figure