SlideShare a Scribd company logo
1 of 77
Download to read offline
MEG and EEG analysis with the
FieldTrip toolbox
Robert Oostenveld
Donders Institute, Radboud University, Nijmegen, NL
NatMEG, Karolinska Institute, Stockholm, SE
What is FieldTrip
a MATLAB toolbox for the analysis of MEG, EEG
and animal electrophysiology data
can import data from many different file formats
contains algorithms for spectral analysis, source
reconstruction, statistics, connectivity, …
Talk outline
What kind of signals are generated in the brain
How do we record those signals
Analyzing those signals with FieldTrip
Talk outline
What kind of signals are generated in the brain
How do we record those signals
Analyzing those signals with FieldTrip
What kind of signals are generated in the brain
We measure the scalp potentials or field
associated with post-synaptic potentials in
pyramidal neurons
These PSPs represent the exitatory and inhibitory
input that these neurons receive
Usually we study this neuronal input following the
presentation of a stimulus or following a
cognitive event
pre-synaptic
potential
post-synaptic
potential
What generates the currents and fields
pre-synaptic
potential
Na+
post-synaptic
potential
Glu
AMPA
What generates the currents and fields
~ 2 ms
~ 10 ms
What generates the currents and fields
What generates the currents and fields
EEG currents
-
- -
-
-
+
+
+ +
MEG fields
What generates the currents and fields
Vrba, 2001
EEG volume conduction
Electric current  magnetic field
Talk outline
What kind of signals are generated in the brain
How do we record those signals
Analyzing those signals with FieldTrip
How do we record these signals from the brain
Kallara 2012.
Recording small potentials with EEG
Recording small potentials with EEG
Electrode distributions and montages
Recording small potentials with EEG
There’s always a reference electrode
Recording small potentials with EEG
Faster signals (and noise) than sampling rate
Low-pass anti-aliassing filter
Recording small potentials with EEG
Transition between electronic and ionic conduction
High-pass filter to remove offset and drift
Recording small magnetic fields using SQUIDs
Recording small magnetic fields using SQUIDs
Magnetic field
Recording small magnetic fields using SQUIDs
Magnetic field Liquid Helium
-269 oC
Recording small magnetic fields using SQUIDs
Magnetic field Liquid Helium
-269 oC
Recording small magnetic fields using SQUIDs
Liquid Helium
-269 oC
SQUID
Magnetic field
Magnetic field detectors
Superconducting QUantum Interference Device
10−12 0.1 - 1.0 picoTesla human brain
10−9 0.1 -10 nanoTesla heliosphere
10−6 24 microTesla
magnetic tape near
tape head
10−5 300-600 µT microTesla earth's magnetic field
10−3 5 milliTesla typical refrigerator magnet
100 1.5 - 7 Tesla MRI systems
Magnetic field strength - compared
Technical challenges of MEG
Requires sensitive magnetic detectors
Deal with environmental noise
shielding
sensor design
reference sensors for noise subtraction
Shielding - passive
The magnetically shielded room
built by David Cohen at MIT's
Francis Bitter National Magnet
Laboratory in 1969.
Shielding - active
Magnetometer
Magnetometer
Magnetometer
Magnetometer
Planar gradiometer
Environmental noise
Planar gradiometer
Planar gradiometer
Axial gradometer
Environmental noise
Magnetometer
Axial gradiometer
Planar gradiometer
Distance to source
MEG sensor – sensitivity profile
102 magnetometers
204 planar gradiometers
306 channels total
Neuromag/Elekta/Megin
Neuromag/Elekta/Megin
Neuromag/Elekta/Megin
Neuromag/Elekta/Megin
Neuromag/Elekta/Megin
Neuromag/Elekta/Megin
N400 response in MEG
400msec
N400 response - compared between MEG systems
axial magnetic field planar gradient
N400 response - compared between MEG and EEG
axial magnetic field potential distribution
N400
https://www.nature.com/articles/nature26147
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5562927/
https://www.cercamagnetics.com
https://www.kernel.com
http://fieldlineinc.com
https://quspin.com
https://youtu.be/6QizMOa4ZJM
Talk outline
What kind of signals are generated in the brain
How do we record those signals
Analyzing those signals with FieldTrip
M/EEG signal characteristics considered during analysis
timecourse of activity
-> ERP
spectral characteristics
-> power spectrum
temporal changes in power
-> time-frequency response (TFR)
spatial distribution of activity over the head
-> source reconstruction
Evoked activity
repeated over
many trials
averaged
Evoked activity
repeated over
many trials
averaged
Induced activity
repeated over
many trials
averaged
Superposition of source activity
Separating activity of sources
Use the temporal aspects of the data
at the channel level
ERF latencies
ERF difference waves
Filtering the time-series
Spectral decomposition
Use the spatial aspects of the data
Volume conduction model of head
Estimate source model parameters
Talk outline
What kind of signals are generated in the brain
How do we record those signals
Analyzing those signals with FieldTrip
Background on the FieldTrip toolbox
Some FieldTrip basics
dataout = functionname(cfg, datain, …)
functionname(cfg, datain, …)
dataout = functionname(cfg)
the “cfg” argument is a configuration structure, e.g.
cfg.channel = {‘C3’, C4’, ‘F3’, ‘F4’}
cfg.foilim = [1 70]
FieldTrip v.s. default Matlab
dataout = functionname(cfg, datain, …)
dataout = functionname(datain, ‘key1’, ‘value1’, …)
cfg.key1 = value1
cfg.key2 = value2
Using functions in an analysis protocol
ft_preprocessing
ft_rejectartifact
ft_freqanalysis
ft_multiplotTFR ft_freqstatistics
ft_multiplotTFR
FT_PREPROCESSING reads MEG and/or EEG data according to user-specified
trials and applies several user-specified preprocessing steps to the
signals.
Use as
[data] = ft_preprocessing(cfg)
or
[data] = ft_preprocessing(cfg, data)
The first input argument "cfg" is the configuration structure, which
contains all details for the dataset filenames, trials and the
preprocessing options. You can only do preprocessing after defining the
segments of data to be read from the file (i.e. the trials), which is for
example done based on the occurence of a trigger in the data.
...
Using functions in an analysis protocol
ft_preprocessing
ft_rejectartifact
ft_freqanalysis
ft_multiplotTFR ft_freqstatistics
ft_multiplotTFR
cfg = [ ]
cfg.dataset = ‘Subject01.ds’
cfg.bpfilter = [0.01 150]
...
rawdata = ft_preprocessing(cfg)
Using functions in an analysis protocol
ft_preprocessing
ft_rejectartifact
ft_freqanalysis
ft_multiplotTFR ft_freqstatistics
ft_multiplotTFR
cfg = [ ]
cfg.method = ‘mtmfft’
cfg.foilim = [1 120]
...
freqdata = ft_freqanalysis(cfg, rawdata)
Raw data structure
rawData =
label: {151x1 cell}
trial: {1x80 cell}
time: {1x80 cell}
fsample: 300
hdr: [1x1 struct]
cfg: [1x1 struct]
Event related response
timelockData =
label: {151x1 cell}
avg: [151x900 double]
var: [151x900 double]
time: [1x900 double]
dimord: 'chan_time’
cfg: [1x1 struct]
Example use in scripts
cfg = []
cfg.dataset = ‘Subject01.ds’
cfg.bpfilter = [0.01 150]
...
rawdata = ft_preprocessing(cfg)
cfg = []
cfg.method = ‘mtmfft’
cfg.foilim = [1 120]
...
freqdata = ft_freqanalysis(cfg, rawdata)
cfg = []
cfg.method = ‘montecarlo’
cfg.statistic = ‘indepsamplesT’
cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ]
...
freqstat = ft_freqstatistics(cfg, freqdata)
ft_preprocessing
ft_freqanalysis
ft_freqstatistics
ft_topoplotTFR
…
Example use in scripts
cfg = []
cfg.dataset = ‘Subject01.ds’
cfg.bpfilter = [0.01 150]
...
rawdata = ft_preprocessing(cfg)
cfg = []
cfg.method = ‘mtmfft’
cfg.foilim = [1 120]
...
freqdata = ft_freqanalysis(cfg, rawdata)
cfg = []
cfg.method = ‘montecarlo’
cfg.statistic = ‘indepsamplesT’
cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ]
...
freqstat = ft_freqstatistics(cfg, freqdata)
ft_preprocessing
ft_freqanalysis
ft_freqstatistics
ft_topoplotTFR
…
Example use in scripts
cfg = []
cfg.dataset = ‘Subject01.ds’
cfg.bpfilter = [0.01 150]
...
rawdata = ft_preprocessing(cfg)
cfg = []
cfg.method = ‘mtmfft’
cfg.foilim = [1 120]
...
freqdata = ft_freqanalysis(cfg, rawdata)
cfg = []
cfg.method = ‘montecarlo’
cfg.statistic = ‘indepsamplesT’
cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ]
...
freqstat = ft_freqstatistics(cfg, freqdata)
ft_preprocessing
ft_freqanalysis
ft_freqstatistics
ft_topoplotTFR
…
Example use in scripts
cfg = []
cfg.dataset = ‘Subject01.ds’
cfg.bpfilter = [0.01 150]
...
rawdata = ft_preprocessing(cfg)
cfg = []
cfg.method = ‘mtmfft’
cfg.foilim = [1 120]
...
freqdata = ft_freqanalysis(cfg, rawdata)
cfg = []
cfg.method = ‘montecarlo’
cfg.statistic = ‘indepsamplesT’
cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ]
...
freqstat = ft_freqstatistics(cfg, freqdata)
ft_preprocessing
ft_freqanalysis
ft_freqstatistics
ft_topoplotTFR
…
Example use in scripts
cfg = []
cfg.dataset = ‘Subject01.ds’
cfg.bpfilter = [0.01 150]
...
rawdata = ft_preprocessing(cfg)
cfg = []
cfg.method = ‘mtmfft’
cfg.foilim = [1 120]
...
freqdata = ft_freqanalysis(cfg, rawdata)
cfg = []
cfg.method = ‘montecarlo’
cfg.statistic = ‘indepsamplesT’
cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ]
...
freqstat = ft_freqstatistics(cfg, freqdata)
ft_preprocessing
ft_freqanalysis
ft_freqstatistics
ft_topoplotTFR
…
Example use in scripts
subj = {‘S01.ds’, ‘S02.ds’, …}
trig = [1 3 7 9]
for s=1:nsubj
for c=1:ncond
cfg = []
cfg.dataset = subj{s}
cfg.trigger = trig(c)
rawdata{s,c} = ft_preprocessing(cfg)
cfg = []
cfg.method = ‘mtmfft’
cfg.foilim = [1 120]
freqdata{s,c} = ft_freqanalysis(cfg, rawdata{s,c})
end
end
Example use in scripts
subj = {‘S01.ds’, ‘S02.ds’, …}
trig = [1 3 7 9]
for s=1:nsubj
for c=1:ncond
cfg = []
cfg.dataset = subj{s}
cfg.trigger = trig(c)
rawdata = ft_preprocessing(cfg)
filename = sprintf(‘raw%s_%d.mat’, subj{s}, trig(c));
save(filename, ‘rawdata’)
end
end
Example use in distributed computing
subj = {‘S01.ds’, ‘S02.ds’, …}
trig = [1 3 7 9]
for s=1:nsubj
for c=1:ncond
cfgA{s,c} = []
cfgA{s,c}.dataset = subj{s}
cfgA{s,c}.trigger = trig(c)
cfgA{s,c}.outputfile = sprintf(‘raw%s_%d.mat’, subj{s}, trig(c))
cfgB{s,c} = []
cfgB{s,c}.dataset = subj{s}
cfgB{s,c}.trigger = trig(c)
cfgB{s,c}.inputfile = sprintf(‘raw%s_%d.mat’, subj{s}, trig(c));
cfgB{s,c}.outputfile = sprintf(‘freq%s_%d.mat’, subj{s}, trig(c));
end
end
qsubcellfun(@ft_preprocessing, cfgA)
qsubcellfun(@ft_freqanalysis, cfgB)
Talk outline
What kind of signals are generated in the brain
How do we record those signals
Analyzing those signals with FieldTrip
Analyzing MEG and EEG Data with FieldTrip Toolbox

More Related Content

What's hot

Biomedical signal processing
Biomedical signal processingBiomedical signal processing
Biomedical signal processingAbdul Kader
 
3.Frequency Domain Representation of Signals and Systems
3.Frequency Domain Representation of Signals and Systems3.Frequency Domain Representation of Signals and Systems
3.Frequency Domain Representation of Signals and SystemsINDIAN NAVY
 
presurgical evaluation of epilepsy
presurgical evaluation of epilepsypresurgical evaluation of epilepsy
presurgical evaluation of epilepsySrirama Anjaneyulu
 
Event Related Potentials
Event Related PotentialsEvent Related Potentials
Event Related PotentialsRahul Jain
 
Upper Extremity Somatosensory Evoked Potential (Upper SSEP)
Upper Extremity Somatosensory Evoked Potential (Upper SSEP)Upper Extremity Somatosensory Evoked Potential (Upper SSEP)
Upper Extremity Somatosensory Evoked Potential (Upper SSEP)Anurag Tewari MD
 
Somato Sensory Evoked Potentials (SSEP) By: Murtaza Syed
Somato Sensory Evoked Potentials (SSEP) By: Murtaza SyedSomato Sensory Evoked Potentials (SSEP) By: Murtaza Syed
Somato Sensory Evoked Potentials (SSEP) By: Murtaza SyedMurtaza Syed
 
Isi and nyquist criterion
Isi and nyquist criterionIsi and nyquist criterion
Isi and nyquist criterionsrkrishna341
 
Somatosensory evoked potential
Somatosensory evoked potentialSomatosensory evoked potential
Somatosensory evoked potentialdahmed hamed
 
ECG Classification using SVM
ECG Classification using SVMECG Classification using SVM
ECG Classification using SVMMd Kafiul Islam
 
Electroenchephalography
ElectroenchephalographyElectroenchephalography
Electroenchephalographyimabongaigaon
 
Artifacts in EEG - Recognition and differentiation
Artifacts in EEG - Recognition and differentiationArtifacts in EEG - Recognition and differentiation
Artifacts in EEG - Recognition and differentiationRahul Kumar
 
EEG Artifact and How to Resolve
EEG Artifact and How to ResolveEEG Artifact and How to Resolve
EEG Artifact and How to ResolveLalit Bansal
 
Digital Signal Processing-Digital Filters
Digital Signal Processing-Digital FiltersDigital Signal Processing-Digital Filters
Digital Signal Processing-Digital FiltersNelson Anand
 
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS     DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS ajayhakkumar
 

What's hot (20)

EEG ppt
EEG pptEEG ppt
EEG ppt
 
Eeg machine calibration
Eeg machine calibrationEeg machine calibration
Eeg machine calibration
 
Biomedical signal processing
Biomedical signal processingBiomedical signal processing
Biomedical signal processing
 
3.Frequency Domain Representation of Signals and Systems
3.Frequency Domain Representation of Signals and Systems3.Frequency Domain Representation of Signals and Systems
3.Frequency Domain Representation of Signals and Systems
 
presurgical evaluation of epilepsy
presurgical evaluation of epilepsypresurgical evaluation of epilepsy
presurgical evaluation of epilepsy
 
Event Related Potentials
Event Related PotentialsEvent Related Potentials
Event Related Potentials
 
Upper Extremity Somatosensory Evoked Potential (Upper SSEP)
Upper Extremity Somatosensory Evoked Potential (Upper SSEP)Upper Extremity Somatosensory Evoked Potential (Upper SSEP)
Upper Extremity Somatosensory Evoked Potential (Upper SSEP)
 
Somato Sensory Evoked Potentials (SSEP) By: Murtaza Syed
Somato Sensory Evoked Potentials (SSEP) By: Murtaza SyedSomato Sensory Evoked Potentials (SSEP) By: Murtaza Syed
Somato Sensory Evoked Potentials (SSEP) By: Murtaza Syed
 
Isi and nyquist criterion
Isi and nyquist criterionIsi and nyquist criterion
Isi and nyquist criterion
 
EEG artifacts
EEG artifactsEEG artifacts
EEG artifacts
 
EEG artefacts
EEG artefactsEEG artefacts
EEG artefacts
 
Eeg basics.drjma
Eeg basics.drjmaEeg basics.drjma
Eeg basics.drjma
 
Somatosensory evoked potential
Somatosensory evoked potentialSomatosensory evoked potential
Somatosensory evoked potential
 
ECG Classification using SVM
ECG Classification using SVMECG Classification using SVM
ECG Classification using SVM
 
Electroenchephalography
ElectroenchephalographyElectroenchephalography
Electroenchephalography
 
Artifacts in EEG - Recognition and differentiation
Artifacts in EEG - Recognition and differentiationArtifacts in EEG - Recognition and differentiation
Artifacts in EEG - Recognition and differentiation
 
EEG Artifact and How to Resolve
EEG Artifact and How to ResolveEEG Artifact and How to Resolve
EEG Artifact and How to Resolve
 
Digital Signal Processing-Digital Filters
Digital Signal Processing-Digital FiltersDigital Signal Processing-Digital Filters
Digital Signal Processing-Digital Filters
 
EEG Epilepsy
EEG EpilepsyEEG Epilepsy
EEG Epilepsy
 
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS     DE-NOISING OF ECG  USING WAVELETS  AND MULTIWAVELETS
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
 

Similar to Analyzing MEG and EEG Data with FieldTrip Toolbox

FieldTrip tutorial at WIRED20204 in Paris
FieldTrip tutorial at WIRED20204 in ParisFieldTrip tutorial at WIRED20204 in Paris
FieldTrip tutorial at WIRED20204 in ParisRobert Oostenveld
 
Group analyses with FieldTrip
Group analyses with FieldTripGroup analyses with FieldTrip
Group analyses with FieldTripRobert Oostenveld
 
Controller encryption using RSA public-key encryption scheme (Asian Control C...
Controller encryption using RSA public-key encryption scheme (Asian Control C...Controller encryption using RSA public-key encryption scheme (Asian Control C...
Controller encryption using RSA public-key encryption scheme (Asian Control C...Kiminao Kogiso
 
Time Series Analysis for Network Secruity
Time Series Analysis for Network SecruityTime Series Analysis for Network Secruity
Time Series Analysis for Network Secruitymrphilroth
 
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsFast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsHostedbyConfluent
 
Fourier project presentation
Fourier project  presentationFourier project  presentation
Fourier project presentation志璿 楊
 
Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...
Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...
Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...Kiminao Kogiso
 
FPGA-BASED-CNN.pdf
FPGA-BASED-CNN.pdfFPGA-BASED-CNN.pdf
FPGA-BASED-CNN.pdfdajiba
 
Mining of time series data base using fuzzy neural information systems
Mining of time series data base using fuzzy neural information systemsMining of time series data base using fuzzy neural information systems
Mining of time series data base using fuzzy neural information systemsDr.MAYA NAYAK
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxHamzaJaved306957
 
Data structures notes for college students btech.pptx
Data structures notes for college students btech.pptxData structures notes for college students btech.pptx
Data structures notes for college students btech.pptxKarthikVijay59
 
Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...
Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...
Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...William Nadolski
 
Course-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdfCourse-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdfShreeDevi42
 
Advanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdfAdvanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdfHariPrasad314745
 
Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...
Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...
Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...Md Kafiul Islam
 
Monitoring InfluxEnterprise
Monitoring InfluxEnterpriseMonitoring InfluxEnterprise
Monitoring InfluxEnterpriseInfluxData
 
DeepStochLog: Neural Stochastic Logic Programming
DeepStochLog: Neural Stochastic Logic ProgrammingDeepStochLog: Neural Stochastic Logic Programming
DeepStochLog: Neural Stochastic Logic ProgrammingThomas Winters
 
Complex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsComplex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsPeter Solymos
 
Ted Willke, Senior Principal Engineer, Intel Labs at MLconf NYC
Ted Willke, Senior Principal Engineer, Intel Labs at MLconf NYCTed Willke, Senior Principal Engineer, Intel Labs at MLconf NYC
Ted Willke, Senior Principal Engineer, Intel Labs at MLconf NYCMLconf
 
TensorFrames: Google Tensorflow on Apache Spark
TensorFrames: Google Tensorflow on Apache SparkTensorFrames: Google Tensorflow on Apache Spark
TensorFrames: Google Tensorflow on Apache SparkDatabricks
 

Similar to Analyzing MEG and EEG Data with FieldTrip Toolbox (20)

FieldTrip tutorial at WIRED20204 in Paris
FieldTrip tutorial at WIRED20204 in ParisFieldTrip tutorial at WIRED20204 in Paris
FieldTrip tutorial at WIRED20204 in Paris
 
Group analyses with FieldTrip
Group analyses with FieldTripGroup analyses with FieldTrip
Group analyses with FieldTrip
 
Controller encryption using RSA public-key encryption scheme (Asian Control C...
Controller encryption using RSA public-key encryption scheme (Asian Control C...Controller encryption using RSA public-key encryption scheme (Asian Control C...
Controller encryption using RSA public-key encryption scheme (Asian Control C...
 
Time Series Analysis for Network Secruity
Time Series Analysis for Network SecruityTime Series Analysis for Network Secruity
Time Series Analysis for Network Secruity
 
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsFast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
 
Fourier project presentation
Fourier project  presentationFourier project  presentation
Fourier project presentation
 
Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...
Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...
Cyber-Security Enhancements of Networked Control Systems Using Homomorphic En...
 
FPGA-BASED-CNN.pdf
FPGA-BASED-CNN.pdfFPGA-BASED-CNN.pdf
FPGA-BASED-CNN.pdf
 
Mining of time series data base using fuzzy neural information systems
Mining of time series data base using fuzzy neural information systemsMining of time series data base using fuzzy neural information systems
Mining of time series data base using fuzzy neural information systems
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
 
Data structures notes for college students btech.pptx
Data structures notes for college students btech.pptxData structures notes for college students btech.pptx
Data structures notes for college students btech.pptx
 
Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...
Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...
Times Series Feature Extraction Methods of Wearable Signal Data for Deep Lear...
 
Course-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdfCourse-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdf
 
Advanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdfAdvanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdf
 
Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...
Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...
Poster Presentation on "Artifact Characterization and Removal for In-Vivo Neu...
 
Monitoring InfluxEnterprise
Monitoring InfluxEnterpriseMonitoring InfluxEnterprise
Monitoring InfluxEnterprise
 
DeepStochLog: Neural Stochastic Logic Programming
DeepStochLog: Neural Stochastic Logic ProgrammingDeepStochLog: Neural Stochastic Logic Programming
DeepStochLog: Neural Stochastic Logic Programming
 
Complex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsComplex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutions
 
Ted Willke, Senior Principal Engineer, Intel Labs at MLconf NYC
Ted Willke, Senior Principal Engineer, Intel Labs at MLconf NYCTed Willke, Senior Principal Engineer, Intel Labs at MLconf NYC
Ted Willke, Senior Principal Engineer, Intel Labs at MLconf NYC
 
TensorFrames: Google Tensorflow on Apache Spark
TensorFrames: Google Tensorflow on Apache SparkTensorFrames: Google Tensorflow on Apache Spark
TensorFrames: Google Tensorflow on Apache Spark
 

More from Robert Oostenveld

Developing and sharing tools for bioelectromagnetic research
Developing and sharing tools for bioelectromagnetic researchDeveloping and sharing tools for bioelectromagnetic research
Developing and sharing tools for bioelectromagnetic researchRobert Oostenveld
 
Connecting GLIMR with the BIDS initiative
Connecting GLIMR with the BIDS initiativeConnecting GLIMR with the BIDS initiative
Connecting GLIMR with the BIDS initiativeRobert Oostenveld
 
Donders neuroimage toolkit - open science and good practices
Donders neuroimage toolkit -  open science and good practicesDonders neuroimage toolkit -  open science and good practices
Donders neuroimage toolkit - open science and good practicesRobert Oostenveld
 
Using Open Science to advance science - advancing open data
Using Open Science to advance science - advancing open data Using Open Science to advance science - advancing open data
Using Open Science to advance science - advancing open data Robert Oostenveld
 
OHBM 2020 OSR - Brain research data sharing and personal data privacy
OHBM 2020 OSR - Brain research data sharing and personal data privacyOHBM 2020 OSR - Brain research data sharing and personal data privacy
OHBM 2020 OSR - Brain research data sharing and personal data privacyRobert Oostenveld
 
The Brain Imaging Data Structure and its use for fNIRS
The Brain Imaging Data Structure and its use for fNIRSThe Brain Imaging Data Structure and its use for fNIRS
The Brain Imaging Data Structure and its use for fNIRSRobert Oostenveld
 
Organizing EEG data using the Brain Imaging Data Structure
Organizing EEG data using the Brain Imaging Data Structure Organizing EEG data using the Brain Imaging Data Structure
Organizing EEG data using the Brain Imaging Data Structure Robert Oostenveld
 
BIOMAG2018 - Denis Engemann - MNE-HCP
BIOMAG2018 - Denis Engemann - MNE-HCPBIOMAG2018 - Denis Engemann - MNE-HCP
BIOMAG2018 - Denis Engemann - MNE-HCPRobert Oostenveld
 
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspectiveBIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspectiveRobert Oostenveld
 
BIOMAG2018 - Vladimir Litvak - Frontiers
BIOMAG2018 - Vladimir Litvak - FrontiersBIOMAG2018 - Vladimir Litvak - Frontiers
BIOMAG2018 - Vladimir Litvak - FrontiersRobert Oostenveld
 
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDASBIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDASRobert Oostenveld
 
BIOMAG2018 - Darren Price - CamCAN
BIOMAG2018 - Darren Price - CamCANBIOMAG2018 - Darren Price - CamCAN
BIOMAG2018 - Darren Price - CamCANRobert Oostenveld
 
CuttingEEG - Open Science, Open Data and BIDS for EEG
CuttingEEG - Open Science, Open Data and BIDS for EEGCuttingEEG - Open Science, Open Data and BIDS for EEG
CuttingEEG - Open Science, Open Data and BIDS for EEGRobert Oostenveld
 
ChildBrain/Predictable summer school - Open Science
ChildBrain/Predictable summer school - Open Science ChildBrain/Predictable summer school - Open Science
ChildBrain/Predictable summer school - Open Science Robert Oostenveld
 
Using Open Science to accelerate advancements in auditory EEG signal processing
Using Open Science to accelerate advancements in auditory EEG signal processingUsing Open Science to accelerate advancements in auditory EEG signal processing
Using Open Science to accelerate advancements in auditory EEG signal processingRobert Oostenveld
 
Donders Repository - removing barriers for management and sharing of research...
Donders Repository - removing barriers for management and sharing of research...Donders Repository - removing barriers for management and sharing of research...
Donders Repository - removing barriers for management and sharing of research...Robert Oostenveld
 
RDM and the Donders Repository
RDM and the Donders RepositoryRDM and the Donders Repository
RDM and the Donders RepositoryRobert Oostenveld
 
Donders Research Data Repository
Donders Research Data Repository Donders Research Data Repository
Donders Research Data Repository Robert Oostenveld
 
Real-time EEG: timing and block size
Real-time EEG: timing and block sizeReal-time EEG: timing and block size
Real-time EEG: timing and block sizeRobert Oostenveld
 

More from Robert Oostenveld (20)

Developing and sharing tools for bioelectromagnetic research
Developing and sharing tools for bioelectromagnetic researchDeveloping and sharing tools for bioelectromagnetic research
Developing and sharing tools for bioelectromagnetic research
 
Connecting GLIMR with the BIDS initiative
Connecting GLIMR with the BIDS initiativeConnecting GLIMR with the BIDS initiative
Connecting GLIMR with the BIDS initiative
 
Donders neuroimage toolkit - open science and good practices
Donders neuroimage toolkit -  open science and good practicesDonders neuroimage toolkit -  open science and good practices
Donders neuroimage toolkit - open science and good practices
 
The Donders Repository
The Donders RepositoryThe Donders Repository
The Donders Repository
 
Using Open Science to advance science - advancing open data
Using Open Science to advance science - advancing open data Using Open Science to advance science - advancing open data
Using Open Science to advance science - advancing open data
 
OHBM 2020 OSR - Brain research data sharing and personal data privacy
OHBM 2020 OSR - Brain research data sharing and personal data privacyOHBM 2020 OSR - Brain research data sharing and personal data privacy
OHBM 2020 OSR - Brain research data sharing and personal data privacy
 
The Brain Imaging Data Structure and its use for fNIRS
The Brain Imaging Data Structure and its use for fNIRSThe Brain Imaging Data Structure and its use for fNIRS
The Brain Imaging Data Structure and its use for fNIRS
 
Organizing EEG data using the Brain Imaging Data Structure
Organizing EEG data using the Brain Imaging Data Structure Organizing EEG data using the Brain Imaging Data Structure
Organizing EEG data using the Brain Imaging Data Structure
 
BIOMAG2018 - Denis Engemann - MNE-HCP
BIOMAG2018 - Denis Engemann - MNE-HCPBIOMAG2018 - Denis Engemann - MNE-HCP
BIOMAG2018 - Denis Engemann - MNE-HCP
 
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspectiveBIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
BIOMAG2018 - Tzvetan Popov - HCP from a user's perspective
 
BIOMAG2018 - Vladimir Litvak - Frontiers
BIOMAG2018 - Vladimir Litvak - FrontiersBIOMAG2018 - Vladimir Litvak - Frontiers
BIOMAG2018 - Vladimir Litvak - Frontiers
 
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDASBIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
BIOMAG2018 - Jan-Mathijs Schoffelen - COBIDAS
 
BIOMAG2018 - Darren Price - CamCAN
BIOMAG2018 - Darren Price - CamCANBIOMAG2018 - Darren Price - CamCAN
BIOMAG2018 - Darren Price - CamCAN
 
CuttingEEG - Open Science, Open Data and BIDS for EEG
CuttingEEG - Open Science, Open Data and BIDS for EEGCuttingEEG - Open Science, Open Data and BIDS for EEG
CuttingEEG - Open Science, Open Data and BIDS for EEG
 
ChildBrain/Predictable summer school - Open Science
ChildBrain/Predictable summer school - Open Science ChildBrain/Predictable summer school - Open Science
ChildBrain/Predictable summer school - Open Science
 
Using Open Science to accelerate advancements in auditory EEG signal processing
Using Open Science to accelerate advancements in auditory EEG signal processingUsing Open Science to accelerate advancements in auditory EEG signal processing
Using Open Science to accelerate advancements in auditory EEG signal processing
 
Donders Repository - removing barriers for management and sharing of research...
Donders Repository - removing barriers for management and sharing of research...Donders Repository - removing barriers for management and sharing of research...
Donders Repository - removing barriers for management and sharing of research...
 
RDM and the Donders Repository
RDM and the Donders RepositoryRDM and the Donders Repository
RDM and the Donders Repository
 
Donders Research Data Repository
Donders Research Data Repository Donders Research Data Repository
Donders Research Data Repository
 
Real-time EEG: timing and block size
Real-time EEG: timing and block sizeReal-time EEG: timing and block size
Real-time EEG: timing and block size
 

Recently uploaded

Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfSELF-EXPLANATORY
 
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingBase editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingNetHelix
 
Good agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptxGood agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptxSimeonChristian
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayupadhyaymani499
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxFarihaAbdulRasheed
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...Universidade Federal de Sergipe - UFS
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)itwameryclare
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxpriyankatabhane
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologycaarthichand2003
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024innovationoecd
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationColumbia Weather Systems
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptJoemSTuliba
 

Recently uploaded (20)

Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
 
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingBase editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
 
Good agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptxGood agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptx
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyay
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort ServiceHot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
 
Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technology
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather Station
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.ppt
 

Analyzing MEG and EEG Data with FieldTrip Toolbox

  • 1. MEG and EEG analysis with the FieldTrip toolbox Robert Oostenveld Donders Institute, Radboud University, Nijmegen, NL NatMEG, Karolinska Institute, Stockholm, SE
  • 2. What is FieldTrip a MATLAB toolbox for the analysis of MEG, EEG and animal electrophysiology data can import data from many different file formats contains algorithms for spectral analysis, source reconstruction, statistics, connectivity, …
  • 3. Talk outline What kind of signals are generated in the brain How do we record those signals Analyzing those signals with FieldTrip
  • 4. Talk outline What kind of signals are generated in the brain How do we record those signals Analyzing those signals with FieldTrip
  • 5. What kind of signals are generated in the brain We measure the scalp potentials or field associated with post-synaptic potentials in pyramidal neurons These PSPs represent the exitatory and inhibitory input that these neurons receive Usually we study this neuronal input following the presentation of a stimulus or following a cognitive event
  • 8. ~ 2 ms ~ 10 ms What generates the currents and fields
  • 9. What generates the currents and fields
  • 12. What generates the currents and fields Vrba, 2001
  • 14. Electric current  magnetic field
  • 15. Talk outline What kind of signals are generated in the brain How do we record those signals Analyzing those signals with FieldTrip
  • 16. How do we record these signals from the brain
  • 17. Kallara 2012. Recording small potentials with EEG
  • 18. Recording small potentials with EEG Electrode distributions and montages
  • 19. Recording small potentials with EEG There’s always a reference electrode
  • 20. Recording small potentials with EEG Faster signals (and noise) than sampling rate Low-pass anti-aliassing filter
  • 21. Recording small potentials with EEG Transition between electronic and ionic conduction High-pass filter to remove offset and drift
  • 22. Recording small magnetic fields using SQUIDs
  • 23. Recording small magnetic fields using SQUIDs Magnetic field
  • 24. Recording small magnetic fields using SQUIDs Magnetic field Liquid Helium -269 oC
  • 25. Recording small magnetic fields using SQUIDs Magnetic field Liquid Helium -269 oC
  • 26. Recording small magnetic fields using SQUIDs Liquid Helium -269 oC SQUID Magnetic field
  • 27. Magnetic field detectors Superconducting QUantum Interference Device
  • 28. 10−12 0.1 - 1.0 picoTesla human brain 10−9 0.1 -10 nanoTesla heliosphere 10−6 24 microTesla magnetic tape near tape head 10−5 300-600 µT microTesla earth's magnetic field 10−3 5 milliTesla typical refrigerator magnet 100 1.5 - 7 Tesla MRI systems Magnetic field strength - compared
  • 29. Technical challenges of MEG Requires sensitive magnetic detectors Deal with environmental noise shielding sensor design reference sensors for noise subtraction
  • 30. Shielding - passive The magnetically shielded room built by David Cohen at MIT's Francis Bitter National Magnet Laboratory in 1969.
  • 40. Magnetometer Axial gradiometer Planar gradiometer Distance to source MEG sensor – sensitivity profile
  • 41. 102 magnetometers 204 planar gradiometers 306 channels total Neuromag/Elekta/Megin
  • 47. N400 response in MEG 400msec
  • 48. N400 response - compared between MEG systems axial magnetic field planar gradient
  • 49. N400 response - compared between MEG and EEG axial magnetic field potential distribution N400
  • 53. Talk outline What kind of signals are generated in the brain How do we record those signals Analyzing those signals with FieldTrip
  • 54. M/EEG signal characteristics considered during analysis timecourse of activity -> ERP spectral characteristics -> power spectrum temporal changes in power -> time-frequency response (TFR) spatial distribution of activity over the head -> source reconstruction
  • 59. Separating activity of sources Use the temporal aspects of the data at the channel level ERF latencies ERF difference waves Filtering the time-series Spectral decomposition Use the spatial aspects of the data Volume conduction model of head Estimate source model parameters
  • 60. Talk outline What kind of signals are generated in the brain How do we record those signals Analyzing those signals with FieldTrip Background on the FieldTrip toolbox
  • 61. Some FieldTrip basics dataout = functionname(cfg, datain, …) functionname(cfg, datain, …) dataout = functionname(cfg) the “cfg” argument is a configuration structure, e.g. cfg.channel = {‘C3’, C4’, ‘F3’, ‘F4’} cfg.foilim = [1 70]
  • 62. FieldTrip v.s. default Matlab dataout = functionname(cfg, datain, …) dataout = functionname(datain, ‘key1’, ‘value1’, …) cfg.key1 = value1 cfg.key2 = value2
  • 63. Using functions in an analysis protocol ft_preprocessing ft_rejectartifact ft_freqanalysis ft_multiplotTFR ft_freqstatistics ft_multiplotTFR FT_PREPROCESSING reads MEG and/or EEG data according to user-specified trials and applies several user-specified preprocessing steps to the signals. Use as [data] = ft_preprocessing(cfg) or [data] = ft_preprocessing(cfg, data) The first input argument "cfg" is the configuration structure, which contains all details for the dataset filenames, trials and the preprocessing options. You can only do preprocessing after defining the segments of data to be read from the file (i.e. the trials), which is for example done based on the occurence of a trigger in the data. ...
  • 64. Using functions in an analysis protocol ft_preprocessing ft_rejectartifact ft_freqanalysis ft_multiplotTFR ft_freqstatistics ft_multiplotTFR cfg = [ ] cfg.dataset = ‘Subject01.ds’ cfg.bpfilter = [0.01 150] ... rawdata = ft_preprocessing(cfg)
  • 65. Using functions in an analysis protocol ft_preprocessing ft_rejectartifact ft_freqanalysis ft_multiplotTFR ft_freqstatistics ft_multiplotTFR cfg = [ ] cfg.method = ‘mtmfft’ cfg.foilim = [1 120] ... freqdata = ft_freqanalysis(cfg, rawdata)
  • 66. Raw data structure rawData = label: {151x1 cell} trial: {1x80 cell} time: {1x80 cell} fsample: 300 hdr: [1x1 struct] cfg: [1x1 struct]
  • 67. Event related response timelockData = label: {151x1 cell} avg: [151x900 double] var: [151x900 double] time: [1x900 double] dimord: 'chan_time’ cfg: [1x1 struct]
  • 68. Example use in scripts cfg = [] cfg.dataset = ‘Subject01.ds’ cfg.bpfilter = [0.01 150] ... rawdata = ft_preprocessing(cfg) cfg = [] cfg.method = ‘mtmfft’ cfg.foilim = [1 120] ... freqdata = ft_freqanalysis(cfg, rawdata) cfg = [] cfg.method = ‘montecarlo’ cfg.statistic = ‘indepsamplesT’ cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ] ... freqstat = ft_freqstatistics(cfg, freqdata) ft_preprocessing ft_freqanalysis ft_freqstatistics ft_topoplotTFR …
  • 69. Example use in scripts cfg = [] cfg.dataset = ‘Subject01.ds’ cfg.bpfilter = [0.01 150] ... rawdata = ft_preprocessing(cfg) cfg = [] cfg.method = ‘mtmfft’ cfg.foilim = [1 120] ... freqdata = ft_freqanalysis(cfg, rawdata) cfg = [] cfg.method = ‘montecarlo’ cfg.statistic = ‘indepsamplesT’ cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ] ... freqstat = ft_freqstatistics(cfg, freqdata) ft_preprocessing ft_freqanalysis ft_freqstatistics ft_topoplotTFR …
  • 70. Example use in scripts cfg = [] cfg.dataset = ‘Subject01.ds’ cfg.bpfilter = [0.01 150] ... rawdata = ft_preprocessing(cfg) cfg = [] cfg.method = ‘mtmfft’ cfg.foilim = [1 120] ... freqdata = ft_freqanalysis(cfg, rawdata) cfg = [] cfg.method = ‘montecarlo’ cfg.statistic = ‘indepsamplesT’ cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ] ... freqstat = ft_freqstatistics(cfg, freqdata) ft_preprocessing ft_freqanalysis ft_freqstatistics ft_topoplotTFR …
  • 71. Example use in scripts cfg = [] cfg.dataset = ‘Subject01.ds’ cfg.bpfilter = [0.01 150] ... rawdata = ft_preprocessing(cfg) cfg = [] cfg.method = ‘mtmfft’ cfg.foilim = [1 120] ... freqdata = ft_freqanalysis(cfg, rawdata) cfg = [] cfg.method = ‘montecarlo’ cfg.statistic = ‘indepsamplesT’ cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ] ... freqstat = ft_freqstatistics(cfg, freqdata) ft_preprocessing ft_freqanalysis ft_freqstatistics ft_topoplotTFR …
  • 72. Example use in scripts cfg = [] cfg.dataset = ‘Subject01.ds’ cfg.bpfilter = [0.01 150] ... rawdata = ft_preprocessing(cfg) cfg = [] cfg.method = ‘mtmfft’ cfg.foilim = [1 120] ... freqdata = ft_freqanalysis(cfg, rawdata) cfg = [] cfg.method = ‘montecarlo’ cfg.statistic = ‘indepsamplesT’ cfg.design = [1 2 1 2 2 1 2 1 1 2 ... ] ... freqstat = ft_freqstatistics(cfg, freqdata) ft_preprocessing ft_freqanalysis ft_freqstatistics ft_topoplotTFR …
  • 73. Example use in scripts subj = {‘S01.ds’, ‘S02.ds’, …} trig = [1 3 7 9] for s=1:nsubj for c=1:ncond cfg = [] cfg.dataset = subj{s} cfg.trigger = trig(c) rawdata{s,c} = ft_preprocessing(cfg) cfg = [] cfg.method = ‘mtmfft’ cfg.foilim = [1 120] freqdata{s,c} = ft_freqanalysis(cfg, rawdata{s,c}) end end
  • 74. Example use in scripts subj = {‘S01.ds’, ‘S02.ds’, …} trig = [1 3 7 9] for s=1:nsubj for c=1:ncond cfg = [] cfg.dataset = subj{s} cfg.trigger = trig(c) rawdata = ft_preprocessing(cfg) filename = sprintf(‘raw%s_%d.mat’, subj{s}, trig(c)); save(filename, ‘rawdata’) end end
  • 75. Example use in distributed computing subj = {‘S01.ds’, ‘S02.ds’, …} trig = [1 3 7 9] for s=1:nsubj for c=1:ncond cfgA{s,c} = [] cfgA{s,c}.dataset = subj{s} cfgA{s,c}.trigger = trig(c) cfgA{s,c}.outputfile = sprintf(‘raw%s_%d.mat’, subj{s}, trig(c)) cfgB{s,c} = [] cfgB{s,c}.dataset = subj{s} cfgB{s,c}.trigger = trig(c) cfgB{s,c}.inputfile = sprintf(‘raw%s_%d.mat’, subj{s}, trig(c)); cfgB{s,c}.outputfile = sprintf(‘freq%s_%d.mat’, subj{s}, trig(c)); end end qsubcellfun(@ft_preprocessing, cfgA) qsubcellfun(@ft_freqanalysis, cfgB)
  • 76. Talk outline What kind of signals are generated in the brain How do we record those signals Analyzing those signals with FieldTrip