Lecture series: Data analysis

46
Lecture series: Data analysis Lectures: Each Tuesday at 16:00 (First lecture: May 21, last lecture: June 25) Thomas Kreuz, ISC, CNR [email protected] http://www.fi.isc.cnr.it/users/thomas.kreuz /

description

Lecture series: Data analysis. Thomas Kreuz , ISC, CNR [email protected] http://www.fi.isc.cnr.it/users/thomas.kreuz /. Lectures: Each Tuesday at 16:00 (First lecture: May 21, last lecture: June 25 ). Other lecture series. Stefano Luccioli : Neuronal models (February/March 2013) - PowerPoint PPT Presentation

Transcript of Lecture series: Data analysis

Page 1: Lecture series: Data analysis

Lecture series: Data analysis

Lectures: Each Tuesday at 16:00

(First lecture: May 21, last lecture: June 25)

Thomas Kreuz, ISC, CNR [email protected]

http://www.fi.isc.cnr.it/users/thomas.kreuz/

Page 2: Lecture series: Data analysis

• Stefano Luccioli: Neuronal models (February/March 2013)

• Roberto Livi / Alessandro Torcini: Dynamical systems theory (March-May 2013)

• Thomas Kreuz: Data analysis (May/June 2013)

• Simona Olmi: Synchronization & Collective dynamics (September/October 2013)

Other lecture series

Page 3: Lecture series: Data analysis

• Introduction to data / time series analysis• Univariate: Measures for individual time series - Linear time series analysis: Autocorrelation, Fourier spectrum - Nonlinear time series analysis: Lyapunov exponent, Dimension, Entropy• Bivariate: Measures for two time series - Measures of synchronization for continuous data (e.g., EEG) cross correlation, coherence, mutual information, phase synchronization, nonlinear interdependence - Measures of directionality: Granger causality, transfer entropy - Measures of synchronization for discrete data (e.g., spike trains): Victor-Purpura distance, van Rossum distance, event synchronization, ISI-distance, SPIKE-distance• Multivariate: Measures of synchronization for multi-neuron data Victor-Purpura and van Rossum population extensions• Applications to electrophysiological signals (in particular single-unit data and EEG from epilepsy patients) Epilepsy – “window to the brain”

This lecture series

Page 4: Lecture series: Data analysis

• Lecture 1: Example (Epilepsy & spike train synchrony), Data acquisition, Dynamical systems

• Lecture 2: Linear measures, Introduction to non-linear dynamics

• Lecture 3: Non-linear measures

• Lecture 4: Measures of continuous synchronization

• Lecture 5: Measures of discrete synchronization(spike trains)

• Lecture 6: Measure comparison & Application to epileptic seizure prediction

Schedule

Page 5: Lecture series: Data analysis

• H. Kantz, T. Schreiber: Nonlinear Time Series Analysis Cambridge University Press, Cambridge, 2003

• H. Abarbanel: Analysis of Observed Chaotic Data Springer, 1997.

• A. Pikovsky, M. Rosenblum, J. Kurths: Synchronization. A Universal Concept in Nonlinear Sciences Cambridge University Press, Cambridge, 2001

• PhD thesis Thomas Kreuz (see homepage) http://webarchiv.fz-juelich.de/nic-series//volume21/nic-series-band21.pdf

• Acknowledgements: Lecture series Klaus Lehnertz, University of Bonn Florian Mormann, University of Bonn

[ Literature ]

Page 6: Lecture series: Data analysis

• Example: Epileptic seizure prediction

• Data acquisition

• Introduction to dynamical systems

• Linear measures

Today’s lecture

Page 7: Lecture series: Data analysis

Example:Epileptic seizure prediction

Page 8: Lecture series: Data analysis

Aim of time series analysis

Knowledge

detail

expand Future(Prediction)

Past(Analysis)

- Compact description of data (Example: Simplified Model)- Interpretation (Examples: Seasonal regularities)- Hypothesis testing (Example: Global warming)

- Simulation (Example: Estimate probability of catastrophic events)- Forecasting (Example: Weather, stock market)- Control (Example: Avoid outliers)

Page 9: Lecture series: Data analysis

Data (especially time series)• Meteorology

• Astronomy

• Seismology

• Economy

• …

• Medicine - Cardiology - … - Neurology

Page 10: Lecture series: Data analysis

Prediction of extreme events• Meteorology: Storms, Tornados, …

• Astronomy: Solar eruptions / sun flares

• Seismology: Earth quakes

• Economy: Stock market crashes, “Black Friday”

• …

• Medicine - Cardiology: Heart attack - … - Neurology: Epileptic seizure

Page 11: Lecture series: Data analysis
Page 12: Lecture series: Data analysis

Medical measurement techniquesMethod Measurement device Principle What is actually measured? Temporal resolution Spatial resolution Pros Cons

Surface EEG (Scalp) Scalp electrodes Extracellular potential mostly EPSPs and IPSPs, smaller excellent, 1 ms poor (spatially smoothed non-invasive Distortion

in amplitude but long-lasting average behavior) Artefacts

spikes cancel out (very short, ~10 cm^2 surface

lowpass-filtered) ~r^4 (no depth)

ECoG (Brain surface) Subdural grid electrodes Extracellular potential Exception: Population spikes in excellent, 1 ms much better localization invasive (epilepsy)

epileptic seiures (high synchrony)

Intracranial EEG Depth electrodes Extracellular potential same as above excellent, 1 ms even better localization very invasive (epilepsy)

brain damage

MEG SQUID (at ~ 3 K) Magnetic fields Intracellular currents excellent, 1 ms < 1 cm, up to 1 mm non-invasive source localization

superconductive loop + (complementary to EEG) better than EEG no contact still not very accurate

2 Josephson junctions no distortion

MRI Receiver coil Disturbance of magnetic Structure (different tissue, almost none (anatomy) vastly improved non-invasive unspecific

Hydrogen dipoles via different amount of water) expensive

short RF energy pulses No neuronal activity inconvenient

fMRI Receiver coil BOLD-effect Metabolism (Energy Production) very slow, delay 0.5 s vastly improved non-invasive unspecific

(Blood Oxygenation Level) Indirect: neuronal activity no temporal sequencing (brain mapping possible) localization expensive

but very unspecific of information flow of cognition inconvenient

PET PET scanner (Sensor ring) Radioactive compound Metabolism (Energy Production) inferior to fMRI inferior to fMRI non-invasive unspecific

accumulates, positrions expensive

annihilate emitting 2 photons inconvenient

in 180deg

Optical Imaging Microscope, photo detector Voltage-sensitive dyes unspecific improved very high, ~0.1 mm minimal damage only surfaces

input/output ?

multi-photon laser scanning Fluorescence photons (mostly intracellular calcium improved very high, ~0.1 mm 3D mostly surfaces

microscopy after laser pulses changes) minimal damage

Patch-clamp direct junction through pipette Current waveforms can be active properties of ion channels excellent, < 1 ms excellent controlled compromises

applied environment brain circuits

Single-unit recordings Brain slice preparations Slices alive for some hours Membrane potential excellent, < 1 ms maximum pharmacological compromises

in vitro specificity brain circuits

Extracellular recordings voltage-sensitive microelectrode Cell isolation multi-unit activity (theoretically up excellent, < 1 ms great, tetrode electrodes parallel very invasive (epilepsy)

sharp-tip or wire tetrode Localization via Triangulation to 1000, in practice <20) (Triangulation) in vivo possible brain damage

Multisite recordings Multi-Electrode-Array (MEA) many recording sites but multi-unit activity (> 100) excellent, < 1 ms excellent parallel even more damaging

Silicon chip small electrode volume in vivo possible

Page 13: Lecture series: Data analysis

• Electrocardiogram (ECG) - transthoracic measurement of the electrical activity of the heart

• Electromyography (EMG) - electrical activity produced by skeletal muscles

• Electrooculography (EOG) - measures the resting potential of the retina

• Electroretinography (ERG) - electrical responses of various cell types in the retina (including the photoreceptors) to stimuli

• Electronystagmography (ENG) - diagnostic test to record involuntary movements of the eye

• Electrogastrogram (EGG) - electrical signals that travel through the stomach muscles

• Electrocorticogram (ECoG) - electrical activity from the cerebral cortex (brain surface)

• Electroencephalogram (EEG) - voltage fluctuations due to ionic current flows within the neurons of the brain (surface / intracranial)

Medical time series

Page 14: Lecture series: Data analysis

• Trauma: Physiological wound caused by an external source

• Infections: Disease caused by the invasion of a micro-organism or virus

• Degeneration: progressive loss of structure or function of neurons, including death of neurons

• Tumors: Abnormal growth of body tissue

• Autoimmune disorders: Immune system attacks and destroys healthy body tissue

• Stroke: Interruption of the blood supply to the brain

Causes of brain disease

Page 15: Lecture series: Data analysis

• Alzheimer’s: Progressive cognition deterioration, ultimate cause unknown

• Attention deficit/hyperactivity disorder(ADHD): caused by structural and biochemical imbalance

• Encephalitis: Inflammation of the brain• Huntington's disease: Degenerative neurological disorder that is

inherited, affects muscle coordination.• Locked-in syndrome: Lesion on the brain stem (complete paralysis).• Meningitis: Inflammation of the protective membranes covering the

brain and spinal cord• Multiple sclerosis: Chronic, inflammatory demyelinating disease,

meaning that the myelin sheath of neurons is damaged• Parkinson's: Death of dopamine-generating cells in the substantia

nigra, a region of the midbrain (cause unknown)• Tourette's syndrome: Tics (not only vocal), genetical factors, inherited• Epilepsy: Seizures, resulting from abnormal, hypersynchronous

neuronal activity in the brain.

Brain diseases

Page 16: Lecture series: Data analysis

~ 1 % of world population suffers from epilepsy ~ 70 % can be treated with antiepileptic drugs ~ 22 % cannot be treated sufficiently ~ 8 % might profit from epilepsy surgery

Epilepsy Center Bonn: presurgical evaluations: 160 cases / year invasive evaluations: 60 - 70 cases / year

Epilepsy

Page 17: Lecture series: Data analysis

Presurgical evaluation- exact localization of seizure generating area (epileptic focus) current gold standard: EEG recording of seizure origin - exact delineation from functionally relevant areas - Estimation of post-operative status (seizure control, neuropsychological deficits, ...)

Surgical intervention- Tailored resection of epileptic focus

Epilepsy surgery

Page 18: Lecture series: Data analysis

Implanted electrodes

Page 19: Lecture series: Data analysis

Epilepsy (inter-ictal EEG)

L

R

Page 20: Lecture series: Data analysis

Epilepsy (ictal EEG)

L

R

Page 21: Lecture series: Data analysis

Movie:Absence

Page 22: Lecture series: Data analysis

Movie:Seizure

Page 23: Lecture series: Data analysis

Motivation / Open questions• Does a pre-ictal state exist (ictus = seizure)?

• Do characterizing measures allow a reliable detection of this state?

Goals / perspectives• Increasing the patient‘s quality of life• Therapy on demand (Medication, Prevention)• Understanding seizure generating processes

Epileptic seizure prediction

Page 24: Lecture series: Data analysis

Microwire recordings in humans

– 64 microwires (40 μm diameter) able torecord single-neuron-activity and LFPs

– Effective recording bandwidth 1 Hz - 10 kHz

Clinical contacts

Setup:

Page 25: Lecture series: Data analysis

Intracranial spike train data

Page 26: Lecture series: Data analysis

Motivation: Spike train synchronySynchronization is a key feature for establishing the communication between different regions of the brain.

Epilepsy results from abnormal, hypersynchronous neuronal activity in the brain.

Accessible brain time series:iEEG (standard) and neuronal spike trains (recent)

EEG-Observation: Drop of synchrony before epileptic seizure (so far not clinically sufficient)

Open question: What happens on the neuronal level?

Needed: Real-time measure of spike train synchrony

Page 27: Lecture series: Data analysis

Movie:SPIKE-Distance

Page 28: Lecture series: Data analysis

Data acquisition

Page 29: Lecture series: Data analysis

• Nominal data (=/≠) Categorical - Fixed set of categories (labels) - Examples: Religion, favorite color, blood type• Ordinal data (=/≠, </>)

Qualitative - Rank ordering possible, but no distance defined - Example: Academic grades• Interval (=/≠, </>, +/-)

Qualitative - Distance between attribute is defined - Examples: Temperature in °C, calendar year• Ratio (=/≠, </>, +/-, x/÷)

Quantitative - Absolute zero exists - Examples: Temperature in K, height, weight, age

[Stanley Smith Stevens, 1946]

Levels of measurement

Page 30: Lecture series: Data analysis

Levels of measurement II

[Trochim, 2006]

[Wharrad, 2004]

Page 31: Lecture series: Data analysis

• Profiles (samples) / Images (pixels) / Volumes

(voxels)

• Continuous data (time series) – Discrete data (sequence of events)

• Univariate / bivariate / multivariate data

• …

Types of data

Page 32: Lecture series: Data analysis

Measurement

System / Object Instrument

Environment

Signal

Beware: Interactions !

Page 33: Lecture series: Data analysis

Data acquisition

Sensor

System / Object

Amplifier AD-Converter

Computer

Filter

Sampling

Page 34: Lecture series: Data analysis

Sampling• Process of converting a signal (a function of continuous

time) into a numeric sequence (a function of discrete time).

• Time series

equally sampled

• Example: sufficient sampling of sine wave (2 sampling values per cycle)

Sampling interval

Sampling frequency

Page 35: Lecture series: Data analysis

Aliasing

• Solution for bandlimited signals: Sampling frequency should at least be twice the highest frequency ().

(Nyquist–Shannon sampling theorem)

Effect that causes different signals to become indistinguishable (or aliases of one another) when sampled.Math. reason: Folding at Nyquist frequency

Page 36: Lecture series: Data analysis

Filtering

Page 37: Lecture series: Data analysis

Filtering: Examples

• Anti-aliasing filter (lowpass)

• Anti-hum filter (notch for 50/60 Hz powerline)

[Artifact: undesired alteration in data, introduced by a technology and/or technique]

• Recording from extracellular microelectrode:

- Lowpass filter Local field potential (LFP) - Highpass filter Multi-unit activity

Page 38: Lecture series: Data analysis

Analog-Digital-Conversion

• Defines data precision

• Example: 10 bit ADC - Voltage: 0-r (range) - Unit value: Quantification error = q/2

• Important: Optimal adjustment of signal via amplifier

Page 39: Lecture series: Data analysis

Introduction to dynamical systems

Page 40: Lecture series: Data analysis

Dynamical system

• System with force (greek ‘dynamo’: dunamio)

• State of system dependent on time

• Change of state dependent on current state

- deterministic: same circumstance same evolution

- stochastic: same circumstance random evolution probability distribution dependent on current state

Page 41: Lecture series: Data analysis

Dynamical system

• Described by time-dependent states

• Evolution of state

- continuous (flow)

- discrete (map)

can be both be linear or non-linear

• Example: sufficient sampling of sine wave (2 sampling values per cycle)

Control parameter

Page 42: Lecture series: Data analysis

Linear systems

• Weak causality

identical causes have the same effect (strong idealization, not realistic in experimental situations)

• Strong causality

similar causes have similar effects (includes weak causality applicable to experimental situations, small deviations in initial conditions; external disturbances)

Page 43: Lecture series: Data analysis

Non-linear systems

Violation of strong causality

Similar causes can have different effects

Sensitive dependence on initial conditions

(Deterministic chaos)

Page 44: Lecture series: Data analysis

Linearity / Non-linearity

Non-linear systems- can have complicated solutions- Changes of parameters and initial conditions lead to non-

proportional effects

Nonlinear systems are the rule, linear system is special case!

Linear systems- have simple solutions- Changes of parameters and initial

conditions lead to proportional effects

Page 45: Lecture series: Data analysis

• Example: Epileptic seizure prediction

• Data acquisition

• Introduction to dynamical systems

Today’s lecture

Page 46: Lecture series: Data analysis

Linear measures

Nonlinear measures

- Introduction: State space reconstruction

- Lyapunov exponent

- Dimensions

- Entropies

- …

Next lecture