Skip to main content
QUICK REVIEW

[Paper Review] Individual-level Anxiety Detection and Prediction from Longitudinal YouTube and Google Search Engagement Logs

Anis Zaman, Boyu Zhang|arXiv (Cornell University)|Jul 1, 2020
Digital Mental Health InterventionsPsychology77 references6 citations
TL;DR

This paper proposes a privacy-preserving, scalable framework that uses anonymized longitudinal YouTube and Google Search engagement logs to detect anxiety disorders and predict anxiety severity at the individual level. By extracting explainable behavioral features from online activity, the model achieves an F1 score of 0.83±0.09 for anxiety detection and a mean squared error of 1.87±0.15 in predicting GAD-7 scores, offering a low-cost, non-invasive tool for clinical monitoring.

ABSTRACT

Anxiety disorder is one of the world's most prevalent mental health conditions, arising from complex interactions of biological and environmental factors and severely interfering one's ability to lead normal life activities. Current methods for detecting anxiety heavily rely on in-person interviews, which can be expensive, time-consuming, and blocked by social stigmas. In this work, we propose an alternative method to identify individuals with anxiety and further estimate their levels of anxiety using personal online activity histories from YouTube and the Google Search engine, platforms that are used by millions of people daily. We ran a longitudinal study and collected multiple rounds of anonymized YouTube and Google Search logs from volunteering participants, along with their clinically validated ground-truth anxiety assessment scores. We then developed explainable features that capture both the temporal and contextual aspects of online behaviors. Using those, we were able to train models that (i) identify individuals having anxiety disorder with an average F1 score of 0.83 and (ii) assess the level of anxiety by predicting the gold standard Generalized Anxiety Disorder 7-item scores (ranges from 0 to 21) with a mean square error of 1.87 based on the ubiquitous individual-level online engagement data. Our proposed anxiety assessment framework is cost-effective, time-saving, scalable, and opens the door for it to be deployed in real-world clinical settings, empowering care providers and therapists to learn about anxiety disorders of patients non-invasively at any moment in time.

Motivation & Objective

  • Address the high prevalence and underdiagnosis of anxiety disorders, especially among college students, by reducing reliance on costly and stigmatized in-person assessments.
  • Overcome limitations of public social media-based mental health detection, which suffer from self-censorship, low privacy, and limited reach for non-active users.
  • Leverage ubiquitous, private online engagement logs from YouTube and Google Search as a proxy for mental health states, enabling continuous, non-intrusive monitoring.
  • Develop a scalable, explainable, and clinically relevant framework that supports early detection and longitudinal tracking of anxiety in real-world healthcare settings.

Proposed method

  • Conducted a longitudinal study with two data collection rounds, five months apart, involving college participants who shared anonymized YouTube and Google Search logs.
  • Collected clinically validated GAD-7 scores (0–21) as ground truth for anxiety severity, ensuring alignment with established psychiatric standards.
  • Designed explainable, low-dimensional feature vectors capturing temporal patterns (e.g., search frequency, session duration) and contextual cues (e.g., topic clusters, emotional valence of queries) from online behaviors.
  • Trained supervised machine learning models—specifically for binary classification (anxiety vs. no anxiety) and regression (GAD-7 score prediction)—on the derived features.
  • Employed feature importance analysis to ensure interpretability, enabling clinicians to understand which behavioral patterns contributed to predictions.
  • Implemented an opt-in, IRB-approved data collection protocol with full participant control, including data deletion rights, to ensure ethical compliance and privacy protection.

Experimental results

Research questions

  • RQ1Can individual-level online engagement logs from YouTube and Google Search reliably predict anxiety disorders at the individual level?
  • RQ2To what extent can temporal and contextual patterns in search and viewing behaviors serve as proxies for anxiety severity?
  • RQ3How accurately can a model trained on anonymized, private online logs predict gold-standard GAD-7 scores compared to clinical assessments?
  • RQ4What are the key behavioral features that most strongly correlate with anxiety states, and can they be made interpretable for clinical use?
  • RQ5What are the ethical and practical implications of deploying such a system in real-world clinical settings?

Key findings

  • The model achieved an average F1 score of 0.83±0.09 in identifying individuals with anxiety disorders using only YouTube and Google Search logs.
  • For predicting continuous GAD-7 scores (0–21), the model achieved a mean squared error of 1.87±0.15, indicating strong regression performance.
  • The framework demonstrated high scalability and cost-effectiveness, enabling remote, non-invasive monitoring of anxiety levels between clinical visits.
  • Explainable features—such as increased search frequency for health-related terms and prolonged YouTube watch times on anxiety-related content—were strongly correlated with elevated anxiety levels.
  • Longitudinal analysis revealed that behavioral patterns changed meaningfully between the two data collection rounds, supporting the model’s ability to track dynamic anxiety states.
  • The system can be integrated into clinical workflows to flag patients with emerging anxiety spikes, enabling timely therapist intervention and personalized care planning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.