Evidence that large language models can improve care in everyday, resource-limited clinics is still scarce.
Evidence that large language models can improve care in everyday, resource-limited clinics is still scarce. To test whether generative AI can make a measurable difference where staffing and specialist support are limited, researchers ran a pragmatic, cluster-randomized trial across 16 primary care facilities in Kenya, embedding an LLM-based assistant directly into routine electronic medical record (EMR) use.
The study focused on clinical officers, the mid-level practitioners who deliver much of primary care in Kenya and many neighboring countries. These clinicians typically complete a three-year diploma in clinical medicine and often work without ready access to senior consultation. That reality matters because primary care teams must manage a broad mix of acute and chronic illness, serving as the backbone for ongoing care, referral coordination, and equitable access. Yet sub-Saharan Africa faces a profound workforce shortage—about 0.3 physicians per 1,000 people, compared with an average of 3.9 per 1,000 across OECD countries—raising the stakes for tools that might strengthen decision-making at the front line.
In this trial, clinical officers were randomized by cluster to use the EMR either with LLM assistance or without it. The main endpoint was an expert-adjudicated composite measure of “treatment failure” events occurring within 14 days after enrollment. Patient enrollment ran from 22 April to 16 July 2025. Over that period, the team enrolled 9,691 patients cared for by 103 clinical officers—52 assigned to the LLM-assisted EMR and 51 to standard EMR use.
The results showed no statistically significant improvement in the primary outcome. Treatment failure occurred in 102 of 4,693 patients (2.2%) in the intervention group and 94 of 4,654 patients (2.0%) in the control group. The adjusted odds ratio was 0.77, with a 95% confidence interval from 0.55 to 1.08 (P = 0.13), indicating that the observed difference could plausibly be due to chance.
Safety findings were reassuring. Investigators reported no serious adverse events attributed to the AI-supported system, and independent review of adverse events did not reveal a signal suggesting harm from the intervention.
The trial arrives amid a growing debate about whether generative AI can address quality gaps in low- and middle-income countries. Prior work—often based on clinical vignettes or computer-based simulations—has suggested LLMs can generate guideline-consistent recommendations and sometimes match or outperform clinicians on specific tasks such as diagnosis or triage. But such studies do not always translate into improved outcomes when deployed in real clinics, where time constraints, incomplete records, and limited diagnostic resources shape care.
Earlier rule-based decision support embedded in EMRs has improved protocol adherence in some settings, yet has struggled with inflexible logic, burdensome data entry, and poor fit with clinical workflow. LLMs, in contrast, can interpret unstructured text, support conversational interaction, and tailor guidance to nuanced presentations. Still, because many models are trained largely on data from high-income health systems, concerns remain about miscalibration to local epidemiology and documentation styles, as well as the risks of fabrication, errors, and bias.
In this Kenyan study, integrating an LLM into primary care workflows appeared safe but did not reduce treatment failure within two weeks, suggesting that any benefit—if it exists—is likely modest. The trial was registered with the Pan-African Clinical Trials Registry (202502499779176).