System Overview
Synheart Core SDK is a modular, on-device human state intelligence system that collects multi-modal signals, fuses them into a unified state representation (HSV - Human State Vector), and provides optional interpretation modules for focus and emotion.Module System
Signal Collection Modules
1. Wear Module
Collects biosignals from wearable devices. Data Sources:- Heart rate (HR)
- Heart rate variability (HRV)
- Sleep stages
- Motion/activity
- Skin temperature (if available)
- Derived signals only (no raw biosignals)
- 30s, 5m, 1h, 24h aggregations
- Quality metrics and confidence scores
- iOS: HealthKit
- Android: Health Connect
- Multi-device: Apple Watch, Fitbit, WHOOP, Garmin, Samsung
2. Phone Module
Collects device-level signals. Data Sources:- Motion (accelerometer, gyroscope)
- Screen state (on/off, brightness)
- App context (coarse categories)
- Location context (stay/move, no coordinates)
- No fine-grained location
- No app names (only categories: social, productivity, etc.)
- No notification content
3. Behavior Module
Captures interaction patterns. Data Sources:- Tap frequency and pressure
- Scroll speed and direction
- Typing cadence
- App switching frequency
- Screen unlock patterns
- No content (what you type/read)
- Only patterns (how you interact)
HSI Runtime
The HSI Runtime fuses signals from all modules into a unified state representation (HSV - Human State Vector). Core Functions:- Multimodal Fusion: Combines biosignals, phone sensors, and behavior
- State Axes: Calculates affect and engagement indices
- Time Windows: Maintains state across 30s, 5m, 1h, 24h windows
- State Embedding: Generates 64D vector representation
- 30s window: Updated every 30 seconds
- 5m window: Updated every minute
- 1h window: Updated every 5 minutes
- 24h window: Updated every 15 minutes
- Latency: ≤ 100ms
- CPU: < 2%
- Memory: < 15MB
- Battery: < 0.5%/hr
Interpretation Modules
1. Focus Module
Estimates cognitive focus and concentration. Inputs:- HSI state embedding
- Engagement indices
- Behavioral patterns
focused: Moderate to high sustained attentiondeep_focus: Very high sustained attentiondistracted: Low attention with high variabilityneutral: Baseline state
2. Emotion Module
Estimates affective states from physiological and behavioral signals. Inputs:- HSI affect axes
- Biosignals (HR, HRV)
- Behavioral patterns
calm: Low arousal, positive valencestressed: High arousal, negative valenceexcited: High arousal, positive valencetired: Low arousal, negative valence
Cloud Connector
Securely uploads state snapshots (HSI 1.0 format) to the cloud (with user consent). Features:- Consent-gated uploads
- Batch processing
- WiFi-only option
- Automatic retry
- End-to-end encryption
- No raw signals
- No personally identifiable information
- Only derived state snapshots (HSI 1.0 format)
- User can revoke at any time
Consent Module
Manages permissions and data masking. Responsibilities:- Permission requests
- Consent tracking
- Data masking based on consent
- Runtime enforcement
| Module | Permission | Data Access |
|---|---|---|
| Wear | Health data | Derived biosignals |
| Phone | Motion & sensors | Coarse context only |
| Behavior | Accessibility (optional) | Interaction patterns only |
| Cloud | Network upload | HSI snapshots only |
Capability System
Different apps get different levels of access based on app signature and tenant ID.Capability Levels
| Level | Access | Who Gets It |
|---|---|---|
| Core | Basic HSV, derived signals | External developers |
| Extended | Full HSV embedding, higher frequency | Synheart apps (Syni Life, SWIP) |
| Research | Raw streams, full fusion vectors | Research apps (with authorization) |
Capability Matrix
| Module | Core | Extended | Research |
|---|---|---|---|
| Wear | Derived biosignals (30s windows) | Higher frequency (5s windows) | Raw HR/HRV streams |
| Phone | Motion, screen state | Advanced app context | Full context with app names |
| Behavior | Basic metrics (aggregated) | Extended metrics | Event-level streams |
| HSV Runtime | Basic state (affect, engagement) | Full 64D embedding | Full fusion vectors + intermediate states |
| Cloud | Ingest endpoint (HSI 1.0) | Extended endpoints | Research endpoints |
Enforcement
Capability checks happen at:- SDK Initialization: Validates app signature and tenant ID
- Module Enable: Checks capability for requested module
- Data Access: Masks/filters data based on capability
- Cloud Upload: Routes to appropriate endpoint
Data Flow
1. Signal Collection
2. HSV Fusion
3. Interpretation
4. Output
Thread Model
The SDK uses a multi-threaded architecture for performance:- All callbacks delivered on main thread
- Internal state protected by locks
- Async operations use platform-native concurrency (Coroutines, Combine, async/await)
Storage
Local Storage
HSV Cache:- Last 24 hours of HSV snapshots
- Encrypted with AES-256
- Auto-pruned to maintain size
- Location: App-specific secure storage
- Consent status
- Capability level
- Last sync timestamp
- User preferences
Cloud Storage
Upload Policy:- Requires explicit consent
- Only state snapshots - HSI 1.0 format (no raw data)
- Encrypted in transit (TLS 1.3)
- Encrypted at rest (AES-256)
Performance Characteristics
CPU Usage
| Component | Typical | Peak |
|---|---|---|
| Signal Collection | 0.5% | 1% |
| HSI Processing | 0.8% | 1.5% |
| Interpretation | 0.2% | 0.5% |
| Total | 1.5% | 2% |
Memory Usage
| Component | Size |
|---|---|
| SDK Core | 5 MB |
| HSV Cache | 4 MB |
| Module State | 3 MB |
| Total | 12 MB |
Battery Impact
| Component | Impact |
|---|---|
| Signal Collection | 0.1%/hr |
| HSI Processing | 0.1%/hr |
| Cloud Upload | 0.1%/hr |
| Total | 0.3%/hr |
Latency
| Operation | Latency |
|---|---|
| HSV Update | 80ms |
| Focus Estimate | 50ms |
| Emotion State | 60ms |
| Cloud Upload | 60ms |
Security
Data Protection
-
Encryption
- Local storage: AES-256
- Network: TLS 1.3
- Key storage: Platform keychain
-
Access Control
- Capability-based access
- App signature validation
- Tenant ID verification
-
Privacy
- No raw content
- No personal identifiers
- Consent-gated access
Threat Model
Protected Against:- Unauthorized data access
- Man-in-the-middle attacks
- Local storage compromise
- Malicious apps accessing data
- Device compromise (jailbreak/root)
- Physical device access
- Platform-level vulnerabilities
Platform-Specific Notes
iOS
- Uses HealthKit for biosignals
- CoreMotion for motion sensors
- Combine for reactive streams
- Background delivery supported
Android
- Uses Health Connect for biosignals
- SensorManager for motion sensors
- Kotlin Coroutines and Flow
- WorkManager for background tasks
Flutter/Dart
- Platform channels for native access
- Streams for reactive updates
- Async/await for operations
- Cross-platform consistency
Related Documentation
- HSV Specification - State axes, indices, embeddings, and windows
- Capability System - Access level details
- Consent System - Permission model
- Cloud Protocol - Upload protocol specification
Author: Israel Goytom