Evidence map›Paper›PMID 41757215›Full record

ArticlemedRxiv : the preprint server for health sciences2026

Automated epilepsy and seizure type phenotyping with pre-trained language models.

Ellie Chang, Kevin Xie, Daniel J Zhou, Jacob Korzun, Erin C Conrad, Dan Roth, Brian Litt, Colin A Ellis

Abstract readPreprint
In one paragraph

Article in medRxiv : the preprint server for health sciences, 2026. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Not yet cited in PubMed.

0numbers the graph read from it
0cells of the map it votes in
0citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

0 citing papers in PubMed.

No citing paper in PubMed yet.

4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

8 authors.

Ellie ChangDepartment of Bioengineering, University of Pennsylvania, Philadelphia PA USA.
Kevin XieCenter for Neuroengineering and Therapeutics, University of Pennsylvania, Philadelphia PA USA.
Daniel J ZhouCenter for Neuroengineering and Therapeutics, University of Pennsylvania, Philadelphia PA USA.
Jacob KorzunDepartment of Neurology, University of Pennsylvania, Philadelphia PA USA.
Erin C ConradDepartment of Neurology, University of Pennsylvania, Philadelphia PA USA.
Dan RothDepartment of Computer and Information Science, University of Pennsylvania, Philadelphia PA USA.
Brian LittDepartment of Bioengineering, University of Pennsylvania, Philadelphia PA USA.
Colin A EllisCenter for Neuroengineering and Therapeutics, University of Pennsylvania, Philadelphia PA USA.

Funding

Ghost in the Machine: Melding Brain, Computer and BehaviorDP1NS122038 · NINDS · UNIVERSITY OF PENNSYLVANIA · PI LITT, BRIAN · 2020 to 2024
$5.7M
Training Program in Neuroengineering and MedicineT32NS091006 · NINDS · UNIVERSITY OF PENNSYLVANIA · PI Brian Litt · 2015 to 2026
$4.1M
Guiding epilepsy surgery using network models and Stereo EEGR01NS125137 · NINDS · UNIVERSITY OF PENNSYLVANIA · PI BASSETT, DANIELLE SMITH, LITT, BRIAN · 2022 to 2025
$2.8M
Quantitative interictal networks to localize seizure generatorsK23NS121401 · NINDS · UNIVERSITY OF PENNSYLVANIA · PI Erin Conrad · 2022 to 2026
$1.2M
Polygenic risk in familial epilepsyK23NS121520 · NINDS · UNIVERSITY OF PENNSYLVANIA · PI ELLIS, COLIN · 2021 to 2025
$1.1M
NINDS NIH HHS DP1 NS122038NINDS NIH HHS K23 NS121401NINDS NIH HHS K23 NS121520NINDS NIH HHS R01 NS125137NINDS NIH HHS T32 NS091006
6 · The paper itself

Abstract

Background: Epilepsy is a common neurologic disorder characterized by recurrent, unprovoked seizures. Epilepsy manifests as different seizure types and epilepsy types, which have important implications for treatment and prognosis. Electronic health record systems containing longitudinal data on large epilepsy cohorts can be valuable resources for clinical research. However, detailed epilepsy phenotypes are poorly captured by structured data such as diagnostic codes and are instead buried in unstructured clinical notes. Methods: We evaluated two transformer-based language models for automated epilepsy and seizure type phenotyping from clinical notes: a fine-tuned BERT model and a large language model, DeepSeek-R1. A subset of notes was annotated by epileptologists, and model performance was benchmarked against expert agreement. The best-performing model was then deployed across all epilepsy progress notes at a large academic medical center to generate patient-level longitudinal epilepsy and seizure phenotypes. Results: Both models achieved performance comparable to expert agreement for classifying epilepsy type as focal, generalized, or unspecified (Matthews correlation coefficient [95% CI]: DeepSeek = 0.85 [0.80-0.90], BERT = 0.73 [0.67-0.80], human = 0.77 [0.70-0.83]) and classifying seizure type as convulsive or non-convulsive (DeepSeek = 0.74 [0.66-0.81], BERT = 0.60 [0.49-0.69], human = 0.49 [0.39-0.59]). For more granular classification tasks, DeepSeek maintained performance comparable to expert agreement, whereas BERT performance declined. Deploying DeepSeek-R1 on 77,049 clinical notes from 18,566 patients revealed system-level clinical patterns, including diagnostic stabilization over time, frequent co-occurrence of seizure types, and variation in seizure outcomes by epilepsy type. Conclusions: By extracting expert-level epilepsy phenotypes from routine clinical text at scale, this approach transforms unstructured EHR data into a resource for longitudinal, population-informed epilepsy care. Automated phenotyping enables analyses of epilepsy trajectories and treatment outcomes that are not feasible with structured data alone, supporting future clinical and translational research applications.

Identifiers

PMID41757215
PMCPMC12934892

What OpenQuestion holds

Textmetadata
LicenceCC BY
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.