Back

Accurate overall, uneven by patient: a benchmark and demographic audit of deep learning for 12 lead ECG classification on PTB-XL

Rehman, A. D.; Nazir, S.

2026-07-13 health informatics
10.64898/2026.07.09.26357670 medRxiv
Show abstract

Deep learning reads 12 lead electrocardiograms at close to expert level on public benchmarks, yet most reports give one accuracy figure for the whole test set and stop there. We trained three architectures that are standard in this field, a 1D ResNet, a convolutional network with a bidirectional LSTM, and a convolutional network with a bidirectional LSTM followed by a transformer encoder, on the PTB-XL dataset to classify the five diagnostic superclasses, and then looked at how each one performed across sex and age. On the held out fold all three reached a macro AUC near 0.92, in line with the strongest published results on this benchmark, and the simplest model, the 1D ResNet, was marginally the best at 0.9241. The averages hid a steady pattern. Every model scored lower for female patients than for male patients, and every model scored lowest for patients aged 80 and over, where the 1D ResNet fell to 0.8878 and the transformer to 0.8693. Adding complexity did not close either gap and slightly widened the gap by age. Overall accuracy on PTB-XL is close to solved for these model families, but the benefit is not shared evenly, and a single headline number hides the patients a model serves worst. We release the full stratified evaluation to support fairness aware reporting.

Matching journals

The top 7 journals account for 50% of the predicted probability mass.

1
Journal of the American Medical Informatics Association
71 papers in training set
Top 0.3%
11.7%
2
European Heart Journal - Digital Health
18 papers in training set
Top 0.1%
9.5%
3
PLOS Digital Health
106 papers in training set
Top 0.7%
7.8%
4
Scientific Reports
3612 papers in training set
Top 8%
7.8%
5
PLOS ONE
5266 papers in training set
Top 27%
6.2%
6
npj Digital Medicine
118 papers in training set
Top 0.9%
6.2%
7
Patterns
78 papers in training set
Top 0.2%
5.1%
50% of probability mass above
8
JAMIA Open
42 papers in training set
Top 0.5%
4.0%
9
BMC Medical Informatics and Decision Making
43 papers in training set
Top 0.7%
2.7%
10
Physiological Measurement
14 papers in training set
Top 0.2%
2.6%
11
Nature Machine Intelligence
70 papers in training set
Top 1%
2.6%
12
Nature Medicine
125 papers in training set
Top 1%
2.4%
13
Nature Communications
5641 papers in training set
Top 40%
2.4%
14
Computer Methods and Programs in Biomedicine
28 papers in training set
Top 0.4%
2.1%
15
International Journal of Medical Informatics
26 papers in training set
Top 0.9%
1.3%
16
Frontiers in Neuroscience
256 papers in training set
Top 5%
1.0%
17
Informatics in Medicine Unlocked
22 papers in training set
Top 1%
1.0%
18
iScience
1154 papers in training set
Top 31%
1.0%
19
Biology Methods and Protocols
61 papers in training set
Top 2%
1.0%
20
PLOS Computational Biology
1863 papers in training set
Top 19%
1.0%
21
Artificial Intelligence in Medicine
17 papers in training set
Top 0.6%
0.9%
22
Journal of Biomedical Informatics
47 papers in training set
Top 1%
0.8%
23
BMC Medical Research Methodology
47 papers in training set
Top 1%
0.8%
24
Computers in Biology and Medicine
128 papers in training set
Top 5%
0.8%
25
Frontiers in Artificial Intelligence
20 papers in training set
Top 0.8%
0.8%