Personalized prediction of initial valproic acid dose in children with epilepsy using machine learning techniques
Yu Zhang1, Shuhong Ren1, Jing Yu2,3
1Department of Pediatric Neurology, Baoding Hospital, Beijing Children's Hospital Affiliated to Capital Medical University, 3399 Hengxiang North Street, Baoding, 071000, Hebei Province, China.
Insights
This study developed an AI model to predict initial valproic acid (VPA) doses for pediatric epilepsy, improving dosing accuracy and patient safety. The TabNet model shows promise for personalized VPA therapy in children.
Area of Science:
- Artificial Intelligence in Medicine
- Pharmacokinetics and Pharmacodynamics
- Pediatric Neurology
Background:
- Valproic acid (VPA) is a common antiepileptic drug for children, but its effectiveness is limited by significant inter-individual pharmacokinetic variability.
- Imprecise initial VPA dosing can result in subtherapeutic levels or toxicity, including hepatotoxicity and encephalopathy.
- Current methods for predicting individualized initial VPA doses in pediatric epilepsy are insufficient.
Purpose of the Study:
- To develop and internally validate an artificial intelligence (AI)-based predictive model for initial daily valproic acid (VPA) doses in pediatric epilepsy patients.
- To leverage a real-world clinical database for model development and assessment.
Main Methods:
- A retrospective cohort of 184 pediatric epilepsy patients (aged 1-16 years) treated with VPA was analyzed.
- Data underwent pre-processing including standardization and imputation, followed by variable selection.
- Ten machine learning and deep learning algorithms were trained and evaluated using tenfold cross-validation, with performance measured by R², RMSE, MAE, and MAPE.
Main Results:
- Age, weight, total protein, creatinine, and lactate dehydrogenase were identified as key predictors for initial VPA dose.
- The TabNet algorithm demonstrated superior performance, achieving an R² of 0.730, RMSE of 0.153, MAE of 0.116, and MAPE of 18.19% on the test set.
- Approximately 85.48% of predictions were within ±30% of the actual VPA dose.
Conclusions:
- The TabNet-based model shows significant potential for predicting individualized initial VPA doses in pediatric epilepsy patients.
- This AI tool, integrating demographic and laboratory data, could aid clinicians and pharmacists in optimizing VPA dosing precision and safety.
- External validation is necessary to confirm the model's generalizability across diverse populations and clinical settings before widespread implementation.
Introduction:
Valproic acid (VPA) is widely prescribed antiepileptic drug in children because of its broad-spectrum efficacy. However, marked inter-individual variability in pharmacokinetics makes dose optimization challenging. Inappropriate initial dosing can lead to subtherapeutic exposure or toxicity, including hepatotoxicity, encephalopathy, and hematological adverse effects. Despite the importance of early dose selection, reliable methods for predicting individualized initial daily doses of VPA in pediatric epilepsy are lacking.
Aim:
This study aimed to develop and internally validate a predictive model for the initial daily dose of VPA in pediatric epilepsy patients based on a real-world clinical database using artificial intelligence techniques.
Method:
A retrospective cohort of pediatric epilepsy patients treated with VPA was recruited from Baoding Children's Hospital between December 2017 and November 2023. Eligible patients were aged 1-16 years, received oral VPA therapy, and underwent therapeutic drug monitoring. Data pre-processing included z-score standardization, one-hot encoding, and Random Forest imputation for missing values. Variable selection was performed by univariate analysis and sequential forward selection. The dataset (306 VPA dose samples from 184 patients) was randomly divided into training (80%) and testing (20%) sets. Ten machine learning and deep learning algorithms-CatBoost, XGBoost, LightGBM, Random Forest, Support Vector Machine, Multilayer Perceptron, Artificial Neural Network, Transformer, AdaBoost, and TabNet-were trained with tenfold cross-validation. The model performance was assessed using the coefficient of determination (R2), root mean square error (RMSE), mean absolute error (MAE), and mean absolute percentage error (MAPE).
Results:
Age, weight, total protein, creatinine, and lactate dehydrogenase were the five most influential predictors of initial daily VPA dose. Among all the models, the TabNet algorithm achieved the best predictive performance, with R2 = 0.730, RMSE = 0.153, MAE = 0.116, and MAPE = 18.19% in the test set. The proportions of predictions within ± 30, ± 40, and ± 50% of the actual dose were 85.48, 91.94, and 95.16%, respectively.
Conclusion:
The TabNet-based model demonstrated strong predictive ability for estimating individualized initial VPA doses in pediatric epilepsy in a single-center cohort with internal validation only. By integrating readily available demographic and laboratory parameters, the model and its accompanying online tool have the potential to offer a practical decision-support resource for clinicians and pharmacists to improve dosing precision, enhance safety, and optimize therapeutic outcomes; however, the generalizability of this internally validated model to other hospitals, populations, and ethnic groups is unknown, and external validation is required before clinical implementation.
More Related Videos
08:04Identification and Classification of Position-specific GABAA Receptor Subunit Missense Variants for Their Role In Hippocampal Pyramidal Neurons
Published on: June 6, 2025
10:46Author Spotlight: Obtaining High-Quality CSF and Blood Samples for Epilepsy Biomarker Discovery
Published on: September 1, 2023
Related Concept Videos
Antiepileptic Drugs: Modulators of Neurotransmitter Release Mediated by SV2A Protein
SV2A is a transmembrane glycoprotein located predominantly in the brain, modulating the release of neurotransmitters for neuronal communication. Both levetiracetam and brivaracetam exhibit a high affinity for...
Seizures: Classification
Seizures are typically classified into two main categories: focal and generalized seizures.
Focal Seizures
Focal seizures originate from specific regions of the brain. These seizures are further sub-classified into two types:
Drug Dosing: Infants and Children
Epilepsy and Seizures: Overview
Various factors can trigger epilepsy, including genetic factors, brain damage, metabolic causes, and unknown etiology. Diagnosis of epilepsy involves electroencephalography (EEG), which...
Antiepileptic Drugs: GABAergic Pathway Potentiators
The key GABA pathway potentiators used in epilepsy management are as follows.
Benzodiazepines are a well-known class of drugs used for...
