Bridging Privacy and Safety Gaps: VR with Data-Sync AI Chatbot for Mental Health Support

CWSF · 2026 Health & Wellness Silver Medal

Thumbnail supplied by the source for Bridging Privacy and Safety Gaps: VR with Data-Sync AI Chatbot for Mental Health Support

Overview

Your body tells the truth: 47% people underestimate their stress! Standard bots hallucinate and ignore physical limits. We fix this by syncing real-time body data with professional AI and immersive VR. Our system reads hidden pressure, guarantees safety, and soothes instantly. This project develop a professionally trained mental support chatbot, an immersive VR environment for both pressure training and relaxation, plus a synchronized data collection system. Connected via FastAPI Port 8000 with under 0.8 seconds of latency, it ensures timely transmission of physiological data. This system provides a secure environment where users willingly engage with the chatbot. It features continuous HR data collection and HRV calculation to accurately monitor all individuals' stress levels. By syncing the front and back ends, the platform instantly triggers safety warnings right before user pressure reaches dangerous levels, guaranteeing a highly safe therapeutic virtual experience.

Video

Why?

Mental health challenges are escalating globally, yet digital support tools harbor critical vulnerabilities.

1. Privacy is an Illusion. Most mental health apps upload sensitive physiological data and conversation logs to corporate cloud servers. Users unknowingly trade their most intimate biological and emotional data for convenience, exposing themselves to potential breaches and misuse.

2. Self-Reporting is Dangerously Unreliable. The vast majority of tools rely solely on user self-assessment. But users may not be able to accurately perceive their own stress—the body signals danger while the mind remains unaware. Without objective monitoring, those in silent physiological distress receive no timely intervention.

3. AI Hallucinations Threaten Vulnerable Users. General-purpose LLMs can generate fabricated or harmful responses—an unacceptable risk in mental health contexts.

The Critical Question: Can we build a mental health support system that is truly private, objectively monitored, and AI-safe? This is the gap I set out to bridge!

How?

The AI chatbot was evaluated through expert blind assessment. The VR scenario was validated through an IRB-approved human trial.

Step 1: Expert-Guided Architecture Design

The core architecture was defined by three principles: edge computing for privacy, RAG-enhanced AI safety, and graded VR exposure. A psychology professor validated the therapeutic approach and knowledge base structure.

Step 2: AI Chatbot Development

The AI module was built using a local Dify platform with a RAG framework. I build a knowledge base with 370 thousand psychological data with crisis protocols, empathetic responses, and safety guidelines. This eliminated LLM hallucinations and enabled crisis detection in 100 simulated scenarios. Critically, chat history is stored only in the local computer while backend only counts interaction, not content.

Step 3: VR Environment and Physiological Integrate

The tower scenario was developed in Unity. Real-time HR and HRV data are streamed from a Polar H10 chest strap. A 60-second resting calibration establishes personalized dynamic thresholds.

Step 4: Expert-Blind Validation of AI Chatbot

A clinical psychology professor, a licensed psychologist, and a school counselor blindly evaluated 100 simulated scenarios replies covering daily stress, moderate anxiety, and high-risk crises. All four dimensions scored above 4.3/5. Crisis handling achieved a 5.0/5.0, without harmful responses.

Step 5: Subject Recruitment and Baseline Measurement

Fifteen healthy adults were recruited. Each session began with a 60-second resting baseline using Polar H10 chest strap. Subjects completed a VAS pre-test.

Step 6: VR Stress Induction and Data Collection

Subjects entered the dynamic ascending tower. Each floor enforced a 60-second pause for physiological stabilization, with HR/RMSSD continuously recorded. The session terminated when HR exceeded the personalized dynamic threshold or the subject voluntarily withdrew. VAS post scores were collected. Subjects then entered a 5-minute relaxation scene (sunlit meadow with α-wave music) to assess recovery trajectory.

What?

1. VR Effectively Induces Objective Stress

Heart rate increased by 54% (70.4 → 108.5 BPM, p<0.001), and RMSSD dropped by 37% (38.6 → 24.2 ms, p<0.001), confirming strong sympathetic activation during the dynamic tower scenario.

2. Perception Blind Spot Validates Physiological Monitoring

47% of subjects underestimated their stress. Only 20% were concordant high. Self-report alone misses nearly half of those in need.

3. Two-Session Training Shows Preliminary Efficacy (Week 1 → Week 2)

Physiological Reactivity: HR_Rise% decreased from 27.8% to 24.7%

Recovery Speed: HR_Recovery% improved from 75.3% to 78.7%

Perception Shift: Underestimation dropped from 7 to 5 subjects; concordant-high rose from 3 to 6.

4. Relaxation Scene Effectively Aids Physiological Recovery

Heart rate and RMSSD returned toward baseline within 5 minutes, confirming the closed-loop safety design.

5. RAG-Enhanced AI Eliminates Hallucinations

Expert blind evaluation across 100 scenarios: all dimensions above 4.3/5. Crisis handling: unanimous perfect scores (5.0/5.0), zero harmful responses.

6. Privacy-First, Low-Cost, Accessible.

Edge computing keeps raw data local. Chat history stored only in user's browser. Runs on standard laptop (CPU 29%).

So What?

We discovered a critical blind spot: 47% of users underestimate their own stress, rendering self-report tools dangerously incomplete.

To solve this, we built the first closed-loop system that seamlessly bridges all three safety gaps at once.

Privacy-first : Edge computing ensures intimate data never leaves the user's device.

AI-safe : RAG-enhanced AI eliminates hallucinations, setting a new standard for reliable digital care.

Objectively monitored : Real-time physiological data catches the distress that self-reports miss.

Meaning : We prove that mental health technology can be safe, private, and deeply perceptive—protecting those who cannot perceive their own rising anxiety, and fundamentally reshaping what responsible digital care looks like.

What's Next?

Pre-Competition: Complete all four sessions to validate the full stress inoculation efficacy.

New IRB Pilot Study : Validate the complete closed-loop system (VR + AI chatbot) with 15 adults over four weeks—assessing training efficacy, AI response safety, real-time physiological context awareness, and user trust.

Clinical Collaboration : Partner with therapists to refine AI empathy and crisis protocols.

Field Deployment : Pilot in school counseling and corporate EAP programs.

Patent Filing : System patent and invention application submitted.

Goal : Transform this prototype into an accessible, clinically validated mental health tool.

Thanks

Sincere gratitude to :

Prof. Tse-Yu Pan (National Taiwan University of Science and Technology) – VR technical mentorship and IRB protocol consultation.

Prof. Yun-Hsuan Chang (National Cheng-Kung University) – Clinical psychology validation and expert consultation.

Prof. Huang-Yen Lin (National Taiwan University) – Engineering design and poster edit guidance.

National Taiwan Science Education Center – Research resources and exhibition platform.

Teacher Cheng-Ming Chiu and Sha-Lun International Senior High School – Project support and encouragement.

My parents and family – Unwavering love and support throughout this journey.

References

Meichenbaum, D. (2007). Stress inoculation training: A preventative and treatment approach. In P. M. Lehrer, R. L. Woolfolk, & W. E. Sime (Eds.), Principles and practice of stress management (3rd ed., pp. 497–516). Guilford Press.

Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W., Rocktäschel, T., Riedel, S., & Kiela, D. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.

Ayers, J. W., Poliak, A., Dredze, M., Leas, E. C., Zhu, Z., Kelley, J. B., Faix, D. J., Goodman, A. M., Longhurst, C. A., Hogarth, M., & Smith, D. M. (2023). Comparing physician and artificial intelligence chatbot responses to patient questions posted to a public social media forum. JAMA Internal Medicine, 183(6), 589–596.

Trotman, G. P., Williams, S. E., Quinton, M. L., & Veldhuijzen van Zanten, J. J. C. S. (2019). Heart rate, perceived heart rate, and anxiety during acute psychological stress: A meta-analysis. Journal of Psychophysiology, 33(4), 235–254.

Zhou, Y., Wang, Y., & Liu, Z. (2024). Empathic response generation in mental health chatbots: A review and evaluation framework. Journal of Medical Internet Research, 26, e51234.

World Health Organization. (2024). Ethics and governance of artificial intelligence for health: Guidance on large multi-modal models.

Riva, G., & Wiederhold, B. K. (2024). The future of cyberpsychology: Leveraging generative AI and virtual reality for mental health. Cyberpsychology, Behavior, and Social Networking, 27(1), 1–5.

Li, J. (2024). Edge-computing-enabled digital therapeutics: Improving privacy and latency in AI-driven mental health support. IEEE Internet of Things Journal, 11(4), 5678–5692.

Images (17)

Awards (2)

  • Silver Medal
  • Selected for CWSF 2026

Competition history

Related projects

Closest projects by meaning, across every fair and year in the corpus.

Browse more like this

Source: ProjectBoard / Youth Science Canada

Save projects to your library

Sign in with Google to keep track of projects you find interesting, organized into folders. An account also raises your daily allowance for “Has this been done?”, and lets you create a key for the MCP server with a much higher limit than anonymous use. Browsing stays public.

Continue with Google