65/100
Moderate evidenceWhy 65?

What kind of evidence this is, how big it was and how many independent sources back it.

Observational study
60
Large sample (n = 295,000,000)
+5
Evidence strength
65

Moderate from 50. High from 75, with at least two independent sources.

How it is scored
Cite
More
EmailLinkedInX

AI predicts clinicians' next record action better than baseline, but accuracy fell over time

Study title: A language model framework for sequence modeling of audit logs to characterize clinician-electronic health record interactions

Evidence type
Observational study
Sample
n = 295,000,000
Sources
1 sourcePeer-reviewed
Published
2 min read

Study title: A language model framework for sequence modeling of audit logs to characterize clinician-electronic health record interactions

Researchers used more than 295 million inpatient audit log actions recorded between 2019 and 2024 to fine-tune Llama-3-8B to predict a clinician's next action in the electronic health record. They compared two encodings, symbolic field-based tokens and word-based natural-language descriptions, against a first-order Markov baseline.

Read the study abstract

Objective: Electronic health record (EHR) audit logs capture clinician-EHR interaction patterns, but most audit log research relies on aggregated measures (eg, total time). We investigated how audit logs could be modeled using large language model (LLM) architectures to learn underlying workflow sequences during clinician-EHR interactions. Materials and methods: Using >295 million EHR-based audit log actions from inpatient settings spanning 2019 to 2024, we fine-tuned Llama-3-8B under 2 encodings: (1) symbolic (…

A language model framework for sequence modeling of audit logs to characterize clinician-electronic health record interactions
"NextGen is unusable" by juhansonin is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.

The problem

The best AI model's accuracy at predicting clinicians' next health record action fell from 0.7473 to 0.6555 and then 0.6286 in later periods, though it stayed above the baseline.

In brief

The word-based model was the most accurate and held up better than the baseline on later out-of-sample periods, though its accuracy fell over time. The findings point toward using natural-language LLMs to study clinical workflows and safety, but the work reports only next-action prediction accuracy rather than effects on care or on clinicians.

Main points

  1. Training data comprised more than 295 million EHR audit log actions from inpatient settings, 2019 to 2024.
  2. In the early-period test set, the word-based LLM scored 0.7473 accuracy versus 0.3464 for the field-based LLM and 0.4230 for the Markov baseline.
  3. Out-of-sample accuracy for the word-based LLM was 0.6555 in OOS-1 and 0.6286 in OOS-2, versus 0.3139 and 0.2720 for the Markov baseline.
  4. The authors suggest longer sequential context and word-based action descriptions may improve audit log sequence modeling.

The full story

Most audit log research has relied on aggregated measures such as total time spent in the EHR. This study instead modeled the order of actions, using LLM architectures to learn underlying workflow sequences in clinician-EHR interactions.

Two encodings of the same logs were fine-tuned on Llama-3-8B: symbolic tokens based on fields, and natural-language descriptions of each action. The Markov comparator used only the immediately preceding action, so it acted as a minimal-context benchmark.

Evaluation covered an early-period test set and two temporally distinct out-of-sample periods. The field-based LLM scored below the Markov baseline in the early test, while the word-based model scored well above it in every period.

The authors conclude that the results support developing natural-language LLM models for audit log research on task identification, workflow characterization, and safety-focused analyses.

Sources

1 on file
  1. Peer-reviewed2026-10-12

Talk it over

Three questions to start on, two more if you have time
The word-based model's accuracy fell from 0.7473 to 0.6555 and then 0.6286 in later periods. How would you weigh that drop against the fact that it stayed above the Markov baseline?

Start with a question

AI predicts clinicians' next record action better than baseline, but accuracy fell over timehttps://truvace.com/item/a-language-model-framework-for-sequence-modeling-of-audit-logs-to-characterize-c

  1. The word-based model's accuracy fell from 0.7473 to 0.6555 and then 0.6286 in later periods. How would you weigh that drop against the fact that it stayed above the Markov baseline?

    Answer in the thread
  2. The researchers measured only how accurately the model predicted the next action in the electronic health record. What would you need to see to believe that accuracy tells you something about clinical workflows or safety?

    Answer in the thread
  3. If you ran a hospital using this model to study clinician workflows, what would you do when accuracy on the later out-of-sample periods kept falling?

    Answer in the thread
If you have more time
  • The researchers trained on inpatient audit logs from 2019 to 2024. What might have changed in how clinicians use the electronic health record over those years, and how could you check whether that explains the drop in accuracy?

    Answer in the thread
  • The researchers did not measure effects on care or on clinicians. What would you want to learn about those effects before anyone used next-action prediction in a hospital you know?

    Answer in the thread

What readers say