PupilSense: A Novel Application for Webcam-Based Pupil Diameter Estimation
Vijul Shah, Ko Watanabe, Brian B. Moser, Andreas Dengel
TL;DR
The paper tackles the lack of accessible, webcam-based pupil diameter estimation by collecting a large open dataset that pairs RGB webcam eye images with precise pupil measurements from a Tobii ground-truth system. It establishes a robust preprocessing workflow (alignment, eye cropping, and depth map generation) and demonstrates baseline predictions using LOPOCV with ResNet18 and ResNet50, where ResNet50 achieves $MAPE$ around $3.23$–$3.64\%$, outperforming small-model baselines. The authors release an open dataset and deploy PupilSense, a web application that provides CAM visualizations, frame-level diameter estimates, and blink-aware analysis, making pupilometry more transparent and usable in natural settings. They highlight practical impact for human behavior research and healthcare, while acknowledging limitations in real-time applicability and data diversity, and outlining future work on real-time processing, privacy-preserving deployment, and broader camera validation.
Abstract
Measuring pupil diameter is vital for gaining insights into physiological and psychological states - traditionally captured by expensive, specialized equipment like Tobii eye-trackers and Pupillabs glasses. This paper presents a novel application that enables pupil diameter estimation using standard webcams, making the process accessible in everyday environments without specialized equipment. Our app estimates pupil diameters from videos and offers detailed analysis, including class activation maps, graphs of predicted left and right pupil diameters, and eye aspect ratios during blinks. This tool expands the accessibility of pupil diameter measurement, particularly in everyday settings, benefiting fields like human behavior research and healthcare. Additionally, we present a new open source dataset for pupil diameter estimation using webcam images containing cropped eye images and corresponding pupil diameter measurements.
