Alec Soronow
All case studies

Applied AI & Research · 2025

Bell Jar

An open-source desktop tool that aligns mouse brain tissue sections to a reference atlas and counts cells in them, published in eNeuro.

Client
Neuroscience research
Role
Lead author
Timeline
Published 2025
Stack
Python, PyTorch, YOLOv8, Electron
The Bell Jar pipeline in six steps: image acquisition, predicted alignment, fine tuning, calculating and applying the transformation, output annotations, and integrating datasets

Scroll sidewaysOpen full size

The Bell Jar pipeline, from stained tissue sections to atlas annotations. Figure 1, Soronow et al., eNeuro 2025. CC BY 4.0.

01 / The bottleneck

Where things were stuck.

To analyze a mouse brain, every tissue section has to be registered to a reference atlas. Doing that by hand is slow and hard to reproduce, and damaged tissue throws off automated tools.

02 / The build

What I built.

Built Bell Jar, a standalone desktop app. A ResNet-101 predictor proposes where each section sits in the atlas, the researcher fine-tunes the match, and B-spline registration maps the atlas annotations onto the tissue.

Labeled brain sections are scarce, so I generated the training set: one million images sliced from the Allen brain atlas at random angles and depths, with Sobel filtering on the inputs to bring out anatomical edges. Cell detection is a YOLOv8 model trained on 700 hand-annotated cells, augmented to 2,600 instances, and run with sliced inference so it holds up on large images.

03 / The result

What changed.

Alignment and cell counting went from weeks for a single brain to multiple experiments in as little as four hours, while aligning sections more accurately than QUINT and DeepSlice in the paper's benchmarks.

Read the paper
Weeks → 4 hrs
from weeks to process one brain to as little as four hours for multiple experiments
2 tools
outperformed in the paper's benchmarks: QUINT and DeepSlice
1M images
generated from the Allen brain atlas to train the ResNet-101 alignment predictor

Facing a similar bottleneck?

Request a 20-minute intro call and we'll walk through your current stack.