TL;DR
This paper introduces "Pistol," a new open-source software tool designed to extract a comprehensive suite of eye-related features from video recordings, including pupil/iris details, eye movements, and both 2D/3D gaze estimations. Pistol aims to democratize advanced eye-tracking analysis for researchers by providing a robust and accessible platform that can be integrated with existing eye-tracking hardware like the Pupil Invisible.
What Problem Does This Paper Address?
The field of eye-tracking is rapidly evolving, with new algorithms and features constantly emerging. However, integrating these advancements into existing research workflows can be challenging, especially for researchers who may not have the resources to develop custom solutions or the time to navigate complex, proprietary software. The authors identify a need for a unified, open-source tool that can extract a wide range of high-level eye features, making state-of-the-art analysis accessible to a broader research community. This is particularly important as eye-tracking finds applications in diverse fields like human-computer interaction, medicine, psychology, and automotive safety.
Methods
Pistol employs a multi-stage processing pipeline, visualized in Figure 2. Key methods include:
- Feature Extraction:
- Pupil, Iris, and Eyelid Detection: Utilizes small Deep Neural Networks (DNNs) with maximum instead of residual connections, tensor normalization, and full distribution training for robustness and reduced annotation needs. Landmark detection is followed by OpenCV's ellipse fitting for pupil and iris, and cubic splines for eyelids.
- Eye Opening Estimation: An optimization procedure is used, constrained by orthogonality to the vector between eye corners to ensure accurate orientation.
- Eye Ball, Pupil & Iris Vector Estimation: Leverages neural networks (similar to [13]) to estimate eyeball parameters and calculate unit vectors for pupil and iris.
- Eye Movement Detection: Employs a neural network classifier trained on angles between pupil/iris vectors and eye-opening changes.
- Marker Detection: A two-stage DNN approach: a coarse detector for initial localization and a fine detector for precise landmark extraction.
- Gaze Estimation:
- 2D Gaze: Achieved using both Levenberg-Marquardt optimization and neural networks, applied independently for each eye and for pupil/iris features.
- 3D Gaze: Extends the 2D methods to utilize data from both eyes simultaneously.
The software is designed to be modular, with each processing step saving its output to CSV files and generating debug videos for verification.
Datasets
The paper mentions using annotated datasets for training and evaluation. Specifically:
- Pupil, Iris, and Eyelid Detection: Trained on 200 annotated images with an additional 100 for validation. Evaluation was performed on a dataset including subjects from older recordings.
- Eye Movement Detection: Trained on annotated data from five subjects.
- Marker Detection: Trained on 100 annotated images (60 for training, 40 for validation), with the coarse DNN using the full image and the fine DNN using a 120x120 pixel region.
- Gaze Estimation: Calibration data was selected based on marker detection and a polynomial fit.
The authors also refer to existing literature and benchmarks for comparison.
Key Insights and Ideas
- Democratizing Advanced Eye-Tracking: The core idea is to bundle complex feature extraction and gaze estimation into a single, accessible tool, lowering the barrier to entry for researchers.
- Robust DNN Architectures: The use of small DNNs with specific architectural choices (max connections, tensor normalization, full distribution training) demonstrates a focus on achieving good performance with reduced computational and data requirements.
- Orthogonality Constraint for Eye Opening: The insight that an orthogonality constraint is crucial for accurate eye-opening estimation, especially with off-axis camera views, highlights a subtle but important detail in eye-tracking geometry.
- Two-Stage Marker Detection: The strategy of using a coarse DNN for initial localization followed by a fine DNN for precise detection is an effective way to balance speed and accuracy in marker identification.
- Comparison of Gaze Estimation Methods: The paper provides a valuable comparison between Levenberg-Marquardt fitting and neural networks for gaze estimation, noting that NN performance was surprisingly lower, potentially due to their linear function approximations.
Key Results
- Feature Extraction Quality: Pistol achieves high accuracy in pupil, iris, and eyelid detection, with mean IoU scores around 0.89-0.93 and pupil center RMSE of 0.84-0.93 px. These results are competitive with or superior to existing methods, even without requiring extensive training data for some comparisons.
- Eye Movement Detection: The algorithm achieves good accuracy (e.g., 96% for fixation, 94% for smooth pursuit) and mIoU scores, comparable to other state-of-the-art methods.
- Gaze Estimation Accuracy: Pistol demonstrates significantly better accuracy (lower pixel error) than the Pupil Player for 2D and 3D gaze estimation, particularly when using both eyes. For example, 2D left+right gaze estimation achieved an average accuracy of 21.78 px with LM fitting.
- Runtime Efficiency: The tool is designed for efficiency, with feature detection taking approximately 17.21 ms per frame on a GTX 1050Ti GPU. This allows for near real-time processing on moderate hardware.
Limitations and Future Work
- Hardware/OS Limitations: Currently, Pistol only supports the Pupil Invisible eye tracker and is limited to Windows and Linux operating systems. A CUDA-capable GPU is required for optimal performance.
- Single Marker Support: The current version only supports one marker for calibration.
- Future Work:
- Support for additional eye trackers.
- Development of a MacOSX version.
- Optimization for CPU-only processing (without GPU).
- Integration of support for multiple markers.
- Implementation of gesture recognition and scan path classification.
- Further research into improving neural network architectures for gaze estimation.
- Enhancements to marker detection speed and robustness.
- Integration of appearance-based gaze estimation approaches.
Summary updated