Data Collection DEBI protocol¶
Note
- Precisely point out what is connected to what by which kind of cables.
- Ask the MRI technician if you need help.
Overall experimental setting¶
The experimental setting is to obtain anatomical MRI scan with synchronized eye tracking recording (the right eye gaze trajectories and eye movement events including blinking, saccades and fixation).
Here is the illustration of the overall experiment:
The graph above can be divided into the following components:
-
SyncBox: A NordicLabs SyncBox sends TTL (transistor-transistor logic) triggers to the scanner and forward the signal converted to the keyboard signal "s" to the PsychoPy laptop.
-
Scanner: 3T clinical scanner (MAGNETOM PrismaFit, Siemens Healthineers) with a 64-channel head-neck coil with an attached mirror.
- Eye tracker: We use the EyeLink 1000 Plus (SR Research Ltd.) for eye tracking. (i) The eye tracker consists of an infrared lens and camera sensor on one side, along with an infrared lamp to illuminate the subject's right eye. It is positioned inside the scanner bore. (ii) An infrared mirror is mounted on the head coil.
- The Eye Tracker PC is bi-directionally connected to both the eye tracker and the PsychoPy laptop. It receives eye tracking data from the tracker, processes the eye movement trajectories and images, calculates pupil sizes by segmenting the pupil area, and classifies eye movement events based on predefined thresholds. The ET PC also receives trigger and task event messages from the PsychoPy laptop, logs data, and sends both the eye tracking data and logs back to the PsychoPy laptop.
- Stimuli laptop (PsychoPy Laptop): The PsychoPy laptop runs the PsychoPy software, which is used to execute the task programs. These programs coordinate various hardware components, including the ET PC, eye tracker, the screen, and SyncBox. In our DEBI experiment, the 'MR-Eye' protocol displays a central dot that changes color at a frequency of 10Hz. In the 'MREye-Track' protocol, a gray dot sequentially appears at the top, bottom, left, and right sides of the screen. The laptop also stores the data and logs generated by the Eye Tracker PC after the experiment.
Session Preparation¶
Documentation¶
- Prepare the informed consent form (EN|FR)
- Prepare an MRI safety screener (EN|FR)
- Prepare a pen and a receipt form that the participant will sign when they are given the compensation
Configure the IP address¶
If you are connecting your PC to the eye tracker (ET) for the first time, you need to reconfigure the IP address. On windows:
- Go to
Control Panel
->Network and Internet
->Network Connections
- Double-click on the
Ethernet
connection. - Select
Internet Protocol Version 4 (TCP/IPv4)
and clickProperties
. - Update the IP address to
100.1.1.2
and the subnet mask255.255.255.0
.
Prepare Equipment Outside the Scanner Room¶
Turn on the projector¶
If someone is already scanning, ask first if you can switch the projector on already
Turn on the Sony projector located in the back room of the scanner room.
Ensure the projector beam is directed into the scanner room.
Set up the Psychopy laptop on the table¶
-
Take the psychopy PC from JB's office.
-
Insert the hdmi into the Psychopy laptop to monitor the visual stimuli on the screen. The hdmi should be from the 3-cable bundle (which connects PC, projector and the Psychopy laptop).
-
If the monitor does not automatically switch the screen source, use the button below to manually change it.
-
Change the resolution of the screen of the laptop to 800x600 to ensure the whole screen is projected to the participant inside the scanner.
-
Ensure that the PC beneath the monitor remains turned on.
-
Connect the USB cable from the SyncBox to the PsychoPy laptop.
-
Plug the Ethernet from the ET computer to the psychopy laptop.
Make sure the IP address is reset if the laptop is connected to the ET PC for the first time!
Set up the SyncBox¶
- Ensure the SyncBox cable (RJ45) is already plugged onto the interface to the scanner room.
- Plug the other end of the cable into the SyncBox.
- Turn on the SyncBox
-
Check syncrhonization
- Enter the Synchronization mode by selecting it and pushing the enter button .
- Hit the down arrow button until you find Send triggerpulse to PC
- Push the enter button every time you want to send an s character.
- Check that the PsychoPy laptop types those triggers (e.g., on an open editor receiving keypresses, or the shell prompt, or looking at your open log).
Trigger to PsychoPy PC
- Check that the PsychoPy laptop types those triggers onto the scanner's PC.
Trigger to Scanner
-
Go to the
Simulation
, and we can see theStart Session
on the page. - Configure the TR time to 2500 ms according to our sequence. The TR determines the interval between two triggers.
Set up the ET system¶
- Make sure the ET PC is plugged in.
- Before turning on the ET computer, ensure it is connected to the PsychoPy laptop (this should have been done in the previous step).
- Switch on the ET’s PC using the power-on button at the front
- Select "Eyelink" when given the option of which operating system to launch.
- Initialize the ET software from the ET work station here by typing "elcl.exe" in the terminal
The command elcl.exe will only work and start the software once the eye tracker device is connected to the ET PC. If you encounter any error messages, please ensure the eye tracker is connected to the PC inside the scanner room and try running the command again.
Prepare the Eye Tracker device¶
- All the lenses, mirrors, and other equipment are in the box in JB's office.
- Install the 50mm lens onto the eye tracker (the compatible lens has a silver screw on it) (photos from Oscar's SOP)
The default position of the screw for convenient focus is typically set to around 1
. However, the exact value can vary depending on the specific participant and setup for each time. It's recommended to start with the screw at value
1
and adjust from there for optimal focus during setup. If you're following a specific SOP, it might provide additional details for your equipment.
Place the infrared-mirror onto the head coil¶
- Detach the standard mirror's frame from the head coil, if it is placed there.
- Take the infrared mirror out of the «fMRI usage» box. It should be always protected by a mask unless in use.
This infrared mirror is the most delicate part, because the mirror cannot be replaced nor cleaned. This mirror is EXTREMELY EXPENSIVE.
- Get two gloves (e.g., from the box hanging at the entrance of the scanner room)
- Put the gloves on, and DON'T TOUCH ANYTHING. You must have the standard mirror dismounted and ahead of this step.
- WITH THE GLOVES proceed to extract the infra-red mirror from its box, being extremely careful. YOU CAN ONLY TOUCH THE MIRROR WITH GLOVES, because it cannot be cleaned up. Watch out for FINGERPRINTS and once taken out of the protection mask, IMMEDIATELY AND CAREFULLY ATTACH IT to the head coil.
Preparation in the scanner room¶
Connect the external cables to ET and scanner¶
- Unroll and connect the cables (two plugs for the black, one plug for the orange).
No photo here due to magnetic field.
Place the eye tracker and screen¶
- Place the glass plate (stored in JB's office) on the scanner
- Position the ET on the glass plate according to the stickers on the plate.
Hold the ET arm FIRMLY, because the magnetic field imposes some resistance.
-
Place the half-circle one-direction screen, which is on the table behind the scanner, onto the glass plate. Position it between the projector and the eye tracker to reflect the projector's image.
-
Check the output of the following command and verify that IP/mask is 100.1.1.2/24, and the protocol is IP version 4.
-
Check whether the link is properly established. The ET should respond to echos sent from a terminal with:
Place the participant¶
Place the subject on the bed¶
- Provide the participant with a blanket, ear plugs and sand bags.
- Adjust the head coil and the mirror. If necessary, apply some pads to adjust the participant's head position to ensure the forehead tightly positioned against the head coil.
- Ensure the participant does not cross the legs.
- Provide the participant with the emergency button and explain that it can be pressed it in case of an emergency.
Adjust the scanner before send the subject inside¶
- Twist the knob to adjust the height of the bed and wait for it to stop.
- Gently move the participant with the manual controls. Stop when the head is under the head-localizer. Instruct the participant to close the eyes.
- Turn on the red light to localize the head. Put one hand on the head coil, then turn the knob left or right to align the red light with the mark on the head coil. Once aligned, turn off the red light and instruct the participant to open the eyes.
- Turn off the ventilation and set the scanner light to the minimum level.
- Send the participant into the scanner, then proceed to the console at the back of scanner.
Adjust the lens of eye tracker¶
- Point the lens of eye tracker towards the participant's right eye.
- The default position of the screw on the lens can be set to around 1 for convenient adjustment.
- Rotate the lens until the pupil is in focus on the screen during camera mode. Adjust until the image is sharp, with both the pupil and eyelashes well defined.
ET Calibration¶
Inform the participant¶
Inform the participant that you are leaving the room and will shortly come back for a final preparation.
Open psychopy in the psychopy laptop¶
If you are connecting the eye tracker to the experimental laptop for the first time, you will need to configure it (see Section 0).
Run the experiment on psychopy¶
Click the Run Experiment
button, or run the experiment from the terminal by typing:
python experiment.py
. All the experiments must have a calibration and validation phase before the experiment itself (they come with the software).
Click here to check out the psychopy code for the 2.0 MR-Eye study, and here for the MR-Eye Track study
Example psychopy project (MR-Eye Track)
Run the calibration¶
Once the stimulation begins, follow the messages on the screen to run the calibration, make sure the following options are selected correctly
- Calibration Type:
5 points calibration
- Sampling rate:
1k
- Tracking mode:
Pupil-CR
- Pupil Tracking:
Ellipse
- Camera Position:
Right
Apply threshold to find the pupil¶
- On the ET PC, click
Apply Threshold
(top left corner, as shown in the figure below). Ensure that the pupil is detected and that you see the blue cross on the eye. If you encounter issues, check the lighting inside the scanner (ensure it's not too bright or too dim) and verify the participant's position inside the coil. Once the calibration starts, accept the calibration points when they turn green by clickingAccept Fixation
. - If the calibration was successful, you will see the sentence
calibration successful
at the bottom in green. Check the stability of the accepted points and overall score of the calibration.
If the calibration points form a cross, it is the perfect calibration.
Follow up with the validation¶
What you should see in an ideal situation is: the reference dot on the center of the screen and another dot that corresponds to the pupil calibration. The calibration dot is more or less stable moving a little around the reference dot.
If the calibration dot is unstable and is moving around far from the reference dot, the experimenter should go back clicking the restart button, adjust the contrast and redo the calibration. Once the calibration dot is quite stable, proceed with the validation clicking the accept fixation.
Go into the scanner room and inform the participant¶
Inform the participant that you are leaving the room and will now close the door to start. Let them also know that you are going to communicate with them very shortly to check that communications through the speaker are functioning.
Exit the Scanning Room¶
Close the Scanning Room door¶
Running the scanning session¶
Run the Experiment¶
Click here to check out the psychopy code for the 2.0 MR-Eye study, and here for the MR-Eye Track study
- At the end of the ET calibration we are ready to continue with the experiment.
- Wait for the sentence regarding the initial description of the task: “In this task you will see...”
Due to the upgrade of the scanner, it cannot immediately start the acquisition after receives the trigger signal from the SyncBox. Thus, we need to extract the temporal information of the scanner and ET respectively. In order to make such post-processing easier, we need to first start the acquisition, and then the eye tracker. Thus, the first trigger recorded in the pmu in the raw data will be exactly the same trigger that starts the eye tracker.
The order: start of scanner -> press the button of SyncBox is important and cannot be exchanged.
- Now two people need to get ready beside the SyncBox and the scanner.
- One person first start the scanner acquisition.
- Then, another person press
start session
on the sync box clicking the round button. - The stimulation will start with the ET recording.
Run the scanning sequence¶
It includes a head-scout (64-ch head-coil), a high-resolution anatomical image (mprage), and other protocols depending on the project: T1w-LIBRE for MR-Eye Track and T1w-LIBRE, T1w-VIBE, T2w-LIBRE, and T2w-TSE.
Check this video for the complete acquisition process:
Your browser does not support the video? Click here to download it.
Session Completed¶
- At the end of the stimulation, click “t” on the experimental laptop and click the round button on the SyncBox to stop the running session.
- The exam is over, inform the participant that the session has concluded.
- You can proceed with the tear-down protocol.
Session Tear-Down¶
Showing the Participant Out¶
- Enter the scanner room, and announce yourself to the participant saying that you will get out the participant in a few seconds.
- Extract the participant by pressing the extraction button and then gently rolling the central knob. Alternatively, you can just press the Home button.
- Remove the upper side of the head coil:
- Unplug the head coil from the bed connector.
- Lift the lever that releases the upper part of the coil and put it aside (e.g., inside the bore or on a chair next to the scanner).
- Help the participant sit down.
- Help the participant step down and accompany them out to the control room.
- Help the participant recover their personal belongings and change clothes if necessary.
- Give the participant the corresponding compensation for the participation and transportation.
- Ask the participant to sign the receipt of the amount of the financial compensation.
ET setting¶
- Place the half-circle screen back to the table behind the scanner.
- Unplug the two cables (signal and power) connected to the ET arm.
- Roll the two ET cables and put them in the cupboard inside the Scanning room.
- Remove the mirror frame from its rails mounted on the head coil and lay it on the bed.
- Put the gloves on and cover the infrared mirror with a mask for storage.
Clearing up the Scanner¶
- Unplug the cable on the scanner from SyncBox and roll it back to the shelf.
- Remove used blankets and bed-sheets ONE-BY-ONE: extend them to let any forgotten items fall on the floor before you fold it; and dispose of them in the adequate bin (soiled linen bag if they are fabric and trash if they are disposable).
- Dispose of all single-use sanitary protections (padding covers, earplugs, etc.).
- Put the pillows back in their designated storage places.
- Remove the head coil and put it in the scanner's bore.
- Remove the back padding elements and put them back in their designated storage.
- Reinstall the spine coil.
- Wipe the bed and the head coil (bottom and upper parts).
- Lock the head coil back with its bottom part without plugging the connectors.
- Put the head coil away with the other head-coils on the shelf next to the scanner.
- Return the bed to its Home position by pressing the button (more info).
- Take the ET arm, the infrared mirror and the plexiglass panel outside to the control room and store them in the ET/fMRI box.
- Exit and close the external door.
Everything that is removed for the experiment needs to be put back in place at the end of the experiment, i.e., position of the bed, coil, emergency button, ears cover.
Collect ET data¶
- Copy data from the subfolder of PsychoPy program into the hard drive.
!!! tip "The subfolder should include the files for one session with the formats like
000001_fixed_dot-16_grid_T1w_2024-10-14_17h24.37.511.EDF
000001_fixed_dot-16_grid_T1w_2024-10-14_17h24.37.511.csv
000001_fixed_dot-16_grid_T1w_2024-10-14_17h24.37.511.log
where '**.EDF' files are eye tracking records,.csv
and.log
files logs the task messages and the corresponding timestamps."
Collect MRI raw data¶
Export Twix raw data¶
- Twix: Username: █████████, Password: ████████████.
- Press
Ctrl+Esc
to open the IDE terminal. - In the IDE terminal: ideacmdtool -> type
4
-> type6
// - Type
Twix
and the Twix data browser opens. - Select the data you want to copy, right click on the mouse -> Copy Total RAID file -> select destination (your hard drive).
- The only useful thing is the physio [select the flag on External Signal] need more explanation
Export the DICOM data (directly reconstructed images from the scanner)¶
- Login as SuperUser by pressing
Tab
+Delete
+(Bottone a DX - 9)
to enter the advance mode. - Export DICOM: select the patient, go to export // File System // Browse -> select
HD
. - Select the “Enhanced” option (1 DICOM / volume) instead of Interoperability (1 DICOM / slice).
The default option is Interoperability
! So we have to change it manually!
Cleaning up the Control Room¶
- Plug back the SyncBox and the VGA projector where they were. Make sure you leave it connected exactly as you found it.
- Cover the eye tracker lens with the lid.
- Unscrew the 50mm lens from the eye tracker and place it back to the bag with the tag
50mm Lens for MRI use
on it. - Make sure the infrared mirror covered with a mask and everything stored safely in the ET/MRI box.
- Store the ET/MRI box back to the office.
- Switch off ET PC.
- Switch off the projector.