Cheese3D is a pipeline for tracking mouse facial movements built on top of existing tools like DeepLabCut and Anipose. By tracking anatomically-informed keypoints using multiple cameras registered in 3D, our pipeline produces sensitive, high-precision facial movement data that can be related internal state (e.g., electrophysiology).
Cheese3D output can be visualized interactively.
Using a combination of hardware synchronization signals and a multi-stage pipeline, we are able to precisely synchronize video and electrophysiology data. This allows us to relate spikes recorded in the brainstem to various facial movements (here, we highlight two example units correlated with ipsilateral ear movements).
If you use Cheese3D, please cite our preprint:
@article {Daruwalla2024.05.07.593051,
 	author = {Daruwalla, Kyle and Martin, Irene Nozal and Zhang, Linghua and Nagli{\v c}, Diana and Frankel, Andrew and Rasgaitis, Catherine and Zhang, Xinyan and Ahmad, Zainab and Borniger, Jeremy C. and Hou, Xun Helen},
 	title = {Cheese3D: Sensitive Detection and Analysis of Whole-Face Movement in Mice},
 	elocation-id = {2024.05.07.593051},
 	year = {2025},
 	doi = {10.1101/2024.05.07.593051},
 	publisher = {Cold Spring Harbor Laboratory},
 	URL = {https://www.biorxiv.org/content/early/2025/03/01/2024.05.07.593051},
 	eprint = {https://www.biorxiv.org/content/early/2025/03/01/2024.05.07.593051.full.pdf},
 	journal = {bioRxiv}
}
The following notebooks contain the code required to reproduce the figures in our paper. They also serve as a showcase of the type of analysis enabled by Cheese3D's output. You can find the complete collection under the paper/ directory.
Cheese3D is supported on most Linux and macOS systems (including GPU support for CUDA and Apple Silicon). Partial support is available on Windows. For details, please refer to our documentation.
Software dependencies are listed in the pixi.toml, cheese3d pyproject.toml, and cheese3d-annotator pyproject.toml files. Hardware specifications can be found in our hardware guide.














