OGEN integrates two primary sensor modalities:
All biometric data is processed on-device and uploaded to Firebase Firestore under users/{uid}/daily_summary and users/{uid}/sleep_nights.
OGEN משלבת שתי מודליות חיישנים עיקריות:
כל הנתונים הביומטריים מעובדים במכשיר ומועלים ל-Firebase Firestore תחת users/{uid}/daily_summary ו-users/{uid}/sleep_nights.
Hyperarousal Score — composite index integrating Heart Rate Reserve (Karvonen 1957), HRV suppression Z-score, and HR trend component. Computed on-device per reading (app layer, not firmware) and averaged per day. Higher values reflect greater sympathetic activation. No normative population data is published for PTSD specifically.
daily_summary.has_mean.Root Mean Square of Successive Differences between RR intervals, measured during periods of minimal motion. RMSSD is the most widely validated time-domain HRV index for vagal tone. Higher values reflect greater parasympathetic (vagal) activity. Normal adult resting range: 20–80 ms; PTSD populations often show suppression [1].
daily_summary.rest_rmssd. Note: stationary filtering (isStationary flag) is planned for a future build; current values may include motion artifact.Mean instantaneous heart rate during stationary monitoring windows. Elevated resting HR (>80 bpm) at rest is associated with higher sympathetic load and impaired recovery [2].
daily_summary.rest_hr.Episodes where physiological arousal collapses to near-baseline levels despite contextual cues suggesting threat. Reflects dorsal vagal shutdown — the dissociative "freeze" state described in Polyvagal Theory [3]. Elevated rates (>2/day) may indicate dissociative avoidance patterns warranting clinical review.
events subcollection → daily_summary.dangerous_calm_events.Total duration of sleep epochs in the overnight recording window. Recommended adult sleep: 420–540 minutes (7–9 hours) [4]. PTSD is frequently associated with TST <360 min due to nightmares, hyperarousal-driven awakenings, and early-morning insomnia [5].
sleep_nights → daily_summary.tst_minutes.Ratio of TST to time in bed (TIB). SE ≥85% indicates good sleep consolidation; <75% is the clinical insomnia threshold used in CBT-I trials [6].
daily_summary.sleep_efficiency), displayed as %.Wake After Sleep Onset — total minutes spent awake after first falling asleep. Reflects sleep maintenance difficulty rather than sleep initiation. PTSD elevates WASO through nightmare-induced arousals and nocturnal hyperarousal [5]. Normal: <20 min. Clinical significance: >40 min.
daily_summary.waso_minutes.Number of sleep-to-wake transitions per hour of sleep. Fragmented sleep is highly prevalent in PTSD, with rates of 10–20 events/hr reported versus <5/hr in healthy controls [7].
daily_summary.fragmentation_per_hour.Mean heart rate and RMSSD across all sleep epochs. Elevated nocturnal HR and suppressed nocturnal HRV are robust biomarkers of ANS dysregulation in PTSD [8]. Normal nocturnal RMSSD: 30–100 ms; PTSD often <30 ms.
daily_summary.night_mean_hr, daily_summary.night_mean_rmssd.All group comparisons are labeled "exploratory analysis". The following methods are implemented in stats.js and validated against scipy reference fixtures.
Median, mean, SD, IQR, Q1, Q3. Bootstrap 95% CI of median: 2000 resamples with mulberry32 PRNG (seed=0) for exact reproducibility across JS and Python.
Non-parametric two-sample test. Normal approximation with continuity correction (use_continuity=True), two-sided. Matches scipy.stats.mannwhitneyu.
Cliff's delta: proportion of (x>y) minus (x<y) comparisons. Range [−1, +1]; |d|>0.47 = large.
Hedges' g: pooled-SD standardized mean difference with correction factor 1 − 3/(4(n_x+n_y−2)−1).
Robust monotone trend estimator. Slope = median of all pairwise slopes; intercept = median(y) − slope × median(x). Matches scipy.stats.theilslopes.
Rank-based correlation with t-distribution p-value (t = r√((n−2)/(1−r²))). Matches scipy.stats.spearmanr.
Controls False Discovery Rate when multiple metrics are compared simultaneously. Backward cumulative-minimum pass over sorted p-values. Matches scipy.stats.false_discovery_control(method='bh').
MAD-based z-score: z = (x − median(anchor)) / (1.4826 × MAD). Resistant to outliers; used for within-patient progress tracking against personal anchor.
כל השוואות הקבוצות מסומנות "ניתוח אקספלורטורי". השיטות הבאות מיושמות ב-stats.js ומאומתות מול נתוני ייחוס scipy.
חציון, ממוצע, SD, IQR, Q1, Q3. רווח בטחון 95% לחציון בבוטסטראפ: 2000 מדגמים חוזרים עם PRNG mulberry32 (seed=0).
מבחן שתי מדגמים לא פרמטרי. קירוב נורמלי עם תיקון רציפות, דו-צדדי.
דלתא של קליף: יחס השוואות (x>y) פחות (x<y). טווח [−1, +1]; |d|>0.47 = גדול.
g של הדג'ס: הפרש ממוצעים מנורמל עם SD מאוחד ומקדם תיקון.
שליטה בשיעור גילויים שגויים בהשוואות מרובות. מעבר מינימום מצטבר לאחור על p-values ממוינים.
z-ציון מבוסס MAD: z = (x − חציון(עוגן)) / (1.4826 × MAD). עמיד בפני ערכים חריגים.
3-pass algorithm: (1) per-epoch ENMO ≤ 40 mg + HR < daytimeBaseline × 0.92 + rolling HR SD ≤ 7 BPM over 8 epochs; (2) HMM Viterbi (P(stay_sleep)=0.97); (3) Cole-Kripke actigraphy smoothing. Epoch length: 30 seconds.
Multi-pass wearable actigraphy algorithm using accelerometry-derived activity levels, heart rate criteria relative to daytime baseline, a Hidden Markov Model (HMM) for sleep-state sequence coherence, and Cole-Kripke actigraphy smoothing. Epoch length: 30 seconds. Exact algorithm parameters are proprietary — detailed methodology available to OGEN team upon partnership review.
Fires when all 9 conditions are simultaneously true: ACC fresh <5s, ENMO below rest ≥180s, no cadence, HR > baseline+20 BPM, hrv_z_rest < −2.5, ActivityState=REST, HRV_VALID, RMSSD plausible, not in post-exercise 10-min window. Polar ECG only.
Multi-condition autonomic freeze detector combining accelerometry-confirmed sustained immobility, heart rate elevated above personal resting baseline, HRV substantially below personal resting baseline, absence of movement cadence, and valid cardiac data quality. All conditions must be simultaneously true throughout the detection window. Exact thresholds are proprietary — detailed methodology available to OGEN team upon partnership review. Polar ECG only.
The personal baseline is computed from the first 14 complete (non-incomplete) nights starting from the anchor date. This anchor can be set per-patient by the clinician. The "Anchor Δ" column shows percent change from anchor-period median to current-period median — a within-patient effect size that is robust to inter-patient variability.
Planned metric: standard deviation of sleep midpoint across nights (SRI index). More regular sleep timing is associated with better autonomic recovery and reduced PTSD symptom severity.
All citations are verified by DOI or PubMed.
Product-owner access only. Sign in with your OGEN account.
| Date | Tester | Readings | Avg Stress | Avg HRV | Normal | Elevated | High | Crisis | Sam Sessions | Status | Drift | REM HR Δ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Select a date range and click Refresh. | ||||||||||||
Sensitive content: Sam/Mika conversation transcripts contain personal therapeutic disclosures. They are not shown by default. Load transcripts only when necessary for specific analytical purposes, and handle with full confidentiality.
Select a tester to view details