https://github.com/ai4healthuol/ecg-mimic

Repository for the paper 'Prospects for AI-Enhanced ECG as a Unified Screening Tool for Cardiac and Non-Cardiac Conditions -- An Explorative Study in Emergency Care'.

https://github.com/ai4healthuol/ecg-mimic

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary

Keywords

cardiology deep-learning ecg-classification healthcare time-series-classification
Last synced: 6 months ago · JSON representation

Repository

Repository for the paper 'Prospects for AI-Enhanced ECG as a Unified Screening Tool for Cardiac and Non-Cardiac Conditions -- An Explorative Study in Emergency Care'.

Basic Info
  • Host: GitHub
  • Owner: AI4HealthUOL
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 4.63 MB
Statistics
  • Stars: 23
  • Watchers: 2
  • Forks: 1
  • Open Issues: 2
  • Releases: 3
Topics
cardiology deep-learning ecg-classification healthcare time-series-classification
Created over 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

Prospects for AI-Enhanced ECG as a Unified Screening Tool for Cardiac and Non-Cardiac Conditions -- An Explorative Study in Emergency Care

This repository hosts the code of the paper Prospects for AI-Enhanced ECG as a Unified Screening Tool for Cardiac and Non-Cardiac Conditions -- An Explorative Study in Emergency Care. Accepted by European Heart Journal Digital Health. In this study we introduced a unified deep learning model for ECG analysis, predicting a wide range of cardiac and non-cardiac discharge diagnoses based on the ICD10 classification system with impressive AUROC scores. Our approach excels in handling diverse diagnostic scenarios, suggesting its use as a screening tool in emergency departments, integrated into clinical decision support systems. We therefore propose the MIMIC-IV-ECG-ICD-ED dataset derived from the MIMIC-IV and MIMIC-IV-ECG databases primarily for benchmark purposes.

arXiv

Benchmarking scenarios. ED subset [T(ED2ALL)-E(ED2ALL)] is the primarly scenario discussed throught the main text in the manuscript:

alt text

ED subset and MIMIC-IV-ECG-ICD-ED statistics:

alt text

MIMIC-IV-ECG-ICD-ED statements-distributions:

(A) represents the distribution of statements according to chapters (all percentages as relative fractions compared to the dataset size), whereas (B) represents the distribution of cardiac conditions within chapter IX. alt text

Main ED use case investigated in manuscript statements-distributions:

(A) represents the distribution of statements according to chapters (all percentages as relative fractions compared to the dataset size), whereas (B) represents the distribution of cardiac conditions within chapter IX. However, these are the distributions of a specific ED use case (subset dataset) investigated in the manuscript. alt text

Datasets and experiments

1.0 Datasets download

Download the MIMIC-IV-ECG dataset and the MIMIC-IV dataset (with credentialed access).

1.1 Datasets preprocessing

Go under src/ and run the following command where your should replace the corresponding data paths

python full_preprocessing.py --mimic-path <path to mimic-iv directory ended in 'mimiciv/2.2/'> --zip-path <path to ecgs zip file> --target-path <desired output for preprocessed data default='./'>

1.2 Models training

These are 2 of the total benchmarks commands, T(ED2ALL)-E(ED2ALL) the main scenario thtought the main text, and T(ALL2ALL)-E(ALL2ALL) the complete dataset. These command should also export your test set predictions into a corresponding path directory (already specified in a command argument), and also save resulting AUROCs in an also specified log file.

Optinally, see src/demo.ipynb for an example of how to acess each of specific bencharmking scenario.

T(ED2ALL)-E(ED2ALL)

python main_ecg.py --data <your data path> --input-size 250 --finetune-dataset mimic_ed_all_edfirst_all_2000_5A --architecture s4 --precision 32 --s4-n 8 --s4-h 512 --batch-size 32 --epochs 20 --export-predictions-path T(ED2ALL)-E(ED2ALL)/ > T(ED2ALL)-E(ED2ALL).log

T(ALL2ALL)-E(ALL2ALL)

python main_ecg.py --data <your data path> --input-size 250 --finetune-dataset mimic_all_all_allfirst_all_2000_5A --architecture s4 --precision 32 --s4-n 8 --s4-h 512 --batch-size 32 --epochs 20 --export-predictions-path T(ALL2ALL)-E(ALL2ALL)/ > T(ALL2ALL)-E(ALL2ALL).log

2.0 Physionet direct download (to be done soon)

Results

You can find all the experimental results for each of the labels and scenarios under reports/ResultsMIMICIVECGICD.csv

Reference

bibtex @article{strodthoff2024prospects, title={Prospects for artificial intelligence-enhanced electrocardiogram as a unified screening tool for cardiac and non-cardiac conditions: an explorative study in emergency care}, author={Strodthoff, Nils and Lopez Alcaraz, Juan Miguel and Haverkamp, Wilhelm}, journal={European Heart Journal-Digital Health}, pages={ztae039}, year={2024}, publisher={Oxford University Press UK} }

Owner

  • Name: AI4HealthUOL
  • Login: AI4HealthUOL
  • Kind: organization
  • Location: Germany

Public repositories of the AI4Health Division at Oldenburg University

GitHub Events

Total
  • Issues event: 5
  • Watch event: 21
  • Issue comment event: 5
  • Push event: 1
  • Fork event: 6
Last Year
  • Issues event: 5
  • Watch event: 21
  • Issue comment event: 5
  • Push event: 1
  • Fork event: 6

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Qhan-Hu (2)
  • sehunfromdaegu (1)
Pull Request Authors
  • Qhan-Hu (1)
  • parthagrawal02 (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

src/extensions/cauchy/setup.py pypi