goxpyriment

Mental Rotation Task

This example implements a mental rotation experiment inspired by the classic study by Shepard & Metzler (1971).

1. Experimental Task

The participant is shown two 2D asymmetrical shapes side-by-side. The task is to determine if the right-hand shape is:

  1. A rotated version of the left-hand shape (“Same”).
  2. A mirrored and rotated version of the left-hand shape (“Different”).

Stimuli

2. Procedure

  1. Instructions: An initial screen explains the task.
  2. Fixation: A fixation cross is displayed throughout the experiment (during the 500ms fixation period, stimulus presentation, and inter-trial interval).
  3. Stimulus: Two shapes appear alongside the central fixation cross. The participant responds as quickly as possible.
  4. Feedback: Negative auditory feedback is provided for incorrect responses (Buzzer). Correct responses do not trigger a sound.
  5. Data Logging: Accuracy and Reaction Time (RT) are recorded. Typically, RT increases linearly with the rotation angle for “Same” pairs.

3. Controls

4. How to Run

From the Mental-Rotation directory:

go run main.go -d -s [subject_id]

Or from the repository root:

go run examples/Mental-Rotation/main.go -d -s [subject_id]

5. Notes on 3D Implementation

The original Shepard & Metzler study used perspective drawings of 3D cube assemblies. This implementation uses 2D polygons as a programmatic proxy. To reproduce the exact 3D stimuli, you can replace the stimuli.Shape calls with stimuli.Picture calls using pre-rendered images of the 3D objects at various rotation angles.

References