Preprint
Article

This version is not peer-reviewed.

Webcam-Based Pain Measurement Using Pupillary Diameter

Submitted:

09 March 2026

Posted:

11 March 2026

You are already at the latest version

Abstract
Pupillometry is a reliable method of pain control. There are experimental conditions under which standard pupillometry equipment cannot be used. Studying effects of different pulse forms used for transcutaneous spinal cord stimulation (tSCS) is one such task. The aim was to create a system for recording pupil diameter based on a web camera because it can be synchronized with external equipments, which allows the diameter to be recorded simultaneously with other physiological signals. A markerless system for recording and analyzing pupil diameter using deep neural networks was developed based on a commercially available web camera. The accuracy of this system was compared with the accuracy of measurements using manual analysis with the ImageJ. The system was tested in a study of the dependence of tolerance to tSCS on the shape of stimulating pulses, which involved the participation of volunteers (n=12). The results of the developed pupillometry were compared with the pain rating scale traditionally used in such studies. The developed system is accurate in determining the pupil diameter, comparable to human accuracy. The pupillometry results reproduced those obtained using a subjective pain scale. The developed method was found to be a reliable method for recording pain in electrophysiological studies.
Keywords: 
;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated