On-Premise Medical AI Agents May Support Selective Autonomy in Clinical Decision-Making
A fully on-premise clinical AI agent achieved diagnostic accuracy approaching that of a cloud-based model, while a framework measuring the consistency of its responses helped identify cases suitable for autonomous handling, according to findings published in Nature Medicine. Assessing the stability of diagnoses across repeated clinical encounters was more effective at distinguishing correct from incorrect decisions than relying on internal probability scores or expressed certainty.
The study addressed two challenges in implementing autonomous AI agents in clinical practice: maintaining institutional control over patient data and determining when AI-generated diagnoses are sufficiently reliable to proceed without immediate clinician intervention.
Study Details and Methods
The researchers, including senior author Jakob Nikolas Kather, MD, of TUD Dresden University of Technology in Germany, developed a dual-agent simulation system consisting of a Physician Agent and a Patient Agent operating entirely within a local computing environment. The Patient Agent simulated clinical presentations using patient records, whereas the Physician Agent conducted diagnostic interviews, requested clinical evidence through ordering tests and procedures, and generated diagnoses with explanations.
The system was evaluated using three clinical reasoning benchmarks comprising 3,941 cases: MIRA-v2 (551 cases across seven diagnostic conditions), Clinical Decision Making (CDM; 2,400 cases involving four acute abdominal conditions), and VivaBench (990 cases across 10 clinical specialty groups).
Four locally deployed, open-weight large language models—Qwen-3.5, GLM-5, GLM-4.5-Air, and GPT-OSS—were evaluated against cloud-based GPT-5.2 within the agentic architecture.
To assess diagnostic reliability, the researchers examined internal probability, expressed certainty, and behavioral confidence, the latter measured by comparing diagnoses generated across five independent runs of the same clinical encounter.
Diagnostic Performance and Reliability
On MIRA-v2, Qwen-3.5 achieved the highest diagnostic accuracy among locally deployed models, at 90.0%, compared with 90.7% for GPT-5.2. GLM-5 achieved 89.7% accuracy, followed by GLM-4.5-Air at 88.4% and GPT-OSS at 85.3%.
On CDM, Qwen-3.5 achieved 83.8% accuracy and GLM-4.5-Air achieved 81.2%, compared with a previously reported leading open-weight benchmark result of 70.5%.
A blinded physician review of 181 MIRA-v2 cases found that both the AI-generated and reference diagnoses were clinically valid in 81.8% of cases. In another 4.4%, the AI-generated diagnosis was considered valid despite disagreement with the reference label. Agreement between automated evaluation and physician consensus was 92.3%.
Behavioral consistency demonstrated the strongest ability to distinguish correct from incorrect diagnoses, with an area under the receiver operating characteristic curve (AUC) of 0.860, compared with 0.747 for internal probability scores (P = .0011; false discovery rate–adjusted P = .0034).
In stress testing, withholding clinical history information reduced diagnostic accuracy from 90.6% to 70.2%. Behavioral consistency remained informative in ungrounded settings (AUC = 0.875), whereas internal probability and expressed certainty sometimes remained high despite declining accuracy.
Selective Autonomy and Physician Review
Using a diagnostic consistency threshold of 0.90 for clinical triage, the system retained 272 of 551 cases (49.4%) for autonomous handling, achieving 98.9% accuracy. Of these cases, 269 were diagnosed correctly and three incorrectly. The remaining 279 cases were designated for physician review, including 49 of the 52 diagnostic errors.
On VivaBench, Qwen-3.5 achieved 72.22% diagnostic accuracy, compared with 67.96% for GPT-OSS. Behavioral consistency again provided the strongest discrimination of diagnostic correctness (AUC = 0.719). At a threshold of 0.85, the system achieved 89.9% accuracy while retaining 32% of cases. Stricter thresholds reduced autonomous handling but lowered the amount of errors.
Conclusions and Limitations
The investigators emphasized that the findings were based on retrospective, text-based simulations rather than prospective clinical deployment. Both primary benchmarks originated from MIMIC-IV, and repeated inference increased computational demands approximately fivefold.
The researchers concluded that locally deployed medical AI agents could combine institutional control over clinical data with reliability assessment at the time of diagnosis to support selective autonomy and physician oversight. “Confidence-based routing is a mechanism for risk stratification, not a substitute for continuing clinical governance,” they stated.
They further concluded that behavioral consistency helps determine “when autonomous handling may be reasonable and when uncertainty should remain with the clinician.” Prospective validation and dedicated bias assessments are needed to establish the effects of these systems on clinical safety, physician workload, and patient outcomes.
DISCLOSURES: Funding provided by the European Union. For full disclosures of the study authors, as well as data and code availability, visit nature.com.
ASCO AI in Oncology is published by Conexiant under a license arrangement with the American Society of Clinical Oncology, Inc. (ASCO®). The ideas and opinions expressed in ASCO AI in Oncology do not necessarily reflect those of Conexiant or ASCO. For more information, see Policies.