Case studies›Deep phenotyping

Uncovering hidden heart failure: AI phenogrouping reveals early and late-stage HFpEF

Almost 9 in 10 patients meeting HFpEF criteria at King’s had no recorded diagnosis. Here’s what CogStack AI found when it looked.

King’s College Hospital NHS Foundation Trust5 min read

Executive Summary

The problem

Heart failure with preserved ejection fraction (HFpEF) accounts for around half of all heart failure, yet it is notoriously hard to spot. The heart appears to pump normally on echocardiogram but the function is impaired and many patients never receive the diagnosis that opens the door to treatment.

What they did

King’s College Hospital NHS Foundation Trust is a multi-site hospital network in London. Cardiologists at King’s used CogStack AI to search the entire patient record for everyone who met guideline criteria for HFpEF, whether or not anyone had written it down. They then used AI to sort those patients into subtypes and followed how each group changed over five years.

Its findings were validated independently at Guy’s and St Thomas’ NHS Foundation Trust.

The result

10.4%HFpEF patients with a clinician-recorded diagnosis
4Distinct HFpEF subtypes identified and externally validated
3%Diagnosis rate in the youngest, early-stage group
5,500+Patients analysed across King’s and Guy’s and St Thomas’

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.

22%HFpEF patients in an under-recognised early-stage group
>50%Early-stage patients who moved to another subtype within 5 years
26%Five-year mortality in the early-stage group, despite mild presentation

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

Topics
CardiologyComorbiditiesDeep phenotypingEarly diagnosisHeart failure (HFpEF)Patient stratificationReal-world evidenceUnstructured data to outcomes
Find more like this
Validating Waiting Lists at Scale with Clinical NLP: 40,000+ Referrals Safely Closed
Guy’s and St Thomas’ NHS Foundation Trust
Flagging 9 in 10 unplanned intensive care admissions before elective neurosurgery at UCLH
University College London Hospitals NHS Foundation Trust
Mental Health Records Made Usable: Medication Reviews Cut from Hours to Minutes
South London and Maudsley NHS Foundation Trust

Next steps

Who is hiding in your patient records?

Whether you care for patients or develop treatments for them, CogStack can help you find under-diagnosed patients, define real-world subtypes and understand how disease progresses over time.