# A dynamic stimulus distribution methodology for efficient large-scale pairwise relational data collection

**Authors:** Zhang Chuyin, Lin Lipeng, Naotsugu Tsuchiya

PMC · DOI: 10.1016/j.mex.2026.103839 · MethodsX · 2026-02-20

## TL;DR

This paper introduces a method to efficiently collect pairwise relational data online by dynamically balancing stimulus presentation frequencies.

## Contribution

A new dynamic stimulus distribution method is introduced to minimize variance in trial counts using PsychoPy and GitHub Gist.

## Key findings

- Frequencies of stimulus pairs are stored and updated in real-time using GitHub Gist.
- The method dynamically selects underrepresented pairs for new participants.
- The approach improves efficiency and uniformity in data collection across stimulus pairs.

## Abstract

Subjective comparisons of aspects of experience provides reliable and powerful numerical data, which can provide us means to characterize structures of consciousness. Yet, an exhaustive set of comparative and pairwise judgements among N stimuli requires N2 trials, which is costly for in-lab face-to-face data collection from a participant. By utilizing an online experimental platform, it is easy to recruit many participants, randomly distributing a small proportion of all possible pairs. However, random assignment is not efficient in obtaining data uniformly across all pairs of stimuli. Here, we introduce a new method for minimizing variance in trial counts across stimulus pairs, by integrating PsychoPy with GitHub Gist, which records the frequency with which each pair has been presented. We provide JavaScript code that can be incorporated into customized code chunks in PsychoPy. The program can be run on Pavlovia for online participants, and we show the effectiveness of our method.

• The frequencies that each stimulus pair has been shown are stored on GitHub Gist.

• When a new participant starts on Pavlovia, our methodology reads the frequencies, selects the least presented stimuli for the participant, and updates the frequencies.

• The frequencies get dynamically balanced for efficient data collection.

Image, graphical abstract

## Full-text entities

- **Chemicals:** currentLine (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12969380/full.md

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12969380/full.md

## References

19 references — full list in the complete paper: https://tomesphere.com/paper/PMC12969380/full.md

---
Source: https://tomesphere.com/paper/PMC12969380