Skip to content

Smira555/PhysioNet-ECG-Digitization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PhysioNet-ECG-Digitization

Challenge : Extract the ECG time-series data from scans and photographs of paper printouts of the ECGs.

Dataset

Types of training images classes:

Original color ECG image generated by ECG-image-kit.

Image printed in color and scanned in color.

Image printed in color and scanned in black and white.

Mobile photos of color printed images.

Mobile photos of ECGs on the screen of laptop.

Mobile photos of stained and soaked printed ECGs.

Mobile photos of printed ECGs with extensive damage.

Scans of printed ECG images with mold in color.

Scans of printed ECG images with mold in black and white

What we built:

A four stage pipeline:

  1. Classification: We developed an image classifier (ResNet-18, fine-tuned on our own categorized ECG images) predicted what type of scan the image was according to the categories and routed it to the right preprocessing branch.

  2. Preprocessing: We had different preprocessing pipelines for each class of image with necessary screen content cropping, glare reduction, perspective distortion correction using contour detection, contrast enhancement via CLAHE and unsharp masking, and red gridline suppression.

  3. Lead detection: We trained a YOLOv7 model which detected bounding boxes for each of the 12 lead regions on the preprocessed image.

  4. Lead extraction: For each cropped lead region, we removed the ECG grid using morphological operations, then extracted the waveform using a proximity-based column walker that tracked the signal pixel-by-pixel and interpolated gaps.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors