Accounting for Heterogeneity: Mixed-Effects Models in Resting-State EEG Data in a Sample of Tinnitus Sufferers


In neuroscience, neural oscillations and other features of brain activity recorded by electroencephalography (EEG) are typically statistically assessed on the basis of the study’s population mean to identify possible blueprints for healthy subjects, or subjects with diagnosable neurological or psychiatric disorders. Despite some inter-individual similarities, there is reason to believe that a discernible portion of the individual brain activity is subject-specific. In order to encompass the potential individual source of variance in EEG data and psychometric parameters, we introduce an innovative application of linear mixed-effects models (LMM) as an alternative procedure for the analysis of resting-state EEG data. Using LMM, individual differences can be modelled through the assumptions of idiosyncrasy of all responses and dependency among data points (e.g., from the same subject within and across units of time) via random effects parameters. This report provides an example of how LMM can be used for the statistical analysis of resting-state EEG data in a heterogeneous group of subjects; namely, people who suffer from tinnitus (ringing in the ear/s). Results from 49 participants (38 male, mean age of 46.69 ± 12.65 years) revealed that EEG signals were not only associated with specific recording sites, but exhibited regional specific oscillations in conjunction to symptom severity. Tinnitus distress targeted the frequency bands beta3 (23.5–35 Hz) and gamma (35.5–45 Hz) in right frontal regions, whereas delta (0.5–4 Hz) exhibited significant changes in temporal-parietal sources. Further, 57.8% of the total variance in EEG power was subject-specific and acknowledged by the LMM framework and its prediction. Thus, a deeper understanding of both the underlying statistical and physiological patterns of EEG data was gained.


Resting-state electroencephalography (EEG) has a long tradition in the field known in the present-day as neuroscience (Berger 1929). EEG studies aim to examine the relationships between behavioral measures and their underlying neural mechanisms. Dependent on the question, these relationships are explored in various testing conditions and subject populations. Typically, after pre-processing the recordings, the generated EEG data of several subjects from a specific population are collapsed to make them amenable for analysis and to draw inference about specific features in the EEG signal (e.g., general oscillatory patterns). Previously, researchers have used such features in attempts to identify general blueprints of brain activity, the shared patterns or contrasting abnormalities of which within a group of subjects would allow the assignment of individuals to a certain population (e.g., to healthy subjects or to subjects with diagnosable neurological or psychiatric disorders). Yet, despite gross inter-individual similarities, there is reason to believe that a discernible portion of the individual spontaneous cortical activity is subject-specific (Valizadeh et al. 2019); that is, it varies substantially from one subject to another (Barch et al. 2013; Finn et al. 2015; Valizadeh et al. 2019) and can be recognized and attributed to that same individual several months later (Chu et al. 2012; Cox et al. 2018).

The preferred methodological approaches to analyze EEG derived data from a sample of individuals or to contrast two populations are usually ordinary linear regression or multivariate analysis of variance (ANOVA). Both of these standard statistical models share one assumption: All data points are independent and identically distributed (iid).Footnote 1 However, many studies violate this assumption by collecting measures from the same subjects within (i.e., single acquisition) and across units of time (e.g., longitudinal studies). Consequently, the reported significance tests based on these standard statistical models suffer from an increased Type 1 error rate (i.e., the probability of reporting false positive results is inflated) (Barr et al. 2013; Judd et al. 2012; Matuschek et al. 2017). With reference to EEG studies, already a single recording of a subject’s brain activity corresponds to an idiosyncratic factor that affects all oscillatory responses of each electrode from the same subject and thus renders the recorded data interdependent rather than independent. This discrepancy can be solved statistically using linear mixed-effects models (LMM): “Mixed-effects models are primarily used to describe relationships between a response variable and some covariates in data that are grouped according to one or more classification factors” (Pinheiro and Bates 2000, p. 3). Ecology (Houslay and Wilson 2017; Zuur 2009), (psycho-) linguistics (Baayen et al. 2008), biology (Houslay and Wilson 2017; Zhang et al. 2010), and the neurosciences (Cornew et al. 2012) are only some of the disciplines in which LMMs have proven useful in the analysis of heterogeneous samples while capturing dependencies between data points via random-effects.

Departure from the Standard: Linear Mixed-Effects Models for EEG Studies

Conceptually, random-effects resolve the non-independence by assuming that the parameters follow a random distribution (usually a normal distribution) across the subjects. Supposing that the intercept in a regression model is the random parameter implies that every subject has a different intercept, and that these intercepts are assumed to be drawn from a (normal) distribution. Put simply, each subject has a different baseline. The individual baseline is represented by a separate regression line fitted through all study trials, thus providing each subject with an idiosyncratic set of parameters. This set includes—as a minimum—an individual random intercept which allows the individual means to vary while having a common slope for explanatory effects. Extending the random intercept with a random slope allows the slope to vary across subjects for a chosen experimental effect.

To be clear, these individual intercept and slope terms are not actually estimated. Rather, a (multivariate) normal distribution for the random intercept (and slopes) is assumed, and only the mean (vector) and the variance (-covariance matrix) of the assumed normal distribution are estimated. The estimated variance for a specific random effect can be viewed as the stochastic variability in the population around the overall (estimated) grand mean effect. The overall grand mean is usually referred to as the fixed-effect as it represents the average effect of the explanatory variable (e.g., age, sex, psychological traits etc.) on the response variable in the population. A fixed-effect that is significantly different from zero should be interpreted in the same way as a typical regression coefficient for the same explanatory variable in a standard regression model that is significantly different from zero: The expected change in the outcome variable is associated with a unit change in a predictor variable while holding the other covariates constant. Similarities with traditional methods aside, LMMs offer further advantages which are emphasized in the articles by Baayen et al. (2008) and Bagiella et al. (2000), and which will be discussed in the context of EEG studies in the following sections.

First, (longitudinal) EEG studies usually have a comparatively small number of subjects available for evaluation and/or comparison. Subject dropouts or poor EEG signal quality (i.e., too much noise) can lead to unequal numbers of observations or even considerable loss of data and thus reduced statistical power. LMM allows the inclusion of cases with missing observations and can cope with unbalanced designs more efficiently (Pinheiro and Bates 2000) because the models are fit by (restricted) maximum likelihood (Dempster et al. 1984).

A second advantage is related to the misconception that experimental manipulations trigger the same effects across all subjects. The consideration of random slopes for individual oscillatory differences across electrodes or clusters provides a means by which to estimate random variance in effect sizes while computing the fixed-treatment effect, for example.

Finally, because mixed models are regression models, they can incorporate both continuous (e.g., the whole EEG frequency spectrum) and categorical predictors (e.g., frequency band specific). These predictors may be fixed or vary across time (e.g., level of psychological parameters) with the design matrix for each subject being potentially different. Notably, this adds considerable flexibility to the modelling capabilities.

This flexibility and the possible richness of linear mixed-effects models require a thorough understanding of the data and the experimental design. Classification of a fixed or random-effect is not a trivial task, one which employs different possibilities and changes depending on the goals of the analysis (Gelman and Hill 2006). The classification implemented in this report is based on the previous work of Singmann and Bates (Bates et al. 2014; Singmann and Kellen 2017).Footnote 2 The complexity and challenges involved in choosing the appropriate model structure, model interpretation and summaries, however, are beyond the scope of this report. These have previously been described in other fields and readers are referred to existing coverage for a comprehensive review (Bates 2010; Bates et al. 2014; Bolker 2015; Harrison et al. 2018; Pinheiro and Bates 2000; Singmann and Kellen 2017). This report will present an example using LMM for the statistical analysis of resting-state EEG data in a group that is known to be remarkably heterogeneous; namely, people who suffer from chronic tinnitus (ringing in the ear/s).

A Brief Digression: Tinnitus

Chronic tinnitus is a common condition that affects an estimated 10–15% of the populations in the US and the European Union (Cederroth et al. 2013). Sufferers describe tinnitus as a phantom auditory perception that exists unrelated to any external sound source (Eggermont and Roberts 2004). A generally accepted concept of tinnitus generation suggests that it is preceded by damage to the cochlea with an associated hearing loss that leads to dysfunction along the auditory pathway and eventually affects the auditory cortex (Roberts et al. 2012). After the initial stage and as the condition becomes chronic, additional functional and neuroanatomical changes in non-auditory brain regions can be observed (Adjamian et al. 2009; Elgoyhen et al. 2015; Jastreboff 1990; Rauschecker et al. 2015; De Ridder et al. 2011; Vanneste and De Ridder 2012). These alterations are associated with neural processes such as increased synchronicity, hyperactivity and burst-firing (Shore et al. 2016), which are all typical for dysfunctional states of brain activity. To investigate neural activities, neuroimaging techniques such as EEG and magnetoencephalography (MEG) have been utilized in the search to identify a general blueprint which would yield insights into the tinnitus-specific modulation of ongoing neuronal oscillations compared to non-tinnitus controls (for reviews, please see Adjamian et al. 2009; Elgoyhen et al. 2015; and Zobay et al. 2015). Moreover, past findings have led to the formulation of several pathophysiological, partly contradictory, models for the generation (Hullfish et al. 2019) and manifestation of tinnitus (Noreña 2011; Rauschecker et al. 2010; De Ridder et al. 2011; Roberts et al. 2013; Sedley et al. 2016). Indeed, a clear distinction of similarities and dissimilarities between the tinnitus and non-tinnitus brain has yet to be identified, as findings have not been consistent across studies (Elgoyhen et al. 2015; Güntensperger et al. 2017). Potential reasons for the discrepancies in oscillatory findings are manifold, and may include differences in study design and sample selection; technique- and analysis-specific aspects (Adjamian 2014; Gross et al. 2013; Meyer et al. 2017); biological factors such as age (Schlee et al. 2012), tinnitus duration (Schlee et al. 2009), and degree of hearing loss (Adjamian et al. 2012); comorbidities such as hyperacusis, sleep disorders, headache, and concentration problems (Zirke et al. 2010); and associated psychopathological symptoms such as tinnitus-related distress and depression, which contribute their own levels of oscillatory correlates. Along these lines, Meyer et al. conducted a study that was explicitly designed to re-enact a former EEG resting-state experiment (Joos et al. 2012; Meyer et al. 2017). The research group was able to replicate the behavioral but not the neural findings of the reference study by Joos and colleagues. This result implies that, despite a similar pattern of behavioral results between studies, the variance in complex EEG signals may make the comparison between resembling studies almost impossible. Hence, given all the aforementioned factors (and others not been mentioned here) that contribute to the non-uniform appearance of the subjective perception of tinnitus, it is not surprising that inconsistencies across M/EEG studies are generally encountered. This culminates in the challenge on how to consider the associated aberrant oscillatory brain activity of a phenomenon, such as individual tinnitus perception, and the possible dependencies with behavioral measures in the statistical analysis of the data.

We accept the challenge with this report, the aim of which is to shed more light onto the neuronal oscillations of a heterogeneous group of subjects; namely, people who suffer from chronic tinnitus symptoms, based on (i) linear mixed-effect modeling and (ii) taking possible confounding variables, such as tinnitus duration and perceived tinnitus-related distress, into account. While we are well aware that LMM may not explain the individual oscillatory activity of tinnitus per se, the exploratory approach in this report accounts for the existing variability between individuals and hence allows us a more reliable interpretation of the data.



Participants in this study were part of an extensive clinical neurofeedback trial by Güntensperger et al. (2019) and were recruited at the Department of Otorhinolaryngology at the University Hospital Zurich. Prior to the intervention, resting-state EEG data were successfully collected for 49 participants (38 male, aged 24–75 years, mean age of 46.69 ± 12.65 years). Table 1 summarizes behavioral and biographical sample characteristics. Inclusion criteria at screening were as follows: adults (18–75 years) experiencing chronic subjective tinnitus (i.e., for > 0.5 years prior to the study), having sufficient command of the German language to read, understand and complete the questionnaires, as well as no other psychiatric or neurological disorder or acute suicidal tendency. Participants with drug or alcohol addiction, current prescriptions for tranquilizers, neuroleptics, or antiepileptics, and cochlear implants were not included in the study. Each participant gave their written informed consent prior to partaking in the experimental trials.

Table 1 Clinical characteristics


The initial clinical trial consisted of 20 sessions to investigate the efficacy of an individualized neurofeedback protocol in the treatment of chronic tinnitus (Güntensperger et al. 2019). The interested reader is referred to the publication by Güntensperger and colleagues for an in-depth description of the procedure and the EEG recordings (2019).

The subject of the current report is the EEG and behavioral data of the two baseline sessions. In the first baseline session, participants underwent a screening interview for personal data, medical history and a standard audiometry. During the second baseline session, participants were asked to complete various questionnaires covering tinnitus-related symptoms, demographics and other psychological and health-related questions. The choice of questionnaires in the set followed the guidelines of the Tinnitus Research Initiative (TRI) (Landgrebe et al. 2012). In the study described here, the main behavioral outcome measures are tinnitus-related distress and other tinnitus-related characteristics (i.e., tinnitus duration in months). To assess the impact on lifestyle and the overall psychological distress from the phantom percept, we utilized the global score of the Tinnitus Handicap Inventory (THI, German version by Kleinjung et al. 2007). The THI was preferred because the item content predominantly assesses tinnitus distress rather than other tinnitus-related impacts (Frackell and Hoare 2014; Kennedy et al. 2004). Other tinnitus properties were collected using the adjusted version of the Tinnitus Sample Case History Questionnaire (TSCHQ), which was developed by Langguth et al. (2007) as part of a consensus for tinnitus patient assessment. In addition to the behavioral measures, we conducted resting-state EEG recordings during the second baseline session.

EEG Recordings

Eight minutes of resting-state EEG was obtained in a soundproof and electrically shielded room using 64 active channel actiCap electrode caps coupled to a BrainAmp DC amplifier system (Brain Products GmbH, Gilching, Germany). Following the established 10/5 position system (Oostenveld & Praamstra 2001), the Ag/AgCl electrodes were set in the corresponding array. The central frontal electrode FCz was used as online reference and AFz as ground electrode. All impedances were kept below 10 kΩ. The resting-state EEG data was acquired with a sampling rate of 1000 Hz and a direct current (DC) mode with a high-cutoff filter of 1000 Hz with a slope of 12 dB/octave. Electrolyte gel was used to attain conductivity between the skin and the electrodes.

EEG Preprocessing

For EEG data preprocessing, BrainVision Analyzer 2 (Brain Products GmbH, Gilching, Germany) was used. Continuous raw data was bandpass filtered with Butterworth zero-phase filters between 0.1 Hz and 80 Hz, with a slope of 24 dB/octave at the low cutoff and a slope of 48 dB/octave at high cutoff; as well as a 50 Hz Notch filter (bandwidth of 1 Hz, slope of 24 dB/octave) to eliminate the electrical interference. Bad channels were excluded according to standardized criteria (i.e. noise, drift or low activity). Artefact correction was performed in two steps: first, removal of eye blinks and muscular/ pulse artefact using an independent component analysis (ICA) by applying the restricted Infomax (Gradient) algorithm with classic sphering in 512 iterations and the subsequent inverse ICA procedure implemented in BrainVision Analyzer 2; second, removal of excessive artefacts following visual inspection. As a next step, spline-type topographical interpolations was used to re-implement the previously excluded channels. The recorded data were re-referenced to an averaged reference while re-including the implicit reference channel of the actual recording (i.e., FCz). In a last step, segments were created and subsequently transposed into MATLAB Statistics Toolbox (Version 2017a, The MathWorks Inc., Natick, MA, USA).

EEGLAB Toolbox (Version 14.1.1b, (Delorme anbd Makeig 2004)) was used to apply a hamming window with 2 s window length and 1 s overlap. A Fast Fourier Transform (FFT) was computed for each of those 2 s-sequments, followed by a logarithmization (10 ×  log10(x)). As a next step, the grand average of the segments was calculated, resulting in power values in decibel (dB) for each electrode and participants. EEG power values had a frequency resolution of 0.5 Hz and were averaged for each of the 65 electrodes according to standard bands: delta (0.5–4 Hz), theta (4.5–8 Hz), lower alpha (8.5–10 Hz), upper alpha (10.5–12 Hz), beta1 (12.5–15 Hz), beta2 (15.5–23 Hz), beta3 (23.5–35 Hz), and gamma (35.5–45 Hz). For the statistical analysis, power changes were averaged across grouped electrodes. Hence, we performed our analysis with nine clusters consisting of six electrodes each (see Fig. 1). These nine clusters were selected a priori based on previously published studies of tinnitus-related distress (Vanneste et al. 2010; Weisz et al. 2005) and our own work (Meyer et al. 2014, 2017) (Fig. 1).

Fig. 1

Schematic drawing of electrode montage. Each cluster consisted of six adjacent electrodes. Clusters were numbered from frontal (Cluster F1 orange; F2 light green), temporal (T1 brown; T2 forest green), central (C1 black; C2 light blue), parietal (P1 red; P2 dark green), and occipital (O1 dark blue) according to their location along the anterior–posterior dimension


After EEG analysis, a total of 50,960 data sample points were available for statistical analysis (49 participants × 54 electrodes × 8 frequency bands). Data were analyzed using multi-level linear mixed-effects analysis with EEG power as the dependent variable. We specified a linear mixed model (LMM) with independent variables of distress (total THI score; continuous variable), frequency band (FrB; categorical variable; factor of 8 levels: δ, θ, lower-α, upper-α, β1, β2, β3, γ), and EEG cluster (categorical variable; factor of 9 levels; see Fig. 1) with interaction terms, as well as tinnitus duration (in months; continuous variable). For example, the interaction between FrB and THI is defined as the effects of FrB on EEG power, and depends on the value of THI (and vice versa). To account for repeated measures within-subject and between-subject variability, we used PatID as a clustering variable so that the effects of the frequency bands and the EEG cluster could vary across subjects. Using the formula notation in R, the full model was defined as: \( Power \sim THI*FrB*Cluster + Duration + \left( {FrB + Cluster|PatID} \right),data, REML = FALSE, method = \hbox{''}S\hbox{''} \)

Continuous predictors (THI and duration) were mean-centered for the analysis, based on recommendations by Hox (2002). Model selection for the random-effects structure was based on the lowest Akaike information criterion (AIC) and Bayesian information criterion (BIC) value in combination with a significant model improvement using the restricted likelihood ratio test (Field et al. 2013). Non-independence of the dependent variable was determined with the intraclass coefficient (ICC1) and ICC(2) for the grouping factor of Subjects. Visual inspection of residual plots did not reveal any deviation from homoscedasticity or normality. We estimated the overall explained variance of the random-intercept and slope model with the pseudo R2 for the mixed-effects model in this study (Nakagawa and Schielzeth 2013).

P values were obtained using the Satterthwaite approximation (Luke 2017; Satterthwaite 1941). This method was chosen for two reasons. First the data set is relatively large. Second, the Satterthwaite approximation controls the Type I error rate just as well as other common methods like the Kenward Roger approximation (i.e., the default method in afex), but for complicated random-effects structures like the one in this study, it requires less RAM. Post-hoc analyses were performed to get contrasts, and the tests were adjusted using the multivariate t distribution (mvt) in the emmeans package. P values less than 0.05 were considered significant. All statistical analysis was performed in R (R Core Team 2019) using the R packages afex (Singmann et al. 2019), emmeans (Russell Lenth, 2019), lattice (Deepayan Sarkar, 2008), multcomp (Hothorn et al. 2008), and multilevel (Paul Bliese, 2016).


In this section, the results of the LMM analysis are presented. First, the variance and the variability of the found effects across subjects are discussed. We then focus on the fixed-effects of the model and finally, present the two- and three-way interactions.

Variance and Variability

The random-effects are crucial for encoding measurement-dependencies in the design. The mixed model approach in this report includes individual subjects (PatID) as the random-effect grouping factor. 57.8% of the total variance in the power levels is attributed to the level of the individual subjects. Figure 2 provides insight into power differences for each subject.

Fig. 2

Power differences for each frequency band in all subjects. The box and whisker plots of the power differences are grouped per frequency band (delta, theta, lower-alpha, upper-alpha, beta1, beta2, beta3, gamma) for each of the 49 subjects

The intraclass correlation coefficient (ICC) is a measure of proportion of variation in the dependent variable that occurs between-subject versus the total variation present (Fisher 1992). Further, the ICC provides information about the dependencies between observations; in this report, the individual subjects (Kreft and Leeuw 1998). Mathematically, the ICC represents a ratio of true variance over true variance plus error variance (Bartko 1966). The ICC1 is 0.124 which indicates that 12.4% of the variance of EEG power depends on the subject; non-independence is present (ICC(1) = 0.124, F(48, 21,119) = 64.74, p < 0.001). The ICC2 is usually interpreted as a measure of reliability. Using the present model, the ICC2 is 0.985, which indicates that the subjects can be reliably differentiated in terms of their average level of EEG power values.

In addition, we estimated the overall variance explanation of the model with the pseudo-R2 for mixed-effects models (Nakagawa and Schielzeth 2013). The marginal-R2 (R2m) considers only the variance of the fixed-effects, while the conditional-R2 (R2c) takes both the fixed and random-effects into account: pseudo-R2m = 0.675 and pseudo-R2c = 0.908.


Based on the results in Table 2, the next section details the estimates of the fixed-effects. Distress (THI score) and tinnitus duration were used to predict EEG activity across eight frequency bands in nine electrode clusters. A model with random intercept and slope served as the baseline model to test effects of between-subject variables on EEG power differences. We added between-subject (THI and tinnitus duration) and within-subject variables (frequency bands and EEG cluster) and included interactions of predictors. The linear mixed-effects model with EEG power as dependent variable revealed a main effect of frequency bands (F(7, 48.94) = 517.34, p < 0.0001) and cluster (F(8, 48.92) = 62.81, p < 0.0001). No effects were observed for distress (p = 0.59) or tinnitus duration (p = 0.21).

Table 2 Fixed-Effects ANOVA Results

Using interactions between frequency bands, clusters and distress, the analysis revealed a series of significant effects. In the following, the interactions are presented in order of increasing complexity.

Two-Way Interaction

The analysis of EEG power change revealed significance in the interaction between frequency band and cluster, F(56, 20,382.24) = 64.31, p < 0.0001 (for power difference in each cluster see Fig. 3). A significant cluster by distress interaction was also observed, F(8, 48.92) = 2,67, p = 0.02, showing that the effect on power of the level of distress (quantile steps) significantly differs over frontal regions (F1 and F2). No significant two-way interaction of Frequency Band x Distress was observed (p = 0.10).

Fig. 3

Power differences in each cluster for all frequency bands. The box and whisker plots show frequency band specific EEG power fluctuation in each EEG cluster (frontal (F1, F2), temporal (T1, T2), central (C1, C2), parietal (P1, P2), and occipital (O1)). The horizontal line in the middle of each box is the median; the lower and upper sides of the boxes are the 25th and 75th percentiles, respectively; the upper and lower whiskers were derived using the standard setting in R statistics (Chambers et al. 1983, p.62), and the dots represent outliers

Three-Way Interaction

Adding one more interaction, the factor frequency band, to Cluster x Distress, revealed a significant three-way interaction, F(56,20,382.24) = 1.88, p < 0.0001. We observed significance of this interaction for delta in the clusters T1 (p = 0.032) and T2 (p = 0.011), whereas cluster F2 revealed a significant three-way interaction with distress and the frequency bands beta3 and gamma (p < 0.05). Post-hoc analysis revealed the trend of the THI score. This R function is useful when a fitted model involves a continuous predictor x (in this report the THI score) interacting with another predictor a (typically a factor, like frequency bands or cluster). Table 3 illustrates the positive THI score trends corresponding to delta in T1 and T2. The negative trend corresponding to beta3, and gamma in cluster F2 are given in Table 3. No significant differences emerged in the other frequency bands or clusters (p < 0.05).

Table 3 Post-hoc analysis of the three-way interactions: THI-score × cluster X frequency band

Taken together, our results indicate that change of the perceived distress measured with the Tinnitus Handicap Inventory resulted in oscillatory alteration at all nine regional sources (clusters). However, only over the right frontal (F2) and temporal-parietal (T1, T3) regions were significant effects of distress observed. In relationship with all frequency bands (delta, l-alpha, u-alpha, beta1, beta2, beta3, and gamma), the perceived distress targeted significantly delta, beta3 and gamma oscillations. Further, EEG power differs between individuals, which indicates that there are inter-individual differences in the found effects and in the pattern of EEG power oscillations. The fact that these inter-individual differences can be modeled and quantified illustrates the added value of using LMM in EEG studies.

Discussion and Conclusion

To study spontaneous brain activity of a population or to contrast between two samples, the distinctions between individuals or the heterogeneity within the group must be considered. We investigated the resting-state neural oscillations of a group of tinnitus sufferers with the aim of statistically acknowledging the individual differences in the subjective tinnitus experience while, at the same time, taking into account the similarities in tinnitus perception. Here, the cardinal individual tinnitus symptom (i.e., the tinnitus-related distress) was quantified by the Tinnitus Handicap Inventory score. The reported findings suggest that oscillations are associated with tinnitus-related distress in the delta band over temporal-parietal regions, and beta3 and gamma in the right frontal lobe, findings that are consistent with previous observations (Adjamian et al. 2012; Meyer et al. 2017 Schlee et al. 2008;Vanneste et al. 2010; and Weisz et al. 2005). Also in line with these former studies, the individual’s subjective level of tinnitus distress is reflected by changes in the neural patterns over non-auditory regions, such as the frontal lobes. Frontoparietal networks are comprised of higher-order association cortex rather than primary sensory regions as is the case in the primary auditory cortex. These cortical associative regions, which have been related to learning, attentional and emotional processes, are also the most recent to develop in an evolutionary sense (Zilles et al. 1988), and show the highest structural and functional inter-individual variance (Miranda-Dominguez et al. 2014; Mueller et al. 2013).

Examining the idiosyncrasy of the EEG oscillations, the present results indicate that some of the recorded EEG power variance can be attributed to the individual subject. In more detail, spontaneous brain signals derived from a single subject in a single recording (and/or across a certain period of time) are more likely to be similar to each other than two recordings coming from two different individuals. Further, data obtained from individuals can be reliably differentiated, a finding which implies consistency of the individual’s average level of EEG power values. Thus, for data with repeated measurements per person, the iid assumption with respect to the residuals is likely to be violated. This makes it more important to efficiently model the different dependencies and variabilities between- and within-subjects, and indicates the use of mixed models. The reliable attribution of some of the total variability to differences between individual subjects, and furthermore, to quantify those differences, is informative in its own right (Barr et al. 2013; Matuschek et al. 2017). A possible limitation in this context might be the high demand for data to achieve robust estimates of the random-effects variance (Gelman und Hill 2006). To properly estimate the variance, LMM requires more than five levels for the random-effect term. To illustrate, the effect of subjects with a minimum of five individuals would be an adequate random-effect term, whereas the effect of sex as a two level factor of male and female could only be assigned as a fixed-effect. The underlying assumption of a mixed-model is that the levels are a random sample out of a population (as in our example, the subjects in a study are a random sample of a population). Therefore, it is typically assumed that the effects follow a normal distribution in the population, for which only the mean and variance are estimated, rather than the individual effects. For sex, there are only two possibilities in this study, so the assumption that sex is normally distributed in the population is not sensible—the effect of sex can simply be estimated. In contrast, the individual effects of all the subjects in a study would lead to a very high number of additional parameters needing to be estimated. By assuming normally distributed effects, only the mean and variance of the effect are estimated.

If one considers this limitation in combination with the advantages of this modeling approach, such as handling unequal observations, accounting for variability in effect size across individuals, as well as flexibility in designs, LMM enables a more transparent overall prediction to be obtained. Thus, a deeper understanding of both the underlying statistical and physiological patterns of EEG derived data is gained.

Through our presentation and discussion of a fairly simple and tinnitus-focused example of mixed-effects modeling, this report provides a generally informative introduction to and application of the powerful tool of LMMs. The collections of references provide an overview of the primary literature and showcase the potential for this statistical tool to be implemented in more complex M/EEG study designs from a range of domains. Specifically, any scientific studies in which the hierarchical non-independency of input space is attributed to the individuality of a subject. More generally speaking, in cases in which heterogeneous groups of subjects are mixed, the statistical modeling approach of LMM could be used to account for subtle changes in oscillatory activity, to validate existing theoretical models, to elucidate the source of at least parts of the reproducibility issues, and to focus on the relevant theoretical issues in M/EEG research.


  1. 1.

    The independence assumption refers to the residuals: After taking the structure of the model (i.e., parameters) into account, the probability of a data point having a specific value is independent of all other data points. For an identical distribution, all observations are sampled from the same distribution.

  2. 2.

    Green and Tukey provide an alternative definition: “When a sample exhausts the population, the corresponding variable is fixed; when the sample is a small (i.e., negligible) part of the population the corresponding variable is random” (1960)


  1. Adjamian P (2014) The application of electro- and magneto-encephalography in tinnitus research-methods and interpretations. Front Neurol 5:228.

    Article  PubMed  PubMed Central  Google Scholar 

  2. Adjamian P, Sereda M, Hall DA (2009) The mechanisms of tinnitus: perspectives from human functional neuroimaging. Hear Res 253(1):15–31.

    Article  PubMed  Google Scholar 

  3. Adjamian P, Sereda M, Zobay O, Hall DA, Palmer AR (2012) Neuromagnetic indicators of tinnitus and tinnitus masking in patients with and without hearing loss. J Assoc Res Otolaryngol 13(5):715–731.

    Article  PubMed  PubMed Central  Google Scholar 

  4. Baayen RH, Davidson DJ, Bates DM (2008) Mixed-effects modeling with crossed random effects for subjects and items. J Memo Lang 59(4):390–412.

    Article  Google Scholar 

  5. Bagiella E, Sloan R, Heitjan DF (2000) Mixed-effects models in psychophysiology. Psychophysiology 37(1):13–20

    CAS  Article  Google Scholar 

  6. Barch DM, Burgess GC, Harms MP, Petersen SE, Schlaggar BL, Corbetta M, Glasser MF, Curtiss S, Dixit S, Feldt C, Nolan D, Bryant E, Hartley T, Footer O, Bjork JM, Poldrack R, Smith S, Johansen-Berg H, Snyder AZ, van Essen DC (2013) Function in the human connectome: Task-fMRI and individual differences in behavior. NeuroImage 80:169–189.

    Article  PubMed  PubMed Central  Google Scholar 

  7. Barr DJ, Levy R, Scheepers C, Tily HJ (2013) Random effects structure for confirmatory hypothesis testing: keep it maximal. J Mem Lang.

    Article  PubMed  PubMed Central  Google Scholar 

  8. Bartko JJ (1966) The intraclass correlation coefficient as a measure of reliability. Psychol Rep 19(1):3–11.

    CAS  Article  PubMed  Google Scholar 

  9. Bates D, Mächler M, Bolker B, Walker S (2014) Fitting linear mixed-effects models using lme4.

  10. Bates DM (2010) lme4: mixed-effects modeling with R. Berlin.

  11. Berger H (1929) Über das Elektrenkephalogramm des Menschen. Archiv für Psychiatrie und Nervenkrankheiten 87(1):527–570.

    Article  Google Scholar 

  12. Bliese P (2016) Multilevel: multilevel functions.

  13. Bolker BM (2015) Linear and generalized linear mixed models. In: Fox GA, Negrete-Yankelevich S, Sosa VJ (eds) Ecological statistics: contemporary theory and application. Oxford University Press, Oxford, pp 309–333

    Google Scholar 

  14. Cederroth CR, Canlon B, Langguth B (2013) Hearing loss and tinnitus—are funders and industry listening? Nat Biotechnol.

    Article  PubMed  Google Scholar 

  15. Chambers JM, Cleveland WS, Kleiner B, Tukey PA (1983) Graphical methods for data analysis. Wadsworth & Brooks/Cole, California

    Google Scholar 

  16. Chu CJ, Kramer MA, Pathmanathan J, Bianchi MT, Westover MB, Wizon L, Cash SS (2012) Emergence of stable functional networks in long-term human electroencephalography. J Neurosci 32(8):2703–2713.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  17. Cornew L, Roberts TPL, Blaskey L, Edgar JC (2012) Resting-state oscillatory activity in autism spectrum disorders. J Autism Dev Disord 42(9):1884–1894.

    Article  PubMed  PubMed Central  Google Scholar 

  18. Cox R, Schapiro AC, Stickgold R (2018) Variability and stability of large-scale cortical oscillation patterns. Netw Neurosci 2(4):481–512.

    Article  PubMed  PubMed Central  Google Scholar 

  19. Dempster AP, Patel CM, Selwyn MR, Roth AJ (1984) Statistical and computational aspects of mixed model analysis. Appl Stat 33(2):203.

    Article  Google Scholar 

  20. De Ridder D, Elgoyhen AB, Romo R, Langguth B (2011) Phantom percepts: tinnitus and pain as persisting aversive memory networks. Proc Natl Acad Sci USA 108(20):8075–8080.

    Article  PubMed  Google Scholar 

  21. Eggermont JJ, Roberts LE (2004) The neuroscience of tinnitus. Trends Neurosci 27(11):676–682.

    CAS  Article  PubMed  Google Scholar 

  22. Elgoyhen AB, Langguth B, De Ridder D, Vanneste S (2015) Tinnitus: perspectives from human neuroimaging. Nat Rev Neurosci 16(10):632.

    CAS  Article  PubMed  Google Scholar 

  23. Field A, Miles J, Field Z (2013) Discovering statistics using R (Reprint). Sage.

  24. Finn ES, Shen X, Scheinost D, Rosenberg MD, Huang J, Chun MM, Papademetris X, Constable RT (2015) Functional connectome fingerprinting: identifying individuals using patterns of brain connectivity. Nat Neurosci 18(11):1664.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  25. Fisher RA (1992) Statistical methods for research workers. In: Kotz S, Johnson NL (eds) Springer series in statistics, perspectives in statistics. Breakthroughs in statistics: methodology and distribution. Springer, New York, pp 66–70

    Google Scholar 

  26. Frackell K, Hoare DJ (2014) Questionnaires to measure tinnitus severity. ENT Audiol News 22(6):718–723

    Google Scholar 

  27. Gelman A, Hill J (2006) Data analysis using regression and multilevel/hierarchical models. Cambridge University Press, Cambridge

    Google Scholar 

  28. Green BF, Tukey JW (1960) Complex analyses of variance: general problems. Psychometrika 25(2):127–152.

    Article  Google Scholar 

  29. Gross J, Baillet S, Barnes GR, Henson RN, Hillebrand A, Jensen O, Jerbi K, Litvak V, Maess B, Oostenveld R, Parkkonen L, Taylor JR, van Wassenhove V, Wibral M, Schoffelen J-M (2013) Good practice for conducting and reporting MEG research. NeuroImage 65:349–363.

    Article  PubMed  PubMed Central  Google Scholar 

  30. Güntensperger D, Thüring C, Kleinjung T, Neff P, Meyer M (2019) Investigating the efficacy of an individualized alpha/delta neurofeedback protocol in the treatment of chronic tinnitus. Neural Plast, 2019.

  31. Güntensperger D, Thüring C, Meyer M, Neff P, Kleinjung T (2017) Neurofeedback for tinnitus treatment-review and current concepts. Front Aging Neurosci 9:386.

    Article  PubMed  PubMed Central  Google Scholar 

  32. Harrison XA, Donaldson L, Correa-Cano ME, Evans J, Fisher DN, Goodwin CED, Robinson BS, Hodgson DJ, Inger R (2018) A brief introduction to mixed effects modelling and multi-model inference in ecology. PeerJ 6:e4794.

    Article  PubMed  PubMed Central  Google Scholar 

  33. Hothorn T, Bretz F, Westfall P (2008) Simultaneous inference in general parametric models. Biomet J 50(3):346–363

    Article  Google Scholar 

  34. Houslay TM, Wilson AJ (2017) Avoiding the misuse of BLUP in behavioural ecology. Behav Ecol 28(4):948–952.

    Article  PubMed  PubMed Central  Google Scholar 

  35. Hox JJ (2002) Multilevel analysis: techniques and applications. Erlbaum, Mahwah

    Google Scholar 

  36. Hullfish J, Sedley W, Vanneste S (2019) Prediction and perception: Insights for (and from) tinnitus. Neurosci Biobehav Rev 102:1–12.

    Article  PubMed  Google Scholar 

  37. Jastreboff PJ (1990) Phantom auditory perception (tinnitus): mechanisms of generation and perception. Neurosci Res 8(4):221–254.

    CAS  Article  PubMed  Google Scholar 

  38. Joos K, Vanneste S, De Ridder D (2012) Disentangling depression and distress networks in the tinnitus brain. PLoS ONE 7(7):e40544.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  39. Judd CM, Westfall J, Kenny DA (2012) Treating stimuli as a random factor in social psychology: a new and comprehensive solution to a pervasive but largely ignored problem. J Pers Soc Psychol 103(1):54–69.

    Article  PubMed  Google Scholar 

  40. Kennedy V, Wilson C, Stephens D (2004) Quality of life and tinnitus. Audiol Med 2(1):29–40.

    Article  Google Scholar 

  41. Kleinjung T, Fischer B, Langguth B, Sand PG, Hajak G, Dvorakova J, Eichhammer P (2007) Validierung einer deutschsprachigen Version des „Tinnitus Handicap Inventory”. Psychiatr Prax 34(S1):40–142

    Google Scholar 

  42. Kreft I, de Leeuw J (1998) Introducing multilevel modeling. SAGE Publications Ltd, Thousand Oaks

    Google Scholar 

  43. Landgrebe M, Azevedo A, Baguley D, Bauer C, Cacace A, Coelho C, Dornhoffer J, Figueiredo R, Flor H, Hajak G, van de Heyning P, Hiller W, Khedr E, Kleinjung T, Koller M, Lainez JM, Londero A, Martin WH, Mennemeier M, Piccirillo J, De Ridder D, Rupprecht R, Searchfield G, Vanneste S, Zeman F, Langguth B (2012) Methodological aspects of clinical trials in tinnitus: a proposal for an international standard. J Psychosom Res 73(2):112–121

    Article  Google Scholar 

  44. Langguth B, Goodey R, Azevedo A, Bjorne A, Cacace A, Crocetti A, Del Bo L, De Ridder D, Diges I, Elbert T, Flor H, Herraiz C, Ganz Sanchez T, Eichhammer P, Figueiredo R, Hajak G, Kleinjung T, Landgrebe M, Londero A,⋯Vergara R (2007) Consensus for tinnitus patient assessment and treatment outcome measurement: tinnitus Research Initiative meeting, Regensburg, July 2006. In: AR Moller, B Langguth, G Hajak, T Kleinjung, A Cacace (eds.), Progress in Brain research: vol. 166. Tinnitus: pathophysiology and treatment: pathophysiology and treatment (1st edn., vol. 166, pp. 525–536). Elsevier textbooks.

  45. Lenth R (2019) emmeans: estimated marginal means, aka least-squares means.

  46. Luke SG (2017) Evaluating significance in linear mixed-effects models in R. Behav Res Methods 49(4):1494–1502.

    Article  PubMed  Google Scholar 

  47. Matuschek H, Kliegl R, Vasishth S, Baayen H, Bates D (2017) Balancing Type I error and power in linear mixed models. J Mem Lang 94:305–315.

    Article  Google Scholar 

  48. Meyer M, Luethi MS, Neff P, Langer N, Büchi S (2014) Disentangling tinnitus distress and tinnitus presence by means of EEG power analysis. Neural Plast 2014:468546.

    Article  PubMed  PubMed Central  Google Scholar 

  49. Meyer M, Neff P, Grest A, Hemsley C, Weidt S, Kleinjung T (2017) Eeg oscillatory power dissociates between distress- and depression-related psychopathology in subjective tinnitus. Brain Res 1663:194–204.

    CAS  Article  PubMed  Google Scholar 

  50. Miranda-Dominguez O, Mills BD, Carpenter SD, Grant KA, Kroenke CD, Nigg JT, Fair DA (2014) Connectotyping: Model based fingerprinting of the functional connectome. PLoS ONE 9(11):e111048.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  51. Mueller S, Wang D, Fox MD, Yeo BTT, Sepulcre J, Sabuncu MR, Shafee R, Lu J, Liu H (2013) Individual variability in functional connectivity architecture of the human brain. Neuron 77(3):586–595.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  52. Nakagawa S, Schielzeth H (2013) A general and simple method for obtaining R2 from generalized linear mixed-effects models. Methods Ecol Evol 4(2):133–142.

    Article  Google Scholar 

  53. Noreña AJ (2011) An integrative model of tinnitus based on a central gain controlling neural sensitivity. Neurosci Biobehav Rev 35(5):1089–1109.

    Article  PubMed  Google Scholar 

  54. Oostenveld R, Praamstra P (2001) The five percent electrode system for high-resolution EEG and ERP measurements. Clin Neurophysiol 112(4):713–719.

    CAS  Article  PubMed  Google Scholar 

  55. Pinheiro JC, Bates DM (2000) Linear mixed-effects models: basic concepts and examples. In: Pinheiro JC, Bates DM (eds) Statistics and computing: mixed-effects models in S and S-PLUS. Springer, New York, pp 3–56

    Google Scholar 

  56. R Core Team (2019) R: a language and environment for statistical computing.

  57. Rauschecker JP, Leaver AM, Mühlau M (2010) Tuning out the noise: limbic-auditory interactions in tinnitus. Neuron 66(6):819–826.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  58. Rauschecker JP, May ES, Maudoux A, Ploner M (2015) Frontostriatal gating of tinnitus and chronic pain. Trends Cognit Sci 19(10):567–578.

    Article  Google Scholar 

  59. Roberts LE, Bosnyak DJ, Thompson DC (2012) Neural plasticity expressed in central auditory structures with and without tinnitus. Front Syst Neurosci 6:40.

    Article  PubMed  PubMed Central  Google Scholar 

  60. Roberts LE, Husain FT, Eggermont JJ (2013) Role of attention in the generation and modulation of tinnitus. Neurosci Biobehav Rev 37(8):1754–1773.

    Article  PubMed  Google Scholar 

  61. Sarkar D (2008) Lattice: multivariate data visualization with R. Springer, New York

    Google Scholar 

  62. Satterthwaite FE (1941) Synthesis of variance. Psychometrika 6(5):309–316.

    Article  Google Scholar 

  63. Schlee W, Hartmann T, Langguth B, Weisz N (2009) Abnormal resting-state cortical coupling in chronic tinnitus. BMC Neurosci 10:11.

    Article  PubMed  PubMed Central  Google Scholar 

  64. Schlee W, Leirer V, Kolassa S, Thurm F, Elbert T, Kolassa I-T (2012) Development of large-scale functional networks over the lifespan. Neurobiol Aging 33(10):2411–2421.

    Article  PubMed  Google Scholar 

  65. Schlee W, Weisz N, Bertrand O, Hartmann T, Elbert T (2008) Using auditory steady state responses to outline the functional connectivity in the tinnitus brain. PLoS ONE 3(11):e3720.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  66. Sedley W, Friston KJ, Gander PE, Kumar S, Griffiths TD (2016) An Integrative tinnitus model based on sensory precision. Trends Neurosci 39(12):799–812.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  67. Shore SE, Roberts LE, Langguth B (2016) Maladaptive plasticity in tinnitus—triggers, mechanisms and treatment. Nat Rev Neurol 12(3):150–160.

    Article  PubMed  PubMed Central  Google Scholar 

  68. Singmann H, Bolker B, Westfall J, Aust F, Ben-Shachar MS (2019) afex: analysis of factorial experiments

  69. Singmann H, Kellen D (2017) An introduction to mixed models for experimental psychology. New Methods Neurosci Cognit Psychol.

  70. Valizadeh SA, Riener R, Elmer S, Jäncke L (2019) Decrypting the electrophysiological individuality of the human brain: identification of individuals based on resting-state EEG activity. NeuroImage 197:470–481.

    Article  PubMed  Google Scholar 

  71. Vanneste S, Plazier M, van der Loo E, van Heyning P, de Congedo M, de Ridder D (2010) The neural correlates of tinnitus-related distress. NeuroImage 52(2):470–480.

    Article  PubMed  Google Scholar 

  72. Vanneste S, De Ridder D (2012) The auditory and non-auditory brain areas involved in tinnitus: an emergent property of multiple parallel overlapping subnetworks. Front Syst Neurosci 6:31.

    Article  PubMed  PubMed Central  Google Scholar 

  73. Weisz N, Moratti S, Meinzer M, Dohrmann K, Elbert T (2005) Tinnitus perception and distress is related to abnormal spontaneous brain activity as measured by magnetoencephalography. PLoS Med.

    Article  PubMed  PubMed Central  Google Scholar 

  74. Zhang Z, Ersoz E, Lai C-Q, Todhunter RJ, Tiwari HK, Gore MA, Bradbury PJ, Yu J, Arnett DK, Ordovas JM, Buckler ES (2010) Mixed linear model approach adapted for genome-wide association studies. Nat Genet 42(4):355–360.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  75. Zilles K, Armstrong E, Schleicher A, Kretschmann H-J (1988) The human pattern of gyrification in the cerebral cortex. Anat Embryol 179(2):173–179.

    CAS  Article  PubMed  Google Scholar 

  76. Zirke N, Goebel G, Mazurek B (2010) Tinnitus und psychische Komorbiditäten. HNO 58(7):726–732.

    CAS  Article  PubMed  Google Scholar 

  77. Zobay O, Palmer AR, Hall DA, Sereda M, Adjamian P (2015) Source space estimation of oscillatory power and brain connectivity in tinnitus. PLoS ONE 10(3):e0120123.

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  78. Zuur AF (2009) Mixed effects models and extensions in ecology with R Statistics for biology and health. Springer, New York

    Google Scholar 

Download references


Thanks to Dominik Güntensperger and Martin Meyer for providing comments on the final draft. We thank Dries Debeer for methodological support.


This project has received funding from the European Union's Horizon 2020 research and innovation program [Marie Skłodowska-Curie grant agreement number 722046]. The views expressed in this article are those of the authors and not necessarily those of the funders.

Author information




All authors contributed to manuscript development and approved the final document.

Corresponding author

Correspondence to Constanze Riha.

Ethics declarations

Conflict of interest

All authors declare that there is no conflict of interest.

Data And Code Availability

The data is not yet able to be made openly available, due to ongoing analysis of the data set. Thus, we are sorry that the data is not publicly accessible.

Ethics Approval

This report is based on the clinical trial by Güntensperger et al. (2019). The initial study was online registered at (NCT02383147), as well as (SNCTP00001313) and investigated the efficacy of an individualized Neurofeedback protocol in the treatment of chronic tinnitus.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Handling Editor: Christoph M. Michel.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Riha, C., Güntensperger, D., Kleinjung, T. et al. Accounting for Heterogeneity: Mixed-Effects Models in Resting-State EEG Data in a Sample of Tinnitus Sufferers. Brain Topogr 33, 413–424 (2020).

Download citation


  • Electroencephalography
  • Resting-state
  • Mixed-effect model
  • Tinnitus
  • Oscillation