# Multi-Lag Analysis of Symbolic Entropies on EEG Recordings for Distress Recognition

^{1}Departamento de Sistemas Informáticos, Escuela Politécnica de Cuenca, Universidad de Castilla-La Mancha, Cuenca, Spain^{2}Instituto de Tecnologías Audiovisuales de Castilla-La Mancha, Universidad de Castilla-La Mancha, Cuenca, Spain^{3}Departamento de Sistemas Informáticos, Escuela Técnica Superior de Ingenieros Industriales, Universidad de Castilla-La Mancha, Albacete, Spain^{4}Instituto de Investigación en Informática de Albacete, Universidad de Castilla-La Mancha, Albacete, Spain^{5}Centro de Investigaciones Ópticas (CONICET La Plata–CIC), C.C. 3, Gonnet, Argentina^{6}Departamento de Ciencias Básicas, Facultad de Ingeniería, Universidad Nacional de La Plata, La Plata, Argentina^{7}Research Group in Electronic, Biomedical and Telecommunication Engineering, Escuela Politécnica de Cuenca, Universidad de Castilla-La Mancha, Cuenca, Spain^{8}CIBERSAM (Biomedical Research Networking Centre in Mental Health), Madrid, Spain

Distress is a critical problem in developed societies given its long-term negative effects on physical and mental health. The interest in studying this emotion has notably increased during last years, being electroencephalography (EEG) signals preferred over other physiological variables in this research field. In addition, the non-stationary nature of brain dynamics has impulsed the use of non-linear metrics, such as symbolic entropies in brain signal analysis. Thus, the influence of time-lag on brain patterns assessment has not been tested. Hence, in the present study two permutation entropies denominated Delayed Permutation Entropy and Permutation Min-Entropy have been computed for the first time at different time-lags to discern between emotional states of calmness and distress from EEG signals. Moreover, a number of curve-related features were also calculated to assess brain dynamics across different temporal intervals. Complementary information among these variables was studied through sequential forward selection and 10-fold cross-validation approaches. According to the results obtained, the multi-lag entropy analysis has been able to reveal new significant insights so far undiscovered, thus notably improving the process of distress recognition from EEG recordings.

## 1. Introduction

Emotions are essential in human communication and interaction, and considerably influence on daily tasks related to cognition, perception and rational decision-making processes (Coan and Allen, 2007). Traditional techniques for emotion recognition are mainly focused on the analysis of physical aspects like facial expressions and speech characteristics (Calvo and D'Mello, 2010). However, given that emotional responses are initiated in the brain and then spread to other biological systems (Gao et al., 2015), interest in electroencephalogram (EEG) signals for emotion recognition has notably increased during the last years (Martínez-Rodrigo et al., 2017; Fernández-Sotos et al., 2018; Ramirez et al., 2018).

Existing affect models include from a few basic emotions (Ekman, 1992) to a wide variety of emotional states derived from the combination of basic ones (Schröder and Cowie, 2011). Russell's circumplex affect model is one of the approaches most widely used for emotion classification (Russell, 1980). In this bidimensional approach, emotions are distributed according to their level of valence (ranging from negative to positive) and arousal (from deactivated to activated). A relevant emotion that is receiving growing attention is negative stress, also called distress, because it presents a high prevalence in developed countries (Bong et al., 2013; Alberdi et al., 2016). Although today short-term distress is not considered a risk factor for health, a chronic condition of this emotion often causes or aggravates physical and mental disorders (Bender and Alloy, 2011; Mozos et al., 2017). In this regard, automatic distress identification from EEG signals would help prevent health problems and improve people's quality of life.

Since neural processes are non-linear and non-stationary, both at cellular and global level (Cao et al., 2015), non-linear metrics applied to EEG signal analysis should provide more relevant findings than linear indices traditionally used (Valenza et al., 2012). But, few studies have applied non-linearity to automatic detection of negative stress through EEG recordings (García-Martínez et al., 2019a). This is the case of symbolic entropies, such as Permutation Entropy (PE) (Bandt and Pompe, 2002) and Amplitude-Aware Permutation Entropy (AAPE) (Azami and Escudero, 2016), having demonstrated their efficiency in discriminating between calmness and distress (Hosseini and Naghibi-Sistani, 2011; Garćıa-Mart́ınez et al., 2017; Martínez-Rodrigo et al., 2019). Here, the quantification of similar patterns is typically obtained through consecutive samples, or their averaging, within a complete time series.

No lag or time delay between patterns is necessary in those cases where the autocorrelation function of the signal presents a steep decay. However, a time series with long-range linear correlations shows a slow decay in its autocorrelation function. Not applying a lag may hinder entropy metrics from properly quantifying the complexity and non-linear dynamics of the signal. Indeed, it has already been demonstrated that time-delayed entropy tests are helpful to diminish the influence of autocorrelation for better evaluation of the non-linearity of time series (Kaffashi et al., 2008). Hence, a multi-lag approach has been applied to localization of epileptogenic areas through EEG recordings (Zhu et al., 2015).

Let us highlight that an improvement of PE called Permutation Min-Entropy (PME) has been recently introduced (Zunino et al., 2015). PME consists of an improved time-delayed symbolic alternative for identifying the existence of hidden temporal correlations in time series. This allows a better discrimination of time series with similar temporal correlations. Moreover, PME has been very recently applied to emotion recognition by using heart rate variability (Xia et al., 2018). The promising outcomes open a door to the hypothesis that time-delayed analysis may uncover existing information in physiological systems, not revealed before through non-delayed or basic multiscale entropy (MSE) analyses. Furthermore, to the best of our knowledge, no previous research has focused on the study of multi-lag approaches for emotion recognition from EEG signals.

For this reason, in the present manuscript a time-delayed version of AAPE—called Delayed Permutation Entropy (DPE)—and PME metrics are applied for the first time with several time delays for the sake of checking the influence of the lag on discrimination between calmness and distress from EEG recordings. The remainder of this paper is structured as follows. Section 2 details the analyzed database, the DPE and PME metrics computed from the EEG recordings and the statistical analysis. Section 3 summarizes the results, which are then discussed in section 4. Finally, section 5 concludes the most remarkable findings related to this study.

## 2. Materials and Methods

### 2.1. Database

EEG signals were extracted from the publicly available Database for Emotion Analysis using Physiological Signals (DEAP) (Koelstra et al., 2012) to guarantee the reproducibility of this study as well as its fair comparison with previous or future works. This dataset contains a total of 1,280 EEG recordings and other peripheral variables from 32 healthy participants with ages ranging 19–37 (mean age of 26.9; 50% male) under different affective conditions. Forty one-minute length video clips with emotional content were used as stimuli in the experiment leading to the dataset. After each visualization, the participants described their emotional state by means of self-assessment manikins (SAM), two graphical scales representing nine intensity levels of valence and arousal (Morris, 1995).

Although the trials contained within the dataset cover the whole valence-arousal space, only two subsets corresponding to distress and calmness emotional states were studied in the present study, as shown in Figure 1. Indeed, calmness and distress groups were selected according to previous works dealing with the same problem (Bastos Filho et al., 2012; Pomer-Escher et al., 2014; García-Martínez et al., 2016; Garćıa-Mart́ınez et al., 2017). Hence, distress trials were selected from arousal and valence levels higher than 5 and lower than 3, respectively. On the other hand, the calmness group contained trials with arousal and valence values lower than 4 and between 4 and 6, respectively. Therefore, a total number of 122 and 137 trials of distress and calmness, respectively, were finally analyzed in this work. Moreover, it is important to highlight that only the last 30 s of each trial were selected for further analysis.

**Figure 1**. Trials distribution included in DEAP database in the arousal–valence space. Selected groups of distress and calmness trials are highlighted.

### 2.2. EEG Signal Preprocessing

EEG signals were recorded at a sampling rate of 512 Hz with 32 electrodes placed according to the 10–20 standard system of electrode location (Klem et al., 1999). Before starting any kind of analysis, the recordings were preprocessed to eliminate noise and artifacts, thus preserving only the information related to brain activity. To this respect, the signals were initially down-sampled to 128 Hz and all EEG channels were re-referenced to the average potential of all electrodes. Next, a forward/backward high-pass filter at 3 Hz and a low-pass filter at 45 Hz cutoff frequency were applied to remove baseline and power line interferences, maintaining the frequency bands of interest in EEG recordings (Koelstra et al., 2012). After that, artifacts derived from physical activity (e.g., facial movements, eye blinks, heart bumping, etc.) and technical sources, such as electrode-pops were eliminated by means of independent component analysis (ICA) (Goh et al., 2017).

A well-known method with ability to automatically identify noisy independent components (ICs) was used (Nolan et al., 2010). Briefly, the algorithm firstly computed correlation between all ICs and electrooculography channels, as well as spatial kurtosis, power spectrum slope, Hurst exponent and median gradient for all ICs. Those components presenting at least an index with a value three times higher than standard deviation for all ICs were then removed. As a final step, the denoised EEG signal was reconstructed from the remaining ICs. It is worth noting that 1.05 ± 0.60 ICs were removed in average for each trial. More precisely, any artifactual IC was identified in 38 trials (14.67%), only one was removed in 168 trials (64.86%) and two were rejected in the remaining 53 trials (20.47%).

The EEG channels presenting high-amplitude noise were also detected and replaced by interpolation from adjacent electrodes (Reis et al., 2014). Although these signals were identified before ICA-based denoising of artifacts, their interpolation was developed after that preprocessing. This approach has been previously used by other authors (Forscher et al., 2016; Pincham et al., 2016; Bennett et al., 2018) and its main goal is to avoid mixing any non-linearity introduced by interpolation into the ICA decomposition (Nolan et al., 2010). Nonetheless, noisy EEG channels did not contribute to the rejection of artifacts (Nolan et al., 2010). As a result, the number of interpolated EEG channels was zero for 162 trials (62.55%), one for 83 trials (32.05%), two for 13 trials (5.02%) and three for the remaining trial (0.39%). Additionally, the most frequently interpolated channels were CP1 (in 21 trials, 21.65%), T8 (in 11 trials, 11.34%), CP5 (in 9 trial, 9.28%), AF4 (in 8 trial, 8.25%), T7 (in 6 trials, 6.19%), and FC2 (in 5 trials, 5.15%). The remaining channels were interpolated in <4% of trials.

### 2.3. Time-Delayed Version of Amplitude-Aware Permutation Entropy

Amplitude-Aware Permutation Entropy (AAPE) is an improvement of Permutation Entropy (PE) to consider amplitude information from analyzed time series (Fadlallah et al., 2013). Although this index has been mainly used in single-lag analyses, it can be adapted to deal with different time scales by changing the embedding delay τ (Azami and Escudero, 2016). Thus, for delayed-time PE computation, a time series *x*(*n*) = {*x*(1), *x*(2), …, *x*(*N*)} of length *N* is converted into *N* − (*m* − 1)·τ vectors of *m* samples, such that ${\text{X}}_{i,m}^{\tau}=\left\{{X}_{i,m}^{\tau}(1),{X}_{i,m}^{\tau}(2),\dots ,{X}_{i,m}^{\tau}(m)\right\}=\left\{x(i),x(i+\tau )\dots ,x(i+(m-1)\xb7\tau )\right\}$, for 1 ≤ *i* ≤ *N* − (*m* − 1)·τ. Each vector ${\text{X}}_{i,m}^{\tau}$ is associated with an ordinal pattern, described as permutation κ_{i} = {*r*_{0}, *r*_{1}, …, *r*_{m−1}} of {0, 1, …, *m* − 1}, such that its single components fulfill ${X}_{i,m}^{\tau}({r}_{0})\le {X}_{i,m}^{\tau}({r}_{1})\le \dots \le {X}_{i,m}^{\tau}({r}_{m-2})\le {X}_{i,m}^{\tau}({r}_{m-1})$. Hence, a total number of *m*! ordinal sequences π_{k} are obtained from patterns ${\text{X}}_{m}^{\tau}$. Then, the relative frequency of each sequence π_{k} is used to estimate its probability of appearance such that

being δ(*u, v*) the Kronecker delta function modified specifically to work with sequences, i.e.,

Then, delayed-time PE is finally obtained by computing the Shannon entropy from the probability distribution of all symbols, such that

The index is normalized by term *ln*(*m*!) to obtain values ranging between 0 and 1. In the case of a completely predictable signal, only a pattern π_{k} is found and PE reports a 0 value. On the contrary, symbols π_{k} in unpredictable time series present the same probability of occurrence. Thus, PE provides the highest value 1. Hence, predictability information reported by PE is easily interpretable (Zanin et al., 2012). Nevertheless, only the ordinal structure of patterns is considered by this index, thus discarding the information related to the amplitude of each sample.

As amplitude differences could play a key role to determine the predictability of a time series, AAPE was introduced to overcome this limitation (Azami and Escudero, 2016). AAPE computation is based on calculating the probability of repetition of each pattern π_{k} by considering its relative frequency, and also the average absolute (AA) and relative amplitudes (RA) of vectors ${\text{X}}_{i,m}^{\tau}$. Amplitudes AA and RA are obtained, respectively, for a specific vector ${\text{X}}_{i,m}^{\tau}$ as

and

Then, the relative frequency of π_{k} is computed as

being *K* an adjusting coefficient of terms AA and RA, ranging from 0 to 1. As recommended by the authors, a value *K* = 0.5 was considered here. Finally, delayed-time AAPE, referred to as Delayed Permutation Entropy (DPE), is computed by means of Shannon entropy, such that

### 2.4. Permutation Min-Entropy

Recently, PE has also been generalized by replacing Shannon entropy with Rényi one, reaching a better characterization of some rare and frequent ordinal patterns (Zhao et al., 2013). More precisely, Rényi Permutation Entropy (RPE) is defined as

where order *q* (*q* ≥ 0 and *q* ≠ 1) is a bias parameter. Indeed, *q* < 1 benefits rare events and, contrarily, *q* > 1 privileges salient ones. It is mandatory to note that Shannon entropy is an instance of Rényi entropy for *q* = 1 and, hence, RPE is a more flexible tool than PE. In this respect, RPE has reported a more complete characterization of a variety of complex dynamics, including physiological processes (Mammone et al., 2015). In addition, RPE is featured to converge to a minimum entropy in the limit *q* → ∞, thus providing Permutation Min-Entropy (PME) (Zunino et al., 2015). This new entropy-based metric is quickly and simply computed as

still retaining the main advantages of PE, such as its simplicity, low computational cost, noise robustness, and invariance with respect to non-linear monotonous transformations. This index has also proven a greater ability than PE to detect the existence of subtle temporal structures in EEG channels (Zunino et al., 2015).

### 2.5. Feature Selection

Firstly, single DPE and PME values from lag τ = 1 to lag τ = 10 were computed for each subject by using a pattern length *m* = 6. Entropies computed for each time-lag are a measure of predictability of the time series and assess the effect of time dynamics from an inter-lag perspective. Indeed, larger entropy values represent more unpredictable dynamics of the EEG signals, showing an increase of autocorrelated patterns in a long-term fashion.

On the other hand, multi-lag entropy curves were parameterized by means of slopes, areas under curves and arc lengths. Indeed, some studies have previously reported that features extracted from parameterized curves may reveal important information related to the dynamics of the signals across different temporal intervals (Escudero et al., 2006). In this regard, to estimate the trend evolution of each time-lag curve, slopes between delay τ = 1 and τ = 2, 4, 6, 8, and 10 were calculated from all EEG channels of each trial and denoted as *Slp*1 − τ. The slope is estimated as the straight line connecting the multi-lag entropy values under study. Higher slope values suggest larger entropy increases between the original signal (τ = 1) and higher versions in consecutive multi-lag time delays (τ = 2–10).

Furthermore, areas enclosed under the multi-lag curve between lag τ = 1 and lags τ = 2, τ = 4, τ = 6, τ = 8, and τ = 10 were computed and denoted as *Ar*1 − τ. In this sense, a higher area is achieved when DPE and PME entropy values are higher for the majority of time delays, suggesting that time series are less predictable. Finally, the arc length (*AL*) for each time-delayed curve was computed between lags τ = 2 and τ = 10. An arc length value shows the morphological alterations of the curve across different lags, and may show significant differences among lags from different groups of study. The arc length of each multi-lag curve was computed as

referring *E* to the values of DPE and PME for the corresponding time-lag τ in each case.

Hence, a total of 21 features were computed for symbolic-based entropies DPE and PME on each EEG channel. More precisely, 10 single entropy values (one for each of the 10 time-lags computed), 5 tendency parameters related to time-lag curves (slopes *Slp*1 − 2, *Slp*1 − 4, *Slp*1 − 6, *Slp*1 − 8, *Slp*1 − 10), and 6 shape-related features (areas under curves *Ar*1 − 2, *Ar*1 − 4, *Ar*1 − 6, *Ar*1 − 8, *Ar*1 − 10, and arc length *AL*) were obtained for each EEG channel.

### 2.6. Statistical Analysis

Once the features were computed for each metric under study, Shapiro-Wilks and Levene tests corroborated the normality and homoscedasticity of the data, such that the results are expressed as mean and standard deviation. Then, statistical differences between features obtained for emotional states of calmness and distress were assessed for each time lag τ using a one-way analysis of variance (ANOVA). A value of statistical significance ρ < 0.05 was considered as significant.

Furthermore, the discriminatory power of each feature to distinguish between both groups of emotions was tested by using a stratified 10-fold cross-validation scheme. This methodology prevents over-fitting as well as other biases when performing the training/test operation on classifiers (Jung and Hu, 2015). Thus, the database selection containing 259 recordings was sliced into ten equally-sized folds with a balanced number of trials from both groups. Next, ten iterations were performed, such that in each one 9 out of 10-folds were used as a training subset, and 1 out of 10-folds was used as the test subset. To perform the classification, a receiver operating characteristic (ROC) approach was computed using the training trials to obtain an optimal threshold, which was then used to classify the trials in the test subset. It is worth noting that the threshold was selected as the cut-off point that maximizes accuracy (Acc). Values of sensitivity (Se), specificity (Sp), and Acc, obtained from the 10 iterations, were finally averaged to provide global and robust estimates.

Keeping in mind the objective of assessing possible relationships and complementary information among features, several advanced classifiers were used. Thus, a decision tree classifier (DTC), a support vector machine (SVM), a quadratic discriminant analysis (QDA) and a k-nearest neighbor (KNN) classifier were used. Regarding DTC, the nodes' growth was stopped when each node solely contained either fragments from only one group or a number of trials <20% of the entire dataset. Moreover, every node was split by using an impurity-based Gini index. Furthermore, the SVM classifier was run with a cubic kernel function and kernel scale of 1. Finally, the KNN classifier used an Euclidean distance metric with 10 neighbors, where the weight of the distance was computed to perform the classification by means of squared inverse. Nonetheless, given the high amount of analyzed features (21 features × 2 metrics × 32 channels), the subset providing most information was selected in first place for each classifier. Thus, a sequential forward selection (SFS) approach was used to select the subset of features minimizing misclassification rate for each classifier. A stratified 10-fold cross-validation scheme was also used to reduce overfitting in this analysis.

## 3. Results

### 3.1. Results for Delayed Permutation Entropy and Permutation Min-Entropy

Mean and standard deviation of DPE and PME values for the most relevant EEG channels at different time-lags (1 ≤ τ ≤ 10) are shown in Figures 2, 3, respectively. As can be observed, both metrics obtained a similar trend throughout the increasing time-lags. DPE and PME values for calmness are higher than for distress trials, especially at lower lags. However, as time-lag increases the average differences between groups become smaller, such that at higher time-lags the mean entropy differences between groups become imperceptible. Furthermore, a certain degree of stabilization at time-lags >3 for both metrics can also be noticed, where the standard deviation decreases as the analyzed time-lag increases.

**Figure 2**. Mean and standard deviation values of DPE at different time-lags for calmness and distress at the most significant EEG channels.

**Figure 3**. Mean and standard deviation values of PME at different time-lags for calmness and distress at the most significant EEG channels.

Table 1 shows the statistical significance and global classification performance, that is accuracy (Acc), for time-lags (1 ≤ τ ≤ 10) in DPE and PME metrics, respectively. Although there are similarities among mean entropy curves, the performance achieved for each metric differs considerably throughout the time-lags. In general terms, DPE shows a poorer performance discriminating between emotional states of calmness and distress than PME. As can be observed in Table 1, only lower time-lag entropies show a relevant statistical significance. Moreover, the overall discriminatory power for all cases is around 60%, decreasing even more when higher time-lags are analyzed. This effect is clearly seen at parieto-occipital and occipital channels PO3, O1, O2, and Oz. For instance, PO3 channel achieved a global performance of 62.9% at time-lag τ = 1, while accuracy decreased down to 57.10% at time-lag τ = 9. Only parietal channel P3 showed a regular statistical significance throughout every single time-lag, reaching a maximum global classification performance at time-lag τ = 2 with 63.7% of subjects classified correctly.

**Table 1**. Results of ρ and Acc of the most relevant EEG channels for DPE and PME at different time-lags.

On the contrary, PME showed better global classification performance for certain channels, especially at higher time-lags. For instance, parietal channel P3, classified correctly 68.3% of trials between calmness and distress at time-lag τ = 9. Similarly, centro-parietal channel CP2 showed a poor performance when no lag was applied (τ = 1), but it raised at higher time-lags, achieving the best single global performance at time-lag τ = 9, classifying correctly the 68.7% of the subjects. This improvement supposes an increase of more than 13% regarding PME at no lag τ = 1 and more than 8% compared with DPE metric at time-lag τ = 9. Moreover, there seems to be a certain degree of complementarity between DPE and PME at different time-lags, because the same EEG channels measured with each metric show relevant information at different time-lags. This contrast is well-noticed at parietal channel P3. No relevant differences between several time-lags were found when DPE was computed for P3, i.e., all time-lags presented a similar discriminatory power. On the contrary, the same channel showed an important increasing performance when it was analyzed by means of PME metric at higher time-lags; hence relevant information was noticed when time-delay was performed.

### 3.2. Results From Curve-Related Parameters

Table 2 summarizes diagnostic accuracy of every curve-based parameter derived from DPE analysis for the most relevant channels. As can be seen, almost all features achieved statistically significant differences between groups (ρ < 0.05). Features obtained from parietal channel P3 achieved a notable statistical significance, especially in the area under the time-lag curve (*Ar*1 − 2 to *Ar*1 − 6), thus stating the differences between curves at lower and their convergence at higher time-lags. It is also remarkable that parieto-occipital channel PO3 achieved a good performance for all features. With respect to slope-based parameters, global accuracy ranged from 60.62 to 62.23%, *Slp*1 − 10 being the feature with maximum performance for this channel. Similarly, accuracy of area-based lag parameters ranged from 59.07 to 62.16%, where *Ar*1 − 2 reported the maximal performance. It is also worth noting that arc-length reached the maximum global accuracy, classifying correctly 63.47% of trials, and thus overcoming the best performance obtained by single DPE entropy at the same channel at lag τ = 1. Finally, the rest of the parameters computed from occipital channels O1, O2, and Oz and centro-parietal channel CP2 obtained a more limited performance, their global accuracy ranging from 53.28 to 61.12%.

Similarly, Table 3 summarizes discriminant ability of all curve-based parameters derived from PME analysis for the most relevant channels. In this case, both statistical significance and global accuracy are more limited than for DPE curve-related parameters. All features computed on parietal channel P3 and parieto-occipital channel PO3 resulted to be statistical significant. The global accuracy obtained for these channels ranged from 57 to 61%, thus achieving a worse performance than before. Moreover, only a few curve-related parameters from occipital channels O1, O2, and Oz showed statistical significance, and the global accuracy was below 60% for all the parameters. Finally, CP2 achieved the worst performance, where global accuracy was around 55%.

### 3.3. Multi-Parametric Analysis and Advanced Classification

For each classifier, the optimal number of features minimizing its misclassification rate through an SFS scheme ranged from 5 to 8 in each iteration of a 10-fold cross-validation approach. The occurrence of the most relevant variables are displayed in Figure 4. As can be seen, entropy-based metrics were mainly chosen for time-lags longer than 1 and curve-related variables both from DPE and PME. Moreover, it should be noted that most of these features were selected in nearly all folds, thus only changing the less relevant ones for the resulting classification models. More precisely, for all classifiers, most DPE-based parameters were chosen from EEG channels P3 and PO3 and most PME-based features from channels P3, Pz, FC5, C4, and CP5.

**Figure 4**. Occurrence of the most selected features through an SFS scheme within a 10-fold cross-validation approach for each classifier.

Once the feature selection process finished for each classifier, the obtained classification results are displayed in Table 4 in terms of sensitivity, specificity and accuracy. Note that global discriminant ability for all approaches ranged from 75.66% (for QDA) to 92.32% (for KNN). Furthermore, the SVM classifier achieved a comparable performance to KNN, classifying correctly 91.12% trials. Finally, it should also be highlighted that both SVM and KNN classifiers reported the largest diagnostic accuracies with well-balanced values of sensitivity and specificity.

**Table 4**. Values of sensitivity, specificity, and accuracy obtained for each classifier once the feature selection process had finished.

## 4. Discussion

During the last years automatic emotion recognition has received special attention due to its importance in areas, such as medicine and education. Among the different types of emotions, continued distress is one of the most studied because it is often harmful for health. Considering its relevance, distress has been assessed in a wide variety of scenarios, including driving tasks (Healey and Picard, 2005), military exercises (Skinner and Simpson, 2002), surgical procedures (Marrelli et al., 2014), and on-line exams (Gomes et al., 2014), among others. An interesting study recently published shows a methodology to redirect stress episodes toward positive moods (Fernández-Caballero et al., 2016).

Taking into consideration this preamble, several works have been published in the literature. Their research is focused on automatic distress recognition using EEG recordings (Hosseini et al., 2010; Khosrowabadi et al., 2011; Peng et al., 2013; Minguillon et al., 2016; Al-Nafjan et al., 2017; Al-Shargie et al., 2018; Jebelli et al., 2018; Garćıa-Mart́ınez et al., 2019b). However, only a few of them have analyzed this phenomena from a non-linear point of view (García-Martínez et al., 2016). Recently, another approach reported that symbolic analysis of brain dynamics was able to detect distress (Garćıa-Mart́ınez et al., 2017). In that study, PE and its extension called AAPE were used to assess brain dynamics for each EEG channel. However, the analysis was carried out without considering the possibility of exploring hidden non-linear information at time-lags higher than one. This was the starting point that motivated the present study.

To the best of our knowledge, this is the first work addressing the effects of multi-lag for distress recognition from EEG recordings. For this purpose, a modified version of AAPE was used to analyze EEG signals with distinct time-lags. Additionally, PME was also considered in this study, since it is an improved symbolic alternative for identifying the existence of hidden temporal dynamics in time series and it allows a better discrimination of signals with similar temporal correlations (Zunino et al., 2015). Indeed, it has been recently applied in the study of emotion recognition using heart rate variability with promising results (Xia et al., 2018).

As expected, both DPE and PME metrics reported the same trends when calculating the mean entropy values across the different time-lags, as was observed in Figures 2, 3. Calmness emotional state reported higher entropy values than distress for all EEG channels, especially at lower time-lags. However, this difference became smaller as the time-lag increased. Furthermore, the time-lag analysis revealed additional entropy information not observed at time-lag τ = 1, especially at centro-parietal and occipital channels. This effect can also be well-noticed in Figure 5, which shows a topological representation of mean entropy values for each channel at the first nine time-lags using PME. Although the general trend is maintained across time-lags, the imprint patterns change, thus revealing information at certain channels not seen before.

**Figure 5**. Topological EEG representation of average calmness and distress values for time-lags from τ = 1 to τ = 9 using PME metric.

These results enhance the presence of a larger diversity of ordinal patterns in some local time series in calmness trials in comparison to distressed ones, thus suggesting the existence of more complex brain dynamics in calmness state. Such loss of complexity under distress might be associated to a lower brain's ability of adaptation to external stimuli and environmental changes. Indeed, decomplexification of physiological systems has been traditionally identified with a lower ability to manage information, and therefore with a higher probability of suffering a pathological condition (Goldberger et al., 2002; Lipsitz, 2004). Interestingly, these findings are in agreement with other studies published during the past years. In this sense, increased values of correlation dimension in calm participants with respect to distressed subjects have been reported so far (Hosseini et al., 2015). In another work, a decrease of relative power in subjects facing a series of distressful stimuli was also described (Bastos Filho et al., 2012). Finally, the fact that this trend is maintained throughout the different time-lags reinforces a previous study where no lag was applied (Garćıa-Mart́ınez et al., 2017).

Another relevant finding is that single discriminatory power in multi-lag analysis has notably improved with respect to other previous studies dealing with singe-lag (Garćıa-Mart́ınez et al., 2017) and MSE (Martínez-Rodrigo et al., 2019) analysis, especially in some specific channels. Thus, left parietal channel P3 is still a very relevant channel for distress detection using symbolic analysis. This finding was already reported in our recent previous work where AAPE was applied to the data (Garćıa-Mart́ınez et al., 2017). Nevertheless, other studies have already corroborated this association with the left parietal area. Thus, a higher activation has been observed during normal non-depressed and reasonably positive moods in the left parietal area than in the right one (Davidson, 1988). In the same line, meditation has also been characterized by an increasing activity of the left parietal region (Manna et al., 2010). In the present study, P3 showed robustness and consistency across different time-lags when discriminating between emotional states of calmness and distress. Nevertheless, the global classification performance was improved notably for time-lags higher than one, especially when data was analyzed by means of PME metric, increasing from 61% when no lag was applied up to 68.30% when time-lag τ = 9 was computed.

These findings may indicate the existence of long-range correlations in the data, which have only been sufficiently highlighted by considering a multi-lag entropy-based analysis. Indeed, these observations can be visually corroborated in the topological representation of brain areas depicted in Figure 6. It represents average PME values computed from emotional states of calmness and distress for time-lags τ = 1 (a) and τ = 9 (b). As can be seen, entropy values obtained at time-lag τ = 9 are quite different compared to the analysis with no lag, showing a more balanced pattern between left and right hemispheres throughout frontal, parietal and occipital areas. In addition, the entropy differences between calmness and distress are also shown in this figure (on the right column). Thus, the higher differences are found in left central region for τ = 1, whereas a higher activation of left parietal region is obtained for τ = 9.

**Figure 6**. Topological EEG representation of average calm and distressed patients for time-lag τ = 1 vs. τ = 9 using PME metric.

The right frontal channel F4 also presents a considerable difference of activation between calmness and distress states both in τ = 1 and τ = 9 cases. Interestingly, the relevance of the mentioned areas and the possible relation between frontal and parietal areas of opposite hemispheres has already been depicted in our previous studies. In fact, 30 years ago it was verified that a relative left parietal brain activation is balanced by a relative right parietal brain activation and vice-versa (Davidson, 1988). A similar outcome has also been observed in another study where patients with different mental disorders were conducted to practice meditation (Rubia, 2009).

Moreover, the right brain hemisphere deserves especial attention in this work. Considering our previous findings, the right centro-parietal channel CP2 showed no relevance when analyzing emotional states with symbolic entropies (Garćıa-Mart́ınez et al., 2017). This outcome has been corroborated again in this work, where neither DPE nor PME showed statistical significance at τ = 1 (no lag), and the global classification was below 55% in both cases (see Table 1). However, when analyzing the same brain area at higher time-lags, a notable increase of statistical significance and discriminatory power was observed. It is especially the case for CP2 with PME at time-lag τ = 9 (ρ = 0.0026 and Acc = 68.70%), thus achieving the highest global classification in this study. The relevance of the channel CP2 can also be observed in Figure 6, where the difference is not notable for τ = 1, but it is for τ = 9.

These findings, together with the relevance of the results reported by the left parietal channel P3, reveal the possible existence of complementary information among the parietal lobes of both brain hemispheres. Indeed, a number of previous works reported a certain degree of complementarity between right and left posterior areas under stimulation of distress and calmness. For instance, interesting information about parietal and occipital asymmetry at different frequency bands during distressful tasks has been described (Park et al., 2011). Furthermore, an intensive parietal lobe activation under anxiety and distress conditions has also been reported (Nitschke, 1998).

Recently, occipital electrodes O1 and O2 have also been explored to evaluate variations in complexity provoked by visual elicitation (Tonoyan et al., 2016). In a similar line, the posterior brain area has been related to the arousal component of emotions, thus being their processing essential for the recognition of emotions (Dolcos and Cabeza, 2002). Interestingly, in our previous study the combination of the left parietal channel P3 and the right parietal channel P4 achieved a notable performance discriminating between emotional states of calmness and distress, thus demonstrating the inter-correlation of these brain regions (Garćıa-Mart́ınez et al., 2017). However, in that study, brain dynamics were assessed by means of different computation approaches, where each methodology highlighted one of the hemispheres in isolation. In the present work, both areas have resulted to be significant when analyzed with PME metric at higher time-lags, obtaining results comparable to those reported individually by other metrics used in our previous works.

The obtained multi-lag curves were also parameterized and studied to compare the relative complexity of normalized time series. The use of curve profiles for characterization of biological signals has been already proposed by other authors (Costa et al., 2005). Accordingly, *Slp*1−4 and *Slp*1−6 reflect that the degree of change in the complexity of some EEG channels is more relevant in smaller time-lags. These outcomes were observed in Figures 2, 3, where changes in the slopes could be seen until the curves stabilized around time-lag τ = 5. In this regard, parietal and occipital channels showed statistical relevance at these slopes for DPE metric, but only parietal channels resulted relevant when curved-related parameters were calculated for PME metric. It is worth noting that the same outcomes were also obtained for the area under curve parameters.

On the other hand, the developed multivariate analysis has shown that putting all the data together led to a notably overall performance increase, which demonstrated that multi-lag analysis is able to provide additional, as well as complementary information, to single-lag one. To this respect, an SFS scheme was applied under a 10-fold cross-validation approach to choose the optimal subset of features maximizing the classification rate for each classifier. Interestingly, the most relevant features selected for each classifier were mainly computed from EEG channels showing the largest differences between emotional states of calmness and distress. Indeed, DPE computed from channels PO3 and P3 reported high statistically significant differences between the two groups of trials, as shown in Tables 1, 2. Similarly, PME obtained from channels P3, Pz, FC5, C4, and CP5 provided high visual differences, as shown in Figures 5, 6. Moreover, let us highlight that all selected features were computed from time-lag longer than 1 or from τ-based curves, as shown in Figure 4.

Another relevant aspect is that the results obtained in the present study outperformed notably other similar works that have analyzed non-linear metrics from the same database with no lag, such as summarized in Table 5. Indeed, a global accuracy of 69.6% has only been reported by applying a high-order crossing approach to four EEG channels (Bastos Filho et al., 2012). In addition, different non-linear metrics have reported a higher level of complexity in stressed subjects (Peng et al., 2013). In other work, combining quadratic sample entropy values from several EEG channels through a DTC classifier, a discriminant ability around 75% has been provided (García-Martínez et al., 2016). On the other hand, a discriminant model based on SVM and using irregularity and symbolic metrics reached a diagnostic accuracy >80% (Garćıa-Mart́ınez et al., 2019b). Similarly, variants of PE have already been applied to distress recognition, with a classification performance of 81.31% (Garćıa-Mart́ınez et al., 2017). However, in the present study an improvement of about 10% has been reported by making use of the same kind of SVM classifier.

**Table 5**. Comparison of the most relevant works dealing with automatic identification of negative stress from the recordings.

Likewise, the classification results obtained in the present study also significantly improved the sole recent work conducting a MSE analysis on EEG signals for distress identification (Martínez-Rodrigo et al., 2019). In fact, making use of the same SVM-based approach, here a classification rate between distress and calmness emotional states has been obtained about 6% higher than for MSE. It should be noted that both MSE and multi-lag entropy analyses pursue the same goal of quantifying complexity at different time scales. For this purpose, MSE uses a rescaling procedure based on filtering out the shorter oscillations and keeping the longer ones (Humeau-Heurtier, 2015). This approach unavoidably removes some frequency content, specially from rescaled time series presenting very fast oscillations (Humeau-Heurtier, 2015). Such loss of frequency information could explain the aforementioned poorer outcome reached by MSE, because entropy computation from time-lagged samples does not alter time and frequency information from original data (Govindan et al., 2007; Kaffashi et al., 2008). Moreover, this finding could also justify the fact that, whereas no changes were noticed across all time scales in MSE analysis in brain areas activating and supporting distress (Martínez-Rodrigo et al., 2019), large differences have been observed for different time-lags, as extensively described in previous paragraphs.

Finally, there are some limitations in this study that deserve our attention. Firstly, the studied DEAP database is not exclusively designed for recognition of calmness and distress emotions. In fact, many other emotional states were also recorded during the experiment (Koelstra et al., 2012). Moreover, the number of trials eliciting calmness and distress is notably unbalanced for each healthy volunteer, thus making the use of a subject-based classification impossible. Secondly, further analyses on other similar databases like ASCERTAIN (Subramanian et al., 2018), AMIGOS (Miranda Correa et al., 2018), and DREAMER (Katsigiannis and Ramzan, 2018) are required to corroborate and generalize the obtained results. However, the impact of some potential confounding aspects on the results provided by several databases will have to be carefully analyzed for this purpose. Thus, it should be thoughtfully scrutinized how different experimental setups, population distributions in terms of age and gender, and technical aspects related to the acquisition of EEG signals mask changes in brain dynamics under distress. Thirdly, the video clips used as stimuli have a duration of 1 min, which may be too much time to just elicit a single emotional state. Thus, participants may present different emotions for the same stimulus, making it difficult to properly rate their level of valence and arousal. Finally, only EEG signals were assessed in this work, thus discarding the information reported by other physiological variables. However, peripheral recordings also contained in DEAP and other databases, in combination with brain dynamics, will be explored in further studies for the sake of detecting distress episodes.

## 5. Conclusions

In this study, two permutation entropies, adapted to work in a multi-lag context, have been analyzed for the first time to automatically identify negative stress. This multi-lag analysis has revealed new insights never seen before, thus notably improving the performance of distress identification. Considering the relevant results that permutation entropy has previously reported in non-lag and multiscale contexts for human emotion detection, it becomes highly interesting to analyze brain dynamics from a time delay viewpoint. For this reason, we hypothesized that there might exist relevant and complementary information at higher time-lags among different brain areas. The results obtained after performing the analyses have confirmed our initial ideas, reporting an improved classification between emotional states of calmness and distress.

Moreover, left parietal and right centro-parietal channels showed remarkable activation at higher time lags, suggesting that removing long-range linear correlations may help to better evaluate the non-linear information of the data. Finally, several discriminant models obtained from advanced classifiers were used to study the complementarity of the features computed at different time-lags for each EEG channel. The resulting functions have combined single entropy values from different channels calculated at lags higher than one with curve-related parameters, thus corroborating that there are more relevant information when time-lags are applied to the time series than when data are analyzed without any time delay or averaging consecutive samples.

## Author Contributions

AM-R and BG-M conceived and designed the study, programmed the experiments and drafted the manuscript. LZ and RA helped to interpret the results and reviewed the manuscript. Finally, AF-C supervised the experiments, reviewed the manuscript and contributed to the final version. All authors have read and approved the final version of the manuscript.

## Funding

This work was partially supported by Spanish Ministerio de Ciencia, Innovación y Universidades, Agencia Estatal de Investigación (AEI)/European Regional Development Fund (FEDER, UE) under DPI2016-440 80894-R, TIN2015-72931-EXP, and 2018/11744 grants, by Castilla-La Mancha Regional Government/FEDER, UE under SBPLY/17/180501/000192 grant, and by Biomedical Research Networking Centre in Mental Health (CIBERSAM) of the Instituto de Salud Carlos III. BG-M holds FPU16/03740 scholarship from Spanish Ministerio de Educación y Formación Profesional. LZ acknowledges the financial support from Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET), Argentina.

## Conflict of Interest Statement

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

## References

Alberdi, A., Aztiria, A., and Basarab, A. (2016). Towards an automatic early stress recognition system for office environments based on multimodal measurements: a review. *J. Biomed. Informatics* 59, 49–75. doi: 10.1016/j.jbi.2015.11.007

Al-Nafjan, A., Hosny, M., Al-Ohali, Y., and Al-Wabil, A. (2017). Review and classification of emotion recognition based on EEG brain-computer interface system research: a systematic review. *Appl. Sci.* 7:1239. doi: 10.3390/app7121239

Al-Shargie, F., Tang, T. B., Badruddin, N., and Kiguchi, M. (2018). Towards multilevel mental stress assessment using SVM with ECOC: an EEG approach. *Med. Biol. Eng. Comput.* 56, 125–136. doi: 10.1007/s11517-017-1733-8

Azami, H., and Escudero, J. (2016). Amplitude-aware permutation entropy: illustration in spike detection and signal segmentation. *Comput. Methods Programs Biomed.* 128, 40–51. doi: 10.1016/j.cmpb.2016.02.008

Bandt, C., and Pompe, B. (2002). Permutation entropy: a natural complexity measure for time series. *Phys. Rev. Lett.* 88:174102. doi: 10.1103/PhysRevLett.88.174102

Bastos Filho, T. F., Ferreira, A., Atencio, A. C., Arjunan, S. P., and Kumar, D. (2012). “Evaluation of feature extraction techniques in emotional state recognition,” in *IEEE Proceedings of 4th International Conference on Intelligent Human Computer Interaction* (Kharagpur), 1–6.

Bender, R. E., and Alloy, L. B. (2011). Life stress and kindling in bipolar disorder: review of the evidence and integration with emerging biopsychosocial theories. *Clin. Psychol. Rev.* 31, 383–398. doi: 10.1016/j.cpr.2011.01.004

Bennett, S., Larkin, H., Pincham, H., Carman, S., and Fearon, P. (2018). Neural correlates of children's emotion understanding. *Dev. Neuropsychol.* 43, 329–344. doi: 10.1080/87565641.2018.1432055

Bong, S. Z., Murugappan, M., and Yaacob, S. (2013). Methods and approaches on inferring human emotional stress changes through physiological signals: a review. *Int. J. Med. Eng. Informatics* 5, 152–162. doi: 10.1504/IJMEI.2013.053332

Calvo, R. A., and D'Mello, S. K. (2010). Affect detection: an interdisciplinary review of models, methods, and their applications. *IEEE Trans. Affect. Comput.* 1, 18–37. doi: 10.1109/T-AFFC.2010.1

Cao, Y., Cai, L., Wang, J., Wang, R., Yu, H., Cao, Y., et al. (2015). Characterization of complexity in the electroencephalograph activity of Alzheimer's disease based on fuzzy entropy. *Chaos* 25:083116. doi: 10.1063/1.4929148

Coan, J. A., and Allen, J. J. B. (2007). *Handbook of Emotion Elicitation and Assessment*. Oxford: Oxford University Press.

Costa, M., Goldberger, A. L., and Peng, C. K. (2005). Multiscale entropy analysis of biological signals. *Phys. Rev. E Stat. Nonlinear Soft Matter Phys.* 71:021906. doi: 10.1103/PhysRevE.71.021906

Davidson, R. J. (1988). “Affect, cognition, and hemispheric specialization,” in *Emotion, Cognition, and Behavior*, eds C. Izard, J. Kagan, and R. Zajonc (New York, NY: Cambridge University Press), 320–365.

Dolcos, F., and Cabeza, R. (2002). Event-related potentials of emotional memory: encoding pleasant, unpleasant, and neutral pictures. *Cogn. Affect. Behav. Neurosci.* 2, 252–263. doi: 10.3758/CABN.2.3.252

Ekman, P. (1992). An argument for basic emotions. *Cogn. Emot.* 6, 169–200. doi: 10.1080/02699939208411068

Escudero, J., Abásolo, D., Hornero, R., Espino, P., and López, M. (2006). Analysis of electroencephalograms in Alzheimer's disease patients with multiscale entropy. *Physiol. Meas.* 27, 1091–1106. doi: 10.1088/0967-3334/27/11/004

Fadlallah, B., Chen, B., Keil, A., and Príncipe, J. (2013). Weighted-permutation entropy: a complexity measure for time series incorporating amplitude information. *Phys. Rev. E* 87:022911. doi: 10.1103/PhysRevE.87.022911

Fernández-Caballero, A., Martínez-Rodrigo, A., Pastor, J. M., Castillo, J. C., Lozano-Monasor, E., López, M. T., et al. (2016). Smart environment architecture for emotion detection and regulation. *J. Biomed. Informatics* 64, 55–73. doi: 10.1016/j.jbi.2016.09.015

Fernández-Sotos, A., Martínez-Rodrigo, A., Moncho-Bogani, J., Latorre, J. M., and Fernández-Caballero, A. (2018). Neural correlates of phrase quadrature perception in harmonic rhythm: an EEG study using a brain–computer interface. *Int. J. Neural Syst.* 28:1750054. doi: 10.1142/S012906571750054X

Forscher, E. C., Zheng, Y., Ke, Z., Folstein, J., and Li, W. (2016). Decomposing fear perception: a combination of psychophysics and neurometric modeling of fear perception. *Neuropsychologia* 91, 254–261. doi: 10.1016/j.neuropsychologia.2016.08.018

Gao, J., Hu, J., Liu, F., and Cao, Y. (2015). Multiscale entropy analysis of biological signals: a fundamental bi-scaling law. *Front. Comput. Neurosci.* 9:64. doi: 10.3389/fncom.2015.00064

García-Martínez, B., Martínez-Rodrigo, A., Alcaraz, R., and Fernández-Caballero, A. (2019a). A review on nonlinear methods using electroencephalographic recordings for emotion recognition. *IEEE Trans. Affect. Comput.* doi: 10.1109/TAFFC.2018.2890636. [Epub ahead of print].

García-Martínez, B., Martínez-Rodrigo, A., Fernández-Caballero, A., Moncho-Bogani, J., and Alcaraz, R. (2019b). Nonlinear predictability analysis of brain dynamics for automatic recognition of negative stress. *Neural Comput. Appl.* doi: 10.1007/s00521-018-3620-0. [Epub ahead of print].

García-Martínez, B., Martínez-Rodrigo, A., Zangróniz, R., Pastor, J., and Alcaraz, R. (2016). Application of entropy-based metrics to identify emotional distress from electroencephalographic recordings. *Entropy* 18:221. doi: 10.3390/e18060221

García-Martínez, B., Martínez-Rodrigo, A., Zangróniz, R., Pastor, J., and Alcaraz, R. (2017). Symbolic analysis of brain dynamics detects negative stress. *Entropy* 19:196. doi: 10.3390/e19050196

Goh, S., Abbass, H., Tan, K., Al-Mamun, A., Wang, C., and Guan, C. (2017). Automatic EEG artifact removal techniques by detected influential independet components. *IEEE Trans. Emerg. Top. Comput. Intell.* 1, 270–279. doi: 10.1109/TETCI.2017.2690913

Goldberger, A. L., Peng, C. K., and Lipsitz, L. A. (2002). What is physiologic complexity and how does it change with aging and disease? *Neurobiol. Aging* 23, 23–26. doi: 10.1016/S0197-4580(01)00266-4

Gomes, M., Oliveira, T., Silva, F., Carneiro, D., and Novais, P. (2014). “Establishing the relationship between personality traits and stress in an intelligent environment,” in *27th International Conference on Industrial Engineering and Other Applications of Applied Intelligent Systems, IEA/AIE 2014* (Kaohsiung: Springer), 378–387.

Govindan, R., Wilson, J., Eswaran, H., Lowery, C., and Preißl, H. (2007). Revisiting sample entropy analysis. *Phys. A Stat. Mech. Appl.* 376, 158–164. doi: 10.1016/j.physa.2006.10.077

Healey, J., and Picard, R. W. (2005). Detecting stress during real-world driving tasks using physiological sensors. *IEEE Trans. Intell. Transport. Syst.* 6, 156–166. doi: 10.1109/TITS.2005.848368

Hosseini, S. A., Khalilzadeh, M. A., and Changiz, S. (2010). Emotional stress recognition system for affective computing based on bio-signals. *J. Biol. Syst.* 18, 101–114. doi: 10.1142/S0218339010003640

Hosseini, S. A., Khalilzadeh, M. A., Naghibi-Sistani, M. B., and Homam, S. M. (2015). Emotional stress recognition using a new fusion link between electroencephalogram and peripheral signals. *Iran. J. Neurol.* 14, 142–151.

Hosseini, S. A., and Naghibi-Sistani, M. B. (2011). Emotion recognition method using entropy analysis of EEG signals. *Int. J. Image Graph. Signal Process.* 3:30. doi: 10.5815/ijigsp.2011.05.05

Humeau-Heurtier, A. (2015). The multiscale entropy algorithm and its variants: a review. *Entropy* 17, 3110–3123. doi: 10.3390/e17053110

Jebelli, H., Khalili, M. M., and Lee, S. (2018). A continuously updated, computationally efficient stress recognition framework using electroencephalogram (EEG) by applying online multi-task learning algorithms (OMTL). *IEEE J. Biomed. Health Informatics*. doi: 10.1109/JBHI.2018.2870963. [Epub ahead of print].

Jung, Y., and Hu, J. (2015). A K-fold averaging cross-validation procedure. *J. Nonparametr. Statistics.* 27, 167–179. doi: 10.1080/10485252.2015.1010532

Kaffashi, F., Foglyano, R., Wilson, C. G., and Loparo, K. A. (2008). The effect of time delay on approximate & sample entropy calculations. *Phys. D* 237, 3069–3074. doi: 10.1016/j.physd.2008.06.005

Katsigiannis, S., and Ramzan, N. (2018). Dreamer: a database for emotion recognition through eeg and ecg signals from wireless low-cost off-the-shelf devices. *IEEE J. Biomed. Health Informatics* 22, 98–107. doi: 10.1109/JBHI.2017.2688239

Khosrowabadi, R., Quek, C., Ang, K. K., Tung, S. W., and Heijnen, M. (2011). “A brain-computer interface for classifying eeg correlates of chronic mental stress,” in *The 2011 International Joint Conference on Neural Networks* (San Jose, CA: IEEE), 757–762.

Klem, G. H., Lüders, H. O., Jasper, H., and Elger, C. (1999). The ten-twenty electrode system of the International Federation. *Electroencephalogr. Clin. Neurophysiol.* 52, 3–6.

Koelstra, S., Mühl, C., Soleymani, M., Lee, J., Yazdani, A., Ebrahimi, T., et al. (2012). DEAP: a database for emotion analysis using physiological signals. *IEEE Trans. Affect. Comput.* 3, 18–31. doi: 10.1109/T-AFFC.2011.15

Lipsitz, L. A. (2004). Physiological complexity, aging, and the path to frailty. *Sci. Aging Knowl. Environ.* 2004:pe16. doi: 10.1126/sageke.2004.16.pe16

Mammone, N., Duun-Henriksen, J., Kjaer, T. W., and Morabito, F. C. (2015). Differentiating interictal and ictal states in childhood absence epilepsy through permutation Rényi entropy. *Entropy* 17, 4627–4643. doi: 10.3390/e17074627

Manna, A., Raffone, A., Perrucci, M. G., Nardo, D., Ferretti, A., Tartaro, A., et al. (2010). Neural correlates of focused attention and cognitive monitoring in meditation. *Brain Res. Bull.* 82, 46–56. doi: 10.1016/j.brainresbull.2010.03.001

Marrelli, M., Gentile, S., Palmieri, F., Paduano, F., and Tatullo, M. (2014). Correlation between surgeon's experience, surgery complexity and the alteration of stress related physiological parameters. *PLoS ONE* 9:e112444. doi: 10.1371/journal.pone.0112444

Martínez-Rodrigo, A., Fernández-Sotos, A., Latorre, J. M., Moncho-Bogani, J., and Fernández-Caballero, A. (2017). Neural correlates of phrase rhythm: an EEG study of bipartite vs. rondo sonata form. *Front. Neuroinformatics* 11:29. doi: 10.3389/fninf.2017.00029

Martínez-Rodrigo, A., García-Martínez, B., Alcaraz, R., González, P., and Fernández-Caballero, A. (2019). Multiscale entropy analysis for recognition of visually elicited negative stress from EEG recordings. *Int. J. Neural Syst.* 29:1850038. doi: 10.1142/S0129065718500387

Minguillon, J., Lopez-Gordo, M. A., and Pelayo, F. (2016). Stress assessment by prefrontal relative gamma. *Front. Comput. Neurosci.* 10:101. doi: 10.3389/fncom.2016.00101

Miranda Correa, J. A., Abadi, M. K., Sebe, N., and Patras, I. (2018). Amigos: a dataset for affect, personality and mood research on individuals and groups. *IEEE Trans. Affect. Comput.* doi: 10.1109/TAFFC.2018.2884461. [Epub ahead of print].

Morris, J. D. (1995). Observations SAM: The Self-Assessment Manikin—an efficient cross-cultural measurement of emotional response. *J. Advertis. Res.* 35, 63–68.

Mozos, O. M., Sandulescu, V., Andrews, S., Ellis, D., Bellotto, N., Dobrescu, R., et al. (2017). Stress detection using wearable physiological and sociometric sensors. *Int. J. Neural Syst.* 27:1650041. doi: 10.1142/S0129065716500416

Nitschke, W. H. J. B. (1998). The puzzle of regional brain activity in and anxiety: the importance of subtypes and comorbidity. *Cogn. Emot.* 12, 421–447. doi: 10.1080/026999398379664

Nolan, H., Whelan, R., and Reilly, R. (2010). FASTER: fully automated statistical thresholding for EEG artifact rejection. *J. Neurosci. Methods* 192, 152–162. doi: 10.1016/j.jneumeth.2010.07.015

Park, K. S., Choi, H., Lee, K. J., Lee, J. Y., An, K. O., and Kim, E. J. (2011). Patterns of electroencephalography (EEG) change against stress through noise and memorization test. *Int. J. Med. Med. Sci.* 3, 381–389. doi: 10.5897/IJMMS11.001

Peng, H., Hu, B., Zheng, F., Fan, D., Zhao, W., Chen, X., et al. (2013). A method of identifying chronic stress by EEG. *Pers. Ubiquit. Comput.* 17, 1341–1347. doi: 10.1007/s00779-012-0593-3

Pincham, H. L., Bryce, D., Kokorikou, D., Fonagy, P., and Fearon, R. M. P. (2016). Psychosocial intervention is associated with altered emotion processing: an event-related potential study in at-risk adolescents. *PLoS ONE* 11:e0147357. doi: 10.1371/journal.pone.0147357

Pomer-Escher, A. G., de Souza, M. D. P., and Filho, T. F. B. (2014). “Methology for analysis of stress level based on asymmetry patterns of alpha rhythms in EEG signals,” in *5th ISSNIP-IEEE Biosignals and Biorobotics Conference (2014): Biosignals and Robotics for Better and Safer Living (BRC)* (Salvador: IEEE), 1–5.

Ramirez, R., Planas, J., Escude, N., Mercade, J., and Farriols, C. (2018). EEG-based analysis of the emotional effect of music therapy on palliative care cancer patients. *Front. Psychol.* 9:254. doi: 10.3389/fpsyg.2018.00254

Reis, P. M., Hebenstreit, F., Gabsteiger, F., von Tscharner, V., and Lochmann, M. (2014). Methodological aspects of EEG and body dynamics measurements during motion. *Front. Human Neurosci.* 8:156. doi: 10.3389/fnhum.2014.00156

Rubia, K. (2009). The neurobiology of meditation and its clinical effectiveness in psychiatric disorders. *Biol. Psychol.* 82, 1–11. doi: 10.1016/j.biopsycho.2009.04.003

Russell, J. A. (1980). A circumplex model of affect. *J. Pers. Soc. Psychol.* 39, 1161–1178. doi: 10.1037/h0077714

Schröder, M., and Cowie, R. (2011). *Toward Emotion-Sensitive Multimodal Interfaces: The Challenge of the European Network of Excellence HUMAINE*. Available online at: http://www.cs.pitt.edu/litman/courses/ads/readings/schroeder_cowie.pdf

Skinner, M. J., and Simpson, P. A. (2002). Workload issues in military tactical airlift. *Int. J. Aviat. Psychol.* 12, 79–93. doi: 10.1207/S15327108IJAP1201_7

Subramanian, R., Wache, J., Abadi, M. K., Vieriu, R. L., Winkler, S., and Sebe, N. (2018). Ascertain: emotion and personality recognition using commercial sensors. *IEEE Trans. Affect. Comput.* 9, 147–160. doi: 10.1109/TAFFC.2016.2625250

Tonoyan, Y., Looney, D., Mandic, D. P., and Van Hulle, M. M. (2016). Discriminating multiple emotional states from EEG using a data-adaptive, multiscale information-theoretic approach. *Int. J. Neural Syst.* 26:1650005. doi: 10.1142/S0129065716500052

Valenza, G., Lanata, A., and Scilingo, E. P. (2012). The role of nonlinear dynamics in affective valence and arousal recognition. *IEEE Trans. Affect. Comput.* 3, 237–249. doi: 10.1109/T-AFFC.2011.30

Xia, Y., Yang, L., Zunino, L., Shi, H., Zhuang, Y., and Liu, C. (2018). Application of permutation entropy and permutation min-entropy in multiple emotional states analysis of RRI time series. *Entropy* 20:148. doi: 10.3390/e20030148

Zanin, M., Zunino, L., Rosso, O., and Papo, D. (2012). Permutation entropy and its main biomedical and econophysics applications: a review. *Entropy* 14, 1553–1577. doi: 10.3390/e14081553

Zhao, X., Shang, P., and Huang, J. (2013). Permutation complexity and dependence measures of time series. *Europhys. Lett.* 102:40005. doi: 10.1209/0295-5075/102/40005

Zhu, G., Li, Y., Wen, P. P., and Wang, S. (2015). “Classifying epileptic EEG signals with delay permutation entropy and multi-scale K-means,” in *Signal and Image Analysis for Biomedical and Life Sciences* (Cham: Springer), 143–157.

Keywords: electroencephalography, distress, non-linear metrics, delayed permutation entropy, permutation min-entropy

Citation: Martínez-Rodrigo A, García-Martínez B, Zunino L, Alcaraz R and Fernández-Caballero A (2019) Multi-Lag Analysis of Symbolic Entropies on EEG Recordings for Distress Recognition. *Front. Neuroinform.* 13:40. doi: 10.3389/fninf.2019.00040

Received: 09 June 2018; Accepted: 16 May 2019;

Published: 04 June 2019.

Edited by:

Jan G. Bjaalie, University of Oslo, NorwayReviewed by:

Stavros I. Dimitriadis, Cardiff University School of Medicine, United KingdomYoung-Seok Choi, Kwangwoon University, South Korea

Karsten Keller, Universität zu Lübeck, Germany

Copyright © 2019 Martínez-Rodrigo, García-Martínez, Zunino, Alcaraz and Fernández-Caballero. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Antonio Fernández-Caballero, antonio.fdez@uclm.es