Ensemble Machine Learning Model for Real-Time Valproic Acid Prediction in Epilepsy Treatment

To develop an optimal model to predict valproic acid (VPA) concentrations by machine learning, ensuring that the VPA plasma concentration is in the effective treatment range, and thus effectively control the patient's epilepsy.This single-center, retrospective study included patients diagnosed with epilepsy from January 2014 to January 2022. Patients receiving VPA and having undergone therapeutic drug monitoring were enrolled. Top three algorithms exhibiting superior model performance were selected to establish the ensemble prediction model, with Shapley Additive exPlanations (SHAP) employed for model interpretation. An independent dataset was collected as a clinical validation group to verify the prediction model performance.The algorithms chosen for the ensemble model-Light Gradient Boosting, Categorical Boosting, and Gradient Boosted Regression Trees-demonstrated high <i>R</i> <sup>2</sup> (0.549, 0.515, and 0.503, respectively). Post-feature selection, the final model incorporated 20 variables, proving superior in predictive performance compared to models considering all 24 variables. The <i>R</i> <sup>2</sup> , mean absolute error, mean square error, absolute accuracy (±20 mg/L), and relative accuracy (±20%) of external validation were 0.621, 10.67, 221.50, 78.98%, and 66.48%, respectively. The importance and direction of each variable were visually represented using SHAP values, with VPA administration and liver function emerging as the most significant factors.The innovative application harnesses advanced multi-algorithm mining methodologies to forecast VPA concentrations in adult epileptic patients. Furthermore, it employs SHAP to elucidate the nuanced influence of each feature within the integrated prediction model, thereby providing a robust and plausible explanation for the determinants affecting VPA concentration predictions.

Authors

Institutions

Publication Details

Journal
Pharmacopsychiatry
Published
2025-06-02
DOI
https://doi.org/10.1055/a-2593-3125
Primary Topic
Pharmacological Effects and Toxicity Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Ensemble Machine Learning Model for Real-Time Valproic Acid Prediction in Epilepsy Treatment

Hongqian Wang, Xinmei Pan, Yongchuan Chen, Liya Cao et al.
Pharmacopsychiatry
Pharmacological Effects and Toxicity Studies
article

Ensemble Machine Learning Model for Real-Time Valproic Acid Prediction in Epilepsy Treatment

Hongqian Wang, Xinmei Pan, Yongchuan Chen, Liya Cao, Ruixiang Liu, Xin Zhang, Pan Ma, Lirong Xiong, Jiangchuan Xie, Linli Xie
article en

Abstract

To develop an optimal model to predict valproic acid (VPA) concentrations by machine learning, ensuring that the VPA plasma concentration is in the effective treatment range, and thus effectively control the patient's epilepsy.This single-center, retrospective study included patients diagnosed with epilepsy from January 2014 to January 2022. Patients receiving VPA and having undergone therapeutic drug monitoring were enrolled. Top three algorithms exhibiting superior model performance were selected to establish the ensemble prediction model, with Shapley Additive exPlanations (SHAP) employed for model interpretation. An independent dataset was collected as a clinical validation group to verify the prediction model performance.The algorithms chosen for the ensemble model-Light Gradient Boosting, Categorical Boosting, and Gradient Boosted Regression Trees-demonstrated high <i>R</i> <sup>2</sup> (0.549, 0.515, and 0.503, respectively). Post-feature selection, the final model incorporated 20 variables, proving superior in predictive performance compared to models considering all 24 variables. The <i>R</i> <sup>2</sup> , mean absolute error, mean square error, absolute accuracy (±20 mg/L), and relative accuracy (±20%) of external validation were 0.621, 10.67, 221.50, 78.98%, and 66.48%, respectively. The importance and direction of each variable were visually represented using SHAP values, with VPA administration and liver function emerging as the most significant factors.The innovative application harnesses advanced multi-algorithm mining methodologies to forecast VPA concentrations in adult epileptic patients. Furthermore, it employs SHAP to elucidate the nuanced influence of each feature within the integrated prediction model, thereby providing a robust and plausible explanation for the determinants affecting VPA concentration predictions.

Pharmacopsychiatry
Army Medical University (CN), The Affiliated Yongchuan Hospital of Chongqing Medical University (CN), Chongqing Medical University (CN)
Good health and well-being
Openalex Percentile: Top 83%
Pharmacological Effects and Toxicity Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.