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
. 2024 Feb 21;24(5):1392.
doi: 10.3390/s24051392.

Interpreting Stroke-Impaired Electromyography Patterns through Explainable Artificial Intelligence

Affiliations

Interpreting Stroke-Impaired Electromyography Patterns through Explainable Artificial Intelligence

Iqram Hussain et al. Sensors (Basel). .

Abstract

Electromyography (EMG) proves invaluable myoelectric manifestation in identifying neuromuscular alterations resulting from ischemic strokes, serving as a potential marker for diagnostics of gait impairments caused by ischemia. This study aims to develop an interpretable machine learning (ML) framework capable of distinguishing between the myoelectric patterns of stroke patients and those of healthy individuals through Explainable Artificial Intelligence (XAI) techniques. The research included 48 stroke patients (average age 70.6 years, 65% male) undergoing treatment at a rehabilitation center, alongside 75 healthy adults (average age 76.3 years, 32% male) as the control group. EMG signals were recorded from wearable devices positioned on the bicep femoris and lateral gastrocnemius muscles of both lower limbs during indoor ground walking in a gait laboratory. Boosting ML techniques were deployed to identify stroke-related gait impairments using EMG gait features. Furthermore, we employed XAI techniques, such as Shapley Additive Explanations (SHAP), Local Interpretable Model-Agnostic Explanations (LIME), and Anchors to interpret the role of EMG variables in the stroke-prediction models. Among the ML models assessed, the GBoost model demonstrated the highest classification performance (AUROC: 0.94) during cross-validation with the training dataset, and it also overperformed (AUROC: 0.92, accuracy: 85.26%) when evaluated using the testing EMG dataset. Through SHAP and LIME analyses, the study identified that EMG spectral features contributing to distinguishing the stroke group from the control group were associated with the right bicep femoris and lateral gastrocnemius muscles. This interpretable EMG-based stroke prediction model holds promise as an objective tool for predicting post-stroke gait impairments. Its potential application could greatly assist in managing post-stroke rehabilitation by providing reliable EMG biomarkers and address potential gait impairment in individuals recovering from ischemic stroke.

Keywords: Anchors; LIME; SHAP; electromyography; explainable AI; stroke.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Conceptual diagram of an explainable EMG-based of stroke-impaired gait prediction model using XAI approaches. (a) The EMG Channel Description and sample EMG signal. (b) Feature extraction of EMG spectral features. (c) Feature reduction through feature selection approach. (d) Overview of various ML models with sample comparative performance matrices. (e) State-of-the-art explainable AI approaches (LIME, SHAP, Anchors) for interpretation of stroke prediction models.
Figure 2
Figure 2
Performance parameters and Receiver Operating Characteristic (ROC) curves for k-fold (k = 10) cross-validated classification of stroke and healthy control groups using ML models. (a) Violin plot of performance parameters of k-fold cross-validated model for classification of stroke and healthy control groups using ML models. (b) Cross-validated ROC curve for Gradient Boosting (GBoost) Classifier; (c) cross-validated ROC curve for Random Forest (RF) classifier; (d) cross-validated ROC curve for Histogram Gradient Boosting (HistGBoost) Classifier. Area under ROC curve (AUC) is an indicator of prediction accuracy. The diagonal black dotted line is the reference line showing 50% accuracy.
Figure 3
Figure 3
Receiver Operating Characteristic (ROC) curves for classification of stroke and healthy control groups using testing dataset. Area under ROC curve (AUC) is an indicator of prediction accuracy. The diagonal blue dotted line is the reference line showing 50% accuracy.
Figure 4
Figure 4
Performance matrices of ML models for classification of stroke and healthy control groups using test dataset. (a) Accuracy of RF and GBoost models; (b) precision of RF and GBoost models; (c) recall of RF and GBoost models; (d) F1-score of RF and GBoost models; (e) confusion matrix of test dataset for GBoost classifier; (f) confusion matrix of test dataset for RF classifier; (g) confusion matrix of test dataset for HistGBoost classifier.
Figure 5
Figure 5
SHAP plots interpreting the contributions of EMG features in ML models for classification of stroke and healthy control groups. (a) SHAP feature importance plot for GBoost classifier. (b) SHAP summary plot for GBoost classifier. (c) SHAP feature importance plot for Random Forest classifier. (d) SHAP summary plot for Random Forest classifier.
Figure 6
Figure 6
Visualization of the local contribution of EMG features through the LIME approach in classifying a single test instance (predicted class = stroke) using (a) Gradient Boosting (GBoost) classifier, (b) the Random Forest (RF) classifier; (c) Histogram Gradient Boosting (HistGBoost) classifier. The orange marked cells represent the features that contributed most to classifying the stroke.
Figure 7
Figure 7
Visualization of the local contribution of EMG features through the Anchors NLP XAI approach in classifying a single test instance (predicted class = stroke) using Gradient Boosting (GBoost) classifier.

References

    1. World Health Organization . World Health Statistics 2016: Monitoring Health for the SDGs Sustainable Development Goals. World Health Organization; Geneva, Switzerland: 2016.
    1. Balami J.S., Chen R.-L., Grunwald I.Q., Buchan A.M. Neurological complications of acute ischaemic stroke. Lancet Neurol. 2011;10:357–371. doi: 10.1016/S1474-4422(10)70313-6. - DOI - PubMed
    1. Campbell B.C., De Silva D.A., Macleod M.R., Coutts S.B., Schwamm L.H., Davis S.M., Donnan G.A. Ischaemic stroke. Nature Rev. Dis. Primers. 2019;5:70. doi: 10.1038/s41572-019-0118-8. - DOI - PubMed
    1. Park S.J., Hussain I., Hong S., Kim D., Park H., Benjamin H.C.M. Real-time Gait Monitoring System for Consumer Stroke Prediction Service; Proceedings of the IEEE International Conference on Consumer Electronics (ICCE); Las Vegas, NV, USA. 4–6 January 2020; pp. 1–4.
    1. Park S.J., Hong S., Kim D., Seo Y., Hussain I., Hur J.H., Jin W. Development of a Real-Time Stroke Detection System for Elderly Drivers Using Quad-Chamber Air Cushion and IoT Devices. SAE; Warrendale, PA, USA: 2018.