DeepVOG: Open-source Pupil Segmentation and Gaze Estimation in Neuroscience Using Deep Learning
Overview
Authors
Affiliations
Background: A prerequisite for many eye tracking and video-oculography (VOG) methods is an accurate localization of the pupil. Several existing techniques face challenges in images with artifacts and under naturalistic low-light conditions, e.g. with highly dilated pupils.
New Method: For the first time, we propose to use a fully convolutional neural network (FCNN) for segmentation of the whole pupil area, trained on 3946 VOG images hand-annotated at our institute. We integrate the FCNN into DeepVOG, along with an established method for gaze estimation from elliptical pupil contours, which we improve upon by considering our FCNN's segmentation confidence measure.
Results: The FCNN output simultaneously enables us to perform pupil center localization, elliptical contour estimation and blink detection, all with a single network and with an assigned confidence value, at framerates above 130 Hz on commercial workstations with GPU acceleration. Pupil centre coordinates can be estimated with a median accuracy of around 1.0 pixel, and gaze estimation is accurate to within 0.5 degrees. The FCNN is able to robustly segment the pupil in a wide array of datasets that were not used for training.
Comparison With Existing Methods: We validate our method against gold standard eye images that were artificially rendered, as well as hand-annotated VOG data from a gold-standard clinical system (EyeSeeCam) at our institute.
Conclusions: Our proposed FCNN-based pupil segmentation framework is accurate, robust and generalizes well to new VOG datasets. We provide our code and pre-trained FCNN model open-source and for free under www.github.com/pydsgz/DeepVOG.
Wu J, Toporek A, Lin Q, Goldstein F, Loring D, Kelberman M Alzheimers Res Ther. 2025; 17(1):53.
PMID: 40016783 PMC: 11866666. DOI: 10.1186/s13195-025-01701-1.
Lee S, Song T, Lee J, Lee J Sci Rep. 2024; 14(1):26220.
PMID: 39482369 PMC: 11527873. DOI: 10.1038/s41598-024-77001-9.
Greene M, Balas B, Lescroart M, MacNeilage P, Hart J, Binaee K J Vis. 2024; 24(11):6.
PMID: 39377740 PMC: 11466363. DOI: 10.1167/jov.24.11.6.
Using Deep Learning to Increase Eye-Tracking Robustness, Accuracy, and Precision in Virtual Reality.
Barkevich K, Bailey R, Diaz G Proc ACM Comput Graph Interact Tech. 2024; 7(2).
PMID: 39119010 PMC: 11308822. DOI: 10.1145/3654705.
Multiattribute Decision-making in Macaques Relies on Direct Attribute Comparisons.
Perkins A, Gillis Z, Rich E J Cogn Neurosci. 2024; 36(9):1879-1897.
PMID: 38940740 PMC: 11324248. DOI: 10.1162/jocn_a_02208.