Journal of Neuroscience MethodsNeurosciencePeer-reviewed journal article
Pupil-DLC: an open-source deep learning pipeline for scalable, marker-less tracking of pupil dynamics across conscious and unconscious states
Parsa SeyfourianiD, Lydia C. MarksiD, Leslie D. ClaariD, Yasmeen NahasiD, Miles Keating, Christof Koch AiD, Irene RembadoiD
Abstract
BackgroundPupil diameter is a non-invasive biomarker of brain state, correlating with arousal, attention, cognitive processing, and consciousness. However, existing pupillometry software often lacks scalability and robustness across diverse experimental conditions and species. New methodWe introduce Pupil-DLC, an open-source, offline, DeepLabCut-based pipeline for scalable, marker-less pupil tracking, primarily designed for mice. Trained on 21,750 manually annotated frames from over 140 videos of head-fixed mice spanning wakefulness and drug-induced states, including psychedelics and anesthesia, the dataset was deliberately selected to maximize pupil size variability and model generalization. Pupil-DLC implements a dual-model architecture: a General Model (GM) for high-throughput analysis and an Individual Model (IM) for session-specific optimization. ResultsPupil-DLC captures pupil dynamics across awake, psychedelic, and anesthetized conditions with high agreement with ground truth and equal tracking fidelity during active locomotion and quiet rest. Confidence metrics aligned with human frame quality assessments, enabling principled tuning of accuracy-retention trade-offs. As a secondary demonstration, Pupil-DLC extends to unseen human videos across diverse conditions and frame rates, including daylight and smartphone recordings, without retraining. Comparison with existing methodsPupil-DLC outperforms existing automated methods in accuracy and frame retention while maintaining computational efficiency comparable to real-time tools. These improvements stem from a learned keypoint-based representation robust to pupil shape variability, occlusions, reflections, and imaging artifacts. The GM/IM framework supports a tiered strategy balancing throughput and precision. ConclusionsPupil-DLC provides a reproducible, adaptable platform for quantifying pupil-linked brain state dynamics across experimental paradigms and species, bridging basic mouse neuroscience and translational human applications.
- Citations
- 0
- FWCI
- 0.00
- Field percentile
- 46th percentile
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- NeuroPupil: A generalization-first framework for scalable and biologically informative cross-species pupillometry
Kemal Ozdemirli, Tenesha Connor, … Murat Yıldırım·bioRxiv·May 18, 2026
- iSleep: Continuous, binocular pupil tracking in sleep and reduced consciousness for physiological monitoring, predictions and interventions
Özge Yüzgeç, Guillaume Legendre, … Daniel Huber·bioRxiv·Jun 13, 2025
- Cross-species real time detection of trends in pupil size fluctuation
Sharif I. Kronemer, Victoria E. Gobo, … Peter A. Bandettini·Behavior Research MethodsPeer-reviewed·Dec 10, 2024
- OpenIrisDPI: An Open-Source Digital Dual Purkinje Image Eye Tracker for Visual Neuroscience
Ryan A. Ressmeyer, Jorge Otero‐Millan, … Jacob L. Yates·Journal of Neuroscience MethodsPeer-reviewed·Jan 23, 2026
- MEYE: Web-app for translational and real-time pupillometry
Raffaele Mario Mazziotti, Fabio Carrara, … Tommaso Pizzorusso·eNeuroPeer-reviewed·Sep 1, 2021
- Relating pupil diameter and blinking to cortical activity and hemodynamics across arousal states
Kevin L. Turner, Kyle W. Gheres, Patrick J. Drew·Journal of NeurosciencePeer-reviewed·Dec 14, 2022