record stringlengths 3 3 | subject stringlengths 3 3 | age int16 23 89 ⌀ | sex stringclasses 2
values | medications stringlengths 4 43 | notes stringlengths 21 384 ⌀ | paced bool 2
classes | dechazal_set stringclasses 2
values | sampling_rate int32 360 360 | n_samples int32 650k 650k | lead_names listlengths 2 2 | adc_gain listlengths 2 2 | adc_baseline listlengths 2 2 | adc_resolution listlengths 2 2 | signal listlengths 2 2 | n_beats int32 1.52k 3.36k | annotations listlengths 1.52k 3.4k | rhythms listlengths 1 207 | previous_annotations listlengths 0 2 | header stringlengths 121 535 | preview imagewidth (px) 800 800 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
100 | 100 | 69 | M | Aldomet, Inderal | null | false | DS2 | 360 | 650,000 | [
"MLII",
"V5"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[995,995,995,995,995,995,995,995,1000,997,995,994,992,993,992,989,988,987,990,993,989,988,986,988,9(...TRUNCATED) | 2,273 | [{"sample":18,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(N"},{"sample":77,"symbol":"N","(...TRUNCATED) | [
{
"rhythm": "N",
"start": 18,
"end": 650000
}
] | [] | "100 2 360 650000\n100.dat 212 200 11 1024 995 -22131 0 MLII\n100.dat 212 200 11 1024 1011 20052 0 V(...TRUNCATED) | |
101 | 101 | 75 | F | Diapres | null | false | DS1 | 360 | 650,000 | [
"MLII",
"V1"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[955,955,955,955,955,955,955,955,958,960,960,959,958,959,961,963,964,961,960,961,964,966,966,965,96(...TRUNCATED) | 1,865 | [{"sample":7,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(N"},{"sample":83,"symbol":"N","s(...TRUNCATED) | [
{
"rhythm": "N",
"start": 7,
"end": 650000
}
] | [] | "101 2 360 650000\n101.dat 212 200 11 1024 955 29832 0 MLII\n101.dat 212 200 11 1024 992 19589 0 V1\(...TRUNCATED) | |
102 | 102 | 84 | F | Digoxin | The rhythm is paced with a demand pacemaker. The PVCs are multiform. | true | null | 360 | 650,000 | [
"V5",
"V2"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[984,984,984,984,984,984,984,984,986,989,986,983,982,984,985,982,978,977,975,977,978,978,975,970,97(...TRUNCATED) | 2,187 | [{"sample":68,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(P"},{"sample":136,"symbol":"/",(...TRUNCATED) | [{"rhythm":"P","start":68,"end":29133},{"rhythm":"N","start":29133,"end":34216},{"rhythm":"P","start(...TRUNCATED) | [{"file":"102-0.atr","annotations":[{"sample":68,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note(...TRUNCATED) | "102 2 360 650000\n102.dat 212 200 11 1024 984 -28574 0 V5\n102.dat 212 200 11 1024 1025 13743 0 V2\(...TRUNCATED) | |
103 | 103 | null | M | Diapres, Xyloprim | null | false | DS2 | 360 | 650,000 | [
"MLII",
"V2"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[949,949,949,949,949,949,949,949,947,947,947,948,952,952,950,951,950,952,953,955,956,955,955,958,95(...TRUNCATED) | 2,084 | [{"sample":21,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(N"},{"sample":265,"symbol":"N",(...TRUNCATED) | [
{
"rhythm": "N",
"start": 21,
"end": 650000
}
] | [] | "103 2 360 650000\n103.dat 212 200 11 1024 949 11457 0 MLII\n103.dat 212 200 11 1024 1034 -31983 0 V(...TRUNCATED) | |
104 | 104 | 66 | F | Digoxin, Pronestyl | "The rate of paced rhythm is close to that of the underlying sinus rhythm, resulting in many pacemak(...TRUNCATED) | true | null | 360 | 650,000 | [
"V5",
"V2"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[994,994,994,994,994,994,994,994,995,997,1002,1008,1016,1024,1049,1121,1209,1221,1149,1074,1043,104(...TRUNCATED) | 2,229 | [{"sample":36,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(P"},{"sample":73,"symbol":"/","(...TRUNCATED) | [{"rhythm":"P","start":36,"end":22390},{"rhythm":"N","start":22390,"end":23249},{"rhythm":"P","start(...TRUNCATED) | [] | "104 2 360 650000\n104.dat 212 200 11 1024 994 -14371 0 V5\n104.dat 212 200 11 1024 1064 17572 0 V2\(...TRUNCATED) | |
105 | 105 | 73 | F | Digoxin, Nitropaste, Pronestyl | The PVCs are uniform. The predominant feature of this tape is high-grade noise and artifact. | false | DS2 | 360 | 650,000 | [
"MLII",
"V1"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[935,935,935,935,935,935,935,935,934,938,937,943,947,951,953,956,959,963,967,972,975,979,976,979,98(...TRUNCATED) | 2,572 | [{"sample":67,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(N"},{"sample":197,"symbol":"N",(...TRUNCATED) | [
{
"rhythm": "N",
"start": 67,
"end": 650000
}
] | [] | "105 2 360 650000\n105.dat 212 200 11 1024 935 -24679 0 MLII\n105.dat 212 200 11 1024 1076 -15565 0 (...TRUNCATED) | |
106 | 106 | 24 | F | Inderal | The PVCs are multiform. | false | DS1 | 360 | 650,000 | [
"MLII",
"V1"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[962,962,962,962,962,962,962,962,966,967,965,961,963,964,968,969,969,970,972,976,979,981,983,980,98(...TRUNCATED) | 2,027 | [{"sample":83,"symbol":"~","subtype":2,"chan":0,"num":0,"aux_note":""},{"sample":229,"symbol":"+","s(...TRUNCATED) | [{"rhythm":"N","start":229,"end":59861},{"rhythm":"B","start":59861,"end":61503},{"rhythm":"N","star(...TRUNCATED) | [] | "106 2 360 650000\n106.dat 212 200 11 1024 962 32452 0 MLII\n106.dat 212 200 11 1024 1063 6251 0 V1\(...TRUNCATED) | |
107 | 107 | 63 | M | Digoxin | Complete heart block is present. The PVCs are multiform. | true | null | 360 | 650,000 | [
"MLII",
"V1"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[615,615,615,615,615,606,596,583,570,556,543,531,515,508,513,537,580,636,696,739,781,814,837,856,86(...TRUNCATED) | 2,137 | [{"sample":47,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(P"},{"sample":95,"symbol":"/","(...TRUNCATED) | [
{
"rhythm": "P",
"start": 47,
"end": 650000
}
] | [] | "107 2 360 650000\n107.dat 212 200 11 1024 615 -15266 0 MLII\n107.dat 212 200 11 1024 775 -14885 0 V(...TRUNCATED) | |
108 | 108 | 87 | F | Digoxin, Quinaglute | "There is borderline first degree AV block and sinus arrhythmia. The PVCs are multiform. The lower(...TRUNCATED) | false | DS1 | 360 | 650,000 | [
"MLII",
"V1"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[999,999,999,999,999,999,999,999,997,999,999,1000,1005,1007,1003,990,979,973,968,965,956,945,942,94(...TRUNCATED) | 1,763 | [{"sample":23,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(N"},{"sample":88,"symbol":"N","(...TRUNCATED) | [
{
"rhythm": "N",
"start": 23,
"end": 650000
}
] | [{"file":"108.at_","annotations":[{"sample":23,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":(...TRUNCATED) | "108 2 360 650000\n108.dat 212 200 11 1024 999 -24080 0 MLII\n108.dat 212 200 11 1024 868 -28914 0 V(...TRUNCATED) | |
109 | 109 | 64 | M | Quinidine | There is first degree AV block. The PVCs are multiform. | false | DS1 | 360 | 650,000 | [
"MLII",
"V1"
] | [
200,
200
] | [
1024,
1024
] | [
11,
11
] | [[1059,1059,1059,1059,1059,1059,1059,1059,1059,1060,1061,1066,1070,1068,1063,1056,1043,1036,1041,105(...TRUNCATED) | 2,532 | [{"sample":18,"symbol":"+","subtype":0,"chan":0,"num":0,"aux_note":"(N"},{"sample":111,"symbol":"L",(...TRUNCATED) | [
{
"rhythm": "N",
"start": 18,
"end": 650000
}
] | [] | "109 2 360 650000\n109.dat 212 200 11 1024 1059 24085 0 MLII\n109.dat 212 200 11 1024 1151 27089 0 V(...TRUNCATED) |
MIT-BIH Arrhythmia Database
Unofficial mirror of the PhysioNet MIT-BIH Arrhythmia Database v1.0.0: 48 half-hour two-lead ambulatory ECGs from 47 subjects at 360 Hz, with cardiologist-reviewed beat and rhythm labels, in a viewer-ready Parquet layout with exact samples, plus a per-beat table with AAMI classes and the de Chazal inter-patient split.
Disclaimer
This repository is not an official release of the MIT-BIH Arrhythmia Database.
The MIT-BIH Arrhythmia Database was created by George B. Moody and Roger G. Mark with colleagues at MIT and Beth Israel Hospital (now Beth Israel Deaconess Medical Center), Boston, and is published by PhysioNet. This repository does not claim ownership of the data. If you are an author or rights holder and want this repository changed or removed, please open a discussion and it will be addressed promptly.
These are recordings from real patients, made between 1975 and 1979. Do not attempt to identify anyone in them. This dataset is for research and is not a medical device or a basis for clinical decisions.
Source and verification: built from the official PhysioNet package mitdb-1.0.0.zip. Every file matched the published SHA256SUMS.txt. Signals were decoded by a separate format-212 decoder and by wfdb. The two agree exactly and match each header's checksums and initial values. Every annotation file was read by a separate WFDB annotation parser and by wfdb.rdann, with the same result. For every record, the count of every beat type and the duration of every rhythm were checked against the tables in the official database directory (mitdbdir/tables.htm, see the note on record 203). Every row was read back from Parquet and compared with the source.
Dataset Overview
The MIT-BIH Arrhythmia Database was the first generally available set of standard test material for arrhythmia detectors, first distributed in 1980. Its 48 records are excerpts from about 4,000 24-hour Holter recordings made at Beth Israel Hospital between 1975 and 1979. 23 were chosen at random (records 100 to 124), and 25 were chosen to include less common but clinically important arrhythmias (records 200 to 234). Two cardiologists independently reviewed every beat, and their disagreements were resolved by consensus.
- 48 records of 30 min 6 s, two leads, 360 Hz, 11-bit over a 10 mV range
- 47 subjects (25 men aged 32 to 89, 22 women aged 23 to 89). Records 201 and 202 come from the same man
- 109,494 beat labels, plus rhythm, signal-quality and comment annotations
- Lead 0 is modified limb lead II (MLII) in 45 records. The other lead is V1, V2, V4 or V5
Changes from the Official Release
- Packed into Parquet so the Dataset Viewer and
datasetswork directly: one row per record, and abeatsconfig with one row per beat. - Added derived columns, all documented below: age, sex, medications and notes parsed from the header; rhythm intervals; the AAMI class of each beat; RR intervals; the de Chazal et al. (2004) inter-patient set; and
preview, a plot of 10 s with the beat labels. - The superseded annotation files that PhysioNet keeps (
102-0.atr, eight*.at_files and203.at-) are parsed intoprevious_annotations. Useannotations, the current.atr. - The official package is included unchanged at
original/mitdb-1.0.0.zip, including the database directory (mitdbdir/), the WAVE settings files andx_mitdb/(see notes). - No samples or annotations were changed, added or removed.
Dataset Structure
Both configs have one train split. The authors define no split. For a subject-independent evaluation, keep records 201 and 202 on the same side, or use the dechazal_set column (see notes).
default: one row per record (48 rows)
| Column | Content |
|---|---|
record, subject |
100 to 234. subject is the record name, except record 202, which belongs to subject 201 |
age, sex, medications, notes |
from the header comments. age is null where the header gives -1 (records 103 and 219) |
paced, dechazal_set |
whether the record is one of the four paced records, and its de Chazal set (DS1, DS2, or null for paced records) |
sampling_rate, n_samples |
360 Hz, 650,000 samples |
lead_names |
e.g. ["MLII", "V1"]. The order varies (record 114 has V5 first), so look leads up by name |
signal |
WFDB samples, int16, shape (2, 650000) |
adc_gain, adc_baseline, adc_resolution |
per lead. Physical value in mV = (signal - adc_baseline) / adc_gain |
n_beats |
number of beat labels |
annotations |
the reference annotation file .atr, parsed: sample, symbol, subtype, chan, num, aux_note |
rhythms |
derived: each rhythm label from its + annotation to the next one or the end of the record (start, end in samples) |
previous_annotations |
the superseded annotation files of this record, parsed the same way (empty for most records) |
header |
the .hea file verbatim |
preview |
PNG of 10 s of both leads, with beat labels coloured by AAMI class |
beats: one row per beat (109,494 rows)
| Column | Content |
|---|---|
record, subject, beat_index |
the record, its subject, and the beat's position among the record's beats |
sample, symbol |
position (0-based sample index) and the label as in .atr (N, L, R, A, V, /, ...) |
aami_class |
derived AAMI EC57 class: N, S, V, F or Q (mapping below) |
rhythm |
the rhythm in force at this beat, from the last rhythm annotation (N, AFIB, B, VT, ...) |
rr_prev, rr_next |
samples to the previous and next beat. Null at the ends of a record |
paced_record, dechazal_set |
as in default |
lead_names, window |
the record's leads, and int16 samples of both leads, shape (2, 360), from sample - 180 to sample + 179. Null for the 56 beats within 0.5 s of either end |
AAMI mapping (derived): N = N L R e j, S = A a J S, V = V E, F = F, Q = / f Q. This is the mapping of de Chazal et al. (2004) and most later work. Every beat label in this database falls in one of these classes: N 90,631, S 2,781, V 7,236, F 803, Q 8,043. Non-beat annotations such as + (rhythm change), ~ (signal quality), | (isolated artifact), x (non-conducted P wave) and ! (ventricular flutter wave) are not rows in beats, but they are all in annotations.
Read before using the labels
- Use
annotations, the current.atr. PhysioNet keeps earlier versions of ten annotation files, and they are inprevious_annotations. The revisions are small: record 117 has 1,391 beats moved by a few samples (labels unchanged), 119 has 35 beats moved, and 222 has revised atrial flutter and fibrillation labels. 108 and 215 have relabelled beats, 209 and 214 each gained one beat, and 203 has one rhythm label changed and a few other small edits. In 102, one beat was moved by 34 samples in 2018 (102-0.atris the earlier version). - The official directory tables count record 203 with its earlier labels. The current
203.atrlabels the stretch from sample 38,291 as atrial fibrillation, where203.at_and the tables have normal rhythm (2 min 43 s). Every other record matches the tables with its current.atr: all beat counts exactly and all rhythm durations within the tables' 1 s rounding. - Four records are paced (102, 104, 107, 217). AAMI EC57 and de Chazal et al. leave them out, so
dechazal_setis null for them. Their paced (/) and fusion-of-paced (f) beats make up nearly all of AAMI class Q. - The de Chazal split has one subject on both sides. Records 201 (DS1) and 202 (DS2) come from the same man. The split is kept as published because most results use it. If that matters for your evaluation, move one of the two records.
- Class balance by de Chazal set (beats in non-paced records): DS1 has N 45,866, S 944, V 3,788, F 415, Q 8; DS2 has N 44,259, S 1,837, V 3,221, F 388, Q 7.
- The records aren't a random sample. Records 200 to 234 were chosen for uncommon arrhythmias, so pooled results don't estimate how common an arrhythmia is in patients.
- Evaluation periods. AAMI EC57 evaluations usually skip each record's first 5 minutes. Nothing is cut here.
- Lead order and timing. Look leads up by name, since record 114 has V5 first. The PhysioNet notes warn of tape artifacts that can affect heart-rate variability analysis, and of timing skew between the two leads.
- Non-beat labels stay in
annotations. Record 207 has 472 ventricular flutter wave marks (!) during its flutter episode, and there are 193 non-conducted P waves (x), 616 signal-quality changes (~) and 437 comments ("). x_mitdb/holds the 10-minute excerpts of 23 records that PhysioNet published before the full records were freely available in 2005. The build checked that their samples are the first 10 minutes of the full records. Their annotations match the current.atr, except for the revisions in 108 and one annotation in 222. They're only in the zip.- Age is unknown for records 103 and 219 (header -1).
Usage
# pip install datasets pillow numpy
import numpy as np
from datasets import load_dataset
recs = load_dataset("dronefreak/MIT-BIH-Arrhythmia", split="train")
r = recs[0]
sig = np.asarray(r["signal"], dtype=np.int16)
mv = (sig - np.asarray(r["adc_baseline"])[:, None]) / np.asarray(r["adc_gain"])[:, None]
mlii = mv[r["lead_names"].index("MLII")]
# heartbeat classification with the de Chazal inter-patient split
beats = load_dataset("dronefreak/MIT-BIH-Arrhythmia", "beats", split="train")
beats = beats.filter(lambda b: b["aami_class"] is not None and b["window"] is not None and not b["paced_record"])
train = beats.filter(lambda b: b["dechazal_set"] == "DS1")
test = beats.filter(lambda b: b["dechazal_set"] == "DS2")
x = np.asarray(train[0]["window"], dtype=np.int16) # (2, 360), centred on the beat
Dataset Sources
Citation
Please cite the database papers, the dataset and PhysioNet. If you use aami_class or dechazal_set, also cite de Chazal et al.
@article{moody2001impact,
author = {Moody, George B. and Mark, Roger G.},
title = {The impact of the {MIT-BIH} Arrhythmia Database},
journal = {IEEE Engineering in Medicine and Biology Magazine},
volume = {20},
number = {3},
pages = {45--50},
year = {2001},
doi = {10.1109/51.932724}
}
@misc{PhysioNet-mitdb-1.0.0,
author = {Moody, George B. and Mark, Roger G.},
title = {{MIT-BIH Arrhythmia Database}},
year = {2005},
note = {Version 1.0.0},
doi = {10.13026/C2F305},
url = {https://doi.org/10.13026/C2F305},
publisher = {PhysioNet}
}
@article{dechazal2004automatic,
author = {de Chazal, Philip and O'Dwyer, Maria and Reilly, Richard B.},
title = {Automatic classification of heartbeats using {ECG} morphology and heartbeat interval features},
journal = {IEEE Transactions on Biomedical Engineering},
volume = {51},
number = {7},
pages = {1196--1206},
year = {2004},
doi = {10.1109/TBME.2004.827359}
}
Pollard, T., Moody, B. E., Lehman, L., Gow, B., Fernandes, C., Xie, C., Johnson, A., Mark, R. G., & Heldt, T. (2026). PhysioNet as a global platform for biomedical research. Nature Health. https://doi.org/10.1038/s44360-026-00096-z
License
The MIT-BIH Arrhythmia Database is made available under the Open Data Commons Attribution License v1.0 (ODC-By): https://physionet.org/content/mitdb/view-license/1.0.0/. This repository contains information from the MIT-BIH Arrhythmia Database, published on PhysioNet. If you publicly use or redistribute this data or a work produced from it, keep this attribution and the license notice.
- Downloads last month
- 155