Applying Large Language Models to Assess Quality of Care: Monitoring ADHD Medication Side Effects
Authors:
- 20 December 2024
- journal article
- Published by American Academy of Pediatrics (AAP) in Pediatrics
- Vol. 155 (1)
Abstract
OBJECTIVE: To assess the accuracy of a large language model (LLM) in measuring clinician adherence to practice guidelines for monitoring side effects after prescribing medications for children with attention-deficit/hyperactivity disorder (ADHD). METHODS: Retrospective population-based cohort study of electronic health records. Cohort included children aged 6 to 11 years with ADHD diagnosis and 2 or more ADHD medication encounters (stimulants or nonstimulants prescribed) between 2015 and 2022 in a community-based primary health care network (n = 1201). To identify documentation of side effects inquiry, we trained, tested, and deployed an open-source LLM (LLaMA) on all clinical notes from ADHD-related encounters (ADHD diagnosis or ADHD medication prescription), including in-clinic/telehealth and telephone encounters (n = 15 628 notes). Model performance was assessed using holdout and deployment test sets, compared with manual medical record review. RESULTS: The LLaMA model accurately classified notes that contained side effects inquiry (sensitivity = 87.2, specificity = 86.3, area under curve = 0.93 on holdout test set). Analyses revealed no model bias in relation to patient sex or insurance. Mean age (SD) at first prescription was 8.8 (1.6) years; characteristics were mostly similar across patients with and without documented side effects inquiry. Rates of documented side effects inquiry were lower for telephone encounters than for in-clinic/telehealth encounters (51.9% vs 73.0%, P < .001). Side effects inquiry was documented in 61.4% of encounters after stimulant prescriptions and 48.5% of encounters after nonstimulant prescriptions (P = .041). CONCLUSIONS: Deploying an LLM on a variable set of clinical notes, including telephone notes, offered scalable measurement of quality of care and uncovered opportunities to improve psychopharmacological medication management in primary care.Keywords
This publication has 24 references indexed in Scilit:
- Using Artificial Intelligence to Improve Primary Care for Patients and CliniciansJAMA Internal Medicine, 2024
- Prevalence and Trends in Diagnosed ADHD Among US Children and Adolescents, 2017-2022JAMA Network Open, 2023
- Continuity of Care in Primary Care for Young Children With Chronic ConditionsAcademic Pediatrics, 2022
- Peeking into a black box, the fairness and generalizability of a MIMIC-III benchmarking modelScientific Data, 2022
- Attention-Deficit/Hyperactivity Disorder in 2- to 5-Year-Olds: A Primary Care Network ExperienceAcademic Pediatrics, 2021
- MINIMAR (MINimum Information for Medical AI Reporting): Developing reporting standards for artificial intelligence in health careJournal of the American Medical Informatics Association, 2020
- Measuring the Cost of Quality MeasurementJAMA, 2017
- Specific Components of Pediatricians’ Medication-Related Care Predict Attention-Deficit/Hyperactivity Disorder Symptom ImprovementJournal of the American Academy of Child & Adolescent Psychiatry, 2017
- Treatment of Attention Deficit/Hyperactivity Disorder among Children with Special Health Care NeedsThe Journal of Pediatrics, 2015
- Gaps in Quality Measures for Child Mental Health Care: An Opportunity for a Collaborative AgendaJournal of the American Academy of Child & Adolescent Psychiatry, 2011