Fig. 3. Trachypithecus tranquillus, dusky leaf monkey

The Troop / Specimen

Alleaf

Trachypithecus tranquillus

A wearable that notices when you're getting stressed and answers with calming vibrations and an AI-guided check-in.

How it works

Alleaf is a hackathon project that took first place overall at Hackalytics 2026. A heart rate sensor on your wrist reads your BPM. When your heartbeat starts to look stressed, the app does two things at once. It sends alternating left-right vibrations, a technique borrowed from EMDR therapy. It also starts a LangChain agent that runs a short check-in and picks a mindfulness exercise that fits how stressed you are.

I built the stress model. It was trained on the public WESAD dataset. I cut each participant’s chest ECG into 45-second windows, kept the ones labeled as baseline or stress, and pulled heart rate and heart rate variability features from each window. Those features fed a logistic regression, which I tested on three participants the model never saw during training.

On the wearable, the app first records your resting heartbeat. After that, the model gets your current numbers and how far they’ve moved from your resting ones:

hr_delta = current["mean_hr"] - baseline["mean_hr"]
rmssd_delta = current["rmssd"] - baseline["rmssd"]

A heart rate jump means something different for each person, so comparing you against yourself made the model much more useful than raw numbers alone.

Where it is now

Built at Hackalytics 2026, in one weekend
Result First place overall
Team 4 people: frontend, backend, hardware and ML
My part The stress-detection model