MARPA: A Multi-Agent Large Language Model Framework Grounding Personalised Physical Activity Recommendations in Temporal Wearable Data

Xiaotong Yu, Joshua Y. Kim, HaeJin Lee, Xumou Zhang, Corinne Caillaud, Kalina YacefarXiv 2026

TL;DR

Wearable devices know when you move, not just how much, yet most AI health coaches still reduce your week to a single daily step count. MARPA is a multi-agent Large Language Model (LLM) framework that pairs an explainable time-series model with dietary and personal context agents to turn raw wearable data into concrete, schedule-friendly physical activity plans. In evaluations with 20 physical activity experts, the full framework boosted report quality by 34.7% over an aggregated-metric baseline.

What Problem Does This Paper Address?

If you wear a fitness tracker, it’s recording your movement continuously—capturing whether you’re sedentary at a desk at 10:00 a.m. or playing football at 4:00 p.m. Yet most existing recommendation systems, including recent LLM-based coaches, boil this rich timeline down to daily or weekly averages (e.g., "60 minutes of moderate-to-vigorous activity per day").

That creates three bottlenecks:

  1. No sense of timing: Averages can't tell you where in your daily routine an opportunity window actually exists.
  2. Unreliable sensor math: LLMs are notoriously shaky at interpreting raw numerical sensor data on their own.
  3. Missing context and safety: A great recommendation needs to fit your goals, preferences, and diet—and it shouldn't suggest intense exercise to someone with an underlying heart condition.

Methods

MARPA tackles these bottlenecks by splitting the work across specialised agents, orchestrated in a strict pipeline:

Fig. 1. Overview of MARPA. The framework receives the main tasks and a user profile that combines real data (wearable PA data, dietary intake and demographics) with simulated data (screening responses and user context). The orchestrator first applies the rule-based safety screening gate and refers users at high risk to a health practitioner. Otherwise, it calls the preferences and goals subagents in parallel, followed by the dietary intake agent and the temporal PA analysis agent. Evaluators check whether the outputs give sufficient information and send them back for further analysis if not, and the final report then presents a descriptive analysis and PA recommendations. All agents run on one of LLM family (GPT, Claude or Gemini).
  • Rule-Based Safety Gate: Before any LLM is called, a deterministic check screens the user against six medical risk questions (the Adult Pre-exercise Screening System, or APSS). If any risk is flagged, MARPA aborts recommendations and refers the user to a health practitioner.
  • User Context & Diet Agents: Two parallel subagents extract the user's goals, preferences, and constraints (e.g., "no equipment" $\rightarrow$ bodyweight exercises). A dietary agent then interprets Food Frequency Questionnaire (FFQ) data against WHO guidelines, proposing one concrete diet-to-PA action (such as swapping a sugary drink for water around workouts).
  • XAI-Driven Temporal PA Agent: Instead of feeding raw accelerometer numbers to an LLM, MARPA uses HealthCAT—an explainable Transformer model—to identify candidate time windows from hourly activity data. An evaluator then cross-checks each window against the user's routine, accepting, qualifying, or rejecting it (e.g., rejecting a 6:00 a.m. window if the user isn't awake).
  • Two-Level Evaluators: Agent-level evaluators check each output for grounding and quality (triggering a retry if needed), while a final evaluator checks safety and coherence before a synthesis agent writes the report.

The authors tested this setup across three LLM families (GPT, Claude, and Gemini), assigning lightweight models to context/diet/synthesis, mid-tier models to the temporal agent and evaluators, and flagship models as post-hoc "LLM-as-a-judge" raters.

Datasets

MARPA was evaluated on 28 User Profiles (UPs) built from an existing cohort of 10-to-16-year-old adolescents:

  • Real data: 4–9 days (typically 7) of hourly wrist-worn accelerometer data (GENEActiv), FFQ dietary records covering weekly servings of 11 food groups, and demographics (age, gender, BMI, Healthy Weight Status).
  • Simulated data: Expert-validated persona templates for user context (goals, preferences, constraints) and simulated APSS screening responses.

Twenty-five UPs were used in Experiment 1 (20 passing the safety gate across four activity/health categories, plus 5 high-risk profiles to test the safety gate), and 3 UPs were used in Experiment 2.

Key Insights and Ideas

  • XAI needs a reality check: HealthCAT's candidate time windows weren't blindly trusted. Evaluators accepted only 24.1% outright, qualified 66.7% with caveats, and rejected 9.2%, turning raw model attributions into realistic human schedules.
  • The detail vs. actionability trade-off: Adding the dietary agent improved diet interpretation, but it also made reports longer and harder to read (Flesch–Kincaid grade rose from 12.3 to 13.7). More agents mean more information—which can overwhelm the user.
  • Architecture beats model choice: Report quality varied much more between different user profiles than between GPT, Claude, and Gemini, suggesting that the multi-agent structure matters more than the underlying LLM.
  • LLM judges can't replace experts: A cross-family LLM-as-a-judge panel agreed with experts on overall configuration rankings (79% pairwise agreement), but showed a slight verbosity bias, own-family favouritism, and poor agreement on individual safety and rubric items.

Key Results

  • Temporal analysis helps: In Experiment 1 (20 PA experts rating 100 reports), adding the temporal PA agent alone improved overall report quality by 11.3% over the aggregated-metric baseline (+0.36 points on a 5-point scale, Holm-adjusted $p = .047$).
  • The full framework shines: Combining temporal PA, user context, and diet agents boosted quality by 34.7% over the baseline (+1.11 points, from 3.20 to 4.31, Holm-adjusted $p < .001$).
  • Safety held up: The rule-based gate caught all 5 high-risk profiles, and zero reports that passed the gate failed the final safety check.

Limitations and Future Work

The authors note several limitations: each user profile was rated by only one PA expert (preventing inter-rater agreement checks), and the LLM-family comparison covered just three profiles. The FFQ data lacked portion sizes and timestamps, limiting quantitative dietary advice, and user context was simulated. Finally, report length wasn't experimentally controlled. Future work could test length-matched reports, recruit multiple experts per profile, and build interactive "drill-down" interfaces—giving users a short, punchy recommendation upfront with optional deep dives into diet and timing.

Summary updated

BibTeX
@misc{yu2026marpa,
  author = {Xiaotong Yu and Joshua Y. Kim and HaeJin Lee and Xumou Zhang and Corinne Caillaud and Kalina Yacef},
  title = {{MARPA: A Multi-Agent Large Language Model Framework Grounding Personalised Physical Activity Recommendations in Temporal Wearable Data}},
  year = {2026},
  eprint = {2612.04820},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.04820},
}
Figure