Skip to content

synheart-ai/synheart-behavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Synheart Behavior

Privacy-first digital behavior modeling from interaction patterns

License: Apache 2.0 Platform Support

Overview

Synheart Behavior is a cross-platform SDK for capturing and transforming digital interaction patterns into numerical behavioral signals.

The SDK models how users interact with digital systems timing, rhythm, switching, and fragmentation without ever accessing content, text, or personal data.

These behavioral signals power downstream systems such as:

  • Focus and distraction inference
  • Digital wellness analytics
  • Cognitive load and fatigue estimation
  • Multimodal human state modeling (HSI)

Important: Synheart Behavior analyzes interaction dynamics, not what users type, read, or see.

Core Principles

  • Privacy-by-design
  • Metadata only (never content)
  • Permission-scoped tracking
  • On-device aggregation first
  • Numerical, interpretable representations

πŸš€ Key Features

πŸ”’ Privacy-First: No content, no text, no audio, no screen capture

πŸ“Š Behavioral Metrics: Interaction intensity, task switching, idle fragmentation, burstiness, distraction and focus proxies

⚑ On-Device Processing: Feature extraction and aggregation run locally

🎯 HSI-Ready: Produces structured behavioral vectors for Synheart HSI fusion

πŸ“± Multi-Platform SDKs: Flutter/Dart, Android (Kotlin), iOS (Swift)

πŸ” Consent-Gated: Fully controlled by user permission and policy enforcement

πŸͺΆ Lightweight: Designed for continuous background operation with minimal CPU and battery impact

πŸ“¦ SDKs

All SDKs provide identical functionality with platform-idiomatic APIs. Each SDK is maintained in its own repository:

Flutter/Dart SDK

dependencies:
  synheart_behavior: ^0.1.0

πŸ“– Repository: synheart-behavior-dart

Android SDK (Kotlin)

dependencies {
    implementation("ai.synheart:behavior:0.1.0")
}

πŸ“– Repository: synheart-behavior-kotlin

iOS SDK (Swift)

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/synheart-ai/synheart-behavior-swift.git", from: "0.1.0")
]

πŸ“– Repository: synheart-behavior-swift

πŸ“‚ Repository Structure

This repository serves as the canonical specification hub for shared resources across all SDK implementations:

project-name/
 β”œβ”€ docs/                     # Necessary documents of the repo/SDK
 β”œβ”€ models/                   # ML Models that the SDK is going to use
 β”œβ”€ examples/                 # Examples how you can use the SDK
 β”œβ”€ scripts/                  # where the SDK exists 
 β”œβ”€ .github/                  # Github workflow of CI/CD
 β”‚   β”œβ”€ ISSUE_TEMPLATE/
 β”‚   β”œβ”€ workflows/
 β”œβ”€ CONTRIBUTING.md           # A guideline how to contribute on this SDK 
 β”œβ”€ CODE_OF_CONDUCT.md
 β”œβ”€ SECURITY.md
 β”œβ”€ LICENSE                   # A LICENSE NOTICE                 
 └─ README.md

Platform-specific SDK repositories (maintained separately):

πŸ—οΈ Architecture

Behavioral Model

What Is Collected The SDK captures event-level interaction metadata, such as:

  • Tap, typing, scroll, swipe events (timing + physical properties only)
  • App foreground/background transitions
  • Idle gaps and interaction pauses
  • Notification and call events (event only, no content)
  • Motion state (sitting, standing, moving, laying)

What Is Not Collected

  • Typed characters or text
  • Notification content or sender identity
  • Call audio or voice data
  • Screenshots or screen recordings
  • URLs, app UI data, or semantics
  • Clipboard, camera, or microphone data

Events and Sessions

Event An event is a single atomic interaction: tap, typing, scroll, swipe, notification, call, idle_gap. Each event contains:

  • timestamp
  • event type
  • session ID
  • non-semantic metrics (e.g., duration, velocity)

Session A session is a continuous period of interaction with an application, bounded by: app open / close, or inactivity β‰₯ idle threshold (e.g., 30s)

Sessions are the primary unit for short-term behavioral aggregation.

Processing Pipeline

Raw Interaction Events
β”‚
β–Ό
Event Normalization
β”‚
β–Ό
Session Aggregation
β”‚
β–Ό
Behavior Feature Computation
β”‚
β–Ό
Normalized Behavioral Vector
β”‚
β–Ό
HSI Runtime / Downstream Consumers

Everything runs on-device:

  • Raw events are processed locally
  • Only aggregated features are exposed
  • No raw interaction logs are transmitted by default

Core Behavioral Metrics

Session-level outputs:

  • interaction_intensity
  • task_switch_rate
  • task_switch_cost
  • idle_ratio
  • fragmented_idle_ratio
  • burstiness
  • notification_load
  • scroll_jitter_rate
  • behavioral_distraction_score
  • behavioral_focus_hint
  • deep_focus_blocks

Daily aggregation produces higher-level behavioral summaries such as:

  • fragmented time ratio
  • screen time segments (morning / afternoon / evening / night)
  • recovery-friendly minutes
  • multitasking intensity
  • behavioral stability score
  • habit strength index

All metrics are bounded, normalized, and numerically stable.

πŸ”’ Privacy & Compliance

Hard Guarantees

βœ… No PII

βœ… No content capture

βœ… No keystroke logging

βœ… No audio or visual recording

βœ… Permission-scoped tracking only

βœ… No tracking across unconsented apps

Connectivity Model

  • The SDK does not require internet, Bluetooth, or external connectivity to operate.
  • It may record a binary network availability state (online/offline) as contextual metadata.
  • No network traffic, destinations, or payloads are inspected or captured.
  • Any data transmission is explicitly consent-gated and configurable.

Regulatory Alignment

  • GDPR / CCPA aligned
  • Data minimization and purpose limitation enforced
  • App Tracking Transparency (ATT) not required

βš™οΈ Performance Targets

  • CPU: ≀ 1% average
  • Memory: ≀ 10 MB peak
  • Battery: < 0.3% per hour
  • Event processing: < 500 ΞΌs
  • UI: No UI thread blocking

🎯 Use Cases

  • HSI Runtime β€” multimodal state fusion
  • Focus & Distraction Modeling
  • Digital Wellness (SWIP)
  • Behavior-Emotion Correlation
  • Longitudinal Habit Analysis

Consent Model

The Behavior SDK only activates if:

  • User grants behavioral consent
  • The app provides valid tenant β†’ project β†’ user identity
  • Consent Connector SDK validates and caches policy

If user disables behavioral consent:

  • Stops recording events
  • Zeros out behavior features
  • Marks them as behavior_consent=false
  • HSI Runtime masks behavior features

πŸ“š Documentation

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

πŸ“„ License

Apache 2.0 License - see LICENSE for details.

πŸ”— Related Projects


Author: Israel Goytom
Organization: Synheart Research & Engineering

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •