Affective Agent: On-Device Personalized Intervention Reasoning for Wearable Systems

Reina Mun, Zishen Wan, Vijay Janapa ReddiarXiv 2026 · DOI

TL;DR

Affective Agent introduces a three-layer reference architecture that enables sub-billion-parameter language models to perform closed-loop, personalized intervention reasoning directly on wearable hardware. By decoupling personalization from model weights and utilizing host-managed structured memory alongside a two-pass reasoning chain, the system delivers context-aware decisions without cloud dependencies or per-user retraining.

What Problem Does This Paper Address?

While wearable devices have become highly proficient at sensing and inferring human states (such as stress, cognitive load, or thermal discomfort), determining how and when to act on those inferences remains a major bottleneck.

Existing Just-In-Time Adaptive Interventions (JITAIs) typically rely on rigid, rule-based logic or offload processing to the cloud. Cloud-dependent architectures introduce severe privacy liabilities, latency issues, and power constraints. Furthermore, true personalization is difficult to achieve on-device; traditional machine learning requires retraining model weights to adapt to an individual's unique baseline and preferences, a process that is computationally prohibitive for wearable-class hardware.

The authors tackle this gap by asking: How can we build an intelligent, privacy-preserving decision layer on-edge that reasons jointly over noisy physiological data, context, and user history?

Methods

The authors introduce Affective Agent, an architecture organized into three interacting layers implemented on an edge device (benchmarked on a Raspberry Pi Compute Module 5):

FIGURE 1. The Affective Agent Architecture. (Left) A perception layer converts wearable physiological signals into structured
  1. Perception Layer: Rather than feeding raw sensor streams directly into a language model, a local host extracts statistical features over 5-minute windows. These are processed by three frozen, task-specific ML classifiers (XGBoost for stress, Random Forest for cognitive load, and KNN for thermal comfort) to generate auxiliary evidence.
  2. Personalization Layer: Personalization is entirely decoupled from model weights. Instead, the host manages a structured local JSON memory containing short-term episodic memory (a FIFO buffer of the last 5 intervention outcomes) and long-term semantic memory (generalized user habits and baselines). A Preference Model Life-cycle dictates how heavily this memory influences decisions based on data maturity (Population Default $\rightarrow$ Provisional $\rightarrow$ Learned).
  3. Reasoning Layer: Powered by a fine-tuned, sub-billion-parameter LLM (e.g., Qwen2.5-0.5B), this layer uses a Two-Pass Reasoning mechanism to overcome the limited parametric capacity of tiny models:
  4. Pass 1 (Assess): Organizes physiological signals, classifier outputs, and context into a provisional state interpretation.
  5. Pass 2 (Verify): Re-checks the provisional judgment against history consistency, context appropriateness, and safety bounds before committing to an action (Intervene, Wait, or Abstain).

Training Workflow

To train this tiny agent without relying on unconstrained chain-of-thought generation, the authors developed a chronology-preserving synthetic scenario pipeline coupled with a six-tier Reasoning Complexity Curriculum (T0 to T5). This curriculum systematically exposes the model to increasing levels of ambiguity, conflicting evidence, and signal noise to enforce proper uncertainty calibration.

TABLE 1. Reasoning Complexity Curriculum: Six tiers (T0–

Datasets

Because the core contribution is architectural, the system was evaluated using a controlled, simulator-generated longitudinal dataset to model repeated decisions under realistic conditions. The physiological priors for the simulator's 14 distinct user profiles were derived from three prominent public datasets:

  • WESAD: For multimodal stress and affect priors.
  • SWELL-KW: For cognitive load and work-context tracking.
  • En-Gage: For indoor thermal comfort baselines.

To ensure field-plausible realism, the synthetic pipeline injected sensor artifacts such as dropout, clipping, motion artifacts, and intermittent signal loss.

Key Insights and Ideas

  • Personalization via State, Not Weights: The paper demonstrates that meaningful personalization does not require on-device backpropagation. Treating personalization as an in-context memory evolution problem allows a static, tiny model to adapt dynamically to user drift.
  • Classifiers as Evidence, Not Ground Truth: Instead of letting a stress classifier trigger an immediate alert, the LLM treats classifier outputs as noisy, circumstantial evidence, weighing them against situational context (e.g., distinguishing between a user being stressed at a desk vs. drinking coffee).
  • The Necessity of Explicit Verification: Sub-1B models lack the capacity for reliable implicit multi-step reasoning. Forcing an explicit two-pass "Assess-then-Verify" contract prevents the model from executing poorly timed or disruptive interventions.

Key Results

The architecture was evaluated across 1,600 synthetic decision points, comparing fine-tuned Qwen3-0.6B and Qwen2.5-0.5B models against a traditional rule-based controller:

  • Superior Decision Quality: The learned models achieved top-level action accuracies of 81.1% (Qwen2.5) and 78.2% (Qwen3), vastly outperforming the rule-based baseline's 48.2%.
  • Ablation Validation:
  • Removing the personalization memory dropped the macro-F1 score from 0.616 to 0.501 and severely degraded intervention routing accuracy (from 0.864 to 0.605).
  • Removing the verification pass (one-pass reasoning) dropped the macro-F1 score to 0.463 and worsened calibration error.
  • Edge Feasibility: On a Raspberry Pi CM5, total inference latency ranged from 53.6 to 83.3 seconds. While safe within a 5-minute sensing window, it highlights that token decoding dominates edge execution. Structured schema compliance was near-perfect at 99.3%.

Limitations and Future Work

  • Synthetic Evaluation: The current findings rely entirely on simulator-generated scenarios. Real-world field studies are required to evaluate true user receptivity, behavioral nuances, and actual intervention efficacy.
  • Confidence Calibration: The agents exhibited a relatively high Expected Calibration Error (ECE) of 0.255–0.301, meaning the models' self-reported confidence scores did not align well with actual accuracy. The host had to mitigate this by enforcing hard safety bounds.
  • Latency and Power Constraints: Token decoding accounted for up to 84.7% of the latency. The authors note that future work must explore hardware-level NPU acceleration, aggressive quantization, and direct power profiling to make the architecture viable for tight wrist-worn battery budgets.

Summary updated

BibTeX
@misc{mun2026affective,
  author = {Reina Mun and Zishen Wan and Vijay Janapa Reddi},
  title = {{Affective Agent: On-Device Personalized Intervention Reasoning for Wearable Systems}},
  year = {2026},
  eprint = {2609.12322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.12322},
}
Figure