When 72-year-old Margaret Reyes went to the hospital for a routine checkup, doctors ran a standard heart test called an electrocardiogram, or ECG. Within minutes, a computer program flagged something concerning — her heart was not pumping as strongly as it should. She had no obvious symptoms. Without that early warning, she might never have known until things got much worse. This scenario could become common, thanks to new artificial intelligence developed by researchers at Wake Forest University in Winston-Salem, North Carolina. The AI can spot heart failure and heart pumping problems just by reading a regular ECG — the same test doctors have used for decades. Ibrahim Karabayir, a researcher who led the study, said the technology could bring affordable heart screening to places that desperately need it. "ECG-AI can accurately detect LV dysfunction and HFpEF even from single-lead ECG, enabling potential low-cost screening," he and his team wrote in their paper, published in the Journal of the American Heart Association. The researchers trained their AI on nearly 1.08 million ECG readings from 165,243 patients, then tested it on thousands more. The results were striking. The AI identified reduced heart pumping function with an accuracy score of 0.92 — meaning it was right more than nine times out of ten. Even when using just a single lead of the ECG, which requires only three sticky patches on the chest, the accuracy stayed impressively high at 0.90. That matters because single-lead ECGs are simpler and cheaper to perform. The AI also detected a tricky form of heart failure called HFpEF, where the heart pumps normally but struggles to fill properly. This condition is notoriously hard to catch and is especially common in older women. Perhaps most surprising, the same AI worked on children. When tested on 72,832 pediatric ECGs from 42,880 young patients, the system achieved a near-perfect score of 0.97 for spotting reduced heart function. Heart failure affects more than 64 million people worldwide, and early detection dramatically improves outcomes. Yet many people do not know they have a problem until they end up in the emergency room. By turning a decades-old test into a powerful screening tool, this AI could help doctors catch trouble before it becomes life-threatening — no expensive specialized equipment required.