Computer Vision Syndrome (CVS) refers to a range of visual discomfort symptoms associated with prolonged computer use. This paper presents a real-time webcam-based monitoring system for CVS prevention that combines facial expression recognition and eye-to-screen distance estimation within a single framework. Facial expressions are grouped into two behavioral categories, safe and risk-related, where sadness and fear are treated as proxy behavioral indicators of possible visual discomfort during prolonged screen interaction rather than as clinical diagnostic marker. In parallel, the system estimates eye-to-screen distance using MediaPipe Face Mesh and a focal-length-based calibration procedure to detect potentially unsafe viewing distances. Face detection is performed using CascadeClassifier, while facial expression classification is carried out using a regularized Xception model. The system generates real-time warning notifications through a Tkinter-based interface when risk-related expressions persist above a predefined threshold or when the viewing distance falls below 40 cm. Experimental results for the binary behavioral classification task achieved 94% accuracy, 95% precision, 94% recall, and 94% F1-score. The proposed framework offers a lightweight and practical solution for behavioral CVS risk awareness using only a standard webcam, although broader validation on larger user groups remains necessary.
Keywords
Computer Vision SyndromeRecognition of Facial ExpressionsPrevention of Digital Eye StrainEstimation of Eye-To-Screen DistanceReal-Time Monitoring SystemsHuman-Computer InteractionDeep Learning TechniquesXception Model
References
F. Kahal et al., “Computer vision syndrome: A comprehensive literature review,” Journal of Optometry, Taylor & Francis, 2025, [Online]. Available: https://doi.org/10.1080/20565623.2025.2476923.
N. Marvita, N. Widajati, S. N. Ramadhani, and V. W. Handayani, “Factors related to computer vision syndrome (CVS) complaints in programmers during the COVID-19 pandemic,” Journal of Vocational Health Studies, vol. 8, no. 2, pp. 91-97, 2024, [Online]. Available: https://doi.org/10.20473/jvhs.v8.i2.2024.91-97.
American Optometric Association, “Digital Eye Strain: Eye Health Guidance for Screen Use,” 2025, [Online]. Available: https://www.aoa.org, [Accessed: Mar. 06, 2026].
L. Mutanu, J. Gohil, and K. Gupta, “Vision-autocorrect: A self-adapting approach towards relieving eye strain,” Software, vol. 2, no. 2, pp. 197-217, 2023, [Online]. Available: https://doi.org/10.3390/software2020009.
Z. Sun et al., “Facial feature fusion CNN for driver fatigue detection,” Engineering Applications of Artificial Intelligence, vol. 126, 2023, [Online]. Available: https://doi.org/10.1016/j.engappai.2023.106981.
A. Balasundaram et al., “Computer vision based fatigue detection using facial parameters,” IOP Conference Series: Materials Science and Engineering, vol. 981, no. 2, 2020, [Online]. Available: https://doi.org/10.1088/1757-899X/981/2/022005.
F. Zhao, A. Wood, B. Mutlu, and P. Niedenthal, “Faces synchronize when communication through spoken language is prevented,” Emotion, vol. 23, no. 1, pp. 87-96, 2022, [Online]. Available: https://doi.org/10.1037/emo0000799.
P. Ekman, “Are there basic emotions?” Psychological Review, vol. 99, no. 3, pp. 550-553, 1992, [Online]. Available: https://doi.org/10.1037/0033-295X.99.3.550.
“A survey on facial expression recognition of static and dynamic images,” arXiv preprint arXiv:2408.15777, 2024.
Y. Khaireddin and Z. Chen, “Facial emotion recognition: State-of-the-art on FER2013,” arXiv preprint arXiv:2105.03588, 2021.
T. S. Gunawan et al., “Video-based emotion recognition using deep learning,” TELKOMNIKA (Telecommunication Computing Electronics and Control), vol. 18, no. 5, pp. 2463-2471, 2020, [Online]. Available: https://doi.org/10.12928/TELKOMNIKA.v18i5.16717.
G. Zhao et al., “Research on fatigue detection based on visual features,” IET Image Processing, vol. 16, no. 4, pp. 1044-1053, 2022, [Online]. Available: https://doi.org/10.1049/ipr2.12207.
I. Lapa et al., “Real-time blink detection as an indicator of computer vision syndrome,” International Journal of Environmental Research and Public Health, vol. 20, no. 5, 2023, [Online]. Available: https://doi.org/10.3390/ijerph20054569.
P. A. de L. Medeiros et al., “Efficient machine learning approach for real-time eye-blink detection,” Expert Systems with Applications, vol. 188, 2022, [Online]. Available: https://doi.org/10.1016/j.eswa.2021.116073.
P. Lucey et al., “The extended Cohn-Kanade dataset (CK+): A complete dataset for action unit and emotion-specified expression,” in Proc. IEEE Computer Society Conf. Computer Vision and Pattern Recognition Workshops (CVPRW), 2010, [Online]. Available: https://doi.org/10.1109/CVPRW.2010.5543262.
P. Sood, “Extended and Augmented Google FER Dataset,” Kaggle Dataset, 2021, [Online]. Available: https://www.kaggle.com/datasets/psood/google-fer-dataset, [Accessed: Mar. 06, 2026].
E. A. Azrien et al., “Regularized Xception for facial expression recognition,” IAES International Journal of Artificial Intelligence, vol. 13, no. 4, pp. 4703-4710, 2024, [Online]. Available: https://doi.org/10.11591/ijai.v13.i4.pp4703-4710.
N. Jaymon et al., “Real-time emotion detection using deep learning,” in Proc. ICAECT, 2021, [Online]. Available: https://doi.org/10.1109/ICAECT49130.2021.9392584.
S. Fakhar et al., “Smart classroom monitoring using real-time facial expression recognition,” Applied Sciences, vol. 12, no. 23, 2022, [Online]. Available: https://doi.org/10.3390/app122312134.