ECG XAI
An inherently explainable AI model that aligns predictions with clinical reasoning in electrocardiogram (ECG) diagnosis
I carried out this project as my Final Year Project (undergraduate dissertation) (Tian & Lim, 2023). The project was supervised by Prof. Brian Y. Lim at the National University of Singapore. The aim of this project is to develop an explainable AI (XAI) framework that aligns machine learning predictions with clinical reasoning in electrocardiogram (ECG) diagnosis, providing clinically relevant explanations to support cardiologists’ decision-making.
Previous literatures on applying AI or machine learning to ECG diagnosis often focus on achieving high prediction accuracy. Although some papers do utilize some post-hoc XAI techniques to highlight parts of ECG that are most relevant to the prediction, these highlights often fail to provide insights aligned with cardiologists’ clinical reasoning, which relies on identifying specific ECG patterns indicative of heart conditions.
To address this, I designed an inherently explainable AI framework that replicates cardiologists’ decision-making processes by incorporating logical rules used in ECG diagnoses. This framework retains the advantages of machine learning in detecting nuanced details while aligning its outputs with clinical reasoning. Furthermore, my framework can generate detailed diagnostic reports that explain predictions, such as pointing out relevant ECG patterns, making the results more interpretable and trustworthy for medical professionals.
For more details, please refer to the technical report. The code for this project is available on GitHub.
Currently, we are adapting the framework to be more flexible, enabling it to address a wide range of prediction problems that require explanations aligned with predefined guidelines. To enhance usability, we are also developing an intuitive interface for users to design and edit their own rules and integrate them into an inherently explainable machine-learning model. This work is currently being prepared for submission to UIST 2025 (Tian et al., 2024).