1 of 11

INTRO TO FMRI DATA:

WHAT IS FMRI DATA?

MODULE 3: WORKING WITH FMRI DATA

1

2 of 11

SECTION OVERVIEW

3

What is fMRI Data?

1

Visualizing fMRI Data

2

fMRI Dataset Preprocessing

2

3 of 11

  • fMRI measures activity of the brain by tracking blood oxygenation levels in functional areas in the brain
  • Functional activity in the brain is measured by the BOLD signal

WHAT WE KNOW...

3

4 of 11

KEY QUESTIONS

  • What does fMRI data look like?

  • How do we load fMRI data?

  • What are some basic manipulations of fMRI data we can do?

4

5 of 11

REMEMBER:

What is fMRI Data?

  • BOLD signal
  • Spatial Resolution (Voxels)
    • Gives us (X, Y, Z) coordinates
  • Temporal Resolution
    • Gives us T coordinate

AUTHOR: HAYA HALABIEH

5

6 of 11

  • DICOM: Digital Imaging and Communications in Medicine

fMRI Images are usually in the DICOM file format:

DICOM File Format

openneuro.org

6

7 of 11

  • Contains coordinate definitions relating voxel index (i, j, k) to spatial location (x, y, z)
  • Standardized way to store vector-valued datasets over multi-dimensional domains
  • Doesn’t directly store fMRI data

fMRI data can also be in the NIfTI1 or NIfTI2 format:

NIfTI File Format

BrainVoyager

7

8 of 11

  • NiBabel package
    • Provides read/write access to common neuroimaging file formats:
      • GIFTI, NIfTI1, NIfTI2, DICOM, etc.
    • Using the package:
      • In this lesson, we’ll be looking at and manipulating an empty example NIfTI instance from the nibabel.testing package
        • Example code for loading the NIfTI data using nibabel:

Loading fMRI Data

import nibabel

from nibabel.testing import data_path

image_path = os.path.join(data_path, 'example4d.nii.gz')

img = nibabel.load(image_path)

img

8

9 of 11

# of horizontal slices

Z-dimension

# of time points

Time

X-value of area

X-dimension

Y-value of area

Y-dimension

X

Y

Z

T

Data Format

  • Data Manipulation: Transposing data...

9

10 of 11

  • fMRI data is from measured BOLD signals
    • Typically has 4 dimensions:
      • 3D space + time
  • fMRI data can be in many forms, usually DICOM or NIfTI
  • fMRI data can be loaded using the NiBabel package

  • Complete Lesson 1 Google Colab Assignment
  • Lesson 2: working with experimental fMRI data

SUMMARY & WHAT’S NEXT

Summary:

What’s next:

10

11 of 11

QUESTIONS?

11