Clinical Technology

Local LLMs Match Cloud Models on Urgent Portal Message Triage

Six LLMs screened 1,303 portal messages at Mass General Brigham; four caught at least 97% of urgent ones, and local Gemma 3 27B matched cloud models. No tool is in clinical use yet.

4 min read

Local LLMs Match Cloud Models on Urgent Portal Message Triage
kaboompics / pixabay

Four of six large language models flagged at least 97 of every 100 patient portal messages that physicians had deemed urgent, and one of the best ran on hospital-owned hardware rather than a vendor cloud. That is the headline result of a Mass General Brigham study published in npj Digital Medicine (DOI: 10.1038/s41746-026-03477-6), which compared cloud-hosted and on-premise models on 1,303 real patient messages.

The comparison matters because privacy, contracting and cost concerns keep many health systems out of enterprise cloud agreements. Mass General Brigham runs commercial models inside its own protected Microsoft Azure environment under strict institutional agreements that prevent data leaving the server or reaching vendors. Plenty of hospitals lack that arrangement. The researchers asked the obvious question: can a model downloaded and run locally do the job anyway. The answer, with numbers attached, is yes.

What did the study actually test?

Investigators tested six models against practicing physicians' judgments, using a predefined urgency standard. Messages came from primary care practices, an epilepsy clinic and public online platforms, the latter allowing performance testing beyond Mass General Brigham's own patient base.

The roster:

  • Three OpenAI commercial models — GPT-4o, GPT-5 and GPT-5 Mini — tested in the secure Azure environment
  • Three open-weight models hospitals can run locally: Meta's Llama 4 Scout, Google's Gemma 3 27B and OpenAI's GPT-OSS 20B

GPT-5 missed none of the 134 urgent messages in the primary care group. Four of the six models caught at least 97 of every 100 urgent messages, and when those four cleared a message as routine, they were right roughly 98 times out of 100. For contrast, the statistical method that predates LLMs caught fewer than half, missing 74 of 134 urgent messages. One top performer, Gemma 3 27B, runs on local hardware.

"We kept hearing that only the top commercial models could handle this kind of work and that local models weren't good enough. We found a model we downloaded and ran on our own servers performed just as well," said first and corresponding author Valdery Moura Junior, Ph.D., MBA, lead AI scientist at the Clinical Trials Network and Institute in the Department of Psychiatry at Mass General Brigham. "For health systems without enterprise cloud agreements, this can be the difference between using this AI technology or not."

Why does the queue still need a clinician?

The models over-triage. The best tool correctly cleared 73 of every 100 routine messages, which means the remaining 27 still land in the urgent pile for a human to read. The queue shrinks; it does not disappear. Senior author Lidia Moura, M.D., Ph.D., MPH, director of population health and a neurologist in the Neuroscience Institute at Mass General Brigham, framed the workload problem plainly: "Patients are increasingly directed to use the portal for routine messages. But a time-sensitive concern can sit in the same queue as a nonurgent one until a member of the clinical team opens and reads it."

The researchers audited 208 routine messages incorrectly flagged as urgent and traced each false positive to a single cause, such as model instructions designed for a different clinical specialty. Fixable, in other words. Less fixable is the setting problem: the best-performing model varied across the primary care, epilepsy and public platform contexts. The authors read that as a warning — a system validated at one hospital needs rechecking at another before deployment.

Is anything running in production?

No. None of the tested models is in clinical use, and no patient care was affected. The work feeds "Luna Baker," a multi-agent AI system the group built to sort portal messages, flag urgent ones, review the chart and draft replies for clinician approval. Luna Baker uses GPT-4o, one of the study's top performers, and this study will inform its urgency screening module. The system is not currently in clinical use either.

The practical takeaway for anyone running a portal inbox: local validation before adoption, an open-weight option if your legal team balks at cloud contracts, and a tolerance for roughly one in four routine messages still sitting in your queue — just in better order.

Source: Medical Xpress

Share this article:

More from Amara Osei

Amara Osei

Show full bio

Correspondent covering money, funding and market shifts around Doctors' Insider is a professional daily at Doctors' Insider.

136 articles

Related articles

« Previous articleNext article »