Prediction Trough Concentrations of Valproic Acid Among Chinese Adult Patients with Epilepsy Using Machine Learning Techniques

Pharm Res. 2025 Jan 22. doi: 10.1007/s11095-025-03817-3. Online ahead of print.

Abstract

Objective: This study aimed to establish an optimal model based on machine learning (ML) to predict Valproic acid (VPA) trough concentrations in Chinese adult epilepsy patients.

Methods: A single-center retrospective study was carried out at the Jinshan Hospital affiliated with Fudan University from January 2022 to December 2023. A total of 102 VPA trough concentrations were split into a derivation cohort and a validation cohort at a ratio of 8:2. Thirteen ML algorithms were developed using 27 variables in the derivation cohort and were filtered by the lowest mean absolute error (MAE) value. In addition, feature selection was applied to optimize the model.

Results: Ultimately, the extra tree algorithm was chosen to establish the personalized VPA trough concentration prediction model due to its best performance (MAE = 13.08). The SHapley Additive exPlanations (SHAP) plots were used to visualize and rank the importance of features, providing insights into how each feature influences the model's predictions. After feature selection, we found that the model with the top 9 variables [including daily dose, last dose, uric acid (UA), platelet (PLT), combination, gender, weight, albumin (ALB), aspartate aminotransferase (AST)] outperformed the model with 27 variables, with MAE of 6.82, RMSE of 9.62, R2 value of 0.720, relative accuracy (±20%) of 61.90%, and absolute accuracy (±20 mg/L) of 90.48%.

Conclusion: In conclusion, the trough concentration prediction model for VPA in Chinese adult epileptic patients based on the extra tree algorithm demonstrated strong predictive ability which is valuable for clinicians in medication guidance.

Keywords: chinese adult epileptic patients; machine learning; prediction; trough concentration; valproic acid.