Skip to content

aledelmo/ECG_Lead_Reversal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECG Lead Reversal

intro

The ECG is a time series that measures the electrical activity of the heart. This is the main tool to diagnose heart diseases.

Recording an ECG is simple: 3 electrodes are placed at the ends of limbs, and 6 on the anterior chest.This generates 12 time series, called leads, each corresponding to a difference in potential between a pair of electrodes. The electrodes' position is very important to correctly interpret the ECG. Making the mistake of inverting electrodes compromises interpretation, either because the leads do not explore the expected area (errors in the measures of hypertrophia indices, in the analysis of the ST segment), or because they generate false abnormalities (fake Q waves, error in the heart's axis...).

Inversion errors are frequent (5% of ECGs), and only experts (cardiologists) manage to detect them. But most ECGs are not interpreted by experts: only 30% are, the rest being interpreted by nurses or general practitioners. An algorithm for automatic detection of electrode inversion is therefore paramount to the correct interpretation of ECGs and would improve the quality of diagnosis.

This project uses convolutional neural networks to automatically detect electrode inversion in an ECG with an accuracy >96%. Results were tested on more than 2500 ECG records.

Usage

Dockerfile is provided for training

$ docker build -f Dockerfile --rm --tag ecg_reversal .
$ docker run -u $(id -u) --gpus all -it -v /home/imag2/External_Projects/ECG_Lead_Reversal:/tf -p 8888:8888 -p 6006:6006 --rm --name lr ecg_reversal:latest

System Requirements

TensorFlow 2.8

Docker CE 20.10.3 with NVIDIA Container Toolkit for GPU acceleration

Tested with RTX3090 and Intel i9-10900k

Contacts

For any inquiries please contact: Alessandro Delmonte @ alessandro.delmonte@institutimagine.org

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

About

MLP for electrode inversion detection in 12-leads ECG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published