Back

Wearable Prompt: In-Context Learning for Depression and Anxiety Prediction from Consumer Smart Ring Metrics

Azadifar, S.; Sameh, A.; Niemela, M.; Farrahi, V.

2026-08-03 health informatics
10.64898/2026.07.31.26359400 medRxiv
Show abstract

Large language models provide a promising framework for wearable-based health prediction by converting structured physiological and behavioral measurements into natural-language prompts. In this paper, we investigate whether pre-trained lightweight open-weight LLMs can predict depression and anxiety symptoms from short-horizon consumer wearable data. Using 4-8 days of Oura Ring data from 1,285 participants in the Northern Finland Birth Cohort 1986, we convert activity, sleep, heart rate, heart rate variability, demographic, and anthropometric measurements into structured prompts. We evaluate Llama 3.1, BioMistral, and Qwen 2.5 under zero-shot, rule-based, and few-shot in-context learning settings. To contextualize LLM performance, we compare them against machine learning models and recurrent neural networks. Our results show that prompt design is critical for LLM-based wearable inference. Zero-shot LLMs achieve high accuracy but largely predict the majority class, failing to identify participants with depression and anxiety symptoms. In contrast, few-shot prompting substantially improves positiveclass detection. Llama 3.1 with four in-context examples achieves the strongest performance, with 0.92 accuracy, 0.82 macro-F1, and 0.69 F1 for the positive class, among evaluated models. These findings suggest that lightweight LLMs can use in-context examples to better interpret structured wearable summaries and possibly provide a scalable direction for mental health prediction from consumer wearable data in combination with pre-trained LLMs.

Matching journals

The top 3 journals account for 50% of the predicted probability mass.

50% of probability mass above

"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.