- Open Access
Models for predicting treatment efficacy of antiepileptic drugs and prognosis of treatment withdrawal in epilepsy patients
Acta Epileptologica volume 3, Article number: 1 (2021)
Although antiepileptic drugs (AEDs) are the most effective treatment for epilepsy, 30–40% of patients with epilepsy would develop drug-refractory epilepsy. An accurate, preliminary prediction of the efficacy of AEDs has great clinical significance for patient treatment and prognosis. Some studies have developed statistical models and machine-learning algorithms (MLAs) to predict the efficacy of AEDs treatment and the progression of disease after treatment withdrawal, in order to provide assistance for making clinical decisions in the aim of precise, personalized treatment. The field of prediction models with statistical models and MLAs is attracting growing interest and is developing rapidly. What’s more, more and more studies focus on the external validation of the existing model. In this review, we will give a brief overview of recent developments in this discipline.
Epilepsy is one of the most common neurological diseases and has affected more than 68 million people worldwide . Although antiepileptic drugs (AEDs) are currently the primary treatment option for patients with epilepsy (PWE), about 40% of PWEs will suffer the consequence of drug-resistant epilepsy (DRE) . According to the International League Against Epilepsy, DRE is defined as the failure to achieve sustained seizure freedom after adequate trials of two tolerated and appropriately chosen AEDs treatments (monotherapies or combination therapies) . The mechanism of DRE is not fully clear and may be related to the sensitivity of drug targets, activity of drug transporters, cytochrome P450, structural neural network, and other potential causes of epilepsy . Abrupt and repetitive seizures may lead to neurobiochemical changes in the brain, cognitive decline, and serious psychological problems in PWEs, which can seriously affect patients’ quality of life and cause an increased burden on their families. Accurate prediction of the efficacy of AEDs before the initiation of treatment can reduce the use of ineffective drugs, alleviate patients’ pain, and improve the prognosis in patients.
Doctors and patients often find it hard to decide whether to reduce or stop AEDs use. Although PWEs can have better cognitive performances and higher quality of life after AEDs withdrawal, there is also an increased risk of recurrence. To avoid recurrence, many patients decide to put up with the side effects rather than completely withdrawing the AEDs. Therefore, there is an urgent need of effective and practical decision-making tools to assist clinicians to establish the course of AEDs treatment and withdrawal, as well as to help realize precise, personalized treatment.
Prediction models can integrate multiple clinical or non-clinical parameters within a certain time to calculate the probability of diagnostic outcomes as well as the disease prognosis. These models can stratify patient risk stratification to support clinical decision-making and improve the prognosis and quality of care for patients . Prediction models are divided into two main categories: those based on statistics and those based on machine learning algorithms (MLAs).
The statistical prediction models are those whose development is based on statistics, such as univariate and multivariate logistic regression/COX regression analysis to select prediction variables. The integration of multiple selection variables is used to calculate the probability of a particular diagnosis or disease prognosis . The development of statistical prediction models involves collection of datasets, selection of prediction variables, development of a prediction model, evaluation of the model’s performance, internal and external validation, and further update of the model. This type of method can be used to create an easy-to-use prediction scoring system . One example is the Framingham risk score, which is widely used in the public health field for estimating the probability of the occurrence of cardiovascular diseases in an individual within the next 10 years. This model was built based on the traditional prediction variables of age, sex, systolic blood pressure, hypertension treatment, total and high-density lipoprotein cholesterol levels, smoking, and diabetes .
With the development of artificial intelligence, machine learning is concerned with algorithm induction to improve model performance by using statistical and computer science approaches, and has shown potentials for industrialization. Machine learning has also been applied to fields like speech recognition, image classification, text translation, and medical care  for the detection of critical findings in head computerized tomography scans  and the classification of cancer . The machine learning technique is superior to manual assessment by clinical experts in that it has higher accuracy of diagnosis and outcome prediction, and it can also be used for epilepsy, especially for automated seizure detection, analysis of imaging and clinical data, epilepsy localization, and prediction of medical and surgical outcomes . Additional validation techniques, such as the hold-out cross-validation, k-fold cross validation, and “leave-one-out method” cross-validation, can be used to estimate the performance of the technique. In the following, we will give a brief overview of the efficacy of statistical prediction models and MLAs for predicting AEDs treatment response and patients’ outcome after AEDs withdrawal.
Prediction models for the response to AEDs treatment
Drug selection mainly relies on official guidelines and clinical experience of doctors, due to the fact that the treatment efficacy varies among individual PWEs. Personalized selection of effective AEDs still remains a big challenge. Some prospective studies have identified certain predictive factors of DRE, such as early onset, sex, duration of epilepsy, multiple seizure types, comorbidities, history of central nervous system infection, cognitive impairment, epilepsy syndrome, presence of structural abnormalities in magnetic resonance imaging (MRI), previous history of status epilepticus, family history of epilepsy, history of perinatal brain injury, and certain electroencephalography (EEG) features [12,13,14,15]. The identification and determination of these parameters are the basis for creating a predictive model.
Statistical prediction models
Based on the statistical method, certain variables can be selected and integrated into a model and a score system can be created for a specific purpose; this type of model has been tested in the field of epilepsy. Boonluksiri et al.  enrolled 308 children with epilepsy in a retrospective study, and they selected the age at onset, prior neurological deficits, and abnormal EEGs as variables, and established a scale for predicting DRE in children. The children were then divided into 3 groups depending on the risk of developing DRE: low risk (score < 6 points), moderate risk (score 6–12 points) and high risk (score > 12 points), with positive likelihood ratios of 0.5, 1.8, and 12.5, respectively, and an area under the curve (AUC) of 0.76. However, as this retrospective study was conducted in a single center with a small sample size and lacked both internal and external validation, the performance and practicality of this model need further validation. In a previous study , we developed a scale for predicting DRE in adult patients with MRI-negative epilepsy [MRI(−)DRE]. The AUC was 0.89 and the risk stratification was given as: low risk (0–3 points), medium risk (3–5 points), and high risk (> 5 points). Using this method, the probability of DRE could also be calculated. However, this scale was limited by the retrospective design based on data of 132 patients, so further validation is needed. Latzer et al.  created a model to predict DRE in children with cerebral palsy at the Tel Aviv Medical Center in Tel Aviv, Israel and this model was used in a retrospective study including 118 patients. The model was composed of four parameters (low Apgar score at 5 min, neonatal seizures, focal-onset epilepsy, and focal slowing on EEG) and the AUC was 0.84. Although their model helped to identify which patient would achieve better seizure control, the study was performed with a small sample size and the lack of validation makes it difficult to judge the model’s performance (Table 1).
In summary, a few comprehensive statistical models with multiple variables have been established for predicting the response to AEDs treatment, but they were weakened by some limitations including the retrospective design, small sample sizes, and the lack of internal and external validation. To address these, more prospective, multi-center studies with large sample sizes are required. In addition, these models need to be verified in multiple centers.
Machine learning algorithms
MLAs can be used to extract more EEG, imaging, and clinical features of patients to build prediction models and validate performance through the use of more methods. MLAs can also be readily applied in artificial intelligence-based industrialization, an extremely relevant and competitive field today.
UCB Pharma has been actively involved in conducting research on the development and validation of MLA for use in the prediction of AEDs effectiveness in individual PWEs. Devinsky et al.  at the New York University Medical Center, based on the UCB–IBM collaboration, explored the application of MLA to construct an algorithm for AEDs prescription. A total of 50, 000 PWEs were retrospectively enrolled in the study and randomly divided into a training group of 40, 000 patients and a testing group of 10, 000 patients. Roughly 5, 000 features were extracted to build the prediction model, which had an AUC of 0.72 and was considered to have a good predictive power. The patients with the model-predicted AEDs regimen had significantly higher survival rates than those who received another treatment. There were large discrepancies in the frequency of use of certain AEDs or their combinations between the model-predicted AEDs regimens and the actually prescribed regimens. The model performed even better than epileptologists in clinical scenarios of monotherapy with levetiracetam or lamotrigine. Regrettably, only 13% of the actually prescribed AEDs regimens matched with the regimen chosen by the model. Although this model was based on a large sample size and was applied in clinical practice, an obvious limitation of it is the lack of external validation. Thus it still needs to be further optimized to improve the accuracy. An et al.  recently trained and tested three algorithms, i.e. the multivariate logistic regression analysis, the support vector machine, and the random forest algorithm, to identify patients at high risk of DRE. A total of 292, 892 patients met the inclusion criteria for epilepsy; 175, 735 of them were assigned to the training cohort and the other 117, 157 were assigned to the test cohort, and 1 270 features were screened as predictive factors. The random forest algorithm had an AUC of 0.76 and performed the best of the three models. It could predict the emergence of DRE approximately 2 years in advance before a patient failed two AEDs trials. The drawback of this study was that it was a retrospective study without external validation. Furthermore, the DRE incidence was only 13.1%, which was lower than that in other studies, indicating that the dataset had significant limitations.
A number of pharmacogenomic studies have focused on identifying single nucleotide polymorphism (SNP) markers for predicting the outcomes of AEDs treatments, and some studies have tried to establish certain multi-SNP models to predict the response to AEDs. Petrovski et al.  prospectively collected the genetic results of patients with newly diagnosed epilepsy and developed a multi-SNP classification model, based on the k-nearest neighbor supervised learning approach, to predict the seizure freedom 1 year after AEDs treatment. Their study included 115 patients: 80% of them (92 cases) were enrolled in the training cohort and 20% (23 cases) were enrolled in the validation cohort. Two hundred and seventy-nine candidate genes were involved and five genes [rs658624 (SCN4B), rs678262 (SCN4B), rs2808526 (GABBR2), rs4869682 (SLC1A3), and rs2283170 (KCNQ1)] were selected for the final model. The model showed a good predictive accuracy of 83.5% in the developmental cohort by cross-validation; its sensitivity and positive predictive values were all above 80% in the two independent validation cohorts. However, the sample size of this study was small, the external validation was lacking, and the model was derived only from the traits of drug genes while not involving EEGs, MRIs, or other key clinical and demographic characteristics, which might affect its predictive performance. Shazadi et al.  assessed the validity of Petrovski’s algorithm in two UK cohorts of newly diagnosed epilepsy patients, and showed that the multi-SNP prediction model was not predictive for the initial treatment response. They also found that the five SNPs appeared to have an impact on the prescription of carbamazepine or valproate in the UK patients.
Some Chinese researchers have also investigated the use of machine learning techniques to predict AEDs effectiveness. Yao et al.  established five classical MLAs (decision tree, random forest, support vector machine, XGBoost, and logistic regression) to predict the outcomes of AEDs treatment in patients with newly diagnosed epilepsy. They prospectively collected information of 287 patients with newly diagnosed epilepsy and followed up the patients for a minimum of 3 years at the Second Affiliated Hospital of Zhejiang University. The patients were classified into the remission group and non-remission group with regard to the outcome of seizure re-occurrence, and the former group was further divided into the early remission group and late remission group. The authors evaluated the performance of the models based on their precision, recall, F1-scores, and AUC values. The results showed that the XGBoost algorithm had the best predictive performance between the remission group and non-remission group, with an F1 score of 0.947 and AUC value of 0.979, and between the early remission group and late remission group, with an F1 score of 0.836 and AUC value of 0.918. They claimed that the classified prediction could help doctors make clinical decisions and improve treatment strategies. In our previous study , we created a model based on support vector machines (SVM) to predict the possibility of seizure freedom after levetiracetam therapy. In a retrospective study including 46 PWEs treated with levetiracetam, 80% of the patients were used to establish the SVM model and the other patients were used to subsequently test the model. Before the start of levetiracetam treatment, 11 clinical variables and four EEG parameters (sample entropies of α, β, θ, δ) were extracted. Our SVM model showed an accuracy of 72.2% in a five-fold cross-validation, an accuracy of 75.0% in a jack-knife validation, and an accuracy of 67.7% in a hold-out validation in the training cohort. The prediction accuracy of our model was 90% in the test cohort, and three different verification methods all showed good reliability. The drawbacks of our model were a lack of external validation and that the data were derived retrospectively from a single center; the sample size was also small. Furthermore, the kernel function and dimension of SVM could also have affected the accuracy of the model. Therefore, this model needs to be optimized and performance must be improved by utilizing a larger dataset (Table 2).
While the development in machine learning technology allows for more algorithms to be created and applied in the field of AEDs treatment, it is currently difficult to use this technology in clinical practice because of its complexity and the inconsistent variables. Specific software or web calculators need to be produced to facilitate clinical use and industrialization of the models.
Prediction models for the outcome of AEDs withdrawal
About 70% of newly diagnosed PWEs could achieve seizure freedom following appropriate AEDs therapy , but the timing at which to stop AEDs is an important issue that remains a significant challenge for both patients and doctors. Due to the fear of seizure relapse, many PWEs choose to continue AEDs even after experiencing long-term seizure freedom, enduring side effects of the treatment. If PWEs remain seizure free after AEDs withdrawal, their psychological stress and quality of life can be significantly improved. In 2013, the Italian League Against Epilepsy issued guidelines on AED withdrawal in PWEs who had achieved a long period of seizure freedom , and these guidelines recommended discontinuation of AEDs treatment after a minimum seizure-free period of 2 years. It has been found that the earlier the drug is discontinued, the higher the chance of seizure recurrence is. Some factors, such as abnormal EEGs, mental retardation, perinatal insults, abnormal neurologic signs, partial seizures, older age of onset, and female sex, can independently increase the risk of seizure relapse. Although the guidelines systematically evaluated certain independent variables for AEDs withdrawal, there was not an integrated and comprehensive model for predicting the outcome of AEDs withdrawal.
Statistical prediction models for AEDs withdrawal
In 2017, Lamberink et al.  established two nomograms to predict the seizure recurrence and seizures in the last year of follow-up after AEDs withdrawal in seizure-free patients. They initially did a systematic review and meta-analysis to identify those studies, and then they invited the author to participate in the research, including 1 769 PWEs with ten studies in the end. The adjusted concordance statistics were 0.65 for predicting recurrence and 0.71 for predicting long-term freedom; the calibration plots showed good performance of both models. This model also showed good performance of discrimination and a web-based calculator was subsequently built for practical purposes. The study had a large sample size and the model was representative to a certain extent and had some clinical value. Given that these nomograms were established from a pooled analysis of previously published data, the uniformity of clinical variables was slightly poor and multiple imputations were used to deal with the missing data. Furthermore, there was a lack of external validation. Therefore, the universality of these nomograms requires further verification by different research teams. Lin et al.  from the First Affiliated Hospital of Wenzhou Medical University did an external validation of the Lamberink model. The AUCs for predicting the recurrence and long-term outcomes were 0.71 and 0.68, respectively. The calibration plots showed that the Lamberink two-year model had a good fit and, with respect to the decision curve analysis, the Lamberink two-year model also had good performance. Lin’s research showed that the Lamberink two-year model may have a greater value in guiding drug withdrawal in adult PWEs than other models.
Lamberink et al.  also created two nomograms for individualized prediction of recurrence and long-term outcomes of AEDs withdrawal after pediatric epilepsy surgery. They included 766 children from 15 centers, and the final models were composed of 3–5 factors. The discrimination in terms of adjusted concordance statistic was 0.68 for predicting seizure recurrence and 0.73 for predicting long-term seizure freedom and the calibration plots showed good performance. A visualized prediction tool is also provided online. In addition to the large sample size from multiple centers, the validation of these nomograms was executed well and supported by a web-based calculator. This indicates that these models have high clinical value for recommending the cessation and withholding of AEDs after pediatric epilepsy surgery. However, as there was no external validation, the application of the nomograms in other populations remains to be tested (Table 3).
Machine learning algorithm for the prognosis after AEDs withdrawal
There has been no report of MLA use for the prognosis or prediction of recurrence after AEDs withdrawal. Future research is needed.
Several predictive models for AEDs regimen selection and withdrawal in epilepsy have been developed to facilitate clinical decisions, but there are some common issues caused by small sample size or inconsistent parameters. In future studies, a group of main parameters should be established initially. Then, more prospective, multi-center studies with large sample sizes should be conducted to develop certain predictive models, which can be widely accepted in the field of AEDs treatment in order to improve the prognosis and quality of life of patients with epilepsy.
Availability of data and materials
Drug refractory epilep\sy
Patients with epilepsy
Area under the curve
Single nucleotide polymorphism
Magnetic resonance imaging
Support vector machines
Ngugi AK, Bottomley C, Kleinschmidt I, Sander JW, Newton CR. Estimation of the burden of active and life-time epilepsy: a meta-analytic approach. Epilepsia. 2010;51(5):883–90.
Chen Z, Brodie MJ, Liew D, Kwan P. Treatment outcomes in patients with newly diagnosed epilepsy treated with established and new antiepileptic drugs: a 30-year longitudinal cohort study. JAMA Neurol. 2018;75(3):279–86.
Kwan P, Arzimanoglou A, Berg AT, Brodie MJ, Allen Hauser W, Mathern G, et al. Definition of drug resistant epilepsy: consensus proposal by the ad hoc Task Force of the ILAE Commission on Therapeutic Strategies. Epilepsia. 2010;51(6):1069–77.
Naimo GD, Guarnaccia M, Sprovieri T, Ungaro C, Conforti FL, Andò S, et al. A systems biology approach for personalized medicine in refractory epilepsy. Int J Mol Sci. 2019;20(15):1–15.
Shipe ME, Deppen SA, Farjah F, Grogan EL. Developing prediction models for clinical use using logistic regression: an overview. J Thorac Dis. 2019;11(Suppl 4):S574–S84.
Han K, Song K, Choi BW. How to develop, validate, and compare clinical prediction models involving radiological parameters: study design and statistical methods. Korean J Radiol. 2016;17(3):339–50.
D'Agostino RB, Vasan RS, Pencina MJ, Wolf PA, Cobain M, Massaro JM, et al. General cardiovascular risk profile for use in primary care: the Framingham Heart Study. Circulation. 2008;117(6):743–53.
Deo RC. Machine learning in medicine. Circulation. 2015;132(20):1920–30.
Chilamkurthy S, Ghosh R, Tanamala S, Biviji M, Campeau NG, Venugopal VK, et al. Deep learning algorithms for detection of critical findings in head CT scans: a retrospective study. Lancet. 2018;392(10162):2388–96.
Coudray N, Ocampo PS, Sakellaropoulos T, Narula N, Snuderl M, Fenyö D, et al. Classification and mutation prediction from non-small cell lung cancer histopathology images using deep learning. Nat Med. 2018;24(10):1559–67.
Abbasi B, Goldenholz DM. Machine learning applications in epilepsy. Epilepsia. 2019;60(10):2037-47.
Ben-Menachem E. Medical management of refractory epilepsy--practical treatment with novel antiepileptic drugs. Epilepsia. 2014;55(Suppl 1):3–8.
Perucca E, Tomson T. The pharmacological treatment of epilepsy in adults. Lancet Neurol. 2011;10(5):446–56.
Walsh S, Donnan J, Fortin Y, Sikora L, Morrissey A, Collins K, et al. A systematic review of the risks factors associated with the onset and natural progression of epilepsy. Neurotoxicology. 2017;61:64–77.
Yang SJ, He GN, Han X, Wang N, Chen Y, Zhu XR, et al. A scale for prediction of response to AEDs in patients with MRI-negative epilepsy. Epilepsy Behav. 2019;94:41–6.
Boonluksiri P, Visuthibhan A, Katanyuwong K. Clinical prediction rule of drug resistant epilepsy in children. Epilepsy Res. 2015;5(2):84–8.
Tokatly Latzer I, Blumovich A, Sagi L, Uliel-Sibony S, Fattal-Valevski A. Prediction of drug-resistant epilepsy in children with cerebral palsy. J Child Neurol. 2020;35(3):187–94.
Devinsky O, Dilley C, Ozery-Flato M, Aharonov R, Goldschmidt Y, Rosen-Zvi M, et al. Changing the approach to treatment choice in epilepsy using big data. Epilepsy Behav. 2016;56:32–7.
An S, Malhotra K, Dilley C, Han-Burgess E, Valdez JN, Robertson J, et al. Predicting drug-resistant epilepsy—a machine learning approach based on administrative claims data. Epilepsy Behav. 2018;89:118–25.
Petrovski S, Szoeke CE, Sheffield LJ, D'souza W, Huggins RM, O'brien TJ. Multi-SNP pharmacogenomic classifier is superior to single-SNP models for predicting drug outcome in complex diseases. Pharmacogenet Genomics. 2009;19(2):147–52.
Shazadi K, Petrovski S, Roten A, Miller H, Huggins RM, Brodie MJ, et al. Validation of a multigenic model to predict seizure control in newly treated epilepsy. Epilepsy Res. 2014;108(10):1797–805.
Yao L, Cai M, Chen Y, Shen C, Shi L, Guo Y, et al. Prediction of antiepileptic drug treatment outcomes of patients with newly diagnosed epilepsy by machine learning. Epilepsy Behav. 2019;96:92–7.
Zhang JH, Han X, Zhao HW, Zhao D, Wang N, Zhao T, et al. Personalized prediction model for seizure-free epilepsy with levetiracetam therapy: a retrospective data analysis using support vector machine. Br J Clin Pharmacol. 2018;84(11):2615–24.
Beghi E, Giussani G, Grosso S, Iudice A, La Neve A, Pisani F, et al. Withdrawal of antiepileptic drugs: guidelines of the Italian League Against Epilepsy. Epilepsia. 2013;54(Suppl 7):2–12.
Lamberink HJ, Otte WM, Geerts AT, Pavlovic M, Ramos-Lizana J, Verweg J, et al. Individualised prediction model of seizure recurrence and long-term outcomes after withdrawal of antiepileptic drugs in seizure-free patients: a systematic review and individual participant data meta-analysis. Lancet Neurol. 2017;16(7):523–31.
Pisani F, Facini C, Pavlidis E, Spagnoli C, Boylan G. Epilepsy after neonatal seizures: literature review. Eur J Paediatr Neurol. 2015;19(1):6–14.
Lamberink HJ, Boshuisen K, Otte WM, Geleijns K, Braun KPJ. Individualized prediction of seizure relapse and outcomes following antiepileptic drug withdrawal after pediatric epilepsy surgery. Epilepsia. 2018;59(3):e28–33.
This study was supported by Joint Construction Project of Province and Ministry in Henan Province (Grant number SB201901074).
Ethics approval and consent to participate
Consent for publication
The author gives consent for publication.
The authors declare that they have no conflict of interest.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Yang, S., Wang, B. & Han, X. Models for predicting treatment efficacy of antiepileptic drugs and prognosis of treatment withdrawal in epilepsy patients. Acta Epileptologica 3, 1 (2021). https://doi.org/10.1186/s42494-020-00035-9
- Prediction model
- Machine learning
- Antiepileptic drugs
- Drug response
- Withdrawal reaction