Skip to content

LooDaHu/ecg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECG Label System

ECG Label System is a visualization and label-creating software for the ECG dataset. It is writen in HTML5 and JavaScript

This project is powered by:

Motivation

Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs. It infers a function from labeled training data consisting of a set of training examples. In supervised learning, each example is a pair consisting of an input object (typically a vector) and a desired output value (also called the supervisory signal).

This software is aiming to help the related specialists to use their knowledge to create labeled training data that can be used in supervised learning.

Data Format ?

Both ECG data and label data are the CSV file.

ECG data

ECG data come from MIT-BIH database. A data file contains 650K sampling points. This is the format of ECG_data.csv:

-29
-29
-29
.
.
.
-135
-153
-256

A data file has one column and 650K rows. And sampling points are arranged from top to bottom in the order of time. For the example of ECG data, Check here.

Label data

There are three column in label data file, start_index, end_index, type. This is the format of Label_data.csv:

start_index,end_index,type
1515,1525,Q
1388,1465,R
1588,1631,S
1229,1244,Q

For the example of Label data, Check here.

How to Use ?

This is a simple video to introduce how to use.
Intro to ECG Label Sys

Use it on Github

Click Me !

I don't want those labels, No worry !

It's possible for you to change the Label. Just need you to modify labelSet variable in ecg,js

{
  "Q": "#FF00F0",
  "R": "#00F0FF",
  "S": "#F0FF00",
  "P": "#FF7F24",
  "T": "#ADFF2F"
}

The key is the names of labels and values are color in 256-color format. Just change those values and you can get the labels you want. Note:

  1. Empty label is no recommended.
  2. #808080 is not recommended as a label color due to the conflict with the brush tool.
  3. Once the label setting has changed, old label data files can not be used in the new system.

Special Thanks

Thanks for Dr.Toby Hocking's help and advice to make this project completed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published