» Articles » PMID: 29992408

Preprocessing Pupil Size Data: Guidelines and Code

Overview
Publisher Springer
Specialty Social Sciences
Date 2018 Jul 12
PMID 29992408
Citations 103
Authors
Affiliations
Soon will be listed here.
Abstract

Pupillometry has been one of the most widely used response systems in psychophysiology. Changes in pupil size can reflect diverse cognitive and emotional states, ranging from arousal, interest and effort to social decisions, but they are also widely used in clinical practice to assess patients' brain functioning. As a result, research involving pupil size measurements has been reported in practically all psychology, psychiatry, and psychophysiological research journals, and now it has found its way into the primatology literature as well as into more practical applications, such as using pupil size as a measure of fatigue or a safety index during driving. The different systems used for recording pupil size are almost as variable as its applications, and all yield, as with many measurement techniques, a substantial amount of noise in addition to the real pupillometry data. Before analyzing pupil size, it is therefore of crucial importance first to detect this noise and deal with it appropriately, even prior to (if need be) resampling and baseline-correcting the data. In this article we first provide a short review of the literature on pupil size measurements, then we highlight the most important sources of noise and show how these can be detected. Finally, we provide step-by-step guidelines that will help those interested in pupil size to preprocess their data correctly. These guidelines are accompanied by an open source MATLAB script (available at https://github.com/ElioS-S/pupil-size ). Given that pupil diameter is easily measured by standard eyetracking technologies and can provide fundamental insights into cognitive and emotional processes, it is hoped that this article will further motivate scholars from different disciplines to study pupil size.

Citing Articles

Characterizing eye gaze and mental workload for assistive device control.

Loke L, Barsoum D, Murphey T, Argall B Wearable Technol. 2025; 6:e13.

PMID: 40071242 PMC: 11894411. DOI: 10.1017/wtc.2024.27.


Attachment is in the eye of the beholder: a pupillometry study on emotion processing.

Vacaru S, Waters T, Hunnius S Sci Rep. 2025; 15(1):8015.

PMID: 40055431 PMC: 11889223. DOI: 10.1038/s41598-025-92347-4.


Pupil size reveals arousal level fluctuations in human sleep.

Carro-Dominguez M, Huwiler S, Oberlin S, Oesch T, Badii G, Luthi A Nat Commun. 2025; 16(1):2070.

PMID: 40021662 PMC: 11871316. DOI: 10.1038/s41467-025-57289-5.


Three Hundred Hertz Transcutaneous Auricular Vagus Nerve Stimulation (taVNS) Impacts Pupil Size Non-Linearly as a Function of Intensity.

Phillips I, Johns M, Pandza N, Calloway R, Karuzis V, Kuchinsky S Psychophysiology. 2025; 62(2):e70011.

PMID: 40013407 PMC: 11866280. DOI: 10.1111/psyp.70011.


Expectation violations signal goals in novel human communication.

Buidze T, Sommer T, Zhao K, Fu X, Glascher J Nat Commun. 2025; 16(1):1989.

PMID: 40011458 PMC: 11865554. DOI: 10.1038/s41467-025-57025-z.


References
1.
Bradley M, Miccoli L, Escrig M, Lang P . The pupil as a measure of emotional arousal and autonomic activation. Psychophysiology. 2008; 45(4):602-7. PMC: 3612940. DOI: 10.1111/j.1469-8986.2008.00654.x. View

2.
Wehebrink K, Koelkebeck K, Piest S, De Dreu C, Kret M . Pupil mimicry and trust - Implication for depression. J Psychiatr Res. 2017; 97:70-76. DOI: 10.1016/j.jpsychires.2017.11.007. View

3.
Yu Y, Ramage A, Koss M . Pharmacological studies of 8-OH-DPAT-induced pupillary dilation in anesthetized rats. Eur J Pharmacol. 2004; 489(3):207-13. DOI: 10.1016/j.ejphar.2004.03.007. View

4.
Gagl B, Hawelka S, Hutzler F . Systematic influence of gaze position on pupil size measurement: analysis and correction. Behav Res Methods. 2011; 43(4):1171-81. PMC: 3218283. DOI: 10.3758/s13428-011-0109-5. View

5.
Kret M, De Dreu C . Pupil-mimicry conditions trust in partners: moderation by oxytocin and group membership. Proc Biol Sci. 2017; 284(1850). PMC: 5360920. DOI: 10.1098/rspb.2016.2554. View