<p>The EEG signature of eye blinks is typically visible for about 200ms of data. When you want to move a window of 50 to 200 samples, I assume that your sampling frequency is 1000Hz (you should specify this in your next question).</p>

<p>A classical feature for eye blink detection is the <em>peak-to-peak amplitude</em>, which is the absolute difference of the maximum amplitude and the minimum amplitude of the EEG within your window. Another feature could be the variance within your EEG window.</p>

<p>Pseudocode:</p>

<pre><code>peak_to_peak_amp = abs(window.max() - window.min())
variance = var(window)
</code></pre>

<p>Note that both of these features are rather unspecific to eye blinks and will have a hard time to distinguish blinks from other peaks in the data. For this reason, the methods are often combined with filtering of the data and converting the amplitudes in microvolts to <a href="https://en.wikipedia.org/wiki/Standard_score" rel="nofollow noreferrer">z-scores</a>.</p>

<p>For reading I suggest chapter 6 in the canonical book by Steven Luck: <a href="https://mitpress.mit.edu/books/introduction-event-related-potential-technique-second-edition" rel="nofollow noreferrer">An Introduction to the Event-Related Potential Technique</a></p>

CC BY-SA 4.0
2018-06-02T11:12:03.887Z
2018-07-03T06:04:10.673Z
2018-07-03T06:04:10.673Z
S.A.
<p>I am looking to detect blink events in real-time single channel EEG. Classification of a moving window of samples to determine whether a blink artifact exists requires feature extraction (except when using deep learning, I am not experienced enough for this). What features would be useful to extract from a window of approx. 50-200 samples of time series data for detecting a blink event. The blink event can be easily seen in the below picture:
<a href="https://i.sstatic.net/X0rtH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/X0rtH.png" alt="Blink event in EEG data"></a></p>

<eeg><signal-processing>
Features for blink detection in real-time single channel EEG
user45739
# Features for blink detection in real-time single channel EEG

(Asked by: username_0 on 2018-02-05)

I am looking to detect blink events in real-time single channel EEG. Classification of a moving window of samples to determine whether a blink artifact exists requires feature extraction (except when using deep learning, I am not experienced enough for this). What features would be useful to extract from a window of approx. 50-200 samples of time series data for detecting a blink event. The blink event can be easily seen in the below picture:
[![Blink event in EEG data](https://i.sstatic.net/X0rtH.png)](https://i.sstatic.net/X0rtH.png)

**Tags:** eeg, signal-processing


---

## 1 answers

### Answer by username_1 on 2018-06-02. Score: 2

The EEG signature of eye blinks is typically visible for about 200ms of data. When you want to move a window of 50 to 200 samples, I assume that your sampling frequency is 1000Hz (you should specify this in your next question).
A classical feature for eye blink detection is the peak-to-peak amplitude, which is the absolute difference of the maximum amplitude and the minimum amplitude of the EEG within your window. Another feature could be the variance within your EEG window.
Pseudocode:
peak_to_peak_amp = abs(window.max() - window.min())
variance = var(window)

Note that both of these features are rather unspecific to eye blinks and will have a hard time to distinguish blinks from other peaks in the data. For this reason, the methods are often combined with filtering of the data and converting the amplitudes in microvolts to z-scores.
For reading I suggest chapter 6 in the canonical book by Steven Luck: An Introduction to the Event-Related Potential Technique


---

