PMPaul Mwaniki

Paul Mwaniki

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Paul Mwaniki has a total of 76 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Top Cited Papers
    Open Access

    Generative AI-enabled clinical decision support system in primary care: a pragmatic, cluster-randomized trial

    by Ambrose Agweyu, Paul Mwaniki, Vaishnavi Menon, Robert Korom, Lynda Isaaka, Conrad Wanyama, Jaspret Gill, Sarah Kiptinness, Najib Adan, Mira Emmanuel-Fabula, et al.

    Rigorous evidence on the performance of large language models (LLMs) in real-world, low-resource clinical settings remains limited. Here we conducted a pragmatic, cluster-randomized trial in 16 primary care facilities in Kenya. Clinical officers were randomized to use the electronic medical record with or without LLM assistance. The primary outcome was an expert-adjudicated composite of treatment failure events experienced within 14 days of enrollment. Between 22 April and 16 July 2025, 9,691 patients were enrolled, overseen by 103 clinical officers (52 in the LLM-assisted arm and 51 in the control arm). Treatment failure occurred in 102/4,693 patients (2.2%) in the intervention arm and 94/4,654 (2.0%) in the control arm (adjusted odds ratio 0.77, 95% confidence interval 0.55 to 1.08, P = 0.13). The primary outcome did not differ significantly between groups. No serious adverse events were judged related to the intervention, and independent review of the adverse events did not identify a safety signal. In this trial, LLM assistance was safe but did not reduce treatment failure within 14 days and any benefit, if present, is probably modest. Pan-African Clinical Trials Registry: 202502499779176.


  • Open Access

    Learning Effects from A GenAI-based Clinical Decision Support System in Primary Healthcare

    by Bilal A. Mateen, Gwydion Williams, Robert Korom, Paul Mwaniki, Mira Emmanuel-Fabula, Ambrose Agweyu

    To characterise the potential learning effects from a GenAI-based clinical decision support tool (CDST), we examined clinician behaviour within a cluster-randomised trial. The tool, AI Consult , parsed clinician notes written (in real-time) to document patient encounters and would raise green, yellow, or red flags to indicate no, potential, or critical risks of harm (respectively) in decisions the clinician made. Over several months, clinicians with access to the AI Consult tool produced fewer red (Intervention: 14% reduction, p = 0.032 vs. Control: 6% increase, p = 0.383) and yellow flags (Intervention: 6.8% reduction, p = 0.005 vs. Control: 3% increase, p = 0.231), whereas those without access to the tool showed no such effect. If this type of learning effect is a consistent emergent property across CDSTs, there might be an opportunity to reimagine their purpose: from addressing gaps in care quality to instead being a health system-strengthening investment.

  • Open Access

    Benchmarking Large Language Models and Clinicians Using Locally Generated Primary Healthcare Vignettes in Kenya

    by Paul Mwaniki, Wilkister Musau, Lynda Isaaka, Conrad Wanyama, Vaishnavi Menon, Alastair K Denniston, Xiaoxuan Liu, Mira Emmanuel-Fabula, Gwydion Williams, Bilal A. Mateen, et al.

    Background: Large language models (LLMs) show promise on healthcare tasks, yet most evaluations emphasize multiple-choice accuracy rather than open-ended reasoning. Evidence from low-resource settings remains limited. Methods: We benchmarked five LLMs (GPT-4.1, Gemini-2.5-Flash, DeepSeek-R1, MedGemma, and o3) against Kenyan clinicians, using a randomly subsampled dataset of 507 vignettes (from a larger pool of 5,107 clinical scenarios) spanning 12 nursing competency categories. Blinded physician panels rated responses using a 5- point Likert scale on an 11-domain rubric covering accuracy, safety, contextual appropriateness, and communication. We summarized mean scores and used Bayesian ordinal logistic regression to estimate probabilities of high-quality ratings (≥4) and to perform pairwise comparisons between LLMs and clinicians. Findings: Clinician mean ratings were lower than those for LLMs in 9/11 domains: 2.86 vs 4.25-4.72 (guideline alignment), 2.76 vs 4.25-4.73 (expert knowledge), 2.96 vs 4.30-4.73 (logical coherence), and 2.58 vs 4.16-4.68 (low omission of critical information). On safety-related domains, LLMs received higher ratings: minimal extent of possible harm 3.16 vs 4.29-4.68; low likelihood of harm 3.68 vs 4.54-4.81. Performance was similar for low inclusion of irrelevant content (4.28 vs 4.25-4.35) and for avoidance of demographic bias (4.86 vs 4.91-4.94). In Bayesian models, LLMs had >90% probability of ratings ≥4 in most domains, whereas clinicians exceeded 90% only for contextual relevance and demographic/socio-economic bias. Pairwise contrasts showed broadly overlapping credible intervals among LLMs, with o3 leading numerically most domains except contextual relevance, demographic/socio-economic bias, and relevance to the question. Generating all LLM responses cost USD 3.86–8.68 per model (USD 0.008-0.017 per vignette), compared with USD 3.35 per clinician-generated vignette. Interpretation: LLMs produced responses that were more accurate, safer, and more structured than clinicians in vignette-based tasks. Findings support further evaluation of LLMs as decision support in resource-constrained health systems. Funding Statement: This study was supported by the Gates Foundation [INV-068056]. Research in Context: Evidence before this study: We searched PubMed, medRxiv, and arXiv (Jan 1, 2021–Sept 30, 2025) using combinations of terms including “large language model”, “LLM”, “healthcare”, “benchmarking”, “clinical decision support”, and “low-resource settings”. The search returned 28 preprints and only 4 peer-reviewed articles. A study from Rwanda benchmarked five LLMs against clinicians using 524 real-world questions from community health workers; all models outperformed clinicians, including in Kinyarwanda (Rutunda, 2025). In Kenya, a multimodal LLM (POE) outperformed primary care providers on 63 otolaryngology cases (79.4% vs 50.8%) and aligned with specialist recommendations (Lechien, 2025). A cross-country maternal health study evaluated GPT-4, GPT-3.5, a custom GPT-3.5, and Meditron-70b on three questions, with expert reviewers in Brazil, Pakistan, and the USA rating outputs in their native languages. GPT-4 and GPT-3.5 were most accurate, though readability and gender bias were noted (Lima, 2025). AraSum, a lightweight Arabic summarization model, outperformed the Arabic foundation model JAIS-30B on BLEU, ROUGE, and expert ratings of accuracy, comprehensiveness, and clinical utility (Lee, 2025). Additional preprints proposed expert-rated benchmarks for LMIC clinical tasks. Added value of this study: This study uniquely combines local co-design, real-world clinical scenarios, and structured, expert-based assessment across 11 dimensions of clinical quality. It demonstrates the relative strengths and weaknesses of five widely available LLMs versus frontline clinician performance, offering evidence of systematic clinician gaps in accuracy, guideline adherence, and completeness. Implications of all the available evidence: LLMs show substantial promise as clinical decision support tools in low-resource health systems. Across multiple settings and task types, current models consistently meet or exceed clinician performance in controlled evaluations. However, real-world deployment requires attention to equity, local clinical validation, and thoughtful implementation pathways that mitigate risk and reinforce trust.


  • Open Access

    Retrospective Evaluation of a Generative AI-Enabled Electronic Medical Record System in Primary Health Care Facilities in Kenya

    by Ambrose Agweyu, Paul Mwaniki, Wilkister Musau, Robert Korom, Lynda Isaaka, Conrad Wanyama, Sarah Kiptinness, Najib Adan, Mira Emmanuel-Fabula, Bilal A. Mateen

    We conducted a retrospective evaluation of an electronic medical record-embedded large language model (LLM) clinical decision support system deployed across 16 primary care clinics in Kenya, between July-September 2024. A panel of trained physicians reviewed 1,469 records. Hallucinations were uncommon (50/1,469; 3.4%), most often involving mis-expanded acronyms or drug names. Clinical management guidance aligned with local guidelines in almost all cases (approximately 100%). Despite this, clinicians did not modify documentation in 62% of encounters. Safety assessments identified actively harmful recommendations from the LLM in 7.8% of encounters, with 67 such recommendations appearing in the final documentation. Conversely, risk present in the clinician’s initial notes was fully mitigated in 118 encounters (8.0% overall; 12.1% of amended cases). Overall, the tool showed strong potential to support quality improvement, but the asymmetric adoption of harmful versus beneficial outputs underscore the need for usability optimization, local guardrails, and prospective trials to confirm patient-level benefit.


  • Open Access

    The Five-minute Apgar Score and Adverse Short-term Outcomes in Neonates - a Cohort Study in the Clinical Information Network Hospitals in Kenya

    by Pauline Karing'U, Jacqueline Chesang, Isaac Waluke, Muthoni Ogola, Paul Mwaniki, Michuki Maina, Mike English, Jalemba Aluvaala

    Background The Apgar score at five minutes is an important indicator of a neonate’s ability to survive and thrive. The association between Apgar score and adverse short-term outcomes in neonates (mortality, encephalopathy, and hospital stay) in Kenya remains unknown. Objectives To determine the distribution of Apgar scores in CIN hospitals and the association of Apgar scores with neonatal mortality, encephalopathy and hospital stay. Methods This retrospective cohort study was conducted in 22 neonatal units that are part of the Clinical Information Network(CIN) across 14 counties in Kenya. Singleton, inborn neonates admitted to the neonatal unit on day one of life between January 2018 and December 2022 were included. Results The study found that 77%, 20% and 3% of the 60,183 neonates had normal (≥7), intermediate (4-6) and low Apgar scores (≤3), respectively. The 5-minute Apgar score showed a statistically significant association with mortality; the adjusted hazard ratios of death among those with low and intermediate score 10.97 (95% CI: 9.45 – 12.73) and 3.60 (95% CI: 3.26 - 3.97), respectively, compared to those with normal. Compared with the normal Apgar score, the odds of developing encephalopathy were 5.73 (95% CI 5.37-6.12) and 15.87 (95% CI 13.9-17.6) times higher in the intermediate and low Apgar score categories, respectively. A low and intermediate Apgar score at five minutes was associated with a 25% (HR 0.75, 95% CI:0.63- 0.91) and 12% (HR 0.88, 95% CI:0.81- 0.95) lower risk of hospital discharge before 28 days, respectively, when compared to the normal Apgar score. Conclusion The five-minute Apgar score is an important determinant of adverse outcomes among neonates in primary referral facilities across Kenya. Correct assignment, use, and documentation of Apgar scores is necessary to improve the quality of neonatal care in primary referral facilities.


  • Open Access

    Evaluating the documentation of vital signs following implementation of a new comprehensive newborn monitoring chart in 19 hospitals in Kenya: A time series analysis

    by Naomi Muinga, Timothy Tuti, Paul Mwaniki, Edith Gicheha, Chris Paton, Lenka Beňová, Mike English

    Multi-professional teams care for sick newborns, but nurses are the primary caregivers, making nursing care documentation essential for delivering high-quality care, fostering teamwork, and improving patient outcomes. We report on an evaluation of vital signs documentation following implementation of the comprehensive newborn monitoring chart using interrupted time series analysis and a review of filled charts. We collected post-admission vital signs (Temperature (T), Pulse (P), Respiratory Rate (R) and Oxygen Saturation (S)) documentation frequencies of 43,719 newborns with a length of stay > 48 hours from 19 public hospitals in Kenya between September 2019 and October 2021. The primary outcome was an ordinal categorical variable (no monitoring, monitoring 1 to 3 times, 4 to 7 times and 8 or more times) based on the number of complete sets of TPRS. Descriptive analyses explored documentation of at least one T, P, R and S. The percentage of patients in the no-monitoring category decreased from 68.5% to 43.5% in the post-intervention period for TPRS monitoring. The intervention increased the odds of being in a higher TPRS monitoring category by 4.8 times (p<0.001) and increased the odds of higher monitoring frequency for each vital sign, with S recording the highest odds. Sicker babies were likely to have vital signs documented in a higher monitoring category and being in the NEST360 program increased the odds of frequent vital signs documentation. However, by the end of the intervention period, nearly half of the newborns did not have a single full set of TPRS documented and there was heterogenous hospital performance. A review of 84 charts showed variable documentation, with only one chart being completed as designed. Vital signs documentation fell below standards despite increased documentation odds. More sustained interventions are required to realise the benefits of the chart and hospital-specific performance data may help customise interventions.


  • Open Access

    Patterns and determinants of antibiotic prescription among children admitted to public hospitals in Kenya: A cross-sectional observational study

    by Rachel Otuko, Michuki Maina, Paul Mwaniki, Marshal Mweu, Samuel Akech

    Background: Sick children frequently have antibiotics prescribed as part of their treatment. Inappropriate use of antibiotics, especially broad-spectrum antibiotics, can result in the development of antibiotic resistance and the consequences of antibiotic resistance. In this study, we use routinely collected data to describe the patterns and identify factors influencing antibiotic prescription among admitted children. Methods: Routine data collected from medical records of children aged 2 months or older admitted between 2014 and 2020 to paediatric wards of 12 hospitals which are part of a Clinical Information Network (CIN) are used. Multivariable mixed effects logistic regression is used to assess determinants of antibiotic prescription with a random slope and intercept for hospital level. Results: A total of 127,984 antibiotic prescriptions were made in 107,500 participants included in the study where 81.1% (87,183/107,500) had one or more antibiotic prescriptions. The commonly prescribed antibiotics were a combination of benzylpenicillin and gentamicin (37,939/127,984 - 29.6%), ceftriaxone (31,172/127,984 - 24.6%) and oral amoxicillin (12,593 /127,984 - 9.8%). Factors associated with antibiotic prescription were history of cough (adjusted odds ratio (aOR), = 2.06, 95% confidence interval (CI):1.966 - 2.152), bloody diarrhoea (aOR=5.6, CI:4.453 - 7.036), diagnoses of pneumonia (aOR=27.66, CI:21.768 - 35.154), malnutrition (aOR=6.3, CI:4.558 - 8.701) and meningitis (aOR=11.85, CI:9.502 - 14.779). Antibiotic prescription was less likely in children diagnosed only with severe anaemia (aOR=0.8, CI:0.742 - 0.870), malaria (aOR:0.22, CI:0.201 - 0.231), diarrhoea (aOR:0.36, CI:0.331 - 0.398), and dehydration (aOR=0.4, CI:0.347 - 0.464). Conclusion: Antibiotics are prescribed in approximately four of every five children admitted to paediatric wards of Kenyan hospitals. Prescriptions are mainly in patients who fulfil syndromic clinical criteria where antibiotics are indicated. Without the introduction of reliable pathogen diagnostics, it will be difficult to reduce antibiotic prescriptions among admitted children.


  • Open Access

    Using self-supervised feature learning to improve the use of pulse oximeter signals to predict paediatric hospitalization

    by Paul Mwaniki, Timothy Kamanu, Samuel Akech, Dustin Dunsmuir, J. Mark Ansermino, M.J.C Eijkemans

    Background: The success of many machine learning applications depends on knowledge about the relationship between the input data and the task of interest (output), hindering the application of machine learning to novel tasks. End-to-end deep learning, which does not require intermediate feature engineering, has been recommended to overcome this challenge but end-to-end deep learning models require large labelled training data sets often unavailable in many medical applications. In this study, we trained self-supervised learning (SSL) models for automatic feature extraction from raw photoplethysmography (PPG) obtained using a pulse oximeter, with the aim of predicting paediatric hospitalization. Methods: We compared logistic regression models fitted using features extracted using SSL with models trained using both clinical and SSL features. In addition, we compared end-to-end deep learning models initialized randomly or using weights from the SSL models. We also compared the performance of SSL models trained on labelled data alone (n=1,031) with SSL trained using both labelled and unlabelled signals (n=7,578). Results: Logistic regression models were more predictive of hospitalization when trained on features extracted using labelled PPG signals only compared to SSL models trained on both labelled and unlabelled signals (AUC 0.83 vs 0.80). However, features extracted using SSL model trained on both labelled and unlabelled PPG signals were more predictive of hospitalization when concatenated with clinical features (AUC 0.89 vs 0.87). The end-to-end deep learning model had an AUC of 0.80 when initialized using the SSL model trained on all PPG signals, 0.77 when initialized using SSL trained on labelled data only, and 0.73 when initialized randomly. Conclusions: This study shows that SSL can extract features from PPG signals that are predictive of hospitalization or initialize end-to-end deep learning models. Furthermore, SSL can leverage larger unlabelled data sets to improve performance of models fitted using small labelled data sets.

  • Open Access

    Using Machine Learning Methods Incorporating Individual Reader Annotations to Classify Paediatric Chest Radiographs in Epidemiological Studies

    by Paul Mwaniki, Timothy Kamanu, Samuel Akech, M. J. C Eijkemans

    Introduction: Epidemiological studies that involve interpretation of chest radiographs (CXRs) suffer from inter-reader and intra-reader variability. Inter-reader and intra-reader variability hinder comparison of results from different studies or centres, which negatively affects efforts to track the burden of chest diseases or evaluate the efficacy of interventions such as vaccines. This study explores machine learning models that could standardize interpretation of CXR across studies and the utility of incorporating individual reader annotations when training models using CXR data sets annotated by multiple readers. Methods: Convolutional neural networks were used to classify CXRs from seven low to middle-income countries into five categories according to the World Health Organization's standardized methodology for interpreting paediatric CXRs. We compared models trained to predict the final/aggregate classification with models trained to predict how each reader would classify an image and then aggregate predictions for all readers using unweighted mean. Results: Incorporating individual reader's annotations during model training improved classification accuracy by 3.4% (multi-class accuracy 61% vs 59%). Model accuracy was higher for children above 12 months of age (68% vs 58%). The accuracy of the models in different countries ranged between 45% and 71%. Conclusions: Machine learning models can annotate CXRs in epidemiological studies reducing inter-reader and intra-reader variability. In addition, incorporating individual reader annotations can improve the performance of machine learning models trained using CXRs annotated by multiple readers.


  • Open Access

    Using Machine Learning Methods Incorporating Individual Reader Annotations to Classify Paediatric Chest Radiographs in Epidemiological Studies

    by Paul Mwaniki, Timothy Kamanu, Samuel Akech, M. J. C Eijkemans

    Introduction: Epidemiological studies that involve interpretation of chest radiographs (CXRs) suffer from inter-reader and intra-reader variability. Inter-reader and intra-reader variability hinder comparison of results from different studies or centres, which negatively affects efforts to track the burden of chest diseases or evaluate the efficacy of interventions such as vaccines. This study explores machine learning models that could standardize interpretation of CXR across studies and the utility of incorporating individual reader annotations when training models using CXR data sets annotated by multiple readers. Methods: Convolutional neural networks were used to classify CXRs from seven low to middle-income countries into five categories according to the World Health Organization's standardized methodology for interpreting paediatric CXRs. We compared models trained to predict the final/aggregate classification with models trained to predict how each reader would classify an image and then aggregate predictions for all readers using unweighted mean. Results: Incorporating individual reader's annotations during model training improved classification accuracy by 3.4% (multi-class accuracy 61% vs 59%). Model accuracy was higher for children above 12 months of age (68% vs 58%). The accuracy of the models in different countries ranged between 45% and 71%. Conclusions: Machine learning models can annotate CXRs in epidemiological studies reducing inter-reader and intra-reader variability. In addition, incorporating individual reader annotations can improve the performance of machine learning models trained using CXRs annotated by multiple readers.