Skip to content

Anomaly detection in electrocardiograms leveraging autoencoder reconstruction error discrepancies

Notifications You must be signed in to change notification settings

pramodiperera/Autoencoders_in_ECG_anomaly_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Anomaly Detection in Electrocardiograms using Autoencoders

The use of autoencoder architectures in anomaly detection.

Overview

This project aims to detect anomalies in Electrocardiograms (ECGs) using autoencoders. The autoencoder model has been trained on normal ECG data and leverages reconstruction error to identify anomalies. When the model attempts to reconstruct anomalous data, the reconstruction error tends to be higher compared to normal data. This discrepancy in error serves as a distinguishing factor, allowing the model to identify and flag anomalies in the ECG signals.

Autoencoder Network Architechture

RAG Image credit to 'Lilian Weng'

How it Works

Data Preparation

  • The ECG data is preprocessed and normalized before being fed into the autoencoder model.

Model Training

  • The autoencoder model is trained on a dataset consisting of normal ECG samples.
  • During training, the model learns to reconstruct normal ECG patterns with minimal error.

Anomaly Detection

  • Once the model is trained, it is used to reconstruct both normal and anomalous ECG samples.
  • The reconstruction error, which measures the difference between the original ECG and its reconstruction by the autoencoder, is calculated for each sample.
  • Anomalies are detected based on a threshold set on the reconstruction error.
  • ECG samples with reconstruction errors exceeding the threshold are flagged as anomalies.

About

Anomaly detection in electrocardiograms leveraging autoencoder reconstruction error discrepancies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published