Webcam-Based Pain Measurement Using Pupillary Diameter
Open Access
Abstract
Pupillometry can be used as a method for monitoring pain. There are experimental conditions under which standard pupillometry equipment cannot be used. Studying the 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 synchronised with external equipment, which allows the diameter to be recorded simultaneously with other physiological signals. A markerless system for recording and analysing 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 ImageJ (version 1.54g). For validation, the system was tested in a study of the dependence of tolerance to tSCS on the shape of stimulating pulses, which involved 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. This method was found to be a reliable method for recording nociceptive pupillary responses in electrophysiology.Keywords
All Related Versions
Funding Information
- Pavlov Institute of Physiology, Russian Academy of Sciences (1021062411782-5-3.1.8)
- Cosyma LLC fundings (2025-10-01)
- Cosyma LLC fundings (2025-06-17)
This publication has 25 references indexed in Scilit:
- Pupil dilation evoked by painful electrical stimulation is abolished during pain inhibition by distractionThe Journal of Physiological Sciences, 2025
- The effects of stimulation waveform and carrier frequency on tolerance and motor thresholds elicited by transcutaneous spinal cord stimulation in strokeClinical Neurophysiology Practice, 2025
- Ultrasound for Pupillary Assessment - A Systematic ReviewJEM Reports, 2025
- Pupillometry in perioperative medicine: a narrative reviewCanadian Journal of Anesthesia/Journal canadien d'anesthésie, 2021
- A complete pupillometry toolbox for real-time monitoring of locus coeruleus activity in rodentsNature Protocols, 2020
- Objective monitoring of nociception: a review of current commercial solutionsBritish Journal of Anaesthesia, 2019
- DeepLabCut: markerless pose estimation of user-defined body parts with deep learningNature Neuroscience, 2018
- Statistical methods for assessing agreement between two methods of clinical measurementInternational Journal of Nursing Studies, 2010
- Measured motion: searching for simplicity in spinal locomotor networksCurrent Opinion in Neurobiology, 2009
- Phasic pupil dilation response to noxious stimulation in normal volunteers: Relationship to brain evoked potentials and pain reportPsychophysiology, 1999