Fast and accurate view classification of echocardiograms using deep learning

Ali Madani, Ramy Arnaout, Mohammad R. K. Mofrad, Rima ArnaoutNpj Digit. Medicine 2018

Abstract

Echocardiography is a cornerstone of cardiovascular diagnostics, yet its potential for high-throughput analysis is constrained by the need for expert human interpretation. This study presents a deep learning approach to automate the classification of standard echocardiographic views, a critical first step toward fully automated interpretation. Using a dataset of over 800,000 images, we developed a convolutional neural network (CNN) that classifies 15 standard views with 91.7% accuracy on still images and 97.8% on video clips, significantly outperforming board-certified echocardiographers. These results establish a robust foundation for computer-assisted cardiac diagnostics and precision medicine.

Introduction

Echocardiography (cardiac ultrasound) is the most widely used imaging modality in cardiology due to its safety, portability, and real-time capabilities. However, the interpretation of these scans is labor-intensive. A single study involves multiple views and modalities—including B-mode, Doppler, and M-mode—requiring specialized training to interpret. This "human bottleneck" limits the scale of research and the implementation of precision medicine, where large-scale data analysis is required to identify subtle patterns of disease.

To address this, we developed a deep learning model to automate view classification. Before a computer can diagnose a condition, it must first solve the fundamental problem of identifying exactly which part of the heart it is looking at. This is a non-trivial task because many views differ only by subtle shifts in the sonographer’s probe angle.

Methodology

We utilized a multilayer Convolutional Neural Network (CNN) architecture inspired by the VGG16 model. To optimize computational efficiency and test the limits of the model's pattern recognition, high-resolution color DICOM images were downsampled to 60x80 pixel monochrome images. This represented a 25- to 491-fold reduction in file size.

Key technical features of the approach included:

  • Architecture: The model employed 3x3 convolutional filters, max-pooling layers, and dropout/batch normalization to prevent overfitting.
  • Video Classification: While the model classifies individual frames, we implemented a simple majority-voting scheme across multiple images in a video clip to reach a final classification. This drastically improved stability without the need for more computationally expensive architectures like Recurrent Neural Networks (RNNs).
  • Interpretability: To move beyond the "black box" nature of AI, we used saliency mapping (identifying which pixels influenced a decision) and occlusion experiments (masking parts of the image) to ensure the model was focusing on cardiac structures rather than metadata or background noise.

Dataset and Training

The model was trained on a massive, real-world dataset from the University of California, San Francisco (UCSF), comprising 834,267 images from 267 patients. The data spanned 17 years (2000–2017) and included a wide range of patient demographics, including ages 20–96 and a significant proportion of obese patients (26%).

Crucially, the dataset included images from multiple equipment vendors (GE, Philips, Siemens) and varying technical qualities. This diversity ensures that the model is vendor-agnostic and applicable to the messy, varied conditions of real-world clinical practice.

Results and Discussion

The model demonstrated exceptional performance, particularly when compared to human experts.

AI vs. Human Performance

On single, low-resolution still images, the model achieved 91.7% accuracy across 15 views. In contrast, board-certified echocardiographers achieved between 70.2% and 83.5% on the same task. When the model did make an error, its "second guess" was correct 67% of the time, leading to a top-2 accuracy of 97.3%.

Video Accuracy

Performance was even stronger on video clips. The model achieved 97.8% overall test accuracy across 12 video views, reaching a perfect 100% accuracy on 7 of those views. This suggests that the "essence" of a cardiac view lies in coarse anatomical shapes that the CNN can identify even at very low resolutions.

Clinical Relevance

Saliency maps confirmed that the CNN focused on relevant structures like heart chambers and valves. Occlusion tests showed that when the heart itself was masked, the model's accuracy dropped precipitously, confirming it had learned to recognize clinically relevant cardiac anatomy rather than relying on image shortcuts.

Conclusion

This study demonstrates that deep neural networks can classify essential echocardiographic views simultaneously and with high accuracy, outperforming human experts on challenging still-image tasks. By overcoming the initial hurdle of view recognition, this work provides the necessary "front-end" for future systems that can automatically measure ejection fraction, detect specific pathologies like hypertrophic cardiomyopathy, and ultimately bring high-throughput precision medicine to the field of cardiology.

Summary updated

BibTeX
@article{madani2018fast,
  author = {Ali Madani and Ramy Arnaout and Mohammad R. K. Mofrad and Rima Arnaout},
  title = {{Fast and accurate view classification of echocardiograms using deep learning}},
  journal = {Npj Digit. Medicine},
  year = {2018},
  doi = {10.1038/s41746-017-0013-1},
}
Figure