Projects
Most of the code lives under AllenNeuralDynamics or my personal GitHub.
- Brain-wide, MRI-guided electrophysiology
Recording prelimbic cortex and its inputs at once
Imaging each mouse with MRI before surgery cuts median targeting error from 430 to 167 µm, enough to record prelimbic cortex and six of its small, deep input regions at once.
- Action value in prelimbic cortex
Foraging behavior, and brain-wide recordings of PL and its inputs
Foraging mice decide whether to leave a spout from that spout’s reward history alone, and prelimbic cortex and several of its inputs carry that history before each choice. Ongoing work.
- Exploration and skill in songbird motor learning
PhD work with Michale Fee at MIT
Ensemble recordings in singing zebra finches, on how the brain produces the variable song of young birds and the stereotyped song of adults.
- Electrode tracer
Finding Neuropixels tracks in whole-brain light-sheet volumes with deep learning
A learned 3-D detector and decoder, cross-validated on 188 annotated brains, recover dye-labeled probe tracks from cleared whole-brain light-sheet images, turning hours of manual annotation into checking an editable first draft.
- Rutter
Constrained-optimization planning for multi-probe insertions
An interactive planner and a GPU-batched optimization solver that find collision-free multi-probe insertion plans maximizing coverage of target brain structures.
- Research with coding agents
How I run long investigations with Claude Code
An append-only, pre-registered lab notebook lets a coding agent carry a months-long ML investigation across sessions without losing the thread or overstating results.
- Behavior video standards
An encoding standard, and transcoding 230 TB of archival video to it
An institute-wide encoding standard for behavior video, a library that implements it, and a spot-fleet batch job that transcoded ~11,000 archival videos (230 TB) for about $1,350.
- Tongue tracking
Segmenting the tongue in high-speed behavior video
A U-Net that segments the mouse tongue frame by frame in high-speed video, with a SAM2-assisted labeling and review tool and a batch inference pipeline for long sessions.
- Escapewheel
A data-lake format for electrophysiology
Parquet tables and Zarr v3 arrays under a JSON manifest, as an alternative to NWB for electrophysiology. A session is about 7× smaller and answers typical queries from S3 with a small fraction of the bytes.
- Electrophysiology mipmaps
Browse hours of raw Neuropixels data at any zoom from a small read
Multi-resolution Zarr pyramids of min/max envelopes that make any zoom level of raw 384-channel recordings fast to draw from cloud storage.
- Probe-alignment pipeline
Making the IBL ephys-alignment workflow correct at AIND
Fixes to registration, multi-shank geometry and depth scaling in the pipeline and GUI that place recording sites in the brain, one of which drew the alignment plot up to 1.4 mm off in depth.
- AIND mouse T1 MRI template
A population-average MRI template registered to the Allen CCF
A 47-subject, symmetrized T1 template at 100 µm (and 25 µm super-resolved), with transforms to the Allen Common Coordinate Framework, used for individualized probe targeting.
- iDISCO light-sheet template
A cleaner autofluorescence template and its registration to the Allen CCF
A light-sheet template from seven cleared wild-type brains, with seam-free preprocessing and a held-out-validated deformable registration to CCFv3 (54 µm median surface distance).