Automating Ischemic Stroke Subtype Classification Using Machine Learning and Natural Language Processing.
OBJECTIVE The manual adjudication of disease classification is time consuming, error prone, and limits scaling to large datasets. In ischemic stroke (IS) subtype classification is critical for management and outcome prediction. This study sought to use natural language processing of electronic health records (EHR) combined with machine learning methods to automate IS subtyping. METHODS Among IS patients from an observational registry with TOAST subtyping adjudicated by board certified vascular neurologists, we analyzed unstructured text based EHR data including neurology progress notes and neuroradiology reports using natural language processing. We performed several feature selection methods to reduce the high dimensionality of the features and 5 fold cross validation to test generalizability of our methods and minimize overfitting. We used several machine learning methods and calculated the kappa values for agreement between each machine learning approach to manual adjudication. We then performed a blinded testing of the best algorithm against a held out subset of 50 cases. RESULTS Compared to manual classification, the best machine based classification achieved a kappa of .25 using radiology reports alone, .57 using progress notes alone, and .57 using combined data. Kappa values varied by subtype being highest for cardioembolic .64) and lowest for cryptogenic cases .47) In the held out test subset, machine based classification agreed with rater classification in 40 of 50 cases (kappa .72) CONCLUSIONS Automated machine learning approaches using textual data from the EHR shows agreement with manual TOAST classification. The automated pipeline, if externally validated, could enable large scale stroke epidemiology research.
Journal of stroke and cerebrovascular diseases the official journal of National Stroke Association