Artificial intelligence/South Africa; United States
An ECG algorithm for the disease of poverty, trained in one Cape Town hospital
Rheumatic heart disease needs echocardiography that affected regions lack. A Cape Town team trained an ECG model instead, reaching an AUC of 0.890 on its own test split.
A University of Cape Town and Mayo Clinic team built a deep learning model to detect severe rheumatic heart disease from standard 12-lead ECGs, using 920 patients with the disease and 2,199 controls from Groote Schuur Hospital. On a 10 percent internal test split it reached an area under the curve of 0.890 and accuracy of 83.8 percent, holding across valve involvement patterns and most subgroups.
What happened
Rheumatic heart disease is a disease of poverty in the most literal sense. An untreated streptococcal throat infection triggers rheumatic fever, which permanently scars the heart valves. A course of cheap antibiotics prevents it. In wealthy countries it has almost disappeared; it remains the most prevalent acquired cardiovascular disease among young adults in developing countries.
Catching it early matters, because early intervention changes the course. The diagnostic test is echocardiography – which requires a machine and an operator trained for years, and the regions with the disease have neither in sufficient quantity.
A team at the Division of Cardiology at Groote Schuur Hospital, University of Cape Town, with Mayo Clinic’s Department of Cardiovascular Medicine, asked whether the electrocardiogram could substitute. An ECG machine is cheap, ubiquitous and operable after brief training.
They identified 920 patients with severe rheumatic heart disease who had both an echocardiogram and a 12-lead ECG within 180 days of each other, plus 2,199 controls from the same medical centre. Data were split 80 percent derivation, 10 percent validation, 10 percent test, and a model built in Keras on TensorFlow.
On the test split: area under the curve 0.890, accuracy 83.8 percent.
The test
The physiological basis is sound. Damaged heart valves alter pressures and volumes in the cardiac chambers over years, and those changes show up in the electrical signal – atrial enlargement, conduction changes, chamber strain patterns. A model can learn combinations of those features that no human reader reliably interprets.
The 180-day window between echocardiogram and ECG is reasonable for a chronic structural condition that does not change week to week.
Robustness was examined across disease presentation, which is the right check. Mitral valve disease alone gave an AUC of 0.913; mixed mitral and aortic disease gave 0.858. The authors also report minor performance differences across patient sex, age and ECG characteristics.
Everything comes from one hospital. The test set is a 10 percent slice of the same cohort – same machines, same population, same clinical pathway.
The numbers
| Measure | Result |
|---|---|
| Test-set area under the curve | 0.890 (95% CI 0.848-0.940) |
| Test-set accuracy | 83.8% |
| Mitral valve disease alone | AUC 0.913 |
| Mixed mitral and aortic disease | AUC 0.858 |
| Cases / controls | 920 / 2,199, same medical centre |
| Data split | 80% derivation, 10% validation, 10% test |
| External validation | none |
| Code availability | programming code explicitly excluded from data requests |
With a 10 percent test split of 3,119 patients, the test set contains roughly 300 people – which is why the confidence interval runs from 0.848 to 0.940.
The result
The model discriminates severe rheumatic heart disease from ECGs well, within the population it was built on.
Two gaps separate that from the clinical purpose.
The first is validation. A 10 percent split of the same hospital’s data is internal validation, and prediction models routinely lose performance when they meet different equipment, different populations and different clinical pathways. Nothing here tests transfer, and rheumatic heart disease screening would happen in exactly the settings least like a Cape Town tertiary hospital.
The second gap is more fundamental and concerns who was studied. The model learned from patients with severe disease attending a specialist cardiology service. Screening aims at the opposite: young people with early, asymptomatic valve damage, found in schools and community clinics. The electrical signature of severe long-standing valve disease is presumably stronger and different from that of early damage. Performance on one does not establish performance on the other.
The 2,199 controls came from the same medical centre, so they are hospital patients rather than a community sample – which also inflates apparent discrimination, because hospital controls differ from healthy young people in ways a model can learn.
How this compares to what came before
Set against the other 2026 cardiac AI papers, this one has the strongest use case and the weakest validation.
A Yale model detecting transthyretin amyloid cardiomyopathy from photographed ECGs was validated across five multinational external cohorts and three screening cohorts, with a specificity stress test against disease mimics, reaching AUROCs from 0.76 to 0.91. A Mayo Clinic study of structural heart disease screening validated prospectively against comprehensive echocardiography performed within 30 minutes. A Massachusetts General analysis applied risk models derived entirely outside the trial they were tested in.
Against those, an 80/10/10 split of one hospital’s records is the weakest design in the group – which is reflected in this paper’s lower credibility score despite a higher headline AUC. High internal performance is easier to achieve than moderate external performance.
The comparison is not a criticism of the authors so much as a description of where the field’s resources are. A Brazilian community screening programme, PROVAR+, has operated since 2014 and supplied the data for a Yale-led triage study the same year; no equivalent dataset for rheumatic heart disease is described here.
What it means
The idea is right and the evidence is preliminary. If an ECG can flag rheumatic heart disease, the screening economics change completely: ECG machines cost a fraction of echocardiography, require far less operator training, and can be deployed in schools and clinics.
For that to happen, two studies are needed. An external validation on data from a different country and different equipment. And a study in the screening population – young people with early disease – rather than tertiary patients with severe disease.
Until then the appropriate reading is that an interesting model exists and its clinical performance is unknown.
The exclusion of programming code from data requests is worth noting. For a model intended to be deployed in resource-limited settings, the code is the thing those settings would need.
Business ideas from this paper
The gap between a promising model and a deployable screening tool is where the work is, and in this disease the work is unusually tractable.
Multi-country validation consortia are the first and most necessary. Rheumatic heart disease is concentrated in specific regions – sub-Saharan Africa, South Asia, Oceania, Indigenous populations in wealthy countries – and several have active echocardiographic screening programmes generating paired ECG data. Pooling that data for external validation is an organisational problem rather than a scientific one, and it is the step that would turn this model into evidence.
Second, early-disease model development. The screening target is mild and asymptomatic valve damage, and this model was trained on severe disease. A model trained on community-screened cases, where echocardiography has confirmed early disease, is a different and harder product – and the only one that serves the purpose. The datasets exist inside screening programmes.
Third, open deployment packages. For a tool aimed at resource-limited settings, the binding constraint is often not the algorithm but getting it running on local hardware with local ECG formats and no vendor support. An open, documented deployment package – model weights, format converters, offline operation, validation scripts – would be used by ministries of health rather than purchased from them, and funders of global health technology would support it.
What could be wrong with it
Validation is internal only. The test set is a 10 percent split of the same hospital’s cohort, so transfer to other populations, machines and countries is untested.
The model was trained on severe disease in tertiary patients, and the clinical purpose is detecting early disease in the community. These are different tasks.
Controls were drawn from the same medical centre and are therefore hospital patients, not healthy community members, which inflates apparent discrimination.
The test set contains roughly 300 patients, hence a confidence interval from 0.848 to 0.940.
Programming code is explicitly excluded from data and materials requests, which prevents independent implementation.
Severe disease requires the valve damage to be advanced, by which point the opportunity for cheap preventive intervention has largely passed.
How sure can you be?
Confident about the internal performance figures, since this is peer-reviewed work in European Heart Journal – Digital Health with a standard derivation, validation and test split.
Confident that the electrical signal carries information about advanced valve disease, which is physiologically expected and here demonstrated.
Not confident about performance anywhere other than this hospital, because no external validation exists.
Not confident about performance on early disease, which was not studied and is the intended use.
Do this today
If you run a rheumatic heart disease screening programme, your paired ECG and echocardiography data is the external validation set this model needs, and it is the most useful contribution anyone could make here.
If you are assessing an AI model for deployment, ask whether the test set came from a different institution. An 80/10/10 split of one centre’s data is the weakest validation in common use and produces the highest numbers.
If you develop models for resource-limited settings, publish the code. A model whose code is withheld cannot be deployed by the people it is for.
Source: Artificial intelligence-enhanced electrocardiogram for the detection of rheumatic heart disease, European Heart Journal - Digital Health, 2026. PMID 42077386 · doi.org ().
Just Out Tech explains new research in plain language. This article was drafted with AI assistance and checked by a human against the original source.
- Test-set AUC 0.890 (0.848-0.940), accuracy 83.8 percent.
- Robust across disease presentation: mitral valve alone AUC 0.913, mixed mitral and aortic 0.858.
- 920 cases and 2,199 controls, all from one Cape Town hospital, split 80/10/10 - no external validation.
- The model was trained on severe disease in tertiary patients, not the early asymptomatic cases screening would find.
The model is built and tested on one hospital's data with a standard split. Nothing has been deployed or validated prospectively or externally.
Questions people ask
What is rheumatic heart disease?
Permanent heart valve damage following untreated streptococcal throat infection and the rheumatic fever it can trigger. It is almost eliminated in wealthy countries and remains the most prevalent acquired cardiovascular disease among young adults in developing ones, because the initial infection goes untreated.
Why would an ECG detect valve damage?
Because damaged valves change the pressures and volumes in the heart's chambers over years, and those changes alter the electrical signal - enlarged atria, altered conduction, chamber strain patterns. A model can learn those patterns even when a human reader cannot reliably interpret them.
Why does internal-only validation matter so much?
Because the test set is a 10 percent slice of the same hospital's patients, recorded on the same machines, with the same local population. A model can perform well on that and poorly in another country or on different equipment, and nothing here tests it.
Why is the training population a problem?
The model learned from patients with severe disease attending a tertiary cardiology service. Screening aims to find young people with early, asymptomatic valve damage - a different signal, probably a subtler one. Performance on severe disease does not establish performance on early disease.