Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Oct 1;79(10):986-996.
doi: 10.1001/jamaneurol.2022.2514.

Development and Validation of a Deep Learning Model for Predicting Treatment Response in Patients With Newly Diagnosed Epilepsy

Affiliations

Development and Validation of a Deep Learning Model for Predicting Treatment Response in Patients With Newly Diagnosed Epilepsy

Haris Hakeem et al. JAMA Neurol. .

Abstract

Importance: Selection of antiseizure medications (ASMs) for epilepsy remains largely a trial-and-error approach. Under this approach, many patients have to endure sequential trials of ineffective treatments until the "right drugs" are prescribed.

Objective: To develop and validate a deep learning model using readily available clinical information to predict treatment success with the first ASM for individual patients.

Design, setting, and participants: This cohort study developed and validated a prognostic model. Patients were treated between 1982 and 2020. All patients were followed up for a minimum of 1 year or until failure of the first ASM. A total of 2404 adults with epilepsy newly treated at specialist clinics in Scotland, Malaysia, Australia, and China between 1982 and 2020 were considered for inclusion, of whom 606 (25.2%) were excluded from the final cohort because of missing information in 1 or more variables.

Exposures: One of 7 antiseizure medications.

Main outcomes and measures: With the use of the transformer model architecture on 16 clinical factors and ASM information, this cohort study first pooled all cohorts for model training and testing. The model was trained again using the largest cohort and externally validated on the other 4 cohorts. The area under the receiver operating characteristic curve (AUROC), weighted balanced accuracy, sensitivity, and specificity of the model were all assessed for predicting treatment success based on the optimal probability cutoff. Treatment success was defined as complete seizure freedom for the first year of treatment while taking the first ASM. Performance of the transformer model was compared with other machine learning models.

Results: The final pooled cohort included 1798 adults (54.5% female; median age, 34 years [IQR, 24-50 years]). The transformer model that was trained using the pooled cohort had an AUROC of 0.65 (95% CI, 0.63-0.67) and a weighted balanced accuracy of 0.62 (95% CI, 0.60-0.64) on the test set. The model that was trained using the largest cohort only had AUROCs ranging from 0.52 to 0.60 and a weighted balanced accuracy ranging from 0.51 to 0.62 in the external validation cohorts. Number of pretreatment seizures, presence of psychiatric disorders, electroencephalography, and brain imaging findings were the most important clinical variables for predicted outcomes in both models. The transformer model that was developed using the pooled cohort outperformed 2 of the 5 other models tested in terms of AUROC.

Conclusions and relevance: In this cohort study, a deep learning model showed the feasibility of personalized prediction of response to ASMs based on clinical information. With improvement of performance, such as by incorporating genetic and imaging data, this model may potentially assist clinicians in selecting the right drug at the first trial.

PubMed Disclaimer

Conflict of interest statement

Conflict of Interest Disclosures: Dr Zhibin Chen reported receiving grants from the National Health and Medical Research Council (NHMRC) Early Career Fellowship during the conduct of the study and grants from the NHMRC, grants from UCB Pharma, and personal fees from Arvelle Therapeutics outside the submitted work. Dr Lawn reported receiving grants from UCB Pharma to cover costs of a research assistant for the first seizure database (from which data were used in this study) and grants from the Medical Research Foundation of Royal Perth Hospital for the research project, “First-ever seizure in adults: clinical features and prognosis” (from which data were used in this study) during the conduct of the study, as well as funding support and consultancy fees and speaker honorariums from UCB Pharma and Eisai outside the submitted work. Dr Kwan reported grants from the Medical Research Future Fund during the conduct of the study, grants from Eisai, UCB Pharma, GW Pharmaceuticals, LivaNova, and Lario Therapeutics, as well as personal fees from Eisai and UCB Pharma outside the submitted work. No other disclosures were reported.

Figures

Figure.
Figure.. Receiver Operating Characteristic (ROC) Curves and Weighted Balanced Accuracy Curve for the Transformer Model Developed Using a Pooled Cohort
A, ROC curve on the training set. B, Weighted balanced accuracy curve at different threshold values of probability. The highest weighted balanced accuracy was obtained at a threshold of 0.5. The optimal threshold value is indicated by the intersection of dashed blue lines. C, ROC curve on the test set. AUROC indicates area under the receiver operating characteristic curve.

Comment in

References

    1. Fiest KM, Sauro KM, Wiebe S, et al. . Prevalence and incidence of epilepsy: a systematic review and meta-analysis of international studies. Neurology. 2017;88(3):296-303. doi:10.1212/WNL.0000000000003509 - DOI - PMC - PubMed
    1. Kwan P, Arzimanoglou A, Berg AT, 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-1077. doi:10.1111/j.1528-1167.2009.02397.x - DOI - PubMed
    1. Chen Z, Brodie MJ, Kwan P. What has been the impact of new drug treatments on epilepsy? Curr Opin Neurol. 2020;33(2):185-190. doi:10.1097/WCO.0000000000000803 - DOI - PubMed
    1. Kwan P, Brodie MJ. Early identification of refractory epilepsy. N Engl J Med. 2000;342(5):314-319. doi:10.1056/NEJM200002033420503 - DOI - PubMed
    1. Dhamija R, Moseley BD, Cascino GD, Wirrell EC. A population-based study of long-term outcome of epilepsy in childhood with a focal or hemispheric lesion on neuroimaging. Epilepsia. 2011;52(8):1522-1526. doi:10.1111/j.1528-1167.2011.03192.x - DOI - PMC - PubMed