Large language model-based triage to identify antiretroviral therapy adherence barriers and risk levels in patient messages.
Yuanchao Ma, Sofiane Achiche, David Lessard, Kim Engler, Serge Vicente, Gavin Tu, Benoît Lemire, Lina Del Balso,
Institute of Biomedical Engineering, Polytechnique Montreal, Montreal, QC H3T 1J4, Canada. · Centre for Outcomes Research & Evaluation, Research Institute of the McGill University Health Centre, Montreal, QC H4A 3J1, Canada.
Key points
From the paper's conclusion- With a co-construction committee of people with HIV and providers, 15,480 sentences were annotated for barrier and risk levels. General-domain LLMs (eg, Flan-T5) and clinical foundation models (eg, Clinical-T5) were fine-tuned for multiclass classification and evaluated using Macro-F1.
- Flan-T5-xl achieved the best barrier detection (Macro-F1 = 0.83 test/0.71 external), and Flan-T5-large excelled in risk stratification (0.79/0.57). Fine-tuned general-domain LLMs significantly outperformed clinical foundation models (P < .001) on the test split.
- LLM-based approaches show promise for real-time ART adherence monitoring, offering a scalable solution to individualized HIV care.
Abstract
OBJECTIVE: This study aimed to develop large language models (LLMs) to automatically identify antiretroviral therapy (ART) adherence barriers and stratify nonadherence risk levels from patient-generated messages. MATERIALS AND METHODS: With a co-construction committee of people with HIV and providers, 15 480 sentences were annotated for barrier and risk levels. General-domain LLMs (eg, Flan-T5) and clinical foundation models (eg, Clinical-T5) were fine-tuned for multiclass classification and evaluated using Macro-F1. Best-performing models were compared with GPT family and other open-source LLMs. Model fairness, error patterns, and environmental footprints were also assessed. RESULTS: Flan-T5-xl achieved the best barrier detection (Macro-F1 = 0.83 test/0.71 external), and Flan-T5-large excelled in risk stratification (0.79/0.57). Fine-tuned general-domain LLMs significantly outperformed clinical foundation models (P < .001) on the test split. Error analysis identified both annotation challenges (ambiguous inputs, cross-category overlap, and inconsistencies) and inference limitations (semantic overlap, implicit meanings, and contextual misinterpretation). On external datasets, Flan-T5 models outperformed other LLMs (P < .001), and were more robust to demographic descriptors, while GPT-4.1 and Gemma3 often misclassified inputs as "None." Additionally, GPT-4.1's inference consumed ∼30× more energy than that of Flan-T5-xl. DISCUSSION: Fine-tuned Flan-T5 models demonstrated strong classification performance, greater robustness to demographic attributes, and lower energy consumption, though challenges remained for subjective and underrepresented categories, reflecting both data imbalance and model limitations in implicit reasoning. CONCLUSION: LLM-based approaches show promise for real-time ART adherence monitoring, offering a scalable solution to individualized HIV care. Beyond performance, our findings highlight the importance of fairness and environmental sustainability in clinical AI development, with next steps focused on real-world validation through deployment in patient-facing digital tools.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- With a co-construction committee of people with HIV and providers, 15,480 sentences were annotated for barrier and risk levels. General-domain LLMs (eg, Flan-T5) and clinical foundation models (eg, Clinical-T5) were fine-tuned for multiclass classification and evaluated using Macro-F1.
- Flan-T5-xl achieved the best barrier detection (Macro-F1 = 0.83 test/0.71 external), and Flan-T5-large excelled in risk stratification (0.79/0.57). Fine-tuned general-domain LLMs significantly outperformed clinical foundation models (P < .001) on the test split.
- LLM-based approaches show promise for real-time ART adherence monitoring, offering a scalable solution to individualized HIV care.
Readers' thoughts
No reader thoughts yet.
Related papers
- Benchmarking large language models for HIV medical decision support.Communications medicine · 2026
- Evaluating Chinese large language models for HIV/AIDS health information: a multidimensional comparative study of response quality.Frontiers in public health · 2026
- Medical Fine-Tuning Reshapes, Not Reduces, Patient-Facing AI Risk: A Rubric-Based, LLM-Judge Evaluation FrameworkarXiv · 2026
- Large Language Models Generate Stigmatizing Language During Reasoning Over Real-World Clinical DatamedRxiv · 2026
- Task-specific fine-tuning versus frontier large language models for RoB 2 risk of bias assessment: development and external benchmark evaluation of RoB-BERTmedRxiv · 2026
- irAE-GPT: leveraging large language models to identify immune-related adverse events in electronic health records and clinical trial datasetsEBioMedicine · 2026