What is Synheart Emotion?
Synheart Emotion is a multi-platform SDK for inferring momentary emotions from biosignals (heart rate and RR intervals) directly on device, ensuring privacy and real-time performance. Supported Emotions:- 😊 Amused: Positive, engaged emotional state
- 😌 Calm: Relaxed, peaceful emotional state
- 😰 Stressed: Anxious, tense emotional state
Key Features
On-Device Processing
- All inference happens locally on your device
- No network calls required
- No raw biometric data leaves the device
- Privacy-first by design
Real-Time Performance
- < 5ms inference latency on mid-range devices
- < 3 MB memory footprint (engine + buffers)
- < 2% CPU usage during active streaming
- < 100 KB model size
Research-Based
- Trained on WESAD dataset (wearable stress and affect detection)
- 78% accuracy on 3-class emotion recognition
- Linear SVM model with feature engineering
- Reproducible with published model card
Multi-Platform
| Platform | SDK | Installation | Version | Status |
|---|---|---|---|---|
| Python | synheart-emotion | pip install synheart-emotion | 0.1.0 | ✅ Ready |
| Dart/Flutter | synheart_emotion | flutter pub add synheart_emotion | 0.2.1 | ✅ Ready |
| Kotlin | ai.synheart:emotion | JitPack | 0.1.0 | ✅ Ready |
| Swift | SynheartEmotion | Swift Package Manager | 0.1.0 | ✅ Ready |
Architecture
All SDKs implement the same architecture:- Ring Buffer: Holds last 60s of HR/RR data (configurable)
- Feature Extractor: Computes HR mean, SDNN, RMSSD
- Scaler: Standardizes features using training μ/σ
- Model: Linear SVM (One-vs-Rest) with softmax
- Emitter: Throttles outputs (default: every 5s)
Quick Start Examples
- Python
- Dart/Flutter
- Kotlin
- Swift
Use Cases
Mental Health Apps
Monitor stress levels in real-time:Wellness Coaching
Track emotional patterns throughout the day:Research Applications
Collect emotion data for scientific studies:Model Details
Model Type: Linear SVM (One-vs-Rest) Task: Momentary emotion recognition from HR/RR Input Features:[hr_mean, sdnn, rmssd] over a 60s rolling window
Performance:
- Accuracy: ~78%
- Macro-F1: ~72%
- Latency: < 5ms on modern mid-range devices
API Parity
All SDKs expose identical functionality:| Feature | Python | Kotlin | Swift | Dart |
|---|---|---|---|---|
| EmotionConfig | ✅ | ✅ | ✅ | ✅ |
| EmotionEngine | ✅ | ✅ | ✅ | ✅ |
| EmotionResult | ✅ | ✅ | ✅ | ✅ |
| EmotionError | ✅ | ✅ | ✅ | ✅ |
| Feature Extraction | ✅ | ✅ | ✅ | ✅ |
| Linear SVM Model | ✅ | ✅ | ✅ | ✅ |
| Thread-Safe | ✅ | ✅ | ✅ | ✅ |
| Sliding Window | ✅ | ✅ | ✅ | ✅ |
Available SDKs
Python SDK
For research, backend, and data analysis
Dart/Flutter SDK
Cross-platform mobile apps (iOS + Android)
Kotlin SDK
Native Android apps
Swift SDK
Native iOS, macOS, watchOS apps
Privacy & Security
- On-Device Processing: All emotion inference happens locally
- No Data Retention: Raw biometric data is not retained after processing
- No Network Calls: No data is sent to external servers
- Privacy-First Design: No built-in storage - you control what gets persisted
- Not a Medical Device: This library is for wellness and research purposes only
Resources
- GitHub: synheart-ai/synheart-emotion
- Model Card: Model Details
- Technical Spec: RFC E1.1
- Issues: Report Bugs
- Discussions: Community Forum
Citation
If you use this SDK in your research:Author: Israel Goytom
Made with ❤️ by the Synheart AI Team