Skip to content
Boris DupouxFrançais Menu

Applied Research01 / 14

A Fully Local AI Agent with a Meaning Graph and Multimodal Emotion Measurement

A fully local agent over personal data that turns measured signals into a meaning graph of relations, affective episodes, themes, chapters and owner-validated truths, with emotion measured on messages, voice and photos.

Evidence level In production

  1. Concept or simulation
  2. Prototype
  3. Field or pilot
  4. In production

in daily use · evaluation on a designer-authored set, single run

Six hours of the day, from 3 to 8, each hour stacking its traces by typeReplay the day
  1. 1 message1 received
  2. 1 conversation1 received
  3. 9 messages9 received
  4. 1 e-mail1 received
  5. 1 e-mail1 received
  6. 1 conversation1 received
  7. 1 e-mail1 received
  8. 1 note
  9. 1 e-mail1 received
  10. 1 message1 received
  11. 1 conversation1 received
  12. 1 message1 sent
  13. 1 conversation1 sent
  14. 17 messages8 sent · 9 received
  15. 1 e-mail1 received
  16. 9 messages6 sent · 3 received
  17. 1 e-mail1 received
The first hours of the real October 2021 day as the agent sees it, from 03:47 to 08:38: each trace with its type and count, never its content, set against the day’s totals.

A fully local agent turns personal traces into a meaning graph whose truths only the owner can validate, with emotion measured on messages, voice and photos.

Key figures

defined dimensions, many unusual
929
not all computed yet
emotions in one cross-modal vocabulary
53
criterion checks passed, after fixes
73 → 100 %
same set; single run
personal sources linked, back to 1996
30

Abstract

Messages, photos, e-mails, music, voice: my digital traces have piled up for years. I wanted to see what can be learnt by crossing them at the scale of a whole person, emotions included, without sending anything to the cloud. The agent runs locally, measures the signals, then lifts them into a meaning graph whose every truth I validate. On my test set, its answers met every criterion after fixes.

Key notions

  • meaning graph
  • owner-validated truths
  • multimodal emotion measurement
  • unusual dimensions
  • fully local agent

Where it started

The problem was my own. My digital traces go back to 1996: WhatsApp messages since 2014, photos since 2001, e-mails, a Google activity history, music plays, voice notes, counted steps. Each application keeps its piece of my life and none of them talks to the others. I wanted to know what could be learnt by crossing all of it at the scale of one whole person: their relationships, the chapters of their life, and what their emotions leave behind in words, voice and images.

These data are the most sensitive thing I own. Handing them to a model in the cloud was out of the question, and so was letting a model decide for me what is true in my life. So I built an agent that runs entirely on my own computer, measures the signals, then submits to me what it thinks it understands. I use it every day.

What I built

flowchart LR
    PH["Photo"] --> PM["Light, colour<br/>and face signals"]
    VN["Voice note"] --> VL["Transcript and<br/>acoustic layers"]
    MS["Messages<br/>(pseudonymised)"] --> ML["Local model<br/>on a fixed emotion grid"]
    VL --> VF["Fusion<br/>text/voice mismatch flag"]
    PM --> OB[("Observatory")]
    VF --> OB
    ML --> OB
    OB --> AFF["Affective episodes"]
    ML --> THM["Themes"]
    AFF --> G["Meaning graph<br/>(all proposed)"]
    THM --> G
    G --> HV(("Owner<br/>validates"))

An observatory stores facts and signals; above it, a meaning graph stores what they mean: relations that can evolve, affective episodes (who felt what, when, how strongly, through which modality), themes, chapters of a life, and truths with the evidence that supports or contradicts them. Every node traces back to its source element.

Everything the system infers comes out as a proposal. The agent reaches the data only through a narrow interface whose tools propose and never decide, and a validation queue shows me each proposal with the conversation or recording it came from. My decision, to validate, reject or correct, is what turns it into a truth, and that decision always outranks any model.

Emotion is measured with one fixed vocabulary on messages, voice and photos, along dimensions that are often unusual. When the voice and the words disagree (an “I’m fine” said sadly), the agent keeps the disagreement as a signal in its own right. A photographed smile is never taken for a felt joy, nor a track’s mood for the listener’s.

Everything runs on local open models for text, voice and images. Sources are read as read-only snapshots, and third parties appear in them only under a pseudonym.

A day seen by the agent

The agent links 30 personal sources, the oldest going back to 1996: 258,000 WhatsApp messages since 2014, 143,709 photos since 2001, 40,468 e-mails, 113,566 Google activities and 124,909 music plays, among others. Any day can then be replayed hour by hour, person by person. Below, a real day from October 2021.

Hour-by-hour activity of one day, coloured by type (messages, e-mails, conversations, videos…), with a mark for the usual level at each hour
Hour by hour: each trace type is counted and compared with the usual level for that hour over the previous 90 days.
The start of the day’s timeline: times, trace types and counts, no content
The thread of the day, from 03:47: each trace in time order, with only its type and count, never its content.
The people of the day, with the number of exchanges for each; names blurred
With whom: messages, calls, photos and calendar of the day, by person. Names blurred.
The day’s mood as estimated by the model: none, anticipation, interest, joy, with 13 of 13 conversations analysed
Mood of the day, labelled as a model hypothesis: 13 of 13 conversations analysed; valence 0.2 against 0.5 usually.
The first ten source cards, each with its volume and period
Ten of the thirty sources, each with its volume, period and status in the knowledge base.

Sources: the owner’s own screens, 20 October 2021 and 13 October 2026 · interface in French · names and photos blurred

What the numbers say

To check the agent, I wrote a set of 16 questions, traps included, whose ground truth is computed by calling the tools directly. It checks tool choice, the correctness of the answers and their numerical fidelity: every number in an answer must appear in the tool outputs of the same turn. The score reached all 62 criteria after fixes to the tool descriptions, argument validation, the configuration and the rubric. I then introduced a reduced tool interface; on the same set, the score fell to 76 % and climbed back to 90 %.

Questions that cross several sources went from 73 % to 90 % of criteria. Deliberately unusual questions scored 89 % and exposed silent zeros, since fixed. On latency, one heavy aggregate query went from 172 s to 0.1 s (a single timing), and the tool descriptions were cut by more than half.

There are also 61 cross-exploration scenarios, written as templates resolved on the real data. The code that computes each one’s ground truth runs on all of them without leaking any content above the permitted sensitivity level.

What it is worth, and what is missing

The evaluation sets are small, and I wrote them myself. The same set served both to guide the fixes and to score them, the rubric itself changed, and every figure comes from a single run. These measures track fidelity and regressions; they say nothing about general capability. The agent has not yet been scored on the scenarios: only their ground-truth code has been run.

The emotion outputs are uncalibrated hypotheses. The vocabulary’s coordinates are starting values, personal calibration from validated examples is still to be done, and most of the models have only been tested on synthetic data.

No personal content leaves the machine; the only outbound call is an optional lookup of public music previews, by artist and title. Answers take a few tens of seconds.

Technical details

A sample of the less common dimensions in the catalogue († defined, not yet computed):

modalitydimensionwhat it captures
photocolour temperaturewarm vs cool balance of the image
photogolden hour / blue hour †sun position computed offline from date and place
voicelaughter, crying, sighssound events in the recording
voicetext/voice mismatchvoice and words carry clearly different feelings
relationreply-latency asymmetry †who waits longer for the other’s reply
periodmusical nostalgia †mean age of the tracks listened to

The same day, set in its context:

Steps against the usual level, the day before and after, and the same date in other years
Around the day: steps against the usual level, the previous and next days, and 20 October in other years.

All thirty sources, by volume (period start; data as of 13 October 2026):

sourcevolumesince
WhatsApp258,000 messages2014
Photos143,709 items2001
Google113,566 activities2006
Mail40,468 messages2002
Music30,351 tracks · 124,909 plays2009
Interactions (iPhone)19,0142026
iCloud Drive15,795 files (metadata only)2007
Safari14,613 pages2025
iMessage · SMS14,171 messages2020
Lightroom7,365 edited photos2024
Instagram6,794 messages2025
Voice5,551 recordings2020
Apple account export3,780 app installs2024
Calendar3,751 events1996
Phone2,814 calls2024
Contacts2,428 people2020
Health2,369 days measured2020
Netflix1,835 hours2017
Podcasts1,144 episodes2020
Fujifilm929 photos2024
Places865 places2001
Documents709 documents2020
reMarkable615 handwritten pages2022
Notes535 notes2011
Reminders518 reminders2016
DJI drones82 flights2021
Screen Time60 hours (accumulating)2026
Trips54 train and air journeys2023
Voice memos43 memos2020
Code24 projects · 522 commits2025

Stack

Python · SQLite / FTS5 · Ollama · llama.cpp · MLX · PyTorch · Hermes Agent · MCP · PWA

Topics

Licensed under CC BY 4.0

How to cite

Boris Dupoux. (2026). A Fully Local AI Agent with a Meaning Graph and Multimodal Emotion Measurement. borisdupoux.com. https://borisdupoux.com/research/local-ai-agent/

Related content

Back to Applied ResearchPreviousPollutant Detection by Drone (Day & Night)

Next project Points of Interest and Urban Flows in Fort-de-France from Open Data A reproducible, provenance-tracked spatial warehouse that reconstructs who is in Fort-de-France city centre, where and when, from open data over 2016–2026.

Menu

SearchFrançais

Email meLinkedInInstagram