# Machine learning-guided clinical pharmacist interventions improve treatment outcomes in tuberculosis patients: a precision medicine approach

**Authors:** Dang Yi, Huanqing Liu, Qian Lei, Tingting Li

PMC · DOI: 10.3389/frai.2025.1679837 · Frontiers in Artificial Intelligence · 2025-12-18

## TL;DR

Machine learning helps clinical pharmacists improve TB treatment outcomes and reduce hospital stays through personalized care.

## Contribution

Machine learning-guided pharmacist interventions are shown to improve TB treatment outcomes and cost-effectiveness.

## Key findings

- Intervention group had shorter hospital stays (median 49.0 vs. 57.0 days).
- Adverse event rates were lower in the intervention group (26.1% vs. 27.7%).
- Cost savings of 5,000 CNY per patient in the intervention group.

## Abstract

The heterogeneity in tuberculosis (TB) treatment responses necessitates a precision medicine approach. This study employed machine learning techniques to identify patient subtypes and optimize clinical pharmacist interventions.

We conducted a prospective cohort study involving 467 TB patients (218 in the intervention group receiving machine learning-guided pharmacist care and 249 in the control group receiving standard care). Primary outcomes included time to sputum conversion (smear, culture, TB-RNA) and duration of hospitalization; secondary outcomes encompassed adverse event rates (hepatotoxicity, renal impairment, etc.), cost-effectiveness, and biomarker dynamics. Patient stratification was performed using unsupervised learning (k-means/PCA) on clinical and laboratory parameters. Treatment outcomes were assessed via Kaplan–Meier survival analysis and Cox proportional hazards modeling, with prespecified subgroup analyses by risk clusters. Post hoc analyses (e.g., correlation heatmaps of biomarkers) were explicitly labeled as exploratory. Cost-effectiveness was evaluated using incremental cost per quality-adjusted hospital day saved (ICER).

Machine learning identified 2 distinct patient subtypes (inflammatory vs. immunologic profiles). The intervention group showed significantly shorter hospital stays (primary outcome: median 49.0 vs. 57.0 days; log-rank p = 0.040). Adverse event rates were lower in the intervention group (26.1% vs. 27.7%). Cost analysis demonstrated potential savings of 5,000 CNY per patient in the intervention group. Limitations: Single-center design and modest sample size may limit generalizability. Unmeasured confounders (e.g., socioeconomic factors) could influence outcomes. Post hoc biomarker correlations require validation in independent cohorts.

Machine learning-guided pharmacist interventions improved TB treatment outcomes and reduced costs. Future multicenter studies should validate subtype-specific benefits.

https://www.chictr.org.cn/ identifier ChiCTR2300074328.

## Linked entities

- **Diseases:** tuberculosis (MONDO:0018076)

## Full-text entities

- **Diseases:** TB (MESH:D014376), inflammatory (MESH:D007249), renal impairment (MESH:D007674)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12756465/full.md

## Figures

15 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12756465/full.md

## References

21 references — full list in the complete paper: https://tomesphere.com/paper/PMC12756465/full.md

---
Source: https://tomesphere.com/paper/PMC12756465