Basic Biosignal Manipulation Full
Basic Biosignal Manipulation Full
Basic Biosignal Manipulation Full
CONTENT
1. Introduction
2. File formats
3. Montage
4. Signal manipulation
5. Basic statistics
Biomedical Signal Processing 3
PYTHON DATA
SCIENCE
FRAMEWORK
NUMPY
PANDAS
MATPLOTLIB
Biomedical Signal Processing 4
CONTENT
1. Introduction
2. File formats
3. Montage
4. Signal manipulation
5. Basic statistics
Biomedical Signal Processing 5
Information
•
The file is commonly know as a comma separated values
(csv)
Biomedical Signal Processing 8
CONTENT
1. Introduction
2. File formats
3. Montage
4. Signal manipulation
5. Basic statistics
Biomedical Signal Processing 13
CONTENT
1. Introduction
2. File formats
3. Montage
4. Signal manipulation
5. Basic statistics
Biomedical Signal Processing 19
• So, we have: 8 channels, 2000 points (for trial), and 180 trials
Biomedical Signal Processing 21
• So, we have: 8 channels, 2000 points (for trial), and 180 trials
To solve
• Test for randomness: Random signals are generally expected to display more
excursions about a certain reference level within a specified interval than signals that are
predictable.
• A peak or a trough is defined by a set of three consecutive samples of the signal, with the
central sample being either the maximum or minimum, respectively.
• As the direction of excursion of the signal changes at peaks and troughs, such points are
collectively known as turning points.
• A simple test for a turning point is that the sign of the first-order difference (derivative) at the current
sample of the signal be not equal to that at the preceding sample.
• Given a signal of N samples, the signal may be labeled as being random if the number of
turning points is greater than the threshold ( − 2)
Biomedical Signal Processing 24
• To obtain the space between points remember that each second 1000 samples
are acquired
Biomedical Signal Processing 27
CONTENT
1. Introduction
2. File formats
3. Montage
4. Signal manipulation
5. Basic statistics
28
To solve
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.describe.html
31
Types of Data
Centrality measures
To solve
Centrality measures
35
Variability measures
• SD is a positive number
• SD is affected by outliers
• The smallest possible value of SD is zero.
• If SD is zero, all the numbers in a dataset have the same value.
36
Variability measures
37
Graphical inspection
Boxplot
One approach to reveal the data distribution is to find a Five-
Number Summary from our dataset. The Five-Number
Summary includes:
• The minimum
• The 25th percentile or the first quartile (Q1)
• The median
• The 75th percentile or the third quartile (Q3)
• The maximum
Graphical inspection
Boxplot
39
Graphical inspection
Boxplot
40
Graphical inspection
Histogram
Is a graphical display that uses rectangular bars to show the
frequency distribution of a set of numerical data.
41
Graphical inspection
Histogram
42
Graphical inspection
To solve
BASIC EEG ANALYSIS Testing procedures for non-stationarity and non-linearity in physiological signals
BASIC EEG ANALYSISTesting procedures for non-stationarity and non-linearity in physiological signals
• The histograms are constructed for the first and second half of data
separately and obvious non-gaussianity could be seen during the task
performance.
BASIC EEG ANALYSIS Testing procedures for non-stationarity and non-linearity in physiological signals
• The slow decrease of ACF for large lags indicates long-range correlation,
which may be due to non-stationarity and/or dynamic non-linearity.
• If the shape of ACF remains the same, this may be a typical case of non-
stationarity.
48
• Fig. 2 shows the plots of ACF computed for the part of the same EEG.
• Discuss, using all the posible graphs and data previously discussed, the
stationarity and nonlinearity in the signals in the DataFrame