Flexor cover illustration for an article on AI sepsis detection from unstructured clinical notes

Ask any clinician where the real story of a hospital stay lives, and they won’t point to the coded diagnosis list. They’ll point to the notes: the nursing rounds, the physician follow-ups, the discharge summary. That’s where someone writes “abdomen more tender around the wound” or “low-grade fever overnight” long before anyone types a formal diagnosis. The problem is that this information is almost impossible to use at scale. It’s free text, written fast, by many different people, across many shifts.

Flexor ACE runs with Snowflake, Google Cloud and Gemini to support quality of care, early detection and clinical research, with unstructured data that is unified, connected and fully explainable

My team and I are working with a tier one hospital on exactly this problem: using AI on its unstructured clinical data to understand what really happened during patient admissions. In this post we walk through one clinical scenario built around that work, AI sepsis detection for post-operative patients, and then look at three ways hospitals can put the same technology to work (to protect client confidentiality, the clinical scenario below is a stand-in for the original project; the approach is the same).

Scrolling through one admission: the timeline lights up note by note, and the cited note expands with its evidence.

Key takeaways

  • The earliest signs of sepsis usually appear in free-text nursing and physician notes, long before a coded diagnosis.
  • Flexor’s AI Context Engine (ACE) prepares those notes automatically, links them to structured records, and builds one timeline per admission.
  • Indicators based on the Sepsis-3 criteria and medical literature feed a prediction engine that shows the exact note behind every flag.
  • An illustrative walkthrough shows how the engine can flag sepsis well before a physician writes the diagnosis.
  • The same technology supports quality of care (QoC) reviews, real-time alerts and clinical research.

The challenge: the signals are there, but nobody can understand & connect them

Sepsis is a life-threatening response to infection, and after surgery it can escalate quickly. Septic shock is the most severe form: circulation fails, and the patient needs vasopressors to keep blood pressure up despite fluids. For every admission, the questions are simple: did this patient develop sepsis, and did it progress to septic shock?

Answering them from the records is anything but simple.

  • The key evidence is unstructured. Heart rate, temperature, suspicion of infection and cultures sent are often recorded inside nursing and physician notes, not as clean, structured fields. A temperature isn’t a sensor reading; it’s a number a nurse wrote in a sentence.
  • The language is messy and local. Notes mix the local language with English medical shorthand, and every hospital (often every department) has its own way of writing them. A generic language model doesn’t know that “abx started, cx sent” means antibiotics and cultures.
  • The diagnosis is often implicit, or missing. Sometimes the note says “sepsis secondary to anastomotic leak” or “septic shock on noradrenaline.” Often it doesn’t. A clinician may clearly suspect an infection without ever naming sepsis, and a condition described in the text may never make it to the coded diagnosis list because the physician was busy.
  • The dots are spread across shifts. One round notices a fast heart rate. The next sees a rising temperature. A third notes a tender wound. Each observation alone looks minor. Together, they tell a clear story, but only if someone has the full context.

The hospital didn’t lack data. It lacked a way to turn years of clinical notes into something reliable, structured and explainable. It’s the same gap we see in every industry when AI meets unstructured data, only with much higher stakes.

The solution: from processing clinical notes to creating a patient timeline and predictions

Flexor connected the hospital’s unstructured notes with its structured records and turned them into AI-ready context. Here is how it works.

The Flexor AI Context Engine flow, from hospital data to sepsis and septic shock answers with explainability

From free-text notes and structured records to a yes or no answer for sepsis and septic shock, with the evidence behind it.

1. AI data preparation

Hospital data flows in from its sources: admission letters, nursing notes, physician follow-ups, discharge notes and structured records. Flexor’s AI data preparation cleans, normalizes and structures it automatically, including the hospital-specific shorthand and the mix of the local language with English medical shorthand. Nobody on the hospital’s side had to build or maintain a pipeline. (For a deeper look at this step, see how AI data preparation works in enterprise environments.)

2. A unified timeline for every admission

The prepared data is linked into a single, chronological timeline per admission. Instead of hundreds of disconnected notes, there is one view of the patient’s journey from admission through surgery, rounds and discharge, enriched with domain intelligence so medical terms, abbreviations and local phrasing are understood consistently.

Patient overview table listing admissions with their sepsis prediction, model score and evidence

The patient overview: every admission with its prediction, model score and the evidence found.

3. Clinical signals, grounded in medical literature

Based on the Sepsis-3 criteria and medical literature, and designed for review by clinicians, we defined a list of surrogate indicators: early clinical markers that point toward sepsis. For example:

  • Tachycardia (a fast heart rate)
  • Fever: a temperature of 38°C or higher
  • Hypothermia: a temperature below 36°C
  • Suspected or confirmed infection, even when sepsis isn’t named (cultures sent, antibiotics started, a suspected wound infection)
  • An explicit mention of sepsis or septic shock, when the physician wrote one

Flexor’s engine searches every note for these indicators and turns them into structured signals on the timeline.

Lists of surrogate indicators for sepsis and septic shock

Indicators for sepsis and septic shock, based on the Sepsis-3 criteria and medical literature.

4. A prediction engine with full lineage

The signals run through a prediction engine that returns two answers for each admission: was there sepsis, and was there septic shock. Every answer comes with explainability and lineage. Clinicians can see which indicator was found, why the engine considered it present, and the exact note and sentence it came from. Nothing is a black box.

Case review in the Flexor app showing the admission timeline, cited indicators with quoted evidence and the sepsis prediction

Each prediction is backed by the indicator, the quoted evidence and the note it came from. (Illustrative details, not patient data.)

The output is served to agents, analytics and automation from the same prepared data, so the hospital can query it, build dashboards on it, or plug it into downstream workflows without extra work.

What it looks like for one patient

Take a single illustrative case (a made-up admission built to show how the engine works, not patient data) and walk through it note by note:

  1. Admission morning. A nursing note records a heart rate of 104 and a normal temperature. Tachycardia appears on the timeline.
  2. The next round. The temperature has climbed to 38.7°C. Fever is added.
  3. Physician round. “Fever, abdomen more tender around the wound, suspect wound infection, cultures sent.” Suspected infection is added.
  4. First alert. With these indicators in place, the prediction engine flags possible sepsis.
  5. Diagnosis. The physician first writes a sepsis diagnosis later on.
A cited note on the admission timeline, expanded with its indicator and quoted evidence

A cited note on the timeline: the indicator, the quoted evidence and a link to the full note. (Illustrative details, not patient data.)

In this illustrative case, the model flags sepsis 28 hours before the first physician note that names it. That’s the kind of lead time that matters when every hour counts.

This work is a retrospective analysis: looking back at patient journeys to understand what happened. But the same pipeline can run on new notes as they arrive, with a delay of minutes, which opens the door to a very different kind of value.

Three use cases for hospitals

The same foundation (prepared notes, a unified timeline, defined signals and explainable predictions) supports very different goals. Here are three we see most often.

1. QoC – Quality of Care and process improvement

Hospitals want to know whether care followed protocol. Which actions were taken, and when? Were sepsis bundles started on time? Where did handoffs between shifts slow things down?

Today, answering those questions means clinicians reading charts by hand, one case at a time. With Flexor, quality teams can review thousands of admissions retrospectively, see exactly where the signals appeared and when the team responded, and use those findings to improve protocols for future patients.

2. Early detection and real-time alerts

Picture a busy emergency department. A patient is checked several times, by different staff, across several rounds. Each round sees something small: a slightly elevated heart rate, cold extremities, a comment from the physician two rounds ago. Then the patient suddenly deteriorates, because no single person had the full context to connect the markers.

Running the same engine on notes as they’re written means it can connect those dots continuously and alert the treating physician: this patient needs attention now. For a clinician responsible for hundreds of patients, a well-explained alert with links to the exact notes behind it can make a real difference.

3. Clinical research and labeled data

This is often the one with the biggest financial upside. Clinical research depends on labeled data, and labels are usually taken from coded diagnoses. But as we saw above, the coded list is often incomplete. A physician may describe delirium clearly in the text and never add it to the diagnosis list. A researcher studying ways to reduce that risk then finds no data to work with.

Flexor’s engine can label historical cases from the notes themselves, flagging admissions where the indicators strongly suggest a condition that was never formally recorded, with full lineage so clinicians can verify each label. Suddenly, years of doctors’ notes become a research asset, and a hospital asking “where is the value in our data?” has a concrete answer.

The bigger picture

Sepsis is one example. The pattern applies to almost any condition or process where the truth lives in free text: build the context, define the signals with clinicians, and let an explainable engine do the reading at scale. The hard part, preparing messy, multilingual, hospital-specific notes so AI can actually use them, is the part Flexor automates, and surfaces in a purpose-built interface that can be interacted with and queried directly.

See it on your own use case

Every hospital writes its notes differently and has different priorities, whether that’s quality, early warning or research. Contact us to see a personalized demo with Flexor experts, built around the use case that matters most to your team.

FAQs

How does AI detect sepsis from clinical notes?

AI sepsis detection works by reading nursing notes, physician follow-ups and discharge notes for early clinical markers, such as tachycardia, a temperature of 38°C or higher, temperature below 36°C, cultures sent or antibiotics started. Each marker is placed on a timeline for the admission. A prediction engine then weighs the combined signals, and the engine can flag likely sepsis or septic shock before a physician has written the diagnosis. A solution like Flexor’s AI Context Engine (ACE) automates the data preparation behind this and links every flag to the exact note it came from.

What are surrogate indicators of sepsis (or other conditions)?

Surrogate indicators are clinical signs that point toward sepsis without being a diagnosis themselves. Common examples are a fast heart rate, fever or abnormally low temperature, and evidence that a clinician suspects infection, such as cultures sent or antibiotics started. Defining them with clinicians and medical literature lets an AI engine find them consistently across thousands of free-text notes. Sepsis is the example in this post, but the core technology is the same for any condition or use case: only the set of indicators changes. With Flexor ACE, moving to a new condition means defining new indicators, not building a new pipeline.

Can AI understand clinical notes that mix languages and hospital shorthand?

Yes, if the data is prepared for it first. Clinical notes often mix the local language with English medical shorthand, with abbreviations that differ between hospitals and even departments. Flexor normalizes that text and adds domain terminology before any model reads it, so “abx started, cx sent” is understood as antibiotics started and cultures sent, the same way every time.

Why does explainability matter for clinical AI?

Clinicians won’t act on a flag they can’t verify. Explainability and lineage show which indicator was found, why it counted, and the exact note and sentence it came from. That lets a physician check the reasoning in seconds, makes retrospective audits defensible, and gives researchers labels they can trust rather than a score with no source. Flexor ACE attaches this lineage to every prediction it makes.

Is retrospective analysis of clinical notes useful, or does AI need to run in real time?

Both are valuable. Retrospective analysis helps quality teams audit protocol compliance and helps researchers build labeled datasets from years of existing notes, with no change to clinical workflows. Once the pipeline is proven on past data, the same approach can run on new notes within minutes of them being written, supporting early warning alerts at the bedside. With Flexor ACE, it is the same pipeline in both modes.

Does a hospital need a data engineering team to build pipelines for this?

No. The heaviest work is preparing the data: cleaning, normalizing, linking notes to structured records and building a timeline per patient. Flexor automates that preparation, so hospital technical teams don’t build or maintain pipelines. Clinicians focus on defining which signals matter, and the same prepared data then serves agents, analytics and automation for further use cases.