Introduction
Mental health disorders represent a significant global health challenge, affecting nearly one in four individuals. Despite the high prevalence, treatment rates remain strikingly low, often falling below 25%. A primary barrier to care is the pervasive social stigma associated with mental health, which frequently discourages individuals from seeking professional assistance.
Current mobile health solutions typically offer either passive monitoring (tracking biometrics without context) or active chatbots (relying solely on subjective user reports). MindGuard addresses this gap by integrating objective behavioral data with personalized, professional-grade intervention dialogues, all while ensuring user privacy through edge-based execution.
Methodology: Two-Stage Progressive Training
The MindGuard system is built upon the InternLM2-7B base model, refined through a specialized "two-stage progressive training" pipeline designed to instill both domain expertise and robust reasoning capabilities.
1. Certificate MindGuard (Domain Expertise)
The model first undergoes continuous pre-training on a curated corpus of approximately 100,000 professional mental health articles (80 million tokens). This stage "certifies" the model with a deep foundational knowledge of psychological principles and clinical conditions.
2. Substantiated MindGuard (Reasoning & Robustness)
To enhance diagnostic accuracy and conversational fluidity, the model undergoes Supervised Fine-Tuning (SFT) using two key techniques:
- Knowledge Distillation: GPT-4o serves as a "teacher" model, providing high-quality reasoning paths to guide the smaller 7B model.
- Counterfactual Augmentation: To address "stigma-masking"—where users might downplay symptoms—the model is trained on scenarios where user self-reports contradict objective sensor data. This enables the model to detect discrepancies and provide more accurate assessments.
3. Edge Deployment and Privacy
To bypass the privacy-utility tradeoff, MindGuard is quantized to 4-bit (q4f16) and deployed locally on mobile devices using the MLC-LLM framework. This ensures that sensitive mental health data never leaves the user's device, fostering a safer environment for honest self-disclosure.
Evaluation and Results
The system was evaluated using large-scale datasets including PMData (Fitbit biometrics) and Globem (passive sensing from 497 participants).
- Diagnostic Accuracy: On the PMData benchmark, MindGuard achieved an accuracy of 0.940, nearly matching GPT-4o (0.952) and significantly outperforming the base InternLM2 model (0.634).
- Specialized Performance: On the Globem dataset, MindGuard (F1: 0.748) outperformed the much larger LLaMA3-70B (F1: 0.683), demonstrating that domain-specific optimization can overcome the limitations of model scale.
- On-Device Efficiency: The model maintains a decoding speed of 5–7 tokens per second on modern smartphones, providing a natural conversational experience with low latency.
Discussion and Conclusion
MindGuard demonstrates the potential of edge-based LLMs to provide accessible, private mental health support. By utilizing a causal inference framework to transition from passive monitoring to active intervention, the system can identify behavioral shifts—such as social withdrawal or irregular sleep—and initiate supportive dialogues.
While the model shows high technical proficiency, future work will focus on enhancing emotional depth and "naturalness" to better mimic human empathy. Additionally, longer-term clinical studies are necessary to validate the sustained efficacy of MindGuard as a tool for Mental Health First Aid.
Summary updated