PyEtSimul: An Open-Source Python Framework for Eye-Tracking Simulation

Mohammadhossein Salari, Diederick C. Niehorster, Dan Witzner Hansen and Roman Bednarik

Abstract

This paper presents PyEtSimul, an open-source Python-based framework for simulating video-based eye trackers by generating synthetic eye features through geometric modeling. The framework allows flexible positioning of eyes, cameras, and light sources in 3D space, with controlled variation of eye anatomical features and camera properties. PyEtSimul generalizes corneal modeling by representing the cornea as a conic surface rather than the common sphere. It also supports non-circular pupil shapes, size-dependent pupil decentration, eyelid occlusion, and camera lens distortion. It supports systematic data generation and principled comparison of gaze estimation algorithms across calibrated and uncalibrated settings. These features enable analyses not possible with other available simulators. PyEtSimul facilitates controlled experiments with known parameters often latent in normal settings, enabling reproducible benchmarking and systematic exploration of hardware designs. By generating fully synthetic data, PyEtSimul removes privacy concerns and the need for costly hardware, making it practical for both educational and research applications.

Venue
ETRA 2026
Volume
Proceedings of the ACM on Human-Computer Interaction, Volume 10, Issue 3
DOI
10.1145/3806023
PDF
https://dl.acm.org/doi/pdf/10.1145/3806023
Anthology ID
2026.pacm-etra.9

Cite

@article{salari-etal-2026-pyetsimul,
    title = {{PyEtSimul: An Open-Source Python Framework for Eye-Tracking Simulation}},
    author = {Mohammadhossein Salari and Diederick C. Niehorster and Dan Witzner Hansen and Roman Bednarik},
    journal = {Proceedings of the ACM on Human-Computer Interaction},
    volume = {10},
    number = {3},
    issn = {2573-0142},
    year = {2026},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3806023},
    url = {https://doi.org/10.1145/3806023},
    abstract = {This paper presents PyEtSimul, an open-source Python-based framework for simulating video-based eye trackers by generating synthetic eye features through geometric modeling. The framework allows flexible positioning of eyes, cameras, and light sources in 3D space, with controlled variation of eye anatomical features and camera properties. PyEtSimul generalizes corneal modeling by representing the cornea as a conic surface rather than the common sphere. It also supports non-circular pupil shapes, size-dependent pupil decentration, eyelid occlusion, and camera lens distortion. It supports systematic data generation and principled comparison of gaze estimation algorithms across calibrated and uncalibrated settings. These features enable analyses not possible with other available simulators. PyEtSimul facilitates controlled experiments with known parameters often latent in normal settings, enabling reproducible benchmarking and systematic exploration of hardware designs. By generating fully synthetic data, PyEtSimul removes privacy concerns and the need for costly hardware, making it practical for both educational and research applications.}
}