Skip to content

Experimental code to acquire training data using Psychtoolbox

Notifications You must be signed in to change notification settings

DeepMReye/Calibration

Repository files navigation

License: GPL v3 NatNeuro Paper

Logo

Experimental code to acquire training data for DeepMReye

This is a collection of scripts that allows acquiring training data for DeepMReye.

Click here for user recommendations.

Click here for the Frequently-Asked-Questions (FAQ) page.

How to use

  1. Install MATLAB and Psychtoolbox
  2. Clone this repository
git clone https://github.com/DeepMReye/Calibration.git
cd Calibration
  1. Open the script "Start_deepMReye_calib.m"
  2. Adjust settings to your needs
  3. Paste "Start_deepMReye_calib('test', 1)" into MATLAB command window
  4. Click "enter"

Content

The experiment comprises 3 conditions presented in the following order.

  1. Fixations: The fixation cross will jump to various screen locations.
  2. Smooth pursuit: The fixation cross will move smoothly at various speeds on a random-walk trajectory with defined directional sampling.
  3. Free viewing of images (recommended only if camera-based eye tracking is available).

The video below shows a shortened version of the experiment. It may look slightly different for you depending on your display settings.

deepMReye video

At the top of the hierarchy is the script "Start_deepMReye_calib.m". It contains the screen settings (e.g. resolution, display size etc.) as well the task settings (e.g. how many fixation locations should be tested, how many images would you like to show etc.). These settings are then forwarded to "deepMReye_calib.m", which does the main work.

MRI scanner triggers are being collected and all settings, triggers and experimental time stamps are stored in a log file.

Camera-based eye tracking

The code supports the camera-based eye tracker Eyelink 1000 plus. Note that camera-based eye tracking is not required to train DeepMReye, but that it can improve model performance especially for free-viewing paradigms.

This is a template - adjust the code to your needs

The type of training data you need depends on your study objectives - Please adjust these scripts accordingly! See the paper, user recommendations and FAQ page for details.

In short, the more similar the viewing behavior is between your training data and the data you are trying to analyze, the better.

About

Experimental code to acquire training data using Psychtoolbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages