Photo · Jakub Hałun · CC0

Nathan Lee Yang

Engineering products and systems that innovate, excite, and restore.

Currently at Columbia, MS BME.

Vision and the brain

Wearable interfaces

Agents and data

Lab and clinic

Also on the shelf

Prosthetic Vision

Phosphene vision simulator

Timeline
2025-26
Role
Team lead
Team
Three people, capstone
Award
CITRIS Tech for Social Good

The mission

Deciding what a retinal implant should show when every point of light has to count.

Retinal implants have very little bandwidth. A camera frame has to be reduced to a sparse pattern of phosphenes, the small spots of light a wearer sees. This workbench turns images and video into those percepts, so different ways of choosing what to keep can be compared on the same scene.

I led the three-person team that built it. We built seven encoders, compared them against a CNN baseline, and chose a mixture-of-experts design.

Results, in simulation

  • −41%total loss against a CNN baseline
  • −43%boundary loss
  • ~200active sites on a 60 × 60 grid
  • 10–30frames per second on a CPU

Loss figures are my evaluation on 960 held-out sequences, run with the repository's evaluation script.

Percept rendered by the simulator

Problem

A camera captures more than an implant can show.

With a fixed stimulation budget, giving a site to an object's texture can leave fewer sites for its outline or a nearby obstacle. The design choice is which visual information to keep for the task at hand.

Solution

A workbench that puts two encoders on the same scene.

Load an image or a clip, pick an encoder and a renderer, and the workbench shows the percept beside the maps that produced it. Two setups run side by side, so a change in the percept can be traced to the stage that caused it.

Retinal Prosthesis Workbench comparing a dots baseline with a Dynaphos cortical backend on a photo of a dog
Workbench, comparing two backends

How it works

Five stages from a camera frame to a percept.

  1. SeeDetection, segmentation, saliency, edges and optical flow mark objects, regions and motion.
  2. EncodeAn encoder turns those signals into a stimulation map.
  3. ConstrainThe map must fit a 60 × 60 grid with about 200 active sites.
  4. RenderA retinal or cortical renderer shows the percept those sites produce.
  5. TrainEncoder, simulator and decoder train together, end to end.
Encoders
Semantic, depth, saliency, edge, motion, CNN and mixture-of-experts
Renderers
Retinal and cortical, built on pulse2percept and Dynaphos
Built with
Python, PyTorch, OpenCV, YOLO, DeepLabV3, Streamlit
Encoder maps from the workbench: saliency masks, near-field depth, raw edges and motion edges
Encoder maps

Research

What published studies measured, and what that asks of this one.

ReferenceWhat the source establishesWhat it means for the project
Simple visual cuesIn a simulated-vision mobility experiment, depth cues supported better obstacle avoidance than edge information alone. About half of participants preferred a switchable mode.Compare against depth-only and edge-only modes on the same task.
Personalized encodingSighted participants preferred human-in-the-loop optimized stimuli over the naive and deep-encoder baselines tested.Record preference separately from response time and correct localization.
Clinical translationPRIMA investigators measured visual acuity in implant recipients. Their endpoint and hardware differ from my team's simulator.Keep simulation loss, simulated task performance and clinical benefit as three distinct claims.

What I learned

A 41% lower loss is one result. Whether a person can find the doorway is a different one.

The evaluation runs on 960 five-frame clips of two moving digits, and its objective combines reconstruction, edge, phosphene, flicker and sparsity penalties. Real video brings clutter and camera motion that moving digits do not have.

The lesson

Simulation loss, simulated task performance and clinical benefit are three separate claims.

What's next

Run the comparison on real scenes, then with people.

  1. Pair the models on identical clips.Repeat the comparison on the same saved scene bank and keep the outputs of both models.
  2. Test the task.Ask participants to locate a target in cluttered simulated scenes. Measure accuracy, latency, response time and failures by scene type.
  3. Freeze a benchmark.Publish the clips, simulator settings and electrode cap, so disagreements between methods can be reproduced.

Sources

  1. CITRIS (2026), Tech for Social Good funds 5 student projects
  2. Rasla and Beyeler (2022), depth cues and semantic edges
  3. Schoinas et al. (2025), human-in-the-loop optimization
  4. PRIMA investigators (2025), NEJM
  5. Evaluation script, eval_e2e.py
Case file: Retinal encoderThe meaning of a lower loss

Neural Organoids

Organoid analyzer

Drop a microscopy image in and get a segmentation, a developmental-stage call and suggested next experiments. Built in eight weeks with the researchers who use it, it streams 8 GB a day from the lab's image store through Kafka and FastAPI into Postgres.

  • Under 30 s per result
  • QC workload down 70%
  • 10+ researchers
Year
2025
Focus
Neural organoids
Role
Fullstack, UCSC Genomics Institute
Built with
Next.js, Firebase, Gemini Vision, R-CNN, Kafka, FastAPI, Postgres
Organoid Analyzer result screen with an early differentiation stage call, morphology notes and suggested next experiments
Stage call, photographed in the lab
Organoid Analyzer upload screen with a microscopy image and experiment metadata fields
Upload and experiment metadata
Proposed architecture for organoid imaging and assay data: one measurement traced from its plate well through the image plane and instance mask to a projected area, above a four-stage pipeline from registering inputs to review and publish
Proposed data architecture, drawn on a synthetic example
Case file: Organoid AnalyzerThe economics of a second review

Clinical Decision Support

OCT triage

Sorts retinal OCT scans so the urgent ones reach an ophthalmologist first. A quality gate screens each B-scan, a transfer-learned EfficientNet with test-time augmentation classifies it, and an editable fail-safe policy assigns the urgency. Every prediction and override is logged for audit.

  • Patient-level splits
  • Urgent-class recall first
  • Never auto-downgrades
Year
2026
Focus
Clinical decision support, ophthalmology
Built with
PyTorch, EfficientNet, Grad-CAM, FastAPI, Streamlit, Docker
Illustration of a retinal OCT B-scan with its layers, not patient data
Illustration of a B-scan, drawn in code. No patient data.

Research prototype for decision support. Not for patient care.

Case file: OCT TriageThe cost of an urgent flag

Smart Glasses In progress, pre-alpha

Peripheral

Timeline
2026, ongoing
Setting
Personal project
Role
Design and engineering
Team
1

The mission

Designing a visual assistant for smart glasses that stays out of the way until you ask.

I started Peripheral to work out what an assistant should show when the display is your whole field of view.

Most AR and visual-assistant demos label everything they can see. On glasses, that puts a constant layer of text between you and the world. I traced it to one default: the display is on until you turn it off.

I reversed that default, wrote it down as eight reveal rules, and built a camera app that follows them. Nothing appears until you press on an object, one label answers, and it leaves on its own. Recognition runs on the device, so no frame is uploaded.

Measured in headless Chromium, with no GPU

  • 0app pixels on screen at rest, besides one status dot
  • 60 fpsoverlay, independent of the detector
  • 4 Hzdetection, at about 230 ms a frame
  • 12.1 : 1label contrast over a white frame

These are a floor from software rendering on a cloud machine. Real phones are not measured yet.

Over the shoulder of a person wearing display glasses in a café. One translucent label floats above the mug in their hand, and nothing else is drawn over the room
The idea on glasses: nothing in view until you ask, then one label.

Problem

A label on everything is a wall between you and the room.

A phone screen is something you choose to look at. Glasses sit in front of everything you look at, so each extra label costs attention you did not offer. The design question became what the assistant is allowed to show, and when it has to stop.

Solution

It shows nothing until you ask, then one label on the object you meant.

Assist flow, on glasses
A café table with a dark mug and a notebook. Nothing is drawn over the view
At restNothing is drawn over the room.
The same table. One translucent label reading Mug sits above the mug, joined to it by a thin line
After you askOne label, joined to the object by a line. It leaves on its own.

Reveal rules

Eight rules decide what may appear. These six do most of the work.

  • Looking never reveals anything.Only a press or a tap does.
  • At most three labels and one open card.Extra matches get an outline only.
  • A label never covers another object.With no room, it sits outside on a leader line.
  • Everything expires.Tap elsewhere, swipe down, or wait 8 seconds.
  • Low confidence reads “Possibly”.Never a bare claim.
  • People are never labelled.Nor matched, sent or dimmed.

Two ways to ask

Point at one thing, or name a short list.

Glance

Press and hold an object. One label appears beside it and follows it as it moves. There is never more than one.

Focus

Type or say a list such as bottle, cup, keys. Everything else dims, matches get an outline, and up to three get a label.

How it works

Perception, policy and drawing stay separate, so the overlay can move to glasses later.

  1. CameraPhone or laptop, frames stay local
  2. DetectorYOLO26n in a Web Worker, 80 classes
  3. TrackerStable ids, so a label stays on its object
  4. Reveal policyA state machine applies the rules
  5. OverlayLabel, leader line, outline, dim

A lint rule keeps the overlay code from importing anything in perception.

Hardware constraints

A glasses display is small, can only add light, and is always a little late.

Before the camera app I built a display bench in the browser to feel those three limits. It models a see-through display for one eye: set the panel and the lens, the brightness and the delay, then move your head and watch what happens to the picture.

A board titled AR HUD prototype explorations, in four groups: display optics, layout modes, sensing and tracking, and environment testing. It lists field of view, focal length, information density, brightness, motion-to-photon latency, and head-locked against world-locked. The lower middle tile is a screenshot of my earlier prototype, headed Your world, in view
What the bench explores. The product pictures are generated concept images. The screen in the lower middle is my earlier prototype.
SmallField of view is fixed by the panel and the lens. A 0.2 inch panel behind a 15 mm lens gives about 17° by 9.5°.

That is why Glance shows one label and Focus stops at three.

Light onlySee-through optics add light to the scene. Black is transparent, and a bright day washes the picture out.

The dark label in the phone app will not survive on glasses. Its 12.1 : 1 contrast is a phone-screen number, and the glasses version needs light text with an outline.

LateAt a head turn of 100° a second, 24 ms of delay puts a label 2.4° off its object. One detector frame, 230 ms, puts it 23° off, wider than the display.

So the tracker and a 60 fps overlay carry the label between detections. On glasses, the head's motion sensors would have to do the same.

Moments Draft build

A tap saves what you are looking at, and the display can answer on the spot.

A Moment is one small record of a thing you chose to remember: what it is, where you were and when. You type the place name yourself, and the app never reads your location.

Saving one record in place of footage is the idea behind Tomo, a concept pendant by Rachel Chen, Emmi Wu and Christina Raganit. A pendant has to answer later, in a chat app. Peripheral has a display, so it can answer where you are standing and mark the thing when it comes back into view.

  1. TapOn the thing you are looking at
  2. CaptureOne record, kept on the phone
  3. RespondOne line on the display
  4. Saved as a MomentWhat, where, when
  5. Findable laterAsk, and it gets the box
Moments, draft build
The camera view with a dark label reading Cat beside a cat, and a confirmation at the bottom reading Saved, Kitchen
One tap saves a MomentThe display confirms with one line.
The same view in HUD mode: a dashed square marks the display area, with back, up, Tap and down buttons below it
HUD modeA dashed square the size of a right-eye display, and buttons that stand in for a wristband.
A card over the cat reading Cat, Saved Kitchen, just now, with Remember this highlighted above Find something
The card after a tapTwo actions: remember this, or find something.
The same card with Find something highlighted
Moving between actionsUp and down step through the card. Tap chooses.
A card reading Cat, Kitchen, just now, In view now, with a blue box around the cat
RecallAsk for something and its last Moment comes back. If it is in view, it gets the box.
The Moments page on the phone: a search field reading where is my cat, a place field reading Kitchen, a list of saved Moments and a Delete all Moments button
The log on the phoneSearch, grouped by place, each Moment deletable. Stored on the device only.
In the draft
HUD mode, tap to save, recall with the box, and the log on the phone. All of it runs on the device, with no server and no sign-in
Not public yet
The draft runs on my machine. The live app does not have it
Next
Two or three fitting actions after a tap, such as add to a list or remind me here, and an optional end-of-day recap that lives in the log and never on the display
Needs a server
Asking what something is, and the recap, both use Claude

Where it stands

Working in a desktop browser. Not yet proven on a phone.

Working
Glance, Focus, Pause and Diagnostics, in desktop Chromium
Tested
Automated browser tests on a fake camera, with accessibility checks on each route
Draft
Moments: tap to save, recall and the log, on my machine
Not measured
Real phones: behaviour and speed are unknown
Not built
Asking a question about one object, open-vocabulary matching, the glasses preview
Limits
80 fixed classes. No text reading, no object state, no metric depth

Before this version

A single-file research prototype came first.

It covered display geometry in degrees, gaze and dwell selection, and a glasses preview. Its detector found the expected class in 28 of 30 licensed test photos, with 25 of 30 boxes at IoU 0.5 or better.

What's next

Measure it on real phones, put Moments in the live app, then let it answer a question about one object.

Concept for Meta Ray-Ban Display

Crosstalk

Timeline
December 2026
Scope
Feature research, feature development, product design, product engineering
Team
1
Status
Prototype scripted, direction finding simulated

The brief

How might captions keep a deaf or hard of hearing wearer in a group conversation?

Meta's display glasses already caption a conversation. Meta says the microphones focus on the person you are looking at and ignore other nearby voices,1 and the words appear on a small display in the right lens.6

That works across a table for two. At a table for four, the next person to speak is usually someone you are not facing. A hearing person turns because they hear the voice. A wearer who depends on the captions sees the text stop and has to search faces for whoever is talking.

Crosstalk is my concept for that moment: an arrow on the lens that shows which way to turn, and a catch-up that gives back the words spoken while you were turning. I researched the gap, designed the flows, built a prototype you can play below, and simulated whether five microphones on a frame can tell where a voice is.

From published research

  • 15 of 15deaf and hard of hearing participants wanted group captions to say who is speaking8
  • 8 of 8captioning users called a direction cue valuable in Google's phone study11
  • 0.2 sthe usual gap between one speaker and the next4
  • 430 Mpeople need rehabilitation for disabling hearing loss, by the WHO's estimate16
A dark field with a dashed square marking the display. Inside it, two caption lines read Noon works and Who is driving, with a yellow arrow pointing right
The whole interface: captions for the person you face, and one arrow for a voice you are not facing.

Problem

The captions only know about the person you are facing.

Meta describes live captions as text for speech directed at you,3 and its help page says to face the person who is talking.2 In one hands-on, the captions switched when the reviewer looked at someone else and ignored a conversation behind them.1 In a noisy room, that filtering is the feature.

In a group it hides the next speaker. Speakers swap after a gap of about a fifth of a second,4 so there is no pause to notice. There is a name for where that leaves a deaf person at a family meal: dinner table syndrome, sitting with people who love you and missing what they say.5

Captions today

So are we hiking on Saturday or Sunday?

TodayThe person on your left is talking. The captions have stopped, and nothing on the display says where to look.

Opportunity

The frame can already hear which side a voice is on.

The glasses carry five microphones: two in each arm and one by the nose pad.6 The same array that picks out the voice in front can place a second voice to the left, to the right or behind. Today that never reaches the display.

Solution

Crosstalk shows where the next voice is, then gives back the words you missed while turning.

Side cue

When someone outside your view starts talking, an arrow appears on that side of the captions. One arrow means turn. Two mean the voice is behind you.

Catch-up

Face them, and the last few seconds of their speech arrive as text first. Then the captions carry on live.

Quiet rules

No names, no faces, no speaker numbers. Nobody's words appear until you turn to them, and nothing is kept afterwards.

It is an addition to Live captions, switched on from the same place. Captions for one person across a table do not change.

Core flows

Four moments at a table for four.

Core flows

So are we hiking on Saturday or Sunday?

A voice starts on your leftHalf a second in, the arrow appears on that side. The captions you were reading stay where they were.

So are we hiking on Saturday or Sunday?

Saturday. It rains on Sunday.

You turn, and the words catch upWhat they said while you were turning arrives first, faster than speech. Then the captions carry on live.

Noon works. Who is driving?

Two people talk at onceThe person you face keeps their captions. The arrow shows the second voice, and you decide whether to turn.

Noon works. Who is driving?

A voice behind youTwo arrows mean keep turning. The arrow moves inward as your head comes round and leaves once you face the speaker.

Each frame is the wearer's view. The dashed square is the display, and the small diagram shows the table from above: you at the bottom, the yellow cone where your captions listen, and a filled seat for whoever is talking.

Research

I read what Meta ships, what wearers ask for and what others have built.

What ships
Live captions on the display glasses work in English and start by voice, from the launcher or from the phone. Meta's help page says to face the person talking, and as of December 2026 it describes no speaker labels and no direction.2 Captions also cover phone, WhatsApp, Instagram and Messenger calls.7
What wearers ask for
In a study of small-group captioning, all 15 deaf and hard of hearing participants wanted to know who was speaking, and 14 wanted a warning when people talk over each other.8 In an earlier study with a head-mounted display, five of ten participants asked for the speaker's name or location, and six valued captions that could catch someone out of sight.9 A third study listed speech from outside the field of view as one of four design challenges.17
What exists
AirCaps numbers its speakers, and XRAI sells speaker identification as a paid tier.10 Google's SpeechCompass added arrows and colour to a phone transcript using a four-microphone case, and measured 11° to 22° of error at conversation volume.11
What that leaves
Those tools caption everyone and mark who is who. Meta's captions follow your head, so the missing piece on these glasses is narrower: which way to turn.

Exploring directions

I sketched four ways to show where a voice is and kept the smallest.

Directions explored
  • A. Speaker numbersSays who and never where. The device has to keep telling voices apart for the whole meal.
  • B. RadarPrecise, and a second thing to read on a display 20° wide.
  • C. Captions that moveThe table spans 180° and the display 20°. Text that jumps sideways is harder to read.
  • D. Edge arrowKeptOne mark beside the captions. It asks for no more precision than the microphones can give.

Prototype and testing

You cannot hear this table. Turn to whoever is speaking.

The conversation is scripted and silent. Captions pick up only the person you face. Play it once the way captions work today, then again with Crosstalk, and compare how many words reached you.

Prototype, scripted

The person you face is quiet.

Tap a seat, or use the left and right arrow keys, to turn your head.

Captions today
not played
With Crosstalk
not played

Speakers swap after 0.2 s,4 captions trail speech by one second (one reviewer saw them a second or two after the words),12 and the arrow waits half a second, which is what the simulation below supports. The catch-up assumes the recognizer can work through four seconds of stored sound faster than speech.

Engineering check

Simulated, the arrow is right 96% of the time, half a second into a voice as loud as the room.

Before designing around the arrow, I checked whether the frame's microphones can tell left from right from behind, quickly, in a loud room. Meta's developer documentation covers drawing on the display and reading the wristband, and says nothing about the separate microphone channels a direction estimate needs.14 So I simulated it: a room with echo, a seated wearer, a new talker about a metre away, and eight other people talking in the background.

Simulation
ahead: captions left right behind head, not in the model 14 cm
Five microphones where I assumed them, seen from above, and the three places the arrow can point.
Listening time0.25 s0.5 s1 s
One new voice, nobody else at the table talking
Louder than the room, +5 dB93%98%98%
As loud as the room, 0 dB83%96%96%
Quieter than the room, −5 dB72%82%81%
A new voice while the person you face keeps talking
Louder than the room, +5 dB88%97%97%
As loud as the room, 0 dB81%93%93%
Quieter than the room, −5 dB71%81%78%

Share of arrows that land in the talker's true sector: left, right or behind. Each row is 600 simulated conversations. The first group counts the 491 where the talker was outside the caption cone.

  • Half a second is the right wait.On a quarter second the arrow is wrong about one time in six at 0 dB. A full second adds nothing.
  • It holds while someone else is talking.93% at 0 dB with the person you face still mid-sentence.
  • Below 0 dB it stops being usable.About one arrow in five is wrong, so the cue should stay hidden when the estimate is weak.
  • These are upper bounds.No head is in the model and the microphone positions are my assumption. Google's measured error on real hardware was 11° to 22°.11

Method: pyroomacoustics, image-source model of an 8 × 6 × 3 m room with a 0.6 s reverberation time. New talker at 1.0 to 1.4 m, anywhere around the head. Noise is eight talkers at least 2.5 m away. Direction by SRP-PHAT over 300 to 4,000 Hz. Speech is seven CMU ARCTIC recordings.

Design decisions

Each decision answers something the research or the simulation showed.

Wearers ask who is speaking. Captions that follow your head already answer that once you face the person.
Show direction only. No names, numbers or colours for people.
The simulated arrow is right 83% of the time on a quarter second of speech and 96% on half a second.
The arrow waits half a second.
Google measured 11° to 22° of error on real hardware. My simulation has no head in it and does better, so I designed for the measurement.
Three positions: left, right and behind. Each covers at least 90°.
When the talker is quieter than the room, about one simulated arrow in five points the wrong way.
No arrow when the estimate is weak. A wrong arrow turns you away from the speaker.
Showing a side voice's words before you turn would caption people who are not talking to you, including the next table.
Words appear only for the person you face. The catch-up covers what they said while you turned.

Hardware constraints

The display, the microphones, the battery and the developer tools each set a limit.

Display600 × 600 pixels across 20°, in the right eye only.6 A see-through display can add light and cannot draw black.

Captions get a few short lines. The cue is one glyph, drawn in light, beside them.

MicrophonesFive in the frame, plus a contact microphone on the nose bridge.6 Their exact positions are not published.

In simulation that layout separates left, right and behind. The cue stays horizontal and never claims up or down.

Battery and computeUp to six hours on a charge, and less under heavy use such as live translation.6, 13

Direction finding runs only while captions are on. The catch-up holds a few seconds of sound in memory and transcribes it only if you turn.

Developer accessSince May 2026 a web app can draw on the display and read the wristband and the motion sensors. The documentation does not list the microphones.14

The prototype above is a web page, the form a display app takes. The direction estimate needs each microphone separately, so I simulated it.

The trade

Trading reach for privacy.

Captioning every voice in earshot would give the wearer the most. I chose words only from the person you face, and direction for everyone else. The wearer gives up reading a side remark without turning. The people around them are not transcribed unless someone turns to listen, which is how Meta's captions already behave.

Where it stands

A researched concept, a scripted prototype and a simulation.

Done
Desk research with sources, four flows, the scripted prototype
Simulated
Direction finding on a five-microphone frame, 600 trials per condition

What I would test first

  1. Does the arrow get you to the speaker sooner?The same scripted table with the cue on and off, with deaf and hard of hearing participants. Measure the time to face a new speaker and the share of words read.
  2. Is direction enough without identity?The arrow against speaker numbers, on the same script.
  3. Does the estimate hold on a head?Rerun it on EasyCom, a public set of noisy conversations recorded through the microphones of AR glasses.15
  4. How long can a catch-up run before it gets in the way?Two, four and six seconds of replay.

Where this came from

An earlier prototype of mine turned glasses video into sound.

In June 2026 I built a prototype that took first-person video from Meta smart glasses, detected obstacles and played them back as sounds placed in space. I profiled the delay from camera to sound and kept an audit trail from each detection to the sound a person would hear.

It left me with one question: when has a sound earned a person's attention? Crosstalk asks that about a voice.

Sources

  1. Hands-on reports of live captions: Road to VR and Android Central, 2025
  2. Meta, How to use live captions on Meta Ray-Ban Display, read 4 December 2026
  3. UploadVR, launch coverage with Meta's description of captions, 2025
  4. Levinson and Torreira, Timing in turn-taking, Frontiers in Psychology, 2015
  5. Meek, Dinner Table Syndrome, The Qualitative Report, 2020
  6. Ray-Ban, Meta Ray-Ban Display tech specs
  7. Meta, How to use live captions for calls on Meta Ray-Ban Display
  8. McDonnell et al., Factors at play in small-group captioning, CSCW 2021
  9. Jain et al., Towards accessible conversations in a mobile context, ASSETS 2018
  10. HearingTracker, A review of live captioning glasses
  11. Dementyev et al., SpeechCompass, CHI 2025
  12. Tom's Guide, Meta Ray-Ban Display review
  13. Engadget, Meta Ray-Ban Display review
  14. Meta for Developers, Build for display glasses, May 2026, and the web apps documentation
  15. Donley et al., EasyCom, 2021
  16. World Health Organization, Deafness and hearing loss, 2026
  17. Peng et al., SpeechBubbles, CHI 2018
Case file: CrosstalkThe cost of a missed turn

Generative Agents

Hearthside

Timeline
2026
Setting
Personal project
Role
Builder
Runs on
Local models through Ollama

The mission

A town of AI residents where any decision can be opened to the memories behind it.

Hearthside is a small town whose residents remember conversations, plan their days and react to the people around them. It reproduces the memory, reflection and planning loop from the Generative Agents paper and runs on local models.

I built it around two questions: how past experiences shape an agent's next action, and how to make that process visible enough to study.

One run with 35 residents

  • 4,537model calls, in 11.2 hours of model time
  • 97.1%of first attempts were valid
  • 55.9%of hour plans added up
  • 4.7 smedian time per call

Llama 3.2 3B through Ollama on four CPU cores. 4,292 of 4,419 first attempts were valid, and 66 of 118 plan breakdowns added up.

Hearthside town view with residents, a daily clock and building controls
The town, in its offline demo

Problem

Replaying a scene shows what happened. It does not show why.

A resident acts on an old conversation. The action makes sense only through the memories retrieved at that moment, the plan in force and the prompt that was sent. Explaining the decision takes the evidence that came before it.

Solution

An inspector under the town.

Every decision is recorded with its memories, retrieval scores, plan and model call. Open a resident and follow one decision back to what caused it, change a memory or planning setting, and compare the behavior that results. The paper's authors already shipped saved replay. Tracing a single decision is the part I added.

Hearthside research inspector listing a resident's recorded memories
Memory inspector

Flow

One invitation, followed to a changed plan.

  1. A conversation.Isabella invites Klaus to her Valentine's Day party. Each line is a separate model call, made as the speaker.
  2. Memories.Klaus stores each line with its time, its speaker and an importance from 1 to 10. The invitation scores 7.
  3. Retrieval.At midnight he plans Tuesday. Memories are ranked by recency, importance and relevance. The invitation comes fourth, because two routine notes about his paper outrank it on recency.
  4. Reflection.An insight forms: Klaus intends to go to the party. It cites the two memories behind it. A citation he was never shown would be rejected.
  5. A new plan.Tuesday now holds 17:00 to 19:00 at Hobbs Cafe. Whether he arrives is a separate question, so the evaluation counts physical presence.

From the repository's walkthrough. The dialogue is scripted so the output is the same on every machine. Storage, scoring and validation are the real code.

How I built it

Every model answer is checked, repaired once and recorded.

The engine advances in shared snapshots, so every resident decides against the same state of the town. Each model response passes schema validation and one repair attempt, then lands in a request ledger. Checkpoints and recorded responses let a run resume or replay with no new model calls, and failed calls stay visible.

Engine
Python, SQLite, FastAPI
Interface
React, TypeScript, Three.js, Tailwind CSS
Models
Llama 3.2 3B and nomic-embed-text through Ollama, with adapters for an OpenAI-compatible local server, Anthropic and OpenAI
Tests
269 Python tests and 43 front-end tests

What the runs showed

Three runs on a small local model, and what each one changed.

Before the decoding schema, the model's importance ratings were valid in 1 of 12 tries.
Send a tighter schema that restates each call's own rules. Ratings were valid in 12 of 12.
With three residents, they saw each other 26 times and never spoke. Talking was one option inside a larger decision, and the model never chose it.
Ask about talking as its own question. In the next run the model said yes to all 28 chances, and 14 conversations happened.
Only 3 of 33 hours broke down into tasks whose minutes added up.
Count down the minutes left in the prompt. 41 of 74 added up with 25 residents, and 66 of 118 with 35.
19 of 22 wishes repeated an example from my own prompt, “a quiet corner to read”.
Remove the example. On the same 22 recorded prompts the phrase appears in none.

Cost grew faster than the town. The 08:00 hour took 2,005 calls with 35 residents against 732 with 25, because more residents see each other more often.

Research

Tracing tools exist. Linking an action to its cause is the open part.

ReferenceWhat the source establishesWhat it means for the project
Original town simulatorSaved replay and a compressed demonstration already exist.Benchmark the ability to connect an action to the retrieval or plan beneath it.
Langfuse and LangSmithFree self-hosted tracing exists. LangSmith lists a free developer seat and a $39 a month Plus seat with usage terms.A tracing market exists. Trace viewing alone is a weak reason to switch.
Failure-attribution benchmarkOn Who&When, the best automated approach tested named the responsible agent 53.5% of the time and the exact step 14.2%, across 127 systems.Score exact-step explanations. Those published rates are for automated methods on other tasks.

What I learned

A 97% pass rate hid the plans that failed.

Almost every model answer passed validation, and almost half of the hour plans still did not add up. The total told me the system worked. The breakdown told me which failure to look at first.

The lesson

Break a pass rate down by task before trusting it.

What's next

Find out whether it shortens a diagnosis.

  1. Time a diagnosis.Give developers the same incidents in raw logs, in their current tracing tool and in Hearthside. Score the time to a correct, source-backed diagnosis.
  2. Follow the invalid answers.Of the 127 invalid first attempts, find which needed a repair or a fallback, and whether that changed the plan a user saw.
  3. Run the living town on a real model.The always-on town and the version that runs in a browser tab are tested against a stand-in model so far.

Sources

  1. Park et al. (2023), Generative Agents
  2. LangChain, LangSmith pricing
  3. Langfuse, self-hosted pricing
  4. Zhang et al. (2025), Which Agent Causes Task Failures and When?
  5. Hearthside town guide, measured runs
Case file: HearthsideThe value of an inspectable decision

Self-Tracking

LogDataTrack

Timeline
2026
Setting
Personal project
Focus
Self-tracking, generative art
Runs on
Node.js and PostgreSQL, self-hosted

The mission

A log you can add to from anywhere, drawn as a waveform that moves with your day.

Log an activity from the browser, the terminal, a phone shortcut or a git hook. Postgres stores each entry, server-sent events update every open tab at once, and each category becomes a ribbon shaped by your own data.

Any frame can be saved with its seed and its data, then reopened and animated again.

LogDataTrack artwork of layered waveform ribbons generated from logged activity
Living waveform

Flow

One line logs an entry, from anywhere that can send it.

45m deep work on the renderer @work #focus !4 ~5
45m
duration
@work
category
#focus
tag
!4
intensity, 1 to 5
~5
mood, 1 to 5
  1. LogThe browser drawer, a timer, the logtrack command, a curl request, a git hook or a phone shortcut.
  2. StorePostgres keeps each entry with its category, duration, intensity, mood and tags.
  3. PushThe server sends an event to every open tab, so a log from the terminal shows up in the browser at once.
  4. DrawThe metrics and the waveform update from the new data.
LogDataTrack quick-log drawer beside the waveform
Quick log

The art

Every part of the picture is a number from the log.

DataWhat it draws
CategoryOne ribbon per category, in its colour, mirrored around the axis
Minutes per time sliceRibbon height along the timeline
IntensityAmplitude of the fast ripple on that part of the ribbon
Energy over the last three hoursHow many particles appear, and how fast
Entries in the last 24 hoursTempo of the animation
Average moodBackground warmth, from cool blue-grey to warm brown
SeedThe noise field, so the same data draws the same piece

Metrics

Seven readings, each with a stated formula.

Signal
The live mean amplitude of the artwork, sampled 8 times a second
Focus
Intensity weighted by duration, from 0 to 100
Balance
How evenly time is spread across categories, as the normalised Shannon entropy of minutes per category
Streak
Consecutive days with at least one entry
Also
Logged time, average mood and peak hour
LogDataTrack with live metrics above the waveform
Live metrics

How I built it

One SQL query builds the shapes behind the art.

A series of time buckets is joined against activities on interval overlap, and the overlapping minutes are summed per bucket and category. The front end smooths those envelopes and draws them with Canvas 2D at the device's pixel ratio. The server is a single Node process: an Express API, a server-sent events hub and migrations that run on boot.

Stack
Node.js, Express, PostgreSQL, server-sent events, Canvas 2D, Docker
Data
Four tables: categories, activities, timers and artworks
Ways in
Browser, the logtrack command, an HTTP API, a git hook and phone shortcuts
Ways out
CSV and JSON export, and any piece as a 1920 × 1200 PNG

Planetary Data

Gaia

Timeline
2026
Setting
Personal project
Focus
Planetary data
Data from
Seven public providers

The mission

One globe for real planetary activity, where every number says what kind of number it is.

Gaia is an interactive 3D Earth: USGS earthquakes, satellites propagated from CelesTrak orbital elements, OpenSky aircraft, weather from Open-Meteo, NASA and NOAA, and NASA EONET natural events.

Every dataset says where it came from, when it was fetched, and whether it is live, forecast, historical or derived.

In numbers

  • 7layers on one timeline
  • 7public data sources
  • 10,538aircraft in one live snapshot
  • 82automated tests
Gaia globe over the North Pacific with earthquake and satellite layers on, and the ISS selected with its orbit track and orbital elements
ISS track with live layers on

Problem

Seven sources arrive on seven different clocks.

An earthquake is an observation. A satellite position is a calculation from orbital elements of a certain age. Weather is a forecast, and population is a 2019 estimate. Drawn on one globe, they all look like the same kind of fact.

How it works

Every value on the globe says what kind of number it is.

Each data source returns its values with the provider's name, the time they were fetched and a kind: live, observed, forecast, historical, derived or demo. The interface shows that kind beside the value. Satellite positions are labelled as calculated from orbital elements, with the age of those elements. When a live request fails, the layer says so, and demo data is never put in its place.

Layers

Seven layers, each with its source and its kind.

LayerSourceKind
EarthquakesUSGS event catalogObserved
SatellitesCelesTrak orbital elementsCalculated with SGP4, with the age of the elements shown
FlightsOpenSky NetworkLive
WeatherOpen-Meteo, NASA GIBS imagery and NOAA alertsForecast, with observed imagery and live alerts
Natural eventsNASA EONETObserved, with the timeline choosing the position in effect
CountriesNatural Earth and bundled country dataStatic profiles
PopulationNatural Earth2019 estimates

How I built it

The orbit maths runs off the main thread, and the tests never call a live provider.

Satellite positions are propagated with SGP4 in a Web Worker, with a fallback on the main thread. Each provider's response is checked against a Zod schema, and a payload that fails becomes a stated error on that layer. The end-to-end tests replace every provider with recorded fixtures.

Stack
Next.js, React Three Fiber, three.js, satellite.js, TanStack Query, Zod

Where it stands

Working on live data, with its limits stated.

Working
Seven layers on one timeline: countries, earthquakes, satellites, flights, weather, population and natural events, in live, historical and playback modes
Verified
Against the live providers, including one snapshot of 10,538 aircraft
Tested
69 unit and integration tests, and 13 end-to-end tests on desktop and mobile
Limits
No flight history or routes. Weather fields are interpolated from 162 model points. Population figures are 2019 estimates

Portfolio Research

Ledger

Timeline
2026
Setting
Personal project
Focus
Portfolio research, local-first
Data
Demo dataset, or SEC EDGAR when connected

The mission

Stock research where every figure can show its own working.

Ledger is stock research for one investor on one machine. It answers six questions, from what drove returns to whether new evidence supports a thesis.

Every figure shows its own calculation, with a link to the position, filing or assumption behind it.

In numbers

  • 6questions it answers
  • 68unit tests on the calculation engine
  • 22 of 22end-to-end flows passing, on desktop and phone
  • 13,000+facts in the demo dataset
Ledger valuation page with an editable discounted cash flow model for a fictional company
Valuation, on demo data

The questions

Six questions, and a place that answers each.

  1. What do I own, and what drove my returns?A transaction ledger, holdings, and time-weighted and money-weighted returns with exact attribution per position.
  2. How concentrated am I?Position and sector weights, correlation, and a stress test with stated assumptions.
  3. Are the companies I follow improving?Annual and quarterly statements, growth, margins and free cash flow, each marked reported or calculated.
  4. What assumptions are embedded in a valuation?A discounted cash flow with editable inputs, three scenarios, a sensitivity grid and a reverse DCF.
  5. What changed since I last looked?An overview of moves, new filings, upcoming earnings and alerts.
  6. Does new evidence support or weaken my thesis?A thesis journal with drivers, risks, invalidation evidence and review rules.
Ledger thesis journal tracking revisions and review triggers
Thesis journal, on demo data
Ledger portfolio overview with holdings and returns
Portfolio, on demo data

How it works

Every figure opens its own explanation.

Selecting a figure opens a drawer with its definition, period, units, source, derivation and limitations. Every value that comes from outside keeps its provider, reporting period, units and retrieval time, and is marked as reported or calculated.

How I built it

Money is exact decimals, and the ledger is the source of truth.

The calculation engine is plain TypeScript on decimal.js: ledger replay, FIFO lots, returns, attribution, a discounted cash flow and risk. Pages render on the server from SQLite. The app works with no keys and no network on a fictional dataset of 12 companies and 3 funds, and reads SEC EDGAR filings when connected. A failed request leaves the stored data in place and reports the failure.

Stack
Next.js, TypeScript, SQLite, Drizzle, decimal.js, Playwright
Verified
The SEC EDGAR adapter, run live against Apple's company facts in October 2026
Tested
68 unit tests and 22 end-to-end flows
Limits
US-listed stocks and ETFs in US dollars. FIFO cost basis only. Research estimates, not tax reporting or investment advice

Data Platform, Research

Experiment data pipeline

The cost of reconstructing an experiment

Setting
UC Santa Cruz Genomics Institute
Role
Data Engineer / Research Associate
Focus
Cross-modal data integration
Years
2024–2026

Project description

Speed was the visible win. The harder requirement is that every recording meets the right image.

An electrical recording can show when a neural network changed. Interpreting the change means knowing which sample produced it, what the culture looked like, and when the image was taken. The product problem sat in the gap between collecting those observations and reviewing them together.

I knew that gap first as a user. Before I built this pipeline I was one of the researchers opening files one at a time.

Solution

In the Teodorescu Lab I built a Python data pipeline that pulls electrophysiology files from S3 and joins them to hourly images and culture metadata, and a shared web dashboard on top of it.

It sits on data services I did not build. The Braingeneers group publishes its own S3-based electrophysiology pipeline, and that is the group's work. My part is the integration layer: one verified chain from a recording to its image and culture record, and the view a biologist could decide from.

How it works

An ETL pipeline for multimodal experiment data: it extracts recordings from object storage, joins three data sources per experiment, and serves the result to a shared dashboard.

  1. ExtractThe pipeline pulls raw HD-MEA electrophysiology files from S3 object storage.
  2. JoinIt joins each recording to its hourly imaging and culture metadata, across 160 recordings per seven-day experiment.
  3. ServeA shared web dashboard links neural activity to developmental stage and culture conditions, so biologists and engineers decide from one view.
Stack
Python, AWS S3, HD-MEA electrophysiology, hourly imaging, web dashboard
Key terms
ETL pipeline, Multimodal data integration, HD-MEA electrophysiology, Object storage (S3), Cross-modal join, Experiment-level dashboard

Results

  • 160recordings per seven-day experiment
  • 20h → 3hprocessing per runReported by me. Measures time per run
  • 4×experiment-level throughputNeeds a defined observation period and count of completed experiments to verify

An incorrect join costs more than a slow one, because it can attach a convincing image to the wrong electrical event. A dashboard people trust also has to show the records for which no reliable match exists. That behavior can be measured with an analyst who did not build the integration.

Market

AlternativeWhat the source establishesWhat it means for the product
MaxLab LiveThe vendor provides per-well annotations, grouped analysis, plots and export. Its documentation illustrates a longitudinal study with nearly 600 well recordings.Ask which review question still requires leaving the instrument software.
DataJoint and NWBDataJoint models array electrophysiology workflows. Neurodata Without Borders supplies interoperable data conventions.Keep compatible identifiers and existing exports. Compare with the lab's working notebook.
Manual reconstructionA spreadsheet and source files may be enough for a low-volume, stable experiment.It is worth replacing only where staff effort recurs, links go missing and a wrong match is costly.

Who it is for

I built it for the biologists and engineers in my own lab, and I was one of them. The user is whoever has to connect an electrical recording to the right image and culture record before deciding anything.

It ran inside one lab, on that lab's data. A second group could not simply install it. Its own sample, image and recording identifiers would have to be mapped first, and that mapping is the real cost of reusing the work.

Why turnaround and hands-on time are different savings: at four runs a month, my reported reduction implies more than 68 hours a month of earlier completion. If the analyst saves only 15 active minutes per run, one hour a month of staff labor is released. The two have to be counted separately.

The test I would run

Ask an outside analyst to match three recordings to adjudicated image and sample records. Plant a duplicate identifier, a missing image and a clock offset in the evaluation copy. Record wrong matches, unresolved records, setup time and time to answer.

Decision rule

Require correct reconstruction of all three test records, zero silent wrong joins, and an unaided rerun. Take on further integration only after estimating monthly support.

Sources

  1. Braingeneers, SpikeCanvas-EphysPipeline
  2. MaxWell Biosystems (2026), MaxLab Live 26.1
  3. DataJoint, Element Array Electrophysiology
  4. Neurodata Without Borders, About NWB