Here’s an old school high level overview of pupil tracking methods[0]. The focus recently has been moving these older computer vision methodologies to ML without introducing too many errors.
[0] http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.155...