The Challenge
HFpEF is not a single disease but a syndrome shaped by overlapping conditions, from obesity and diabetes to kidney disease and atrial fibrillation. With no single diagnostic marker, it is easy to miss in the clinic and hard to study in research.
- Most patients go undiagnosed. An earlier study suggests only 8% of people who meet the European guideline criteria for HFpEF received a documented diagnosis, which may delay treatments that could help.
- The evidence comes from the wrong patients. Earlier attempts to define HFpEF subtypes mostly relied on clinical trial cohorts, whose strict entry rules favoured later-stage, hospitalised patients and missed earlier disease.
- Subtypes were treated as fixed. Earlier studies looked at a single point in time, so little was known about whether patients stay in one subtype or move between them as the disease progresses.
- Diagnosis Codes don’t capture it. Diagnostic codes miss patients whose heart failure is described in letters and notes but never formally coded due to clinical coding workflows.
At King’s, the team set out to find every patient treated between 2010 and 2022 who met European Society of Cardiology criteria for HFpEF, and to understand which of them were at an early, still-modifiable stage.
The Solution
King’s applied CogStack’s Language AI across its full electronic health record. CogStack AI read all inpatient documentation, clinic letters, discharge summaries and referrals, picking out heart failure, related conditions and medications while ignoring negated or hypothetical mentions and those about other people. These were combined with echocardiography, blood tests and other structured data. Because every extracted term carries a date, the team could see exactly when each new condition first appeared. The analysis then answered four questions:
- Who has HFpEF? Patients were identified against guideline criteria straight from the record, regardless of whether HFpEF had been written down. In a manual check, MedCAT correctly picked up clinician-recorded HFpEF in all 100 sampled mentions.
- What kinds of HFpEF are there? Latent class analysis (LCA), a clustering method, grouped patients into subtypes based on 10 selected features, including age, BMI, diabetes, kidney disease and atrial fibrillation.
- Where are they heading? Each patient’s subtype was reassessed every year for up to five years as new conditions appeared in their record, showing who stayed put and who moved on.
- Does it hold up elsewhere? The same method was repeated independently at Guy’s and St Thomas’ on 3,349 patients.
Results & Impact
The search found 2,223 patients at King’s who met the criteria for HFpEF. Only about 1 in 10 (10.4%) had the diagnosis recorded by a clinician. AI grouped them into four distinct subtypes: an elderly group dominated by atrial problems (32%), a cardio-renal-metabolic group with high rates of kidney disease and diabetes (23%), an obesity-predominant group (24%), and a young, low-comorbidity group (22%).
Following patients over time told the most important story. The two sickest groups barely changed and carried the highest risk of death, consistent with late-stage disease. The young, low-comorbidity group was the opposite: median age 60, just 3% diagnosed, and despite looking mild, 26% of this group died within five years. The team believes it represents an early, under-recognised stage of HFpEF, and a window to act, for example by starting treatments such as SGLT2 inhibitors or GLP-1 agonists earlier in the disease.
The four subtypes and their survival patterns were reproduced at Guy’s and St Thomas’, despite a sicker patient population. As a retrospective study, the findings now need prospective validation in more diverse populations.
Why CogStack
Every patient in this study was already in the hospital’s records. What was missing was a way to read them. CogStack turned years of letters, notes and reports into clinical intelligence precise enough to find undiagnosed patients, time-stamped enough to follow them year by year, and portable enough to validate at a second Trust. The same approach can support earlier diagnosis in the clinic, and help life sciences teams design trials around the patients who actually exist, not just those already labelled.
Read the full study: Brown S, Soltani F, Wu J, et al. Artificial intelligence enabled phenogrouping of heart failure with preserved ejection fraction depicts early and end-stage trajectories. medRxiv preprint (2025). https://doi.org/10.1101/2025.06.09.25329306
