HSDreport: Heart Sound Diagnosis with Echocardiography Reports

Zihan Zhao, Pingjie Wang, Liudan Zhao, Yuchen Yang, Ya Zhang, Kun Sun, Xin Sun, Xin Zhou, Yu Wang, Yanfeng Wang

Abstract

Heart sound auscultation is a fundamental tool for diagnosing congenital heart disease (CHD), yet existing AI-driven Heart Sound Diagnosis (HSD) methods are often limited to rigid binary classifications. These models typically fail to incorporate echocardiography reports—the clinical gold standard. We introduce HSDreport, a novel benchmark and model that leverages Large Language Models (LLMs) to bridge the gap between easy-to-acquire heart sounds and comprehensive diagnostic reports. By utilizing a knowledge-aware query-based transformer, our approach achieves a 75.25% F1-score, a 9.4% improvement over previous state-of-the-art methods.

Introduction

Traditional heart sound analysis relies heavily on a clinician's experience to distinguish between normal and abnormal sounds. While AI has attempted to automate this, most existing models oversimplify the task into a binary or few-category classification. This approach ignores the clinical reality where multiple conditions often coexist and fails to utilize the rich descriptive data found in echocardiography reports.

Conceptual comparison between traditional binary HSD models and the proposed multi-label HSDreport approach.

HSDreport addresses these gaps by framing HSD as a 12-category multi-label task. It uses LLMs to extract structured labels from unstructured clinical notes and incorporates medical definitions to guide the model's learning process, moving beyond simple label-matching to semantic understanding.

The HSDreport Benchmark

The HSDreport benchmark is built upon a newly collected dataset of 2,275 heart sound samples from pediatric patients (aged ≤18 years). Each sample is paired with a professional echocardiography report. Audio was recorded across five standard clinical sites (aortic, pulmonic, Erb’s point, tricuspid, and mitral regions) to ensure comprehensive coverage. The resulting labels include 7 specific diseases and 5 clinical symptoms, reflecting the complexity of real-world pediatric cardiology.

Methodology

Our proposed architecture is a knowledge-aware query-based transformer designed to handle the inherent variability of medical language and acoustic signals.

The HSDreport pipeline, including (a) entity extraction from reports, (b) the dual-encoder training process, and (c) the robust inference strategy.

LLM-Powered Labeling and Semantic Queries

To overcome "noise" in clinical reports, we utilized GPT-4 to extract and normalize 12 cardiac abnormalities. Instead of using static labels, we provide the model with detailed medical definitions (e.g., "Ventricular septal defect is a hole in the wall...") as queries. This allows the model to leverage pre-existing medical knowledge during the feature alignment process.

Architecture and Training

The system employs a dual-encoder setup:

  • Audio Encoder: A ResNet50 backbone extracts features from heart sound spectrograms.
  • Text Encoder: PubMedBERT processes the medical descriptions.

During training, a contrastive loss function aligns audio features with their corresponding textual descriptions. To ensure robustness during inference, the model generates 100 different descriptions for each disease using GPT-4 and averages the classification results, mitigating the impact of terminological variations.

Results and Discussion

The HSDreport model significantly outperformed traditional CNN and transformer-based baselines. Key performance metrics include:

  • F1-Score: 75.25% (a 9.4% increase over the CTENN baseline).
  • Recall: 73.38%, a critical metric for clinical screening to minimize false negatives.

Experimental results highlight that semantic grounding—providing definitions rather than just labels—is the primary driver of performance. The model demonstrated particularly high AUC scores for complex conditions like Ventricular Septal Defect (VSD) and Hypertrophy. Interestingly, general-purpose multimodal models like GPT-4o performed poorly on this task, underscoring the necessity of specialized acoustic-medical training.

Conclusion

HSDreport demonstrates that LLMs can serve as powerful "clinical translators," converting messy physician notes into high-quality training data. By integrating the gold standard of echocardiography into the auscultation workflow, we provide a more scientifically valid and clinically useful tool for CHD screening. Future work will focus on expanding the dataset to adult populations and developing methods to quantify disease severity.

Summary updated

BibTeX
@inproceedings{zhao2024hsdreport,
  author = {Zihan Zhao and Pingjie Wang and Liudan Zhao and Yuchen Yang and Ya Zhang and Kun Sun and Xin Sun and Xin Zhou and Yu Wang and Yanfeng Wang},
  title = {{HSDreport: Heart Sound Diagnosis with Echocardiography Reports}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=Fq30SMMmyB},
}
Figure