← All projects
NeuroscienceBuilt2026

FlyBench

My biology data-annotation tools, in one place

FlyBench brings together the biology data-annotation tools I've built, starting with LarvaTrack. Upload videos, photos or monitor files and get the numbers, graphs and statistics for six classic fruit-fly behavior assays. Every tool runs in the browser, so lab data never leaves the computer, and every automatic count can be corrected by hand.

6assays: foraging, sleep, feeding, climbing, flight, cold shock
In-browserdata never leaves your computer
−0.6%larva path error against a known path

Six assays, one place

Fly labs run the same handful of behavior assays over and over, and most of the counting is done by hand from videos and photos. FlyBench turns each one into a tool: load the file, mark what matters, and get a CSV, a graph and the statistics. Automatic larva tracking and fly detection need real computing, so those run by request rather than on the public site.

AssayInputOutput
Larval foragingVideo of a petri dishPath length per larva (mm)
Sleep & activityDrosophila Activity Monitor filesSleep per day, bouts, day vs night; Welch t-test
Feeding (CAFE)Photo of capillaries beside a rulerµL drunk per tube and per fly
ClimbingVideo of vials after a tapFlies per quadrant each second, climbing score
FlightPhoto of a fly-paper sheetFlies per interval; chi-square by genotype
Cold shockVideo of tubes on and off iceTime to 50% and 100% paralysis and recovery
Sleep: minutes per hour by group, caffeine against control. Grey is lights off.
Sleep: minutes per hour by group, caffeine against control. Grey is lights off.
Feeding: each capillary's start mark and its food level after 24 hours.
Feeding: each capillary's start mark and its food level after 24 hours.
Flight: every real fly circled and counted per interval; printed flies are ignored.
Flight: every real fly circled and counted per interval; printed flies are ignored.
Cold shock: time for half the flies in a tube to recover, by genotype and sex.
Cold shock: time for half the flies in a tube to recover, by genotype and sex.

01 · Larval foraging (LarvaTrack)

LarvaTrack, the tool FlyBench started as. Give it a clip, the dish and the dish's width, and it returns a path length and a replay, so you can see whether it followed the larva or a speck of agar. trackpy does detection and linking, because the agar is covered in specks the same size and shape as a larva. Trajectories out on the dish wall get dropped as glare, and fragments join only across gaps short enough to be the same animal.

The numbers are undercounts on purpose: time the larva was invisible isn't guessed at. For crowded plates, you trace each animal by hand at 10× to 20×.

Single-larva plates: 72.1 mm, 62.2 mm, 44.3 mm.
Single-larva plates: 72.1 mm, 62.2 mm, 44.3 mm.
The raw motion evidence, accumulated and colored by time.
The raw motion evidence, accumulated and colored by time.

Resolution has a cliff

The same recording, downscaled, against its full-resolution answer of 72.1 mm:

Dish in frameMeasuredError
534 px71.4 mm−1%
445 px72.3 mm+0%
392 px112.4 mm+56%
297 px174.0 mm+141%
148 pxnothing found

Past the cliff it returns a confident wrong number rather than a rough one, so those clips get refused. AirDrop, iMessage and iCloud Photos all shrink video, so send the original file.