Adaptive EEG - based stroke diagnosis with a GRU–TCN classifier and deep Q - learning thresholding
Shakeel Abdulkareem, Bora Yimenicioglu, Khartik Uppalapati, Aneesh Gudipati, Adan Eftekhari, Saleh Yassin · 2025
Read Adaptive EEG - based stroke diagnosis with a GRU–TCN classifier and deep Q - learning thresholding by Shakeel Abdulkareem, Bora Yimenicioglu, Khartik Uppalapati, Aneesh Gudipati, Adan Eftekhari, Saleh Yassin (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-24889.txt.
Introduction
Shakeel Abdulkareem, Bora Yimenicioglu, Khartik Uppalapati, Aneesh Gudipati, Adan Eftekhari, and Saleh Yassin built a brain wave tool to sort stroke cases fast at the bed side. Brain wave reads are cheap and quick, yet rare at first touch for stroke. Their tool reads thirty two wires of brain waves and turns them into wave power traits.
A mixed net that joins loop and coil parts then calls the stroke type, side, and weight of the case at once. A learn based step tunes the call lines in real time for each case. On a small set of stroke and calm cases, the tuned tool hit a high right rate for stroke type. A second, sparse wire set checked its hold.
Catalog record
| CREATOR | Shakeel Abdulkareem, Bora Yimenicioglu, Khartik Uppalapati, Aneesh Gudipati, Adan Eftekhari, Saleh Yassin |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 32 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2510-24889
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Adaptive EEG - based stroke diagnosis with a GRU–TCN classifier and deep Q - learning thresholding Shakeel Abdulkareem, Bora Yimenicioglu, Khartik Uppalapati, Aneesh Gudipati, Adan Eftekhari, Saleh Yassin Abstract Rapid triage of suspected stroke needs accurate, bedside-deployable tools; electroencephalography (EEG) is promising but remains underused for initial diagnosis. We developed an adaptive multitask EEG classifier that converts 32-channel signals to power spectral density features (Welch’s method), uses a recurrent–convolutional network (GRU–TCN) to predict stroke type (healthy, ischemic, hemorrhagic), hemispheric lateralization, and severity, and employs a deep Q-network (DQN) to adjust decision thresholds in real time. In a patient-wise split of the UCLH Stroke EIT/EEG dataset (44 recordings; ∼ \sim 26 acute stroke, 10 controls), the primary outcome was stroke-type performance; secondary outcomes were severity and lateralization. The baseline GRU–TCN achieved 89.3% accuracy (F1 92.8%) for stroke type, ∼ \sim 96.9% (F1 95.9%) for severity, and ∼ \sim 96.7% (F1 97.4%) for lateralization. With DQN threshold adaptation, stroke-type accuracy increased to ∼ \sim 98.0% (F1 97.7%). We also evaluated robustness on an independent, low-density EEG cohort (ZJU4H); comparative results and paired patient-level statistics are reported in the Results. Analyses followed STARD 2015 guidance for diagnostic accuracy studies (index test: GRU–TCN+DQN; reference standard: radiology/clinical diagnosis; patient-wise evaluation). Adaptive thresholding shifts the operating point to clinically preferred sensitivity–specificity trade-offs, while integrated scalp-map and spectral visualizations support interpretability. keywords Electroencephalography (EEG), Stroke diagnosis, GRU–TCN, Deep Q-Network (DQN), Diagnostic accuracy, Clinical decision support Introduction Stroke remains a leading cause of death and long-term disability worldwide, and timely identification of stroke type and lesion laterality is critical for directing acute therapies [ 1 , 2 ] . While computed tomography (CT) and magnetic resonance imaging (MRI) are the reference standards for etiologic classification, access, workflow, and transport constraints can delay decisions in prehospital and early in-hospital settings [ 2 ] . Surface electroencephalography (EEG) is portable, fast to acquire, and sensitive to acute neurophysiological disturbances after cerebrovascular injury, making it a plausible adjunct for early triage [ 3 , 4 ] . Existing EEG-based stroke classifiers typically rely on fixed feature sets and static decision thresholds. Such approaches can be brittle under patient heterogeneity, device differences, and variable signal quality, leading to operating points that do not generalize across clinical contexts [ 4 ] . Deep learning has improved EEG decoding and provided richer representations for clinical neurophysiology, but most models still apply a single, pre-specified threshold at inference [ 5 ] . In contrast, adaptive decision policies—learned from data—can re-tune operating points online in response to confidence and context. Deep Q-learning (DQN), which estimates state–action values to select actions that maximize expected return, offers a principled framework for such adaptation [ 6 ] . Here, we study an adaptive multi-task EEG classifier that converts 32-channel recordings into spectral features and uses a recurrent–convolutional network (GRU–TCN; gated recurrent unit followed by a temporal convolutional network) to infer stroke type (healthy, ischemic, hemorrhagic), hemispheric lateralization, and a binary severity label. A DQN agent adjusts decision thresholds based on model state and confidence to target clinically preferred sensitivity–specificity trade-offs. We evaluate the index test on a retrospective clinical cohort with radiology-confirmed labels (University College London Hospital; Goren et al. ) and assess robustness on an independent, low-density EEG dataset available on request (ZJU4H) [ 7 , 8 ] . Reporting follows STARD 2015 recommendations for diagnostic accuracy studies (index test, reference standard, participant flow, and patient-wise analysis) [ 9 ] . Our primary hypothesis is that DQN-based threshold adaptation improves patient-wise stroke-type performance over a static-threshold baseline. The primary endpoint is macro- F1 for stroke-type classification; secondary endpoints are accuracy/ F1 /AUC for lateralization and severity, calibration, and robustness under domain shift. We further examine interpretability via scalp topographies and spectral views integrated into a graphical interface to support clinician-facing review. Results Cohort and data splits After screening and quality control, we analyzed data from 36 patients (26 with acute stroke and 10 neurologically healthy controls) yielding 44 EEG recordings and 132 segments (three 60 s segments per recording). Patient-wise partitions were used for all analyses (no subject overlap across splits). Stroke subtype labels (ischemic vs. hemorrhagic), hemispheric lateralization (left vs. right), and a binary severity label (large vs. small effect) were derived from radiology/clinical reports that served as the reference standard. Table 1 summarizes the dataset and splits. Table 1: Dataset and split overview. Counts are by patients unless otherwise indicated. Recordings and segments are listed per split (three 60 s segments per recording). Severity and lateralization apply to stroke patients only. Train Validation Test Total Patients (all) 24 6 6 36 Stroke patients 18 4 4 26 Ischemic 13 3 2 18 Hemorrhagic 5 1 2 8 Healthy controls 6 2 2 10 Recordings (n) 30 7 7 44 Segments (60 s) 90 21 21 132 Stroke severity: Large 8 2 2 12 Stroke severity: Small 10 2 2 14 Stroke lateralization: Left 10 3 2 15 Stroke lateralization: Right 8 1 2 11 Baseline classifier performance (without DQN) The GRU–TCN classifier achieved high performance across tasks on the held-out test set (patient-wise evaluation). For stroke-type (healthy vs. ischemic vs. hemorrhagic), accuracy was 89.32% with macro- F1 92.76% ; for severity (large vs. small), accuracy 96.87% and F1 95.87% ; and for lateralization (left vs. right), accuracy 96.71% and F1 97.42% (Table S1 reproduces the full baseline table). Figure 1 presents confusion matrices for all tasks, and Figure 2 shows ROC and PR curves (one-vs-rest micro/macro for stroke-type; binary for secondary tasks). For stroke-type, most residual errors reflected ischemic–hemorrhagic confusions (Fig. 1 a). Ninety-five percent confidence intervals (CIs) for key metrics were estimated by patient-level nonparametric bootstrap with 10,000 resamples [ 10 ] . For stroke-type, accuracy 89.3% [95% CI 82.5–94.1], macro-F1 92.8% [88.2–96.1], macro-AUC 0.963 [0.931–0.988]. Figure 1: Confusion matrices for (a) stroke-type (3 \times 3), (b) severity, and (c) lateralization. Color scales are uniform across panels; numbers are counts on the test set. Figure 2: ROC and PR curves. (a) Stroke-type (one-vs-rest, micro and macro aggregation), (b) severity (binary), and (c) lateralization (binary). Shaded bands indicate 95% CIs via patient-level bootstrap [ 10 ] . Effect of DQN threshold adaptation (primary endpoint) Integrating a DQN agent to adapt decision thresholds improved test -set performance for the primary endpoint (stroke-type macro-F1). Table 2 reports patient-wise metrics with 95% CIs, absolute changes versus the static baseline, and paired significance tests (McNemar for accuracy; DeLong for AUC) [ 11 , 12 ] . The reward scheme with symmetric reinforcement +2/-2 yielded the best operating point: accuracy 97.98% [94.7–99.8], macro- F1 97.73% [95.2–99.1], macro- AUC 0.992 [0.982–0.998]. Improvements over the static baseline were significant (e.g., \Delta F1 +4.97 pp [95% CI +2.1 to +7.7 ]; McNemar p=0.012 ; DeLong p=0.021 ). A milder reward scheme +1/0 also improved performance but to a lesser extent. Calibration improved with adaptation: expected calibration error (ECE) decreased from 0.066 [0.040–0.095] to 0.031 [0.018–0.052], consistent with more reliable probabilities (Fig. 3 c) [ 13 ] . Learning dynamics (episodic returns) and the per-patient operating-point shift (TPR vs. FPR) are shown in Figure 3 a,b. Table 2: Static vs. DQN-adapted stroke-type performance on the test set (patient-wise) . Values are point estimates with 95%