EUVIMEDΑνακαλύψτε το EUVIMED
EvaluationsstudieMultizentrische StudieValidierungsstudieOpen access

Enhanced Prediction of Atrial Fibrillation in Patients With Ischemic Stroke Through Electronic Medical Records and Text Mining: Algorithm Development and Validation

Yu-Wei Chen iD, Sheng-Feng Sung iD, Ya-Han Hu iD, Yu-Hsuan Yang iD

JMIR Medical Informatics · 2026-03-10 · 14 · e78117-e78117

DOI: 10.2196/78117 ↗

At a glance

Evaluationsstudie in JMIR Medical Informatics, published online on 2026-03-10. Written by Yu-Wei Chen and 3 co-authors. Institution: Department of Neurology, Landseed International Hospital, Taoyuan City, Taiwan. Major MEDLINE topics: Atrial Fibrillation, Ischemic Stroke, Electronic Health Records, Data Mining. Cited 2 times so far (Crossref); 43 references. The full text is freely available in PubMed Central.

ΠερίληψηSubjectsΒιβλιογραφικά στοιχείαCiteRelated studies

Abstract (original language)

Background

Stroke remains one of the leading causes of mortality and long-term disability worldwide. Atrial fibrillation (AF) is a major and often underdiagnosed risk factor for ischemic stroke as it is frequently asymptomatic and may remain undetected until a catastrophic cerebrovascular event occurs. The lack of timely identification and preventive treatment for AF substantially increases stroke risk. Although previous studies have proposed various predictive models for AF detection, many rely primarily on structured clinical variables and are developed using data from a single institution, which limits their generalizability and real-world applicability across different health care settings.

Objective

The objective of this study was to develop a robust and generalizable AF risk prediction model for patients with stroke using electronic medical records. By integrating structured clinical variables with features derived from unstructured clinical text, this study aimed to construct a more comprehensive representation of patient health status. Furthermore, this study emphasized systematic internal and external validation, along with calibration assessment, to evaluate model stability and generalizability across multiple hospital datasets, thereby supporting its potential use in routine clinical practice.

Methods

This study analyzed datasets from 2 hospitals in Taiwan: Landseed International Hospital (LIH), with 3988 patients, and Chia-Yi Christian Hospital (CYCH), with 5821 patients. We applied 5 feature engineering techniques to extract features from unstructured electronic medical record data, addressed data imbalance using 6 distinct resampling methods, and used 9 classification algorithms to compare model performance across both internal and external validation sets. This study identified the top 20 most important features from the best-performing models for both the LIH and CYCH datasets.

Results

The optimal predictive model for LIH was based solely on structured variables, whereas the model for CYCH achieved superior results by integrating structured variables with text-derived variables obtained from unstructured clinical notes using term frequency–inverse document frequency. Notably, feature importance analysis consistently identified the ratio of E- to A-wave velocities, left atrial size, and age as the top 3 predictive factors across both datasets, underscoring their critical role in AF risk assessment among patients with stroke.

Conclusions

This study demonstrated the development of predictive models for AF in patients with ischemic stroke. Notably, the integration of structured variables with variables derived from unstructured clinical text improved predictive performance in selected model configurations. Rigorous internal and external validation processes confirmed the superior performance of ensemble learning–based machine learning models compared with alternative algorithms, underscoring the potential of this approach for AF risk prediction.

Subjects

MeSH terms (MEDLINE)

Atrial FibrillationIschemic StrokeElectronic Health RecordsData MiningPrediction AlgorithmsSoftware ValidationReproducibility of ResultsTaiwanDatasets as TopicPredictive Learning ModelsEnsemble LearningRisk AssessmentRetrospective StudiesInpatientsHumansMaleFemaleAdultMiddle AgedAged

Author keywords

atrial fibrillationclinical decision supportelectronic medical recordsstroketext mining

Authors and institutions

  • Department of Neurology, Landseed International Hospital, Taoyuan City, Taiwan.
  • Department of Neurology, National Taiwan University Hospital, Taipei, Taiwan.
  • Center for General Education, National Central University, Taoyuan City, Taiwan.
  • Division of Neurology, Department of Internal Medicine, Ditmanson Medical Foundation Chia-Yi Christian Hospital, Chiayi, Taiwan.
  • Department of Nursing, Fooyin University, Kaohsiung, Taiwan.
  • Department of Information Management, National Central University, No. 300, Zhongda Rd, Zhongli District, Taoyuan City, 320317, Taiwan, 886 3 4227151 ext 66560.

ORCID profiles: Yu-Wei Chen, Sheng-Feng Sung, Ya-Han Hu, Yu-Hsuan Yang

Cite

APA

Chen, Y. W., Sung, S. F., Hu, Y. H., & Yang, Y. H. (2026). Enhanced Prediction of Atrial Fibrillation in Patients With Ischemic Stroke Through Electronic Medical Records and Text Mining: Algorithm Development and Validation. JMIR Medical Informatics, 14, e78117-e78117. https://doi.org/10.2196/78117

Vancouver

Chen YW, Sung SF, Hu YH, Yang YH. Enhanced Prediction of Atrial Fibrillation in Patients With Ischemic Stroke Through Electronic Medical Records and Text Mining: Algorithm Development and Validation. JMIR Medical Informatics. 2026;14:e78117-e78117. doi:10.2196/78117

BibTeX
@article{Chen2026,
  author = {Chen, Yu-Wei and Sung, Sheng-Feng and Hu, Ya-Han and Yang, Yu-Hsuan},
  title = {Enhanced Prediction of Atrial Fibrillation in Patients With Ischemic Stroke Through Electronic Medical Records and Text Mining: Algorithm Development and Validation},
  journal = {JMIR Medical Informatics},
  year = {2026},
  volume = {14},
  pages = {e78117--e78117},
  doi = {10.2196/78117}
}
Start for free →