---
title: "In-context LLMs Predict Depression and Anxiety from Oura Ring Wearable Metrics"
id: "medrxiv-10-wearable-prompt-in-context-learning-for-depression-and-anxiety-prediction-from"
canonical_url: "https://medichelpline.com/clinical-feed/medrxiv-10-wearable-prompt-in-context-learning-for-depression-and-anxiety-prediction-from"
content_type: "clinical_feed_article"
specialty: "Neurology"
source_name: "medRxiv (Clinical Preprints)"
source_url: "https://www.medrxiv.org/content/10.64898/2026.07.31.26359400v1?rss=1"
published_at: "2026-08-03T12:00:00.000Z"
evidence_level: "Verified Feed"
license: "CC-BY-NC-4.0 / Informational Use"
---
# In-context LLMs Predict Depression and Anxiety from Oura Ring Wearable Metrics
## Provenance & Clinical Metadata
- **Canonical URL:** https://medichelpline.com/clinical-feed/medrxiv-10-wearable-prompt-in-context-learning-for-depression-and-anxiety-prediction-from
- **Specialty:** [Neurology](https://medichelpline.com/clinical-feed/neurology.md)
- **Primary Source:** medRxiv (Clinical Preprints)
- **Source URL:** [Original Journal Publication](https://www.medrxiv.org/content/10.64898/2026.07.31.26359400v1?rss=1)
- **Published At:** 2026-08-03T12:00:00.000Z
- **Evidence Rating:** Verified Feed
## Executive GIST (TL;DR)
- Large language models (LLMs) can be applied to **wearable** data by converting structured physiological and behavioral measurements into natural-language prompts for health prediction. - The study used 4–8 days of consumer **Oura Ring** data from 1,285 participants in the Northern Finland Birth Cohort 1986 to predict **depression** and **anxiety** symptoms. - Input features included activity, sleep, heart rate, heart rate variability, demographic, and anthropometric measurements summarized into structured prompts. - Lightweight open-weight LLMs evaluated were **Llama 3.1**, **BioMistral**, and **Qwen 2.5** under zero-shot, rule-based, and few-shot in-context learning conditions. - Prompt design strongly influenced LLM performance; zero-shot models achieved high overall accuracy but tended to predict the majority class and missed many participants with symptoms. - Few-shot in-context prompting improved detection of the positive (symptomatic) class. **Llama 3.1** with four in-context examples produced the best results reported: accuracy 0.92, macro-F1 0.82, and positive-class F1 0.69. - The study compared LLM approaches to conventional machine learning models and recurrent neural networks to contextualize performance. - Authors conclude that lightweight LLMs can leverage in-context examples to better interpret structured wearable summaries and may offer a scalable approach for mental health prediction from consumer wearables when combined with pre-trained LLMs. - The report is a preprint not peer reviewed; researchers obtained ethical approval from the Northern Ostrobothnia Hospital District and participant consent via NFBC procedures. - NFBC data access is managed by the University of Oulu; data use follows GDPR and Finnish Data Protection Act and requires permission from the cohort center.
## Clinical Analysis & Structured Key Points
Wearable Prompt: In-Context Learning for Depression and Anxiety Prediction from Consumer Smart Ring Metrics | medRxiv Skip to main content Wearable Prompt: In-Context Learning for Depression and Anxiety Prediction from Consumer Smart Ring Metrics View ORCID Profile Saeid Azadifar , View ORCID Profile Alireza Sameh , View ORCID Profile Maisa Niemela , View ORCID Profile Vahid Farrahi doi: https://doi.org/10.64898/2026.07.31.26359400 Saeid Azadifar 1 Research Unit of Health Sciences and Technology, University of Oulu, Oulu, Finland; Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Saeid Azadifar Alireza Sameh 2 Research Unit of Health Sciences and Technology University of Oulu, Oulu, Finland; Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Alireza Sameh Maisa Niemela 1 Research Unit of Health Sciences and Technology, University of Oulu, Oulu, Finland; Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Maisa Niemela Vahid Farrahi 3 TU Dortmund University Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Vahid Farrahi For correspondence: vahid.farrahi{at}tu-dortmund.de Abstract Info/History Metrics Data/Code Preview PDF 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. Competing Interest Statement The authors have declared no competing interest. Author Declarations I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained. Yes The details of the IRB/oversight body that provided approval or exemption for the research described are given below: The original Northern Finland Birth Cohort (NFBC) 1986 33-35-year follow-up study was approved by the Ethical Committee of the Northern Ostrobothnia Hospital District (108/2017), and written informed consent was obtained from all the participants. I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals. Yes I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance). Yes I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable. Yes Data Availability NFBC data is available from the University of Oulu, Infrastructure for Population Studies. Permission to use the data can be applied for research purposes via electronic material request portal. In the use of data, we follow the EU 395 general data protection regulation (679/2016) and Finnish Data Protection Act. The use of personal data is based on cohort participant's written informed consent at his/her latest follow up study, which may cause limitations to its use. Please, contact NFBC project center NFBCprojectcenter(at)oulu.fi) and visit the cohort website for more information. Copyright The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY 4.0 International license . Back to top Previous Next Posted August 03, 2026. Download PDF Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Wearable Prompt: In-Context Learning for Depression and Anxiety Prediction from Consumer Smart Ring Metrics Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Wearable Prompt: In-Context Learning for Depression and Anxiety Prediction from Consumer Smart Ring Metrics Saeid Azadifar , Alireza Sameh , Maisa Niemela , Vahid Farrahi medRxiv 2026.07.31.26359400; doi: https://doi.org/10.64898/2026.07.31.26359400 Share This Article: Copy Citation Tools Wearable Prompt: In-Context Learning for Depression and Anxiety Prediction from Consumer Smart Ring Metrics Saeid Azadifar , Alireza Sameh , Maisa Niemela , Vahid Farrahi medRxiv 2026.07.31.26359400; doi: https://doi.org/10.64898/2026.07.31.26359400 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Areas All Articles Addiction Medicine (594) Allergy and Immunology (887) Anesthesia (322) Cardiovascular Medicine (4682) Dentistry and Oral Medicine (466) Dermatology (402) Emergency Medicine (631) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1593) Epidemiology (15648) Forensic Medicine (32) Gastroenterology (1178) Genetic and Genomic Medicine (6877) Geriatric Medicine (714) Health Economics (1034) Health Informatics (4852) Health Policy (1412) Health Systems and Quality Improvement (1699) Hematology (568) HIV/AIDS (1305) Infectious Diseases (except HIV/AIDS) (16145) Intensive Care and Critical Care Medicine (1145) Medical Education (650) Medical Ethics (148) Nephrology (705) Neurology (7028) Nursing (357) Nutrition (1056) Obstetrics and Gynecology (1206) Occupational and Environmental Health (988) Oncology (3510) Ophthalmology (1015) Orthopedics (381) Otolaryngology (433) Pain Medicine (454) Palliative Medicine (135) Pathology (695) Pediatrics (1752) Pharmacology and Therapeutics (724) Primary Care Research (751) Psychiatry and Clinical Psychology (5721) Public and Global Health (9551) Radiology and Imaging (2325) Rehabilitation Medicine and Physical Therapy (1406) Respiratory Medicine (1228) Rheumatology (628) Sexual and Reproductive Health (756) Sports Medicine (567) Surgery (750) Toxicology (105) Transplantation (299) Urology (278)
## Related Clinical Research

- [2026 Stroke Rehabilitation Guideline: Start Early and Address Physical, Cognitive, and Mental Heal](https://medichelpline.com/clinical-feed/medical-news-today-0-stroke-rehab-guidelines-emphasize-early-support-for-physical-cognitive-and.md)
- [Diet and Alzheimer’s risk: Why no single best diet fits everyone](https://medichelpline.com/clinical-feed/medical-news-today-0-is-there-a-best-diet-to-help-lower-alzheimer-s-risk.md)
- [White Matter Microstructure Changes in Functional Motor Disorder: Diffusion MRI Findings](https://medichelpline.com/clinical-feed/medrxiv-11-white-matter-microstructural-alterations-and-symptom-correlates-in-functional.md)
- [North West London Diabetes Cohort: multiethnic EHR resource for diabetes complications research](https://medichelpline.com/clinical-feed/bmj-open-2-large-scale-multiethnic-electronic-health-record-resource-for-diabetes.md)
- [Atomoxetine and Stimulant Use in Pregnancy: Maternal and Birth Outcome Findings](https://medichelpline.com/clinical-feed/womens-mental-health-0-atomoxetine-and-stimulants-during-pregnancy-what-do-we-know-about-pregnancy.md)

## Navigation
- [← Back to Neurology Feed](https://medichelpline.com/clinical-feed/neurology.md)
- [← All Clinical Specialties](https://medichelpline.com/clinical-feed.md)
## Medical & Regulatory Disclaimer

> [!CAUTION]
> MedicHelpline content is structured for research, educational, and professional discovery purposes. It does not constitute individual medical advice, clinical diagnosis, or treatment recommendations.
> Always verify dosing, contraindications, and regulatory alerts against official product labeling and primary regulatory sources before clinical decision-making.