Confidence-Guided Fallback Strategy: Fusing Traditional Binarization and Deep Segmentation for Real-Time Pupil Detection
Open Access
- 11 July 2026
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (14) , 6981
Abstract
Real-time pupil detection is a critical prerequisite for eye-tracking applications such as vestibular videonystagmography (VNG) and gaze-based interaction: deep learning methods offer high accuracy but incur substantial computational cost, while traditional thresholding methods are fast but lack robustness under complex illumination. This paper proposes the Confidence-Guided Fallback (CGF) framework, which employs four geometric factors—circularity, aspect ratio, area consistency, and convex-hull ratio—to evaluate the reliability of traditional detection results, and it invokes RITNet (a deep segmentation network finetuned on randomly cropped s-OpenEDS data) only when the confidence score falls below a threshold, thereby adaptively balancing accuracy and efficiency on a per-frame basis. RITNet is not trained on LPW; thus, LPW evaluation simultaneously constitutes cross-dataset validation. Hyperparameters (confidence weights and threshold values) are tuned on a validation set (15% of LPW subjects) and final performance is reported on an independent test set (18% of subjects), avoiding data leakage. On the validation set, the combined confidence factors achieve an AUROC of 0.961 for distinguishing high-quality frames, and the confidence distribution exhibits a bimodal structure with a valley near 0.7, providing a data-driven basis for threshold selection. On the independent test set (23,999 frames), CGF () detects 79.0% of frames; among detected frames, 84.0% achieve sub-5 px accuracy (median error 1.25 px) at 298 FPS on NVIDIA RTX 5090. At , detection rate reaches 89.6% with 72.0% sub-5 px accuracy at 391 FPS. Failure-mode analysis reveals that approximately 64.3% of triggered deep-model frames represent “dilemma frames” where both traditional and deep methods fail, marking the practical ceiling of single-frame visual methods and pointing toward temporal modeling. The framework demonstrates robustness to confidence-weight perturbations (±20% weight changes yield < 1% performance variation) and exhibits strong discriminative power on high-confidence frames (93.4% accuracy within 5 px on the test set).
Keywords
Funding Information
- WU Yongduo Innovation Center Open Research Project (KY202410068)
This publication has 14 references indexed in Scilit:
- EllSeg: An Ellipse Segmentation Framework for Robust Gaze TrackingIEEE Transactions on Visualization and Computer Graphics, 2021
- DeepVOG: Open-source pupil segmentation and gaze estimation in neuroscience using deep learningJournal of Neuroscience Methods, 2019
- PuRe: Robust pupil detection for real-time pervasive eye trackingComputer Vision and Image Understanding, 2018
- Densely Connected Convolutional Networks2017
- U-Net: Convolutional Networks for Biomedical Image Segmentation2015
- ExCuSe: Robust Pupil Detection in Real-World Scenarios2015
- Pupil2014
- Robust real-time pupil tracking in highly off-axis images2012
- Contrast Limited Adaptive Histogram Equalization1994
- A Threshold Selection Method from Gray-Level HistogramsIEEE Transactions on Systems, Man, and Cybernetics, 1979