Open-DPSM: An open-source toolkit for modeling pupil size changes to dynamic visual inputs

Publication date

2024-09

Authors

Cai, YuqingISNI 0000000517912302
Strauch, ChristophORCID 0000-0002-6380-8635ISNI 0000000493067211
van der Stigchel, S.ISNI 0000000396732697
Naber, MarnixORCID 0000-0003-4208-8437ISNI 0000000419502457

Editors

Advisors

Supervisors

Document Type

Article
Open Access logo

License

cc_by

Abstract

Pupil size change is a widely adopted, sensitive indicator for sensory and cognitive processes. However, the interpretation of these changes is complicated by the influence of multiple low-level effects, such as brightness or contrast changes, posing challenges to applying pupillometry outside of extremely controlled settings. Building on and extending previous models, we here introduce Open Dynamic Pupil Size Modeling (Open-DPSM), an open-source toolkit to model pupil size changes to dynamically changing visual inputs using a convolution approach. Open-DPSM incorporates three key steps: (1) Modeling pupillary responses to both luminance and contrast changes; (2) Weighing of the distinct contributions of visual events across the visual field on pupil size change; and (3) Incorporating gaze-contingent visual event extraction and modeling. These steps improve the prediction of pupil size changes beyond the here-evaluated benchmarks. Open-DPSM provides Python functions, as well as a graphical user interface (GUI), enabling the extension of its applications to versatile scenarios and adaptations to individualized needs. By obtaining a predicted pupil trace using video and eye-tracking data, users can mitigate the effects of low-level features by subtracting the predicted trace or assess the efficacy of the low-level feature manipulations a priori by comparing estimated traces across conditions.

Keywords

Modeling pupil size, Open-DPSM, Pupillary light response, Pupillometry, Experimental and Cognitive Psychology, General Psychology, Developmental and Educational Psychology, Arts and Humanities (miscellaneous), Psychology (miscellaneous)

Citation

Cai, Y, Strauch, C, Van der Stigchel, S & Naber, M 2024, 'Open-DPSM : An open-source toolkit for modeling pupil size changes to dynamic visual inputs', Behavior Research Methods, vol. 56, no. 6, pp. 5605-5621. https://doi.org/10.3758/s13428-023-02292-1