Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

89 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โŒš Calmpilot

Real-time biometric pipeline for adaptive haptic feedback in VR
User study: 3 haptic patterns ร— 10 participants, HR time-series analysis


๐Ÿ“Š Calmpilot is a user study investigating how haptic feedback patterns affect physiological arousal in VR. The system uses real-time heart rate data from wearables to automatically trigger calming haptics when arousal exceeds thresholds. We compared three patternsโ€”slow vibration, breathing guidance, and butterfly hugโ€”in a controlled VR public speaking experiment (N=10). Breathing-guided haptics achieved the most sustained heart rate reduction (avg. -4 BPM).


๐Ÿ“Š Calmpilot์€ VR ํ”„๋กœ๊ทธ๋žจ์„ ํ™œ์šฉํ•œ ๋…ธ์ถœ ์น˜๋ฃŒ์—์„œ ํ–…ํ‹ฑ ํ”ผ๋“œ๋ฐฑ ํŒจํ„ด์ด ๋ถˆ์•ˆ ๊ฐ์†Œ์— ๋ฏธ์น˜๋Š” ์˜ํ–ฅ์„ ์—ฐ๊ตฌํ•œ ํ”„๋กœ์ ํŠธ์ž…๋‹ˆ๋‹ค. ์›จ์–ด๋Ÿฌ๋ธ” ๋””๋ฐ”์ด์Šค์˜ ์‹ค์‹œ๊ฐ„ ์‹ฌ๋ฐ•์ˆ˜ ๋ฐ์ดํ„ฐ๋ฅผ ํ™œ์šฉํ•ด ์ž„๊ณ„๊ฐ’์„ ์ดˆ๊ณผํ•˜๋ฉด ์ž๋™์œผ๋กœ ์ด์™„ ํ–…ํ‹ฑ ํŒจํ„ด์„ ํŠธ๋ฆฌ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์ž„์ƒ์ ์œผ๋กœ ๊ฒ€์ฆ๋œ ์„ธ ๊ฐ€์ง€ ํ–…ํ‹ฑ ํŒจํ„ดโ€”๋А๋ฆฐ ์ง„๋™, ์‹ฌํ˜ธํก ์œ ๋„, ๋‚˜๋น„ํฌ์˜น๋ฒ•โ€”์„ ์„ค๊ณ„ํ•˜๊ณ  VR ๋ฐœํ‘œ ํ™˜๊ฒฝ์—์„œ ํ†ต์ œ๋œ ์‹คํ—˜์„ ํ†ตํ•ด ํšจ๊ณผ๋ฅผ ๊ฒ€์ฆํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ถ„์„ ๊ฒฐ๊ณผ ์‹ฌํ˜ธํก ์œ ๋„ ํ–…ํ‹ฑ์ด ๊ฐ€์žฅ ์œ ์˜๋ฏธํ•˜๊ณ  ์ง€์†์ ์ธ ์‹ฌ๋ฐ•์ˆ˜ ๊ฐ์†Œ(ํ‰๊ท  4 BPM ๊ฐ์†Œ)๋ฅผ ๋ณด์˜€์Šต๋‹ˆ๋‹ค.


๐ŸŽฏ Overview

๐Ÿ“– Introduce

Project: Calmpilot
Type: Academic Research Duration: 2023.09 ~ 2024.02
Advisor: Seokhee Jeon (KHU Haptics and Virtual Reality Lab)

C# Python | Unity Galaxy Watch bhaptics | Pandas Seaborn | GitHub Notion


๐Ÿ‘ฅ Team

Position Role Name Affiliation
๐Ÿ’ป Research First Author
Research Design & Client Development
Jaehyun Byun Kyung Hee Univ.
Computer Science
๐Ÿ’ป Research Co-Author
Data Analysis
Jihye Ryu Kyung Hee Univ.
Software Convergence
๐Ÿ’ป Research Co-Author
Backend Development
Hyeon Roh Kyung Hee Univ.
Industrial & Management Engineering
๐ŸŽ“ Advisor Academic Advisor Seokhee Jeon Kyung Hee Univ.
Haptics and Virtual Reality Lab


๐Ÿ“š Research Background

๐Ÿ“– Problem Statement

Social anxiety disorder causes excessive fear in social interactionsโ€”4 out of 10 university students experience these symptoms. While exposure therapy with cognitive feedback shows superior outcomes, two barriers exist: (1) CBT specialists require 1+ years of training, and (2) real-time third-party intervention is nearly impossible during social interactions.

์‚ฌํšŒ ๊ณตํฌ์ฆ์€ ์‚ฌํšŒ์  ์ƒํ˜ธ์ž‘์šฉ์—์„œ ๊ณผ๋„ํ•œ ๋ถˆ์•ˆ์„ ์œ ๋ฐœํ•˜๋ฉฐ, ๋Œ€ํ•™์ƒ 10๋ช… ์ค‘ 4๋ช…์ด ์ด๋ฅผ ๊ฒฝํ—˜ํ•ฉ๋‹ˆ๋‹ค. ๋…ธ์ถœ ์š”๋ฒ•์— ์ธ์ง€์  ํ”ผ๋“œ๋ฐฑ์„ ๋ณ‘ํ•ฉํ•˜๋ฉด ํšจ๊ณผ๊ฐ€ ์šฐ์ˆ˜ํ•˜์ง€๋งŒ ๋‘ ๊ฐ€์ง€ ์žฅ๋ฒฝ์ด ์กด์žฌํ•ฉ๋‹ˆ๋‹ค: (1) ์ธ์ง€ํ–‰๋™์น˜๋ฃŒ ์ „๋ฌธ๊ฐ€ ์–‘์„ฑ์— ์ตœ์†Œ 1๋…„ ์ด์ƒ ์†Œ์š”, (2) ์‚ฌํšŒ์  ์ƒํ˜ธ์ž‘์šฉ ์ค‘์—๋Š” ์ œ3์ž์˜ ์‹ค์‹œ๊ฐ„ ๊ฐœ์ž…์ด ์–ด๋ ค์›€.

๐Ÿ” Prior Work & Insight

This research designed a biometric-driven automatic haptic feedback pipeline (Galaxy Watch โ†’ WebSocket โ†’ Unity โ†’ bhaptics) for VR exposure therapy, and compared which haptic pattern most effectively reduces tension through a controlled user study.

๋ณธ ์—ฐ๊ตฌ๋Š” VR ๋…ธ์ถœ ์น˜๋ฃŒ ์ค‘ ์ƒ์ฒด ์‹ ํ˜ธ ๊ธฐ๋ฐ˜ ์ž๋™ํ™”๋œ ํ–…ํ‹ฑ ํ”ผ๋“œ๋ฐฑ ํŒŒ์ดํ”„๋ผ์ธ(Galaxy Watch โ†’ WebSocket โ†’ Unity โ†’ bhaptics) ์„ ์„ค๊ณ„ํ•˜๊ณ , ํ†ต์ œ๋œ ์‚ฌ์šฉ์ž ์—ฐ๊ตฌ๋ฅผ ํ†ตํ•ด ์–ด๋–ค ํ–…ํ‹ฑ ํŒจํ„ด์ด ๊ธด์žฅ ์™„ํ™”์— ๊ฐ€์žฅ ํšจ๊ณผ์ ์ธ์ง€ ๋น„๊ตํ–ˆ์Šต๋‹ˆ๋‹ค.

Study Key Finding Our Pattern
Azevedo et al. (2017) Vibration 20% slower than resting HR reduced anxiety Slow vibration
Haynes et al. (2022) Breathing-guided haptic most effective for tension relief Breathing guidance
Butterfly Hug (EMDR) Alternating shoulder taps used in trauma therapy Butterfly hug


โš™๏ธ System Architecture

๐Ÿ”ง Cross-Platform Data Pipeline

์ด์ข… ํ”Œ๋žซํผ ๋ฐ์ดํ„ฐ ํŒŒ์ดํ”„๋ผ์ธ

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Wearable Layer  โ”‚    โ”‚  Streaming Layer โ”‚    โ”‚   Client Layer   โ”‚    โ”‚   Output Layer   โ”‚
โ”‚  Galaxy Watch 6  โ”‚    โ”‚     HypeRate     โ”‚    โ”‚   Unity Engine   โ”‚    โ”‚  bhaptics Suit   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค    โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ€ข HR Sensor      โ”‚    โ”‚ โ€ข WebSocket API  โ”‚    โ”‚ โ€ข Data Reception โ”‚    โ”‚ โ€ข 40 Vibration   โ”‚
โ”‚ โ€ข 1Hz Sampling   โ”‚โ”€โ”€โ”€โ†’โ”‚ โ€ข Real-time      โ”‚โ”€โ”€โ”€โ†’โ”‚ โ€ข Threshold      โ”‚โ”€โ”€โ”€โ†’โ”‚   Motors         โ”‚
โ”‚ โ€ข BPM Output     โ”‚    โ”‚   Relay          โ”‚    โ”‚   Detection      โ”‚    โ”‚ โ€ข Pattern Play   โ”‚
โ”‚                  โ”‚    โ”‚ โ€ข Multi-device   โ”‚    โ”‚ โ€ข CSV Logging    โ”‚    โ”‚ โ€ข Haptic Design  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚   Support        โ”‚    โ”‚ โ€ข Trigger Logic  โ”‚    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ก Real-time Heart Rate Streaming

์‹ค์‹œ๊ฐ„ ์‹ฌ๋ฐ•์ˆ˜ ์ŠคํŠธ๋ฆฌ๋ฐ

Component Implementation
Sensor Galaxy Watch 6 optical HR sensor, 1-second interval sampling
๊ฐค๋Ÿญ์‹œ ์›Œ์น˜ 6 ๊ด‘ํ•™ ์‹ฌ๋ฐ• ์„ผ์„œ, 1์ดˆ ๊ฐ„๊ฒฉ ์ƒ˜ํ”Œ๋ง
Middleware HypeRate WebSocket relayโ€”unified API for diverse wearables
HypeRate WebSocket ์ค‘๊ณ„โ€”๋‹ค์–‘ํ•œ ์›จ์–ด๋Ÿฌ๋ธ” ํ†ตํ•ฉ API
Reception Unity HypeRate SDK, real-time BPM variable access
Unity HypeRate SDK, ์‹ค์‹œ๊ฐ„ BPM ๋ณ€์ˆ˜ ์ ‘๊ทผ
Threshold HR โ‰ฅ 115 BPM triggers haptic feedback (pilot test max: 130, normal: 60-100)
์‹ฌ๋ฐ•์ˆ˜ 115 ์ด์ƒ ์‹œ ํ–…ํ‹ฑ ํ”ผ๋“œ๋ฐฑ ํŠธ๋ฆฌ๊ฑฐ (ํŒŒ์ผ๋Ÿฟ ํ…Œ์ŠคํŠธ ์ตœ๋Œ€: 130, ์ •์ƒ: 60-100)

๐Ÿ“ Timestamp-Synchronized Logging System

ํƒ€์ž„์Šคํƒฌํ”„ ๋™๊ธฐํ™” ๋กœ๊น… ์‹œ์Šคํ…œ

// CSV Logging with StreamWriter
public class BiometricLogger : MonoBehaviour
{
    private StreamWriter writer;
    private string filepath;
    
    void Start()
    {
        filepath = $"Data/HR_{participantID}_{DateTime.Now:yyyyMMdd_HHmmss}.csv";
        writer = new StreamWriter(filepath);
        writer.WriteLine("Timestamp,HeartRate,FeedbackType,ScenePhase");
    }
    
    void OnHeartRateReceived(int bpm)
    {
        string timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
        string feedbackType = currentFeedback.ToString();
        string phase = currentScene.ToString();
        
        writer.WriteLine($"{timestamp},{bpm},{feedbackType},{phase}");
        writer.Flush();
    }
}

๐ŸŽจ Haptic Feedback Design

๐ŸŽ›๏ธ Three Clinically-Grounded Patterns

์ž„์ƒ์ ์œผ๋กœ ๊ฒ€์ฆ๋œ ์„ธ ๊ฐ€์ง€ ํŒจํ„ด

Patterns were designed using bhaptics Designerโ€”a web-based haptic authoring tool for TactSuit's 40 vibration motors.

ํŒจํ„ด์€ bhaptics Designer๋ฅผ ์‚ฌ์šฉํ•ด ์„ค๊ณ„ํ–ˆ์Šต๋‹ˆ๋‹คโ€”TactSuit์˜ 40๊ฐœ ์ง„๋™ ๋ชจํ„ฐ๋ฅผ ์œ„ํ•œ ์›น ๊ธฐ๋ฐ˜ ํ–…ํ‹ฑ ์ €์ž‘ ๋„๊ตฌ์ž…๋‹ˆ๋‹ค.

Pattern Clinical Basis Implementation
๐Ÿซ€ Slow Vibration Azevedo (2017): Sub-heartbeat rhythm induces physiological entrainment
์‹ฌ๋ฐ• ์ดํ•˜ ๋ฆฌ๋“ฌ์ด ์ƒ๋ฆฌ์  ๋™์กฐ ์œ ๋„
10-second continuous vibration at 20% below resting HR frequency
์•ˆ์ • ์‹œ ์‹ฌ๋ฐ•์ˆ˜๋ณด๋‹ค 20% ๋А๋ฆฐ ์ฃผํŒŒ์ˆ˜๋กœ 10์ดˆ๊ฐ„ ์ง€์† ์ง„๋™
๐ŸŒฌ๏ธ Breathing Guide Haynes (2022): Most effective for tension relief
๊ธด์žฅ ์™„ํ™”์— ๊ฐ€์žฅ ํšจ๊ณผ์ 
Abdominal-centered expanding/contracting circular vibration pattern
๋ณต๋ถ€ ์ค‘์•™ ๊ธฐ์ค€ ํ™•์žฅ/์ˆ˜์ถ•ํ•˜๋Š” ์›ํ˜• ์ง„๋™ ํŒจํ„ด
๐Ÿฆ‹ Butterfly Hug EMDR-based trauma therapy technique
EMDR ๊ธฐ๋ฐ˜ ์™ธ์ƒ ์น˜๋ฃŒ ๊ธฐ๋ฒ•
Alternating single taps on left/right shoulders
์–‘์ชฝ ์–ด๊นจ๋ฅผ ๋ฒˆ๊ฐˆ์•„ ๋‹จ๋ฐœ์ ์œผ๋กœ ๋‘๋“œ๋ฆผ


๐Ÿ”ฌ Experiment Design

๐ŸŽญ VRET Environment Design

The VR public speaking simulation was built in Unity Engine with psychological pressure elements:

VR ๋ฐœํ‘œ ์‹œ๋ฎฌ๋ ˆ์ด์…˜์€ Unity Engine์œผ๋กœ ์‹ฌ๋ฆฌ์  ์••๋ฐ• ์š”์†Œ๋ฅผ ํฌํ•จํ•˜์—ฌ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค:

Element Implementation Purpose
Audience NPCs Animator Controller with Idle/Clapping/Questioning states
Idle/Clapping/Questioning ์ƒํƒœ๋ฅผ ๊ฐ€์ง„ Animator Controller
Social pressure simulation
์‚ฌํšŒ์  ์••๋ฐ• ์‹œ๋ฎฌ๋ ˆ์ด์…˜
Event Sequences Timeline + Playable Director for host, warnings, disruptions
์‚ฌํšŒ์ž, ๊ฒฝ๊ณ , ๋Œ๋ฐœ ์ƒํ™ฉ์„ ์œ„ํ•œ Timeline + Playable Director
Controlled stressor delivery
ํ†ต์ œ๋œ ์ŠคํŠธ๋ ˆ์Šค ์š”์ธ ์ „๋‹ฌ
Interactions Ray Interactor for PPT control, script checking
PPT ์ œ์–ด, ๋Œ€๋ณธ ํ™•์ธ์„ ์œ„ํ•œ Ray Interactor
Realistic task engagement
ํ˜„์‹ค์ ์ธ ๊ณผ์ œ ๋ชฐ์ž…
UI Elements World Space Canvas for recording indicator, timer
๋…นํ™” ํ‘œ์‹œ, ํƒ€์ด๋จธ๋ฅผ ์œ„ํ•œ World Space Canvas
Performance pressure
์ˆ˜ํ–‰ ์••๋ฐ•
Scene Transitions Async Scene Loading with fade effects
ํŽ˜์ด๋“œ ํšจ๊ณผ๊ฐ€ ์ ์šฉ๋œ ๋น„๋™๊ธฐ ์”ฌ ๋กœ๋”ฉ
Immersion maintenance
๋ชฐ์ž… ์œ ์ง€

๐Ÿ“‹ Experiment Protocol

Variable Definition
Control Presentation content & interactions (constant)
Independent Haptic type: None / Slow / Breathing / Butterfly
Dependent Heart rate change (BPM ฮ”)

Participants: N=10 (5M/5F), ages 20-25, university students

Procedure: Pre-survey โ†’ Equipment fitting (VR + Watch + bhaptics) โ†’ Waiting room โ†’ Presentation โ†’ Post-SUS

  • 4 trials per participant (within-subjects, counterbalanced)


๐Ÿ“Š Data Analysis

๐Ÿ”„ Data Preprocessing

Raw CSV data (HR + timestamp + feedback type) was cleaned by handling missing values with median imputation, encoding categorical feedback types to integers, and validating 1-second interval uniformity for synchronized analysis.

์›์‹œ CSV ๋ฐ์ดํ„ฐ(์‹ฌ๋ฐ•์ˆ˜ + ํƒ€์ž„์Šคํƒฌํ”„ + ํ”ผ๋“œ๋ฐฑ ์œ ํ˜•)๋ฅผ ์ „์ฒ˜๋ฆฌ: ๊ฒฐ์ธก์น˜๋Š” ์ค‘์•™๊ฐ’ ๋Œ€์ฒด, ๋ฒ”์ฃผํ˜• ํ”ผ๋“œ๋ฐฑ ์œ ํ˜•์€ ์ •์ˆ˜ ์ธ์ฝ”๋”ฉ, 1์ดˆ ๊ฐ„๊ฒฉ ๊ท ์ผ์„ฑ ๊ฒ€์ฆ ํ›„ ๋™๊ธฐํ™” ๋ถ„์„์— ํ™œ์šฉ.

๐Ÿ“ˆ Statistical Results

Condition Mean HR (BPM) ฮ” from Baseline
No Feedback 111 โ€”
With Feedback 107 -4 BPM
Pattern Immediacy Duration Effectiveness
๐ŸŒฌ๏ธ Breathing Guide Immediate Longest Most Effective
๐Ÿซ€ Slow Vibration Immediate Moderate Effective
๐Ÿฆ‹ Butterfly Hug Delayed (2-3 reps) Short Least Effective

๐Ÿ“‰ Time-Series Observations

  • Feedback-triggered group: HR spiked to 120-130 BPM upon waiting room entry
  • Breathing guide & slow vibration: immediate HR reduction post-trigger
  • Butterfly hug: required 2-3 repetitions before measurable effect

๐Ÿ“ Usability Evaluation

Metric Score
SUS Score 78.95 / 100 (Good)
Perceived Effectiveness 4.0 / 5.0

๐Ÿ† Publications & Awards

๐Ÿ“„ Publication

Designing Haptic Feedback for Social Phobia Improvement and VRET Environment for Data Analysis

Korea Computer Congress (KCC) 2024
Jaehyun Byun, Jihye Ryu, Seokhee Jeon


๐Ÿฅ‡ Awards

Award Event Year
๐Ÿ† ํ•™๋ถ€์ƒ ์šฐ์ˆ˜๋…ผ๋ฌธ์ƒ Korea Computer Congress (KCC) 2024 2024
๐ŸŒ Honored Partner Startup Exhibition Vietnam Mobile Summit 2024 2024


๐Ÿ“š References

  1. ๊ถŒ์„๋งŒ. ํ˜„๋Œ€ ์ด์ƒ์‹ฌ๋ฆฌํ•™. ์„œ์šธ ํ•™์ง€์‚ฌ. 2012
  2. Azevedo, R.T., et al. The calming effect of a new wearable device during the anticipation of public speech. Sci Rep 7, 2285. 2017
  3. Haynes AC, et al. A calming hug: Design and validation of a tactile aid to ease anxiety. PLoS One. 2022
  4. Deusdado & Antunes. VR rehabilitation with bHaptics TactSuit. 2023
  5. Heimberg, R.G. Cognitive-behavioral therapy for social anxiety disorder. Biological Psychiatry, 51, 101-108. 2002

๐Ÿ“ฌ Contact

For questions about this research, please contact:
Jaehyun Byun โ€” bjh1750@khu.ac.kr

About

Realtime Haptics Feedback modeling to Improve anxiety | Pandas Scikitlearn Seaborn

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages