Example datasets#

All example datasets are available in the pyriodic.datasets module. To download a dataset, simply call the corresponding data_path function. The default download location is checked first to see if the dataset is already on the computer, and only download it if necessary.

Sample#

Currently, only one dataset is available. It contains the data from a single participant performing a continuous two-choice tactile discrimination task.

Each trial consisted of a sequence of four electrical pulses. The first three pulses were delivered simultaneously to both the index and middle fingers of the non-dominant hand at a salient intensity, for which the intensity is calibrated in collaboration with the participant to ensure that it is clearly perceptible but not painful. The fourth pulse, a near-threshold stimulus, is delivered to either the index or the middle finger. An adaptive QUEST staircase procedure runs throughout the experiment to adjust the intensity of the near-threshold pulses, targeting ~75% detection accuracy. The staircase was reset multiple times during the experiment to introduce additional variability in target intensity. The participant was instructed to indicate which finger received this target stimulus before the onset of the next sequence.

Trials were grouped into blocks in which the interstimulus interval (ISI) is fixed. Within a block, each trial begins immediately after the ISI following the fourth pulse of the previous trial, creating a continuous stimulation stream.

Respiration was recorded using a BIOPAC MP150 system and AcqKnowledge software with a respiratory transducer placed on the chest.

[2]:
from pyriodic.datasets import sample
path = sample.data_path()  # Returns the default download location for the sample dataset