Case study 01 — Featured · Deep learning + XAI
Explainable AI for ECG-Based Stress Prediction in Autism Care
A hybrid CNN-LSTM that predicts stress from physiological signals — and then shows its working, so a caregiver can see why.

- 94.3%
- Accuracy
- 0.942
- Macro F1-score
- 3
- Explainability methods
The problem
Autistic individuals can find it hard to communicate rising stress before it becomes overwhelming. Wearable physiological signals carry that information — but a model that only outputs "stressed" gives caregivers nothing to act on, and nothing to trust.
What I built
An end-to-end pipeline, from raw signal to interpretable prediction, trained on the WESAD physiological stress dataset.
- Developed a hybrid CNN-LSTM model: convolutional layers pick up local waveform morphology, the LSTM captures how it changes over time.
- Achieved 94.3% accuracy and a 0.942 macro F1-score.
- Integrated SHAP, LIME and Grad-CAM and used them to interpret individual predictions as well as global model behaviour.
- Designed the workflow so every stage — pre-processing, modelling, evaluation, interpretation — is reproducible.
What the model looked at
The explanations repeatedly pointed to three autonomic markers:
- LF/HF ratio — the balance of low- and high-frequency heart-rate variability, a common proxy for autonomic balance.
- RMSSD — short-term variation between successive heartbeats.
- QRS duration — the length of the QRS complex in the ECG waveform.
Why it matters
The aim is earlier intervention and more personalised care: a prediction that arrives with its reasons can be questioned, checked, and acted on.
This is an academic AI research project. It is not intended to provide medical diagnosis or replace professional medical advice.