National Economics University logo Faculty of Data Science and Artificial Intelligence logo BAI Lab logo

Topic 11

ECG Analysis with MIT-BIH

Hard +1.5 Bonus Points
ECG Analysis with MIT-BIH

Topic 11 โ€“ ECG Analysis with MIT-BIH (WFDB)

Level: Hard Goal: Work with ECG waveforms (e.g., MIT-BIH Arrhythmia).

Library & Data

Installation

pip install wfdb

Data Loading

import wfdb
import pandas as pd
import numpy as np
record = wfdb.rdrecord("100", pn_dir="mitdb")
signal = record.p_signal[:, 0]  # first channel
fs = record.fs
times = pd.to_timedelta(np.arange(len(signal)) / fs, unit="s")
ecg_series = pd.Series(signal, index=times)

Implementation Steps

1. Library Setup and Data Access

2. Data Exploration

3. Data Preprocessing

4. Feature Extraction

5. Exploratory Data Analysis (EDA)

6. Stationarity Analysis

7. Model Building

8. Model Evaluation

9. Clinical Interpretation

Expected Deliverables

  1. EDA Report:
  1. Model Results:
  1. Code:

Tips

Starter Notebook

The starter notebook contains installation instructions and data loading code to help you get started with this topic.

๐Ÿ““ View Starter Notebook on GitHub

Note: You can view the notebook directly on GitHub or download it to run locally in Jupyter.

Getting Started

This topic includes:

Navigate to the Topic/11.ECG_MIT_BIH/ directory to access all resources.

โ† Back to All Topics