Dataset Viewer
Auto-converted to Parquet Duplicate
record
stringclasses
23 values
window
int32
0
1.23k
start_sample
int32
0
9.2M
start_s
float64
0
36.8k
n_samples
int32
3.26k
7.5k
sampling_rate
int32
250
250
signal
listlengths
2
2
lead_names
listlengths
2
2
rhythm
stringclasses
4 values
rhythm_segments
listlengths
1
4
afib_fraction
float64
0
1
qrs
listlengths
0
82
qrsc
listlengths
0
57
⌀
in_unreadable_block
bool
2 classes
04015
0
0
0
7,500
250
[ [ -55, -59, -62, -63, -60, -64, -60, -60, -58, -56, -59, -58, -61, -63, -64, -59, -59, -61, -55, -50, -46, -38, -35, -33, -34, -28, -29, -24, -24, -22, -23, -18, -20, -26, -32,...
[ "ECG1", "ECG2" ]
null
[ { "rhythm": "N", "start": 30, "end": 7500 } ]
0
[ 61, 200, 358, 584, 729, 873, 1112, 1260, 1409, 1643, 1855, 2072, 2274, 2481, 2687, 2824, 2959, 3090, 3184, 3309, 3426, 3646, 3870, 4004, 4150, 4399, 4538, 4691, 4925, 5142, 5363, 5578, 5783, 5992, 6133, 6272, 6395, 6489, 6609, 6713, 680...
null
false
04015
1
7,500
30
7,500
250
[ [ 136, 67, -88, -236, -315, -336, -314, -276, -220, -173, -142, -120, -113, -103, -99, -97, -98, -98, -98, -100, -103, -100, -102, -103, -100, -99, -102, -104, -102, -104, -111, -116, ...
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 7500, "end": 15000 } ]
0
[ 7506, 7615, 7698, 7786, 7908, 8057, 8157, 8298, 8545, 8766, 8979, 9111, 9398, 9544, 9823, 9967, 10099, 10332, 10477, 10657, 10891, 11036, 11184, 11415, 11643, 11845, 12054, 12262, 12478, 12678, 12886, 13090, 13294, 13501, 13707, 13914, 14118, ...
null
false
04015
2
15,000
60
7,500
250
[ [ -39, -44, -49, -50, -63, -60, -63, -70, -76, -80, -84, -86, -91, -90, -89, -87, -83, -66, -56, -47, -41, -31, -28, -14, -4, 10, 12, 21, 25, 38, 40, 44, 44, 47, 44, 46, ...
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 15000, "end": 22500 } ]
0
[ 15148, 15287, 15416, 15547, 15667, 15779, 15912, 16056, 16164, 16290, 16534, 16675, 16867, 17104, 17238, 17404, 17644, 17779, 17917, 18147, 18284, 18422, 18541, 18648, 18837, 19082, 19220, 19415, 19652, 19787, 19977, 20216, 20352, 20505, 20747, 2...
null
false
04015
3
22,500
90
7,500
250
[[-45,-44,-44,-36,-36,-27,-14,-12,-11,-12,-3,10,20,21,18,14,7,8,6,12,19,22,27,15,7,9,13,19,15,8,13,1(...TRUNCATED)
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 22500, "end": 30000 } ]
0
[22654,22873,23090,23307,23519,23653,23790,23912,24014,24129,24270,24386,24475,24614,24722,24816,249(...TRUNCATED)
null
false
04015
4
30,000
120
7,500
250
[[-57,-49,-54,-50,-46,-43,-43,-45,-52,-45,-46,-50,-47,-49,-52,-60,-63,-78,-88,-93,-93,-92,-85,-74,-7(...TRUNCATED)
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 30000, "end": 37500 } ]
0
[30039,30172,30316,30551,30689,30854,31087,31223,31391,31624,31832,31964,32123,32354,32492,32625,329(...TRUNCATED)
null
false
04015
5
37,500
150
7,500
250
[[-40,-43,-47,-48,-53,-48,-49,-49,-47,-43,-41,-41,-42,-52,-67,-75,-76,-71,-75,-65,-67,-77,-83,-81,-8(...TRUNCATED)
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 37500, "end": 45000 } ]
0
[37553,37657,37755,37891,38095,38319,38462,38604,38719,38807,38932,39084,39207,39328,39623,39855,399(...TRUNCATED)
null
false
04015
6
45,000
180
7,500
250
[[0,-185,-312,-360,-341,-267,-189,-133,-102,-91,-77,-70,-69,-64,-58,-80,-94,-89,-76,-64,-59,-45,-32,(...TRUNCATED)
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 45000, "end": 52500 } ]
0
[45004,45105,45203,45310,45409,45511,45607,45687,45809,45929,46054,46176,46297,46417,46538,46659,467(...TRUNCATED)
null
false
04015
7
52,500
210
7,500
250
[[-119,-131,-133,-140,-142,-127,-120,-127,-140,-148,-158,-170,-166,-164,-177,-183,-182,-183,-193,-20(...TRUNCATED)
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 52500, "end": 60000 } ]
0
[52672,52874,53078,53271,53480,53683,53886,54078,54289,54482,54692,54895,55095,55288,55500,55692,558(...TRUNCATED)
null
false
04015
8
60,000
240
7,500
250
[[-112,-108,-106,-101,-101,-93,-93,-96,-88,-89,-99,-100,-104,-102,-104,-102,-105,-110,-100,-94,-100,(...TRUNCATED)
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 60000, "end": 67500 } ]
0
[60098,60339,60470,60615,60739,61013,61239,61369,61514,61778,61906,62116,62253,62413,62648,62780,629(...TRUNCATED)
null
false
04015
9
67,500
270
7,500
250
[[139,112,83,79,94,124,141,155,122,66,46,49,60,79,86,68,73,91,102,98,98,97,105,102,116,130,134,128,1(...TRUNCATED)
[ "ECG1", "ECG2" ]
N
[ { "rhythm": "N", "start": 67500, "end": 75000 } ]
0
[67576,67713,67875,68106,68237,68430,68563,68754,68890,69098,69233,69448,69580,69784,69928,70074,702(...TRUNCATED)
null
false
End of preview. Expand in Data Studio

MIT-BIH Atrial Fibrillation Database

Task Dataset Format Records Hours License

Unofficial mirror of the PhysioNet MIT-BIH Atrial Fibrillation Database v1.0.0: 25 ten-hour ambulatory ECG recordings of people with atrial fibrillation (mostly paroxysmal), with manual rhythm annotations and automatic beat annotations, in a viewer-ready Parquet layout with exact samples.

Disclaimer

This repository is not an official release of the MIT-BIH Atrial Fibrillation Database.

The database was created by George Moody and Roger Mark (Massachusetts Institute of Technology), from recordings made at Boston's Beth Israel Hospital (now the Beth Israel Deaconess Medical Center), 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 people. 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 afdb-1.0.0.zip. Every file in it matched the published SHA256SUMS.txt. My format-212 decoder returns the same samples as wfdb and every header checksum and initial value; my annotation parser returns the same annotations as wfdb.rdann for every annotation file, current and superseded. The zero-filled blocks are in exactly the records notes.txt names. Every row was read back from Parquet and compared with the source.


Dataset Overview

23 records have two ECG signals, sampled at 250 Hz with 12-bit resolution over ±10 mV, from ambulatory recorders with a bandwidth of about 0.1 to 40 Hz. Records 00735 and 03665 have annotations only. The analog tapes are from 1983; until November 2000 only record 04936 had its signals available.

File Content
.atr manual rhythm annotations: (AFIB atrial fibrillation, (AFL atrial flutter, (J AV junctional rhythm, (N all other rhythms
.qrs beat annotations from an automatic detector, not corrected; every beat is labelled N
.qrsc manually corrected beat annotations, for 05091 and 07859 only

Changes from the Official Release

  • Packed into Parquet so the Dataset Viewer and datasets work directly. The default config has one row per 30 s window and the records config one row per record.
  • The signals are the stored 12-bit ADC values as int16. The windows of a record concatenate to the exact signal.
  • Each window has the rhythm segments inside it, its single rhythm when one covers the whole window, the fraction of AF, and the .qrs and .qrsc beats in it.
  • The superseded files (old/*.atr, *.atr-, *.hea-, 07859.qrs-, 04936.xws) are parsed into records.previous_files.
  • The official zip is included unchanged in original/.
  • No samples or annotations were changed.

Dataset Structure

default: one row per 30 s window (28,126 rows)

Column Content
record, window, start_sample, start_s, n_samples position in the record; the last window of a record may be shorter
signal, lead_names 2 x n_samples ADC values (ECG1, ECG2)
rhythm the rhythm (AFIB, AFL, J, N) if one covers the whole window, otherwise null
rhythm_segments each rhythm in the window with its start and end sample (absolute)
afib_fraction share of the window in AFIB
qrs, qrsc beat positions (absolute samples) from .qrs, and from .qrsc where it exists
in_unreadable_block true if the window overlaps a zero-filled block

records: one row per record (25 rows)

The header verbatim and parsed, the note from notes.txt, the rhythm annotations and intervals with hours per rhythm, all .qrs/.qrsc beats, the zero-filled blocks, the superseded files, and a preview (rhythm timeline and 10 s of both leads at the first AF onset).

Read before using the data

  • Uncalibrated gain. The headers give an ADC gain of 0, which means uncalibrated; WFDB software then assumes 200 adu/mV. The PhysioNet page gives 12-bit resolution over ±10 mV. The signals here are the raw ADC values.
  • The beat annotations are unaudited and label every beat N. Use .qrsc (05091, 07859) for corrected beats. The .qrs and .qrsc beats end at 10 h, while most signals run to 9,205,760 samples (10 h 13 min 43 s).
  • Zero-filled blocks. Unreadable tape blocks were replaced with 10.24 s of zeros: one in 04043, one in 08405 and three in 08434, 2,560 samples each, as notes.txt says. Counting 2,560-sample blocks from 0, they start at blocks 35, 1063, 644, 853 and 890, each exactly 4 lower than the block numbers in notes.txt (39, 1067, 648, 857, 894). Exclude windows with in_unreadable_block.
  • 07859. In 2014 the .qrs annotations were found not to be aligned with the signal (2,569 samples appeared to be missing from the start). The original is 07859.qrs-; 07859.qrs is a realigned version without its first 14 annotations, and 07859.qrsc was reviewed by hand. 07859.qrs- (60,285 beats) is kept in records.previous_files.
  • Revised rhythm labels. old/*.atr holds the original labels (AF, AFL, J, N). The current .atr files rename them to the MIT-BIH Arrhythmia style; for 23 records the marks are at the same samples. 08378's current file has 17 marks and adds an atrial flutter episode; old/08378.atr and 08378.atr- have 15. 05121.atr- is an older version with 25 marks (the current file and old/05121.atr have 42).
  • Short and unlabelled parts. 06453 ends after 9 h 15 min. The first rhythm label comes after the start in some records, so a few windows have no rhythm (rhythm_segments empty or starting later). 08378, 08405 and 08455 have no start time.
  • Rhythm totals. Across all 25 records the rhythm labels cover 95.1 h of AFIB, 1.6 h of AFL, 5.2 h of J and 152.3 h of N (for 00735 and 03665, which have no signals, the last label is counted up to the last beat annotation).
  • Few subjects. 25 recordings; keep each record on one side of a split.

Usage

# pip install datasets numpy
import numpy as np
from datasets import load_dataset

ds = load_dataset("dronefreak/MIT-BIH-Atrial-Fibrillation", split="train")
ds = ds.filter(lambda r: r["rhythm"] is not None and not r["in_unreadable_block"])
row = ds[0]
x = np.asarray(row["signal"], dtype=np.int16)        # 2 x 7500 ADC values
print(row["record"], row["start_s"], row["rhythm"], x.shape, len(row["qrs"]))

af = ds.filter(lambda r: r["rhythm"] == "AFIB")

Dataset Sources

Citation

Please cite the original publication and PhysioNet:

@inproceedings{moody1983afib,
  author    = {Moody, George B. and Mark, Roger G.},
  title     = {A new method for detecting atrial fibrillation using {R-R} intervals},
  booktitle = {Computers in Cardiology},
  volume    = {10},
  pages     = {227--230},
  year      = {1983}
}

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 Atrial Fibrillation Database is made available under the Open Data Commons Attribution License v1.0 (ODC-By): https://physionet.org/content/afdb/view-license/1.0.0/. This repository contains information from that 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
56