Introduction

Working memory is a crucial cognitive ability that enables goal-directed behaviour and higher cognitive function. It involves the ability to maintain and manipulate information in the absence of sensory stimuli in support of an ongoing task (Baddeley, 2012) and is dependent on a complex set of cognitive processes and neural mechanisms (Wager and Smith, 2003). Due to its core role in cognition, working memory has been an object of intense research interest in cognitive neuroscience including electroencephalography (EEG). This method allows for time-frequency analysis of brain activity (Cohen, 2014), which typically focuses on changes within predefined frequency bands. One frequently used experimental paradigm for studying working memory mechanisms using time-frequency analysis is the n-back task (Figure 1). This task integrates key working memory processes such as encoding, maintenance, updating, and recall of stored information (Owen et al., 2005; Gevins et al., 1997). Power spectra dynamics in this ongoing working memory task are typically attributed to oscillatory activity (Coleman et al., 2023; Pesonen et al., 2007; Chen and Huang, 2016). Theta oscillations (4–8 Hz) are often shown to play a significant role in cognitive control and working memory processing (Palomäki et al., 2012; Scharinger et al., 2017; Pesonen et al., 2007), while event-related responses in the alpha (6–12 Hz) and beta (13–30 Hz) range have been linked to attention and other cognitive processes, related to working memory (Krause et al., 2010; Gevins et al., 1997; Coleman et al., 2023).

Schematic representation of the n-back task.

The n-back working memory task was conducted in two distinct modalities: visuospatial and verbal. In the 2-back condition, participants had to identify whether the current stimulus matched the one presented two steps previously. In the visuospatial modality, the target was a spatial location, whereas in the verbal modality, the target was a letter. In the 0-back condition participants’ task was to respond to a predefined target, with the type of target corresponding to the task modality. Target stimuli are highlighted in orange.

EEG power spectra are characterised by 1/f power scaling, i.e. power decreases as frequency increases, introducing the aperiodic component into the analytical framework. This component complicates interpretation of the results by potentially obscuring changes in periodic (oscillatory) activity, as it represents a continuous spectrum of activity that does not conform to discrete oscillatory patterns (Cohen, 2014; Donoghue et al., 2020b). To overcome this challenge and to improve the clarity of task-related changes in time-frequency analysis, baseline correction is often used.

Baseline correction aims to normalise the data by subtracting the aperiodic background in order to isolate and examine the oscillatory dynamics more clearly. However, there are two main problems with the use of baseline correction. First, the n-back task requires continuous cognitive processes such as information maintenance during inter-trial-interval, most commonly used to estimate baseline activity, resulting in no neutral (pre-stimulus) baseline activity to which to compare stimulus-related processing and responses. Second, the use of baseline correction methods (implicitly) assumes that aperiodic activity remains stable over time and is dismissed as background noise (Gyurkovics et al., 2021; Merkin et al., 2023; Donoghue et al., 2020b), and therefore its dynamics are not taken into account.

Recent studies investigating task-related fluctuations in aperiodic activity (Gyurkovics et al., 2022; Virtue-Griffiths et al., 2022; Akbarian et al., 2023; Kałamała et al., 2024) have shown that ignoring these dynamics can distort oscillatory measurements and obscure important physiological and behavioural information (Gyurkovics et al., 2021; Donoghue et al., 2020a). Thus, subtracting baseline activity removes important information, whereas not doing so makes it difficult to observe significant task-related changes. Our aim is to reassess previous interpretations obtained through conventional EEG analysis methods by investigating the respective contributions of aperiodic and periodic (oscillatory) activity to the overall power spectrum dynamics (Figure 2) during the n-back task, without losing important information that baseline correction might introduce.

Schematic of the analysis.

The time domain data were first transformed into the time-frequency domain by convolution with superlets (Moca et al., 2021). Next, the periodic and aperiodic components of the power spectrum density were estimated for each time point using FOOOF (Fitting Oscillations and One-Over-F) algorithm (Donoghue et al., 2020b). The aperiodic component was further separated into the slope (exponent) and offset components.

The common approach to time-frequency analysis assumes that the observed peaks in the measured power spectrum mainly reflect modulations of periodic activity. In fact, the presence of power in a particular frequency band is not necessarily indicative of oscillatory dynamics, as aperiodic activity can make up a significant proportion of the observed power spectra (Bullock et al., 2003; Donoghue et al., 2020a, 2022). Computa-tional modelling has suggested that the aperiodic activity measured by EEG reflects the balance between excitation and inhibition (E:I) of the brain (Gao et al., 2017; Lim and Goldman, 2013), which is essential for efficient cognitive processes (Ahmad et al., 2022). Aperiodic activity spans the entire frequency range, varies continuously, and can be described by a linear slope when plotted in semi-logarithmic space (Donoghue et al., 2020b; He, 2014). A steeper slope indicates higher power at low frequencies, often associated with more intense cognitive processing, while a flatter slope signals more even power distribution across frequencies (Gyurkovics et al., 2022; Kałamała et al., 2024), possibly indicating a less engaged brain, weaker E:I balance and lower cognitive performance, including working memory (Akbarian et al., 2023; Kałamała et al., 2024; Lendner et al., 2023). Variations in aperiodic slope have been found to be modulated by age (Voytek et al., 2015; Dave et al., 2018; Merkin et al., 2023) and mental state (Donoghue et al., 2020a; Podvalny et al., 2015; Waschke et al., 2021). Moreover, task-related changes in overall power, typically interpreted as oscillatory dynamics, may be significantly co-modulated by the aperiodic slope shift (Akbarian et al., 2023; Gyurkovics et al., 2022; Virtue-Griffiths et al., 2022) Given these recent demonstrations of the functional role of aperiodic activity and its dynamics, it’s methodologically imperative to carefully parameterise both periodic and aperiodic spectral features of an EEG before interpreting time-frequency analysis results.

In this study, we aim to explore the distinct role of the aperiodic component in the n-back task and investigate possible differences between aperiodic and periodic components in relation to the cognitive demands of the task. This focus on the aperiodic component offers a novel perspective on working memory mechanisms. Furthermore, we question the influence of commonly used baseline correction methods on the measurement of oscillatory activity, which is in line with the investigation of aperiodic activity dynamics. Unaccounted-for aperiodic activity might have biased the measures of oscillatory dynamics reported in previous n-back studies, while its own dynamics were not investigated.

The study’s main objective is to investigate whether the dynamics of aperiodic activity in the n-back task are influenced by memory load, stimulus type, or modality. We expect to replicate a steepening aperiodic slope after the stimulus onset, as previously reported by Akbarian et al. (2023); Gyurkovics et al. (2022); Virtue-Griffiths et al. (2022).

Our study builds on previous research by using high temporal resolution data to investigate the dynamics of the aperiodic slope in two modalities (visuospatial/verbal). Additionally, in contrast to other n-back studies that examine peristimulus intervals using discrete time windows (Akbarian et al., 2023; Kałamała et al., 2024), we analyse the activity at each time point within this range, offering a more detailed perspective. It is important not to overlook possible fluctuations in the aperiodic slope that may occur in short time periods, as they may provide valuable insights into the dynamics of aperiodic activity during the continuous working memory task.

We hypothesised that the aperiodic slope would be modulated by the processing demands of the n-back task, and that this modulation would vary according to differences in load and stimulus type. We did not expect modality-dependent differences in aperiodic activity, as the modulation of the post-stimulus slope suggests a global inhibitory response in the brain (Gyurkovics et al., 2022).

The reason for our focused examination of aperiodic activity is its potential to redefine our understanding of cognitive workload and efficiency in working memory tasks. Additionally, we aim to provide a novel perspective on the dynamic interplay between aperiodic and periodic activities during the n-back task. By distinguishing between these two types of activities, this study addresses the baseline correction problem inherent in continuous tasks and the evolving nature of aperiodic activity. Our research aims to fill a critical gap in the existing literature by dissecting the unique contributions of aperiodic and periodic activities.

To test the generalisability of our findings, we applied our method on two additional studies. First, to see whether results could be replicated on an equivalent task, we analysed a publicly available dataset in which middle-aged participants performed a verbal n-back task (Nakuci et al., 2023). Second, to explore whether results can be replicated on a different task, we analysed data from an item-recognition task (Sternberg, 1969) in which participants were shown a set of visual stimuli, asked to maintain their color, position or both over a short delay, and report whether the probe shown after the delay matched the items in memory. This allowed us to investigate whether the initial findings generalise to different working memory tasks.

Results

We analysed the EEG data from the visuospatial and verbal n-back tasks. We transformed the data into the time-frequency domain by convolving it with super-lets (Moca et al., 2021). Subsequently, we applied the FOOOF (Fitting Oscillations and One-Over-F) algorithm (Donoghue et al., 2020b) to decompose the activity into periodic and aperiodic components (Figure 2).

Changes in aperiodic activity appear as theta activity in baseline corrected time-frequency plots

As the first step of our analysis, we compared periodic and aperiodic activity with baseline-corrected time-frequency activity. In the baseline-corrected time-frequency plot, we observed a decrease in alpha and beta power up to 1 second post-stimulus, while theta power increased from 0 seconds post-stimulus (Figure 3, Figure S11). The observed pattern was minimally affected by the choice of baseline (Figure S1). Notably, when we examined periodic activity, we only observed changes in alpha and beta, while theta activity was absent, presumably because it reflected aperiodic activity rather than oscillations.

Effect of baseline correction and FOOOF decomposition on time-frequency decomposition in the n-back task.

Illustration of the effect of baseline correction and FOOOF decomposition on EEG time-frequency analysis. (A) “Raw” total power from time-frequency decomposition is difficult to interpret due to the 1/f power scaling of EEG power spectra (here representing average data across subjects, channels and conditions). In panel B we applied baseline correction (decibel conversion) using a pre-stimulus interval of -0.5 to -0.2 seconds for comparison. The baseline correction showed a significant decrease in alpha and beta power from 0 to 1 second and a concomitant increase in theta power lasting up to 2 seconds. The observed changes were very similar across different choices of baseline correction (Figure S1). However, it’s unclear from the baseline-corrected data whether the changes in theta power are oscillatory or aperiodic. Separation into periodic (C) and aperiodic (D) components shows that changes in theta power are due to changes in aperiodic activity.

To further confirm the absence of theta in periodic activity across our sample, we examined individual power spectra (Figure S2). Despite considerable heterogeneity among participants, we observed a distinct theta peak in only two participants.

Periodic activity changes with working memory load, stimulus type and modality

Next, we examined the differences in periodic activity as a function of task conditions. We observed a decrease in the alpha and beta bands of periodic activity in the 2-back compared to the 0-back condition over the entire trial period and over the entire scalp (Figure 4, Figure 5). Furthermore, we found a greater decrease in alpha and beta power in response to targets compared to non-targets. In addition, we observed a correlation between beta power and reaction times in central channels. This correlation was positive in the early period (up to 0.5 seconds post-stimulus) and negative in the late period (1–2 seconds post-stimulus). Finally, we observed an interaction between modality and stimulus type in the time period from 0.5 to 1 second post-stimulus, reflecting a greater difference between target and non-target stimuli in the verbal task in the alpha and beta bands compared to the visuospatial task (Figure S3).

Changes in periodic (oscillatory) activity as a function of time.

(A) The inspection of periodic activity revealed strong activity in the alpha and beta frequency bands, with a sharp decrease at around 0.5 seconds post-stimulus. The power was stronger in the 0-back condition, compared to the 2-back condition (see also Figure 5). (B) Early beta activity was most prominent at occipital and frontal channels.

Results of the linear mixed model analysis of periodic activity for comparison between conditions.

Significant values are highlighted on the heatmap and marked with yellow circles on the topographies. Only factors with significant differences are shown. A p-value was interpreted as significant if it was significant in at least 3 channels or 3 time points (see Methods for details). Note that there are small discrepancies between significant values on heatmaps and topographies due to averaging across time or channels. A significant difference was observed between the 2-back and 0-back conditions, with a reduction in activity in the 2-back condition, particularly in the alpha and beta frequency bands, starting at 0.5 seconds post-stimulus. The differences between stimulus types were most evident from 0.3 to 1 second post-stimulus, with decreased activity for targets compared to non-targets across the whole scalp. Additionally, a smaller effect of the modality × stimulus type interaction was observed from 0.6 to 1 second post-stimulus (see also Figure S3 for detailed visualisation of the interaction). Associations with reaction times were significant in the beta band across central channels. These associations exhibited a positive correlation in the early phase (0 to 0.5 seconds) and a negative correlation in the later phase (1 to 1.5 seconds).

Aperiodic activity has frontal and parietal components

We analysed the aperiodic activity separately for the parameters offset and exponent (slope). We observed two distinct components (peaks) in the time course of the exponent (Figure 6). The first component peaked at around 0.3 s after stimulus onset and was most pronounced in frontal channels, whereas the second component peaked at around 0.7 s post-stimulus and was most pronounced in parietal channels. The exponent exhibited significant differences between stimulus types (Figure 7). Specifically, the exponent was larger for targets at approximately 0.3 seconds and for non-targets at approximately 0.7 seconds post-stimulus. We observed no other differences between conditions. We found associations with reaction times at approximately 1.4 seconds post-stimulus in the parieto-occipital channels.

Changes in aperiodic activity (slope or exponent) as a function of time.

(A) We averaged the time course of the aperiodic activity (exponent) over all channels and observed two components (peaks) of the aperiodic activity. The first component peaked around 0.3 s post-stimulus in the frontal channels. The second component peaked at 0.7 s, was stronger in parietal channels and differed between non-target and target conditions (see Figure 7). The time course of the offset parameter was comparable, although the separation between the frontal and parietal components was more pronounced (see Figure S4).

Results of the linear mixed model analysis of aperiodic (exponent) activity for comparison between conditions.

Significant values are shown in blue on line plots and marked with yellow circles on topographies. Only factors with significant differences are shown. The only significant differences between conditions were observed between target and non-target conditions, where the exponent was higher for targets in the early phase (0 to 0.5 s post-stimulus) and for non-targets in the middle phase (0.5 to 1 s post-stimulus). There was also a small association with reaction times in occipital channels around 1.5 seconds post-stimulus. Results were similar for the offset parameter, with an additional effect of load and n-back × stimulus type interaction (Figure S5).

Similar to the exponent, offset also showed a pattern of activity with two components (see Figure S4). In addition, offset was sensitive to differences in load (lower offset for 2-back), and there was also an interaction between load × and stimsulus type (see Figure S5).

Aperiodic activity does not reflect event-related potentials

To ensure that the aperiodic activity identified in our study did not simply reflect event-related potentials (ERPs), we systematically removed evoked activity from the data prior to conducting the time-frequency analysis. We then performed a correlation analysis between the topographies of ERPs and aperiodic activity for each time point, condition, and participant. We found the correlation between ERPs and aperiodic activity to be consistently low, with a value of approximately 0.25 or lower (see Figure S7). This was observed throughout the entire time period examined.

In addition, we performed FOOOF decomposition on data that did not undergo ERP subtraction. The results were comparable to those observed with subtracted ERPs (Figure S9, Figure S10, Figure S8). Nevertheless, when ERP was not subtracted we observed a more pronounced increase in both aperiodic and periodic power between 0 and 0.5 seconds following stimulus presentation compared to the case with subtracted ERPs.

Replication confirms main findings

To ensure the generalisability of the findings, we repeated all analyses using two additional datasets. First we analysed a publicly available dataset from a previously published study by Nakuci et al. (2023), in which participants performed a verbal n-back task with three load levels (0-, 1-, 2-back). Next, we analysed the data from an item-recognition task.

In both analyses, we were able to replicate the main findings previously reported, namely the task-related modulation of periodic alpha and beta activity and the task-related changes in aperiodic activity. In the baseline-corrected data, we observed a decrease in alpha and beta power accompanied by an increase in theta power (Figure S11B, Figure 8B). Theta oscillations were not evident in the grand average periodic activity (Figure S11C, Figure 8C, Figure S24) and were only detected in two participants in the n-back task (Figure S12). In the item-recognition task, theta oscillations were present in approximately one-third of the participants (Figure S23). In half of these cases, the peaks were at 7–8 Hz, which could be considered low alpha peaks rather than theta oscillations.

The effect of baseline correction and FOOOF decomposition on time-frequency decomposition in the item-recognition task.

Similar to the n-back task (Figure 3, Figure S11), a decrease in alpha power is observed following instruction and stimuli presentation (up to 0.8 seconds) and continues throughout the retention period, up to 2.8 seconds post-stimulus (B). This is followed by a decrease in alpha and beta power during probe presentation, which is likely indicative of a motor response. Simultaneously, there is an increase in theta power, which is most pronounced during stimulus presentation (up to 0.8 seconds) and again after probe presentation (after 2.8 seconds). The FOOOF decomposition indicates that theta activity is predominantly aperiodic (C, D). The data shown represent the group average over all conditions at electrode Fz, where theta activity was most pronounced (see also Figure S24).

Regarding aperiodic activity, we observed frontal and parietal/occipital components in both tasks. In the item-recognition task, these components were clearly observable only for the offset parameter, whereas for the exponent, the two components were not clearly distinguishable, likely due to lower spatial resolution (32 channels). In both tasks, aperiodic activity was modulated by task demands, with an increase in aperiodic slope following stimuli presentation and following response (Figure S15, Figure S21).

Discussion

This study provides a detailed analysis of the relationship between periodic and aperiodic neural activity during the n-back task. EEG data recorded from 57 participants performing both 0-back and 2-back tasks in visuospatial and verbal modalities were analysed to distinguish these two components within the EEG frequency spectrum. The analysis shows the presence of periodic activity in the alpha/beta frequency range prior to stimulus onset, which modulates according to task demands. Furthermore, our results show that theta activity appears to be largely a consequence of the effect of baseline correction on aperiodic activity, which also exhibits its own task-related dynamics. This insight is crucial for the interpretation of EEG results, especially for continuous tasks such as the n-back, which require sustained working memory engagement. In addition to the interplay between the periodic and aperiodic EEG activity, the study expands on the findings of stimulus-induced spectral slope shift by identifying two neural components within the aperiodic activity. These aperiodic components are distinguished by their frontal and posterior topographic locations. Additionally, we observed task-dependent differences, including a slightly different slope modulation in non-target compared to target trials. However, we did not find any differences between modalities. Collectively, these findings enhance our understanding of the neural dynamics involved in cognitive processes during a continuous working memory task.

Disentangling periodic and aperiodic components in EEG activity: avoiding baseline correction

Our analysis of the EEG data shows that when baseline correction is applied to the total EEG activity, changes in alpha, beta and theta activity are observed following stimulus presentation compared to the pre-stimulus interval (Figure 3B). In particular, there is a significant increase in theta power after the stimulus, while a decrease in power in the alpha-beta spectrum is observed for some time after the stimulus presentation. These findings are consistent with previous n-back studies reporting that the presentation of both target and non-target stimuli elicits long-lasting increases in theta power and decreases in alpha/beta power at stimulus onset (Palomäki et al., 2012; Krause et al., 2010; Coleman et al., 2023).

Omitting baseline correction and decomposing the total EEG activity into periodic and aperiodic components provides a more nuanced insight into the dynamics of the spectra, showing that alpha and beta activities remain oscillatory while the theta activity “disappears” from the periodic component. We find that the apparent theta activity, rather than oscillatory activity, reflects changes in the aperiodic component, which is manifested as a post-stimulus increase in theta power under baseline correction in time-frequency analysis of the full EEG spectrum. Given our current understanding of aperiodic activity, specifically based on the findings of post-stimulus slope steepening in the context of increased cognitive demands (Akbarian et al., 2023; Gyurkovics et al., 2022; Virtue-Griffiths et al., 2022), our results suggests that the change in theta-range activ-ity is a result of aperiodic slope modulation rather than a significant increase in oscillatory activity within the theta band. In contrast, alpha and beta activity remain present as part of the periodic component throughout the task.

Our results clearly indicate that the classical baseline correction approach can subtract a significant amount of continuous periodic activity, while aperiodic activity is ignored as stationary and may even be misinterpreted as an increase in post-stimulus theta oscillations.

The modulation of periodic activity is concentrated in the alpha and beta bands

When decomposing the EEG signal into periodic and aperiodic components we still observed a significant attenuation in the power of alpha and beta oscillations after stimulus presentation (see Figure 3B, C and Figure 4A). This is in line with existing literature that documents the decrease of post-stimulus alpha and beta (Krause et al., 2010; Coleman et al., 2023). Moreover, our results support previously reported increased suppressive response that is elicited by target stimuli compared to non-target stimuli (Palomäki et al., 2012; Peng et al., 2015), especially in the alpha range (Figure S3). Our findings support existing research (Pesonen et al., 2007) by demonstrating that reductions in alpha and beta powers are more pronounced and have longer duration under increased task demands, as is typical of higher loads in n-back tasks (see Figure 5). Consistent with seminal work (Gevins et al., 1997; Pesonen et al., 2007; Krause et al., 2010), our data show that working memory load mainly affects alpha/beta power in the parietal-occipital electrodes (see Figure 4B). In n-back tasks, diminished alpha power is thought to indicate increased engagement in working memory operations (Haegens et al., 2014). The functional significance of beta oscillations remains a topic of debate, with studies often linking centrally located beta oscillations to the coordination of motor responses (e.g. Pavlov and Kotchoubey, 2022; Pfurtscheller et al., 1998; Kaiser et al., 2001). However, recent research indicates that they also play a crucial role in working memory, par-ticularly in supporting the maintenance of memorised information and preventing distractions (Schmidt et al., 2019; HajiHosseini et al., 2020). Additionally, beta oscillations are believed to facilitate the manipulation of stored information, dynamically adjusting to meet task demands and to serve a gating function by inhibiting irrelevant inputs, thus enhancing cognitive efficiency (ElShafei et al., 2022; Schmidt et al., 2019).

The strong correlation between alpha and lower beta range activities in central regions, as shown in Figure 5, which also aligns with reaction times, indicates that beta activity, typically associated with motor functions, is most pronounced in the central electrodes. We also observed alpha/beta activities in the posterior regions, which support current theories that suggest a collaborative function for alpha and beta oscillations in supporting advanced cognitive functions such as working memory (Scharinger et al., 2017; Coleman et al., 2023; Hanslmayr et al., 2016).

In contrast, our analyses show that theta-range activities do not necessarily exhibit an oscillatory characteristic during the n-back task (see Figure 3C, D, Figure 4). After thorough evaluation at the individual level (Figure S2), we found that only two participants exhibited evident theta peak, while only one participant exhibited pronounced theta and alpha peaks. The majority of participants exhibited alpha peaks, while only two participants displayed a theta peak and no substantial alpha activity. This suggests the presence of a low-frequency activity associated with the cognitive demands of the n-back task which might be related to the same cognitive process, but there is notable between-subject and potential within-subject variability depending on task demands.

Aperiodic activity dynamics and their cognitive implications

Our analysis of aperiodic activity at each time point within the peristimulus interval builds upon prior research that has documented stimulus-induced changes in the aperiodic component, specifically the post-stimulus steepening of the spectral slope (Gyurkovics et al., 2022; Virtue-Griffiths et al., 2022; Kałamała et al., 2024). Our data indicate the presence of two components in the dynamics of the aperiodic slope during the n-back task, differentiated both temporally and spatially.

In terms of temporality, the first component appears early in the task cycle, whereas the second component appears at a later stage (see Figure 6A). The presence of these components differs between target and non-target stimuli, with a more pronounced difference for the second component (see Figure 7). While non-target stimuli consistently exhibit a clear second component, in the case of target stimuli, the slope returns to its base-line steepness more quickly, with a significantly reduced or non-existent second slope steepening. This raises the question of whether the two components represent distinct cognitive operations inherent to the n-back task.

We speculate that the second component that emerges with greater prominence following non-target stimuli may be indicative of an elevated state of vigilance. It is uncommon for a target stimulus to be immediately succeeded by another; typically, a non-target stimulus follows. Consequently, participants may become accustomed to a period of ‘rest’ following a target stimulus, as the anticipation for another is low. The increased slope of the aperiodic activity may be indicative of the level of alertness for potential target stimuli. In contrast, after target stimuli, a reduction in alertness follows, leading to a quicker return to baseline, with no significant second increase in slope steepness.

As previously stated, the two aperiodic components also exhibit distinct spatial manifestations. The first component is predominantly observed on the frontal electrodes, wheres the second component is also present in the posterior channels. This difference in topography further supports the hypothesis that the two components reflect different cognitive processes. The activation in the parietal channels may be related to anticipatory mechanisms for the next stimulus, whereas the activation in the frontal channels may be involved in the decision-making process regarding the classification of the previous stimulus as a target.

Overall, our results strongly suggest that solely examining total EEG power or oscillatory dynamics, without distinctively analysing the aperiodic slope dynamics, would overlook a subtle yet potentially significant cognitive processing feature. This feature may be related to distinct working memory processes, which warrants further research.

Importantly, to exclude the possibility that aperiodic activity simply reflects the task-evoked EEG activity (i.e., event-related potentials; ERPs; see Figure S6), ERPs were subtracted before performing the time-frequency decomposition. We observed low correlations between the ERPs and aperiodic activity (Figure S7, Figure S4), suggesting that the task demands within the n-back paradigm manifest in aperiodic modulations that are distinct from other evoked EEG activity. We also repeated the analysis without subtracting the ERPs (Figure S8, Figure S9, Figure S10), and the results were largely similar. Our findings are consistent with previous research that has consistently observed systematic, stimulus-induced changes in the aperiodic component that are distinct from concurrent stimulus-evoked EEG activity (Gyurkovics et al., 2022; Kałamała et al., 2024; Virtue-Griffiths et al., 2022). Our findings further highlight the importance of acknowledging the unique characteristics of aperiodic activity, particularly in the context of the n-back task.

Interplay of periodic and aperiodic EEG components

The relationship between periodic and aperiodic EEG activities during the n-back task reveals a complicated pattern of cognitive engagement. Following stimulus presentation, our analysis, shows an almost immediate aperiodic slope increase in the fronto-central channels (see Figure 6), followed by a brief alpha/beta attenuation in the posterior channels (see Figure 4). Both of these features have been associated with inhibitory processes that temporarily disrupt ongoing excitatory activity to allow the brain to engage with the presented stimulus (Gyurkovics et al., 2022; Kałamała et al., 2024; Gevins et al., 1997; Pesonen et al., 2007). Our results show that both the alpha/beta suppression and the aperiodic change in slope are more pronounced after target stimuli compared to non-target stimuli (see Figure 5 and Figure 7). These observations may indicate greater cognitive engagement associated with decision-making processes following the onset of the target stimulus.

Further analysis of our data shows a significant difference between the 0-back and 2-back conditions in the periodic component (Figure 5), indicating more sustained alpha/beta suppression in the 2-back condition, whereas the aperiodic component did not show such spectral slope differences. Sustained suppression of periodic alpha and beta activity during the 2-back condition may reflect ongoing active engagement in the form of information encoding, retention, and updating. This finding suggests that the periodic and aperiodic components may reflect distinct cognitive processes. The characteristics of the second component in the aperiodic slope after non-target stimuli (see Figure 6), with no obvious co-occurring processes in the periodic component, further support this idea. It is important to analyse both components to ensure that the processes they reflect are not overlooked.

Our data show a clear distinction between the periodic and aperiodic components in relation to reaction times. Our results support the association between central beta activity and motor planning (e.g. Eggermont, 2021; Pfurtscheller et al., 1998), as evidenced by its correlation with reaction times in our analysis of the periodic component (Figure 5). In contrast, our analysis indicates a weak correlation between the dynamics of the aperiodic component and reaction times (Figure 7). This observation differs from the most commonly reported patterns (e.g. Voytek et al., 2015; Thuwal et al., 2021; Akbarian et al., 2023), but the evidence remains inconclusive, as some studies have reported contrasting results (e.g. Monchy et al., 2023). The discrepancy highlights the need for further research to understand how different factors influence the manifestation of the aperiodic component as a reflection of cognitive processes.

Prior studies have consistently reported sustained elevations in theta power during the n-back task (e.g. Palomäki et al., 2012; Krause et al., 2010; Pesonen et al., 2007). These increases, particularly in the frontal cortex, have been linked to various cognitive functions such as attention, information encoding, and cognitive control (Roux and Uhlhaas, 2014; Rossi et al., 2023; Cavanagh and Frank, 2014). While theta activity can indeed be oscillatory, as demonstrated in some studies, the sustained theta activity observed in our scalp EEG data (Figure 3) appears predominantly aperiodic, with post-stimulus increases more likely attributable to shifts in spectral slope than to oscillatory changes. Theta activity can represent either oscillatory or aperiodic activity, but careful distinction between these components is necessary to avoid potential misinterpretation of theta dynamics. Nevertheless, previously reported patterns of theta modulation are consistent with the notion that post-stimulus changes in aperiodic activity may reflect enhanced inhibitory control commensurate with task demands (Voytek et al., 2015; Gao et al., 2017).

Analyses of control data from a previously published study (Nakuci et al., 2023) confirmed our initial results, indicating that similar task-related modulations in alpha and beta periodic activities, as well as aperiodic activity dynamics, can be divided into frontal and parietal components. However, although both aperiodic components were observed in the alternative dataset, their temporal differentiation was less pronounced (Figure S15, Figure S17). Notably, in this comparative dataset the exponent was only related to task load, with an increased exponent for the 2-back level, and not to stimulus type (Figure S16). Furthermore, in the comparative dataset there was an association with reaction times in the parietal channels, more so than in our original dataset. Nevertheless, the results of the replication analysis serve to reinforce the robustness of our insights. In particular, the similarities observed in the modulation of thetalike activity attributed to aperiodic shifts provide a crucial validation of our conclusions regarding the nature of theta activity and the aperiodic component.

Main findings are consistent in the item-recognition task

To test whether our results generalise across different task paradigms, we applied the same methods to the item-recognition task, which showed similar dynamics despite the different mechanisms of memory maintenance and the non-continuous nature of the task. In particular, while changes in the theta band were evident in the baseline corrected data, there were no theta oscillations in the periodic activity (Figure 8). This cross-task confirmation strengthens the robustness of our conclusions across different working memory tasks.

Theoretical and methodological implications

Our study highlights the need for refined EEG analysis methods that take into account the dynamic nature of both periodic and aperiodic components during cognitive tasks. Our findings indicate a need for a methodological shift in baseline correction techniques, particularly in continuous cognitive tasks where traditional baseline subtraction can obscure significant neural dynamics by misrepresenting aperiodic activity as thetaband oscillatory activity (Gyurkovics et al., 2021). This misrepresentation is of importance, as baseline corrections, designed to normalise data, may inadvertently distort the true nature of neural activities, especially under conditions of sustained cognitive demand. Further investigation is warranted to explore how changes in the aperiodic component’s slope might underlie the commonly observed increases in frontal theta activity, traditionally documented as theta oscillations. In order to validate this hypothesis, future research should extend to a wider range of working memory and cognitive control tasks.

The aperiodic slope dynamics observed during the n-back task in our study align with the E:I balance framework (Gao et al., 2017; Vogels and Abbott, 2009; Lim and Goldman, 2013). Specifically, our results suggest that stimulus-induced shifts in the aperiodic slope likely reflect a proportional modulation of ongoing excitatory activities tailored to meet processing demands (Gyurkovics et al., 2022; Voytek et al., 2015; Virtue-Griffiths et al., 2022). These adjustments in the post-stimulus aperiodic component may signify enhanced inhibitory control, which has implications for cognitive control capacities previously associated with changes in the frontal theta-band activity (e.g. Scharinger et al., 2017; Cavanagh and Frank, 2014; Ratcliffe et al., 2022). Our findings provide support for the hypothesis that modifications in aperiodic activity following cognitive load could serve as a reliable index of cognitive control mechanisms. Future studies should consider aperiodic dynamics as a potential biomarker for cognitive control, investigating how these measures correlate with traditional indicators and whether they can predict cognitive performance across different task contexts.

To better understand the functional role of the observed second component in the aperiodic activity (second slope steepening) following non-target trials, a study design incorporating a larger dataset with an increased number of target-followed-by-target sequences is essential. This would enable a detailed comparison of aperiodic slope components in scenarios where a target is succeeded by another target versus when it is followed by a non-target, potentially revealing how attentional mechanisms are reset or sustained under different conditions.

Furthermore, investigating the interplay between aperiodic slope dynamics and theta oscillations in tasks requiring enhanced cognitive control could provide deeper insights into the neural basis of cognitive flexibility and decision-making. It is also imperative to consider individual variations in theta range dynamics and their relationship with aperiodic slope modulation, as this could highlight potential biomarkers for cognitive efficiency or susceptibility to cognitive fatigue.

Finally, our findings challenge the established methodologies and interpretations of EEG-measured cross-frequency coupling, particularly phase-amplitude coupling (Tort et al., 2010; Van Der Meij et al., 2012; Tseng et al., 2019). While numerous studies have demonstrated the modulation of gamma amplitude by the phase of theta (e.g. Park et al., 2013; Köster et al., 2014; Goodman et al., 2018), which is believed to organise information in working memory (e.g. Rajji et al., 2016; Brooks et al., 2020; McGill and Kieffaber, 2024; Goodman et al., 2018), our findings suggest that theta dynamics, as measured with scalp EEG, are predominantly a result of aperiodic shifts. Consequently, it may not always be appropriate to assume that theta activity is inherently oscillatory when analysing phenomena such as theta-gamma coupling. This observation challenges the traditional interpretation of how theta and gamma activities interact during cognitive processes. To ensure accuracy in future studies of cross-frequency coupling such as theta-gamma coupling, it is crucial to verify that theta activity is truly oscillatory before proceeding with analyses.

Strengths and limitations

The main strength of our study is the replication of key findings by performing the same analyses on two independent samples. Replication of the results in an independent sample of younger individuals performing a standard verbal n-back task extends the generalisability of our findings beyond the original cohort of older adults. Furthermore, replication of these results in the item-recognition task demonstrates the robustness of our conclusions across different task paradigms.

There are a number of limitations that need to be considered. First, the task difficulty in the 2-back condition may have been too high. Some participants had to be excluded from the analysis due to poor performance. This exclusion may have reduced the range of cognitive abilities in the sample of older adults, potentially inflating them.

In addition, the higher level of difficulty in the tasks may have influenced the observed differences between the 0-back and 2-back conditions, potentially affecting the magnitude and direction of the reported neural modulations. For our sample of older adults, a simplified 2-back task using a single modality may have been more appropriate. The single modality (verbal, with letters displayed in the centre of the screen) may help to reduce task complexity and align better with the cognitive abilities of older participants. In addition, the dual-modality task imposed time constraints that limited the number of trials for each condition, potentially leading to participant fatigue and reduced data quality.

Conclusions

Our study highlights the critical importance of distinguishing between the periodic and aperiodic components of the EEG spectrum in order to ensure accurate interpretation of changes traditionally attributed to oscillatory activity. Using the n-back task, we have demonstrated that the aperiodic component, which is often dismissed as mere background noise, reflects important features of cognitive processing. Our findings also challenge the routine practice of baseline correction, which can obscure crucial modulations of aperiodic activity, particularly in continuous cognitive tasks. It is important to note that a considerable proportion of the theta activity commonly observed in scalp EEG may actually be due to shifts in the aperiodic slope. It is therefore essential to independently verify whether the observed theta activity is genuinely oscillatory or primarily aperiodic. This is of utmost importance for accurately deciphering the neural underpinnings of working memory and cognitive control, and indicates a need for a paradigm shift in the analysis and interpretation of EEG data.

Methods

Participants

We analysed EEG recordings from fifty-seven volunteers (nine males) aged 55–78 years (M = 67.4, SD = 6.4), who initially participated in a study on subjective cognitive complaints. All participants had normal or corrected-to-normal vision and were free from neurological or psychiatric illness or cognitive decline, as assessed by neuropsychological testing prior to study entry. Of these participants, twenty-seven reported subjective cognitive complaints, while thirty did not. Our current study focused exclusively on within-subject comparisons and did not investigate subjective cognitive complaints or between-group differences. We excluded data from 10 participants from all analyses due to poor quality.

The study protocol was approved by the Medical Ethics Committee of the Republic of Slovenia (protocol number 0120-128/2019/9; 21.08.2019). All study participants gave written informed consent prior to the initiation of any study-related procedures.

Experimental task and procedure

The participants were instructed to press the left button when the letter or position matched the letter/position n-back trials before (i.e. on target trials), and the right button otherwise (on non-target trials). Some of the stimuli were lures, i.e. stimuli that would have been considered targets in the 1-back condition but appeared during the 2-back condition.

The participants completed the n-back task in two modalities (visuospatial and verbal) with two load conditions (0- and 2-back) (Figure 1). During the task, participants were presented with white capital letters on a grey background one at a time in one of nine possible positions, in a continuous sequence. Each letter was presented on the screen for 250 ms, followed by a 3000 ms interval during which participants were required to respond. In the verbal task conditions, participants were instructed to memorise the presented letter, whereas in the visuospatial task conditions, participants were asked to memorise the position of the presented letter. The order of modality was counterbalanced across participants.

Each modality always began with the 0-back load condition in which the target stimulus was presented for 10 seconds at the beginning of the block and stayed the same throughout the whole block. The 0-back load condition was followed by a 2-back load condition of the same modality, where participants had to remember each stimulus as it appeared and discern whether it matched the one displayed two trials prior. The 0-back and 2-back load conditions each comprised three 5-minute blocks of continuously presented stimuli. For each modality, the 0-back load condition comprised a total of 201 stimuli, 39 of which were targets, and the 2-back load condition comprised a total of 240 stimuli, 39 of which were targets, and 30 were lures. All stimuli were presented in a pseudorandomised order.

The task began only after participants indicated their readiness by pressing a designated key, after reviewing the instructions and clarifying any doubts with the experimenter. Before each condition, participants completed a practice session consisting of a short block to familiarise themselves with the task demands. The session included a variation of the main task in which participants practised identifying both the target letter and its location, as well as responding to the 2-back challenge for both letters and positions. During the main task, response accuracy and reaction times were recorded by keystroke on the Cedrus response pad (Cedrus Corporation, San Pedro, CA, USA, model RB-540). Participants were instructed to favour accurate responses over fast responses. The participants’ responses were monitored, and only trials with correct responses were included in the EEG analysis.

The stimuli were presented in Helvetica font on a 24-inch LCD screen with a refresh rate of 120 Hz. The stimuli, arranged in a 3 × 3 matrix, spanned approximately 7.22 degrees of both vertical and horizontal visual angles. The task was programmed and executed using PsychoPy 3 (Peirce et al., 2022).

EEG data acquisition

We recorded EEG activity using either a BrainAmp MR-plus or ActiChamp amplifier (Brain Products GmbH, Germany). We acquired the recordings with a 64-channel ActiCap plus a reference channel, configured according to the extended 10-10 international system layout. To accommodate all participants, we used two slightly different electrode layouts, differing only in the position of two electrodes. Due to inconsistencies in electrode placement between subjects, we excluded channels AFz, Iz, PO9, and PO10 from the analysis, resulting in a dataset of 63 electrodes (including the reference channel). We grounded the electrode setup at AFz, with FCz serving as the reference. During the EEG recording, we band-pass filtered the signal between 0.1 and 250 (or 1000) Hz with a slope of 12dB/octave and digitised it at a sampling rate of 500, 1000, or 2500 Hz. After time-frequency decomposition, we downsampled the data to 100 Hz.

EEG data preprocessing

We preprocessed the EEG data using custom MAT-LAB scripts (MathWorks, USA) that integrated functions from EEGLAB (Delorme and Makeig, 2004) and ER-PLAB (Lopez-Calderon and Luck, 2014). High-pass filtering at 0.1 Hz was performed using a finite impulse response (FIR) filter (slope: 12 dB/octave). A Clean-Line filter was then used to reduce power line noise at 50 Hz (Mullen, 2012). Next, we segmented the data into epochs ranging from -1.5 to 2.8 seconds, time-locked to stimulus presentations, followed by baseline correction to remove residual signal drift. Epochs and channels were manually inspected to identify and exclude segments with excessive artefacts. Independent component analysis decomposition was performed using the AMICA algorithm (Palmer et al., 2011), applied to the data bandpass filtered between 1 and 60 Hz; the solution was later applied to the non-bandpass filtered data. We manually inspected the independent components to identify and remove those representing blinks, horizontal eye movements, muscle noise, line noise, and other artefacts. After the ICA, channel time series reconstruction and channel interpolation were performed, and the data were referenced to the average reference.

Subsequent EEG analyses were conducted only on subjects and conditions that met the required standards, defined as having a minimum of 30 good epochs after cleaning and an accuracy rate of at least 0.6 within a given condition. Exclusion criteria were applied at the level of individual conditions within subjects, rather than excluding entire participants from the analyses. Consequently, only 21% and 10% of participants remained for the visuospatial and verbal lure conditions, respectively. As a result, the lure condition was excluded from all subsequent analyses.

Estimation of periodic and aperiodic component

First, we excluded trials with incorrect or missing responses from all subsequent analyses. ERPs related to early sensory potentials can affect estimates of aperiodic activity (Gyurkovics et al., 2022), therefore, average ERPs were removed prior to time-frequency decomposition, as has been previously done in similar studies (Gyurkovics et al., 2022; Kałamała et al., 2024). This involved computing ERPs for each subject/condition and then subtracting these ERPs from single-trial data for each subject/condition. For completeness, we also analysed the data without subtracted ERPs.

To estimate both periodic and aperiodic components of EEG activity, we performed time-frequency decomposition using superlets, with a range of frequencies from 3 to 50 Hz, in steps of 1 Hz (width of the base wavelet: 3 cycles, order: linearly spaced from 1 to 20, multiplicative combination of wavelets) as implemented in Fieldtrip (Oostenveld et al., 2011). Superlets, a variant of the Morlet wavelet transformation, involve multiple decompositions with varying cycles, the results of which are combined using a geometric mean to achieve enhanced temporal and spectral resolution, known as ‘super-resolution’ (Moca et al., 2021). The results of the time-frequency decomposition were averaged for each condition and participant, and then decimated to 100 Hz in order to save space and facilitate further analysis.

We then estimated the periodic and aperiodic components from the decomposed data for each time point, condition, and participant using the FOOOF algorithm from the Python specparam package (Donoghue et al.,2020b). To avoid edge artefacts, FOOOF parameters were estimated for a period between -0.5 and 2 seconds around the stimulus. The FOOOF algorithm estimates the frequency spectrum in a semi-log space (i.e. only power is log-transformed) using a set of parameters separately for periodic and aperiodic activity. Specifically, neural power spectra (NPS) over a set of frequencies (F) are described as the sum of the aperiodic and periodic components:

The aperiodic component is modelled as

where b is the offset, k is the knee (bend), and 𝒳 is the exponent (slope).

The periodic component is modelled as a sum of Gaussians:

Each Gaussian is described by three parameters: c, a, and w, representing center frequency, power, and bandwidth, respectively.

Fitting was performed using default specparam parameters: peak width limits = 0.5–12.0 Hz, maximum number of peaks to fit = Inf, minimum peak height = 0, peak threshold = 2.0, aperiodic mode = ‘fixed’ (i.e. the knee parameter was set to 0). The outcomes of the analyses conducted with the offset and exponent parameters were found to be highly comparable. Consequently, the results presented in the main text pertain solely to the analyses conducted with the exponent parameter, while those in the Supplement pertain to the offset parameter.

To allow comparisons with full time-frequency power and to facilitate comparisons across participants and conditions, we reconstructed the periodic component in a semi-log space based on the estimated parameters for each participant and condition.

We visually assessed the time-frequency plots, both in their original form and after baseline correction, before performing formal statistical analyses. We compared several types of baseline correction, including: (a) decibel conversion (10 * log10(data/baseline)), (b) relative change ((data – baseline)/baseline), (c) normalised change ((data – baseline)/(data + baseline)),–(d) absolute change (data – baseline). In addition, we considered three baseline periods (relative to stimulus onset): (a) from -500 to -200 ms, (b) from -300 to 0 ms, (b) from -500 to 0 ms.

We also compared time-frequency plots before and after baseline correction with those of periodic and aperiodic activity. Furthermore, we visualised the periodic activity, averaged over time, for each participant (Figure S2, Figure S2).

Statistical analysis

We conducted statistical comparisons using linear mixed models with the fitlme function in MATLAB. One advantage of using linear mixed models is their ability to accommodate missing data, which improves parameter estimates through partial pooling. We fitted the models as follows:

Here, y refers to the exponent or offset in the case of aperiodic activity and to the log-power in the case of periodic activity. We included reaction times (rt) in the model to control for differences between conditions and to assess the relationship between motor response and EEG activity.

To estimate representative reaction times for each participant and condition, we removed reaction times above a z-value of 3 and those below 200 ms (within each participant and condition). Next, we fitted an ex-Gaussian distribution to estimate the parameter µ using the maximum likelihood method as implemented in the retimes package in R (Massidda, 2013). The ex-Gaussian distribution, a positively skewed distribution, is useful for describing reaction time distributions (Balota and Yap, 2011), and the parameter µ can be interpreted as the mode of the distribution.

We fitted models in a mass univariate manner, that is for each channel, frequency (where applicable), and time point separately.

The maximum likelihood method estimated the fixed effects, and the degrees of freedom were approximated using the Satterthwaite equation. The p-values underwent correction using the Benjamini-Yekutieli false discovery rate (FDR) correction (Benjamini and Yekutieli, 2001). Given that under the false discovery rate (FDR) correction, a q proportion of significant p-values are false positives, and that EEG effects occur in clusters (in time, frequency, and/or space) (Van Ede and Maris, 2016), we additionally considered as significant only clusters of p-values that spanned either at least three time points or at least three channels. We set the significance threshold at α = .05.

For the purposes of visualisation, p-values were aver-aged across channels (for heatmaps or lines) or across time (for topographies). Consequently, there are some discrepancies between heatmaps/lines and topographies.

Comparison of aperiodic activity with event-related potentials

To rule out the possibility that aperiodic activity merely reflected evoked potentials, we first removed evoked activity before time-frequency decomposition (as described above). We then computed Pearson correlations between event-related potentials (ERPs) and aperiodic activity across channels for each condition, sub-ject and time point. The results are shown in the Supplement.

Replication: n-back task

To test the generalisability of the results, we performed two replication analyses using two different EEG datasets: an n-back task and an item-recognition task. For the n-back task, we used an EEG dataset from a previously published study by Nakuci et al. (2023). This dataset includes data from 21 subjects (17 female, mean age 42 ± 12 years) who performed a verbal n-back task (0-, 1-, and 2-back) while being recorded with a 256-channel HydroCel Geodesic Sensor Net. The task involved 150 trials per condition, 50 of which were targets. Each stimulus was presented for 400 ms, followed by an interstimulus interval of 2000 ms.

The dataset was used in its preprocessed form, as the unprocessed data was not available. The preprocessing included band-pass filtering, artifact subspace reconstruction (ASR) (Mullen et al., 2013), independent component analysis, channel interpolation, another round of ASR, re-referencing to the average reference, epoching from -1000 to 2000 ms around stimulus presentation, and baseline correction using the prestimulus period (Nakuci et al., 2023). Notably, the data were band-pass filtered between 0.5 and 50 Hz, so we restricted the time-frequency decomposition and FOOOF analysis to frequencies between 3 and 35 Hz.

We carried out all other analytical steps, including time-frequency decomposition, FOOOF analysis, and statistical comparisons, in the same manner as in the primary analysis.

The results of these analyses are presented in the Supplement.

Replication: item-recognition task

To test generalisability across tasks, we analysed EEG recordings from another study, which included 48 participants (10 male, mean age 23.8 ± 5 years). All participants were right-handed, had normal or corrected-to-normal vision, and were free of neurological or psychiatric illness. Most participants were psychology students at the University of Ljubljana, while the rest responded to invitations sent via email and social media. All participants provided informed consent, approved by the Ethics Committee of the Faculty of Arts, University of Ljubljana.

In this study, we used a Sternberg item-recognition task. In this paradigm, a series of visual target stimuli is presented, followed by a probe stimulus that may or may not be identical to one of the previous targets. Participants’ task is to indicate whether the probe (test) stimulus was part of the initial set (Sternberg, 1969).

The experiment included three task conditions performed under two working memory loads: (1) presentation of two or four stimuli that differed in colour but were displayed in the same location; (2) presentation of two or four stimuli that differed in position but were of the same colour (black); (3) presentation of two or four stimuli that differed in both colour and position (integration). Each condition consisted of 432 trials, with 216 trials per working memory load, divided into 18 blocks of 48 trials each. Participants were randomly assigned to three groups, each performing the task in two of the three conditions, resulting in 32 participants per condition and 16 participants per comparison of conditions. A schematic diagram and a detailed description of the task can be found in Figure S19.

Stimuli were presented on a 27-inch LCD screen with a refresh rate of 120 Hz. The stimuli were presented on a grey background in the centre of the screen, within a frame 250 pixels wide and 250 pixels high. The stimuli appeared as circles 20 pixels in diameter. When different positions were required, the stimuli were spaced at a distance equal to six times the stimulus radius. The frame spanned approximately 4.05 degrees of vertical and horizontal visual angle, and the diameter of each stimulus spanned approximately 0.32 degrees of visual angle. The task was programmed and ran using PsychoPy 2 (Peirce et al., 2022).

For the EEG measurements we used a BrainAmp EEG amplifier (Brain Products GmbH, Germany) and a 32-channel ActiCAP EEG cap, configured according to the international 10/20 system. Participants provided responses using a Cedrus response pad, RB series, model 530. We monitored horizontal eye movements using a camera and a dedicated HEOG channel ([F7— F8]/2). We manually removed trials in which participants tracked the target stimuli with their eyes.

We preprocessed the EEG data using the same pipeline as for the n-back task, except that the data were segmented into epochs ranging from -1700 to 5400 miliseconds, time-locked to the cue presentations. Subsequent EEG analyses were performed in a manner identical to the n-back task, including only epochs with correct responses.

Data and code availability

The preprocessed data are available at https://dx.doi.org/10.17605/OSF.IO/RQ8ZM. The n-back dataset from Nakuci et al. (2023) is available at https://zenodo.org/records/6897260.

Preprocessing was performed using EEGLAB (https://github.com/sccn/eeglab) and EEGLAB plugins. Time-frequency decomposition was performed using the Fieldtrip function ft_freqanalysis (https://github.com/fieldtrip/fieldtrip/blob/master/ft_freqanalysis.m). FOOOF decomposition was performed using the Python package specparam (https://github.com/fooof-tools/fooof/). Linear mixed models were estimated using the MATLAB function fitlme (https://www.mathworks.com/help/stats/fitlme.html).

Visualisation was done using the packages ggplot2 (https://ggplot2.tidyverse.org/), matplotlib(https://matplotlib.org/) and MNE-Python (https://mne.tools/).

Acknowledgements

The authors would like to thank Zvezdan Pirtošek for the help with project management, Katarina Marjanovič, Aleš Oblak, Katarina Sinja Miloševič, Tala Koren, Anjačuš, Nina Lang, Taja žnidarič, Dunja Kolenko, Irena Hostnikar, Urška Levac, Matija Kuclar, Vesna Muzek, Klara Babič, Kristina Klančič, Sara Bugarinovič and Lea Kukovec for the help with the data collection. The authors would also like to thank the participants, without whom this study would not have been possible.

Funding sources

The research was funded by the following ARIS grants: J3-8200 (TF, AM, TM, JB), P5-0110 (AM, JB), P3-0338 (GR), J5-4590 (AM, GR, JB), and J3-9264 (AM, GR, TM).

Author contributions

Tisa Frelih: Conceptualization, Project administration, Data curation, Investigation, Methodology, Visualization, Writing ssssoriginal draft, Writing review and editing; Andraž Matkovič: Conceptualization, Investigation, Formal analysis, Methodology, Software, Data curation, Visualization, Writing original draft, Writing review and editing; Tjaša Mlinarič: Investigation, Project administration, Writing review and editing; Jurij Bon: Resources, Supervision, Writing review and editing; Grega Repovš: Conceptualization, Methodology, Software, Resources, Supervision, Writing review and editing.

Conflicts of interest

G.R. consults for and holds equity in Neumora and Manifest Technologies. A.M. has previously consulted for Neumora.

Supplementary Information

A. N-back task

The comparison of different baseline corrections on time-frequency decomposition results in the n-back task.

We compared four types of baseline correction (in columns): (a) decibel conversion (10 * log10(data/baseline)), (b) relative change ((data – baseline)/baseline), (c) normalised change ((data – baseline)/(data+baseline)), (d) absolute change (data – baseline). We also considered three baseline periods (in rows): (a) from -500 to -200 ms, (b) from -300 to 0 ms, (b) from -500 to 0 ms. The selection of baseline correction type and period had minimal impact on the outcomes. Among the methods, absolute change correction exhibited a slight reduction in deviations from baseline. Nevertheless, the overall results were qualitatively similar for all baseline corrections. The data presented represent the average across participants, conditions and electrodes.

Power spectra of periodic activity on the Fz channel for each participant, averaged over time (between 0.5 and 2 seconds).

Inspection of the individual periodic power spectra showed that only two participants, SKP-1001 and SKP-2022, exhibited periodic activity in the theta band. Both axes of the spectra are displayed on a logarithmic scale.

Power of periodic activity 0.5 to 1 second post-stimulus, averaged across all channels and participants.

This visualisation facilitates the interpretation of the interaction between stimulus type and modality. It illustrates that the difference in power between target and non-target stimuli is more pronounced in the verbal task than in the visuospatial task. Error bars represent 95% Cousineau-Morey (within-subject) confidence intervals (Cousineau, 2017).

Temporal changes in aperiodic activity (offset).

A) (Figure 6).

Results of the linear mixed model on aperiodic activity (offset parameter) of the comparison between conditions.

Significant values are shown in blue on line plots and marked with yellow circles on topographies. Results were similar to the exponent parameter (Figure 7), but there was also an effect of load at about 0.6 seconds post-stimulus.

Grand average event-related potentials (ERPs) on midline electrodes.

ERPs have been low-pass filtered at a 40 Hz cut-off for visualisation.

Correlations between ERPs and aperiodic activity (exponent).

The line represents the mean correlation across subjects and the shaded area represents the interquartile range.

Time-frequency decomposition without subtracted ERPs

In the primary analysis, we subtracted ERPs prior to time-frequency decomposition to avoid effects of phase-locked activity on periodic and aperiodic activity (see Methods for details). For completeness, we also analysed the data without subtracted ERPs, as shown in the figures below.

Changes in periodic (oscillatory) activity as a function of time.

Similar to Figure 4, but without subtracted ERPs. The periodic activity remains very similar to that observed with the subtracted ERPs, with a notable increase in power at occipital and frontal electrodes from 0 to 0.5 seconds post-stimulus.

Changes in aperiodic activity (slope or exponent) as a function of time.

Similar to Figure 6, but without the subtraction of ERPs. Aperiodic activity remains broadly similar to that observed with subtracted ERPs, with an increase in power at occipital electrodes and greater differentiation between frontal and parietal/occipital components.

Changes in aperiodic activity (offset) as a function of time.

Similar to Figure S4, a frontal and parietal aperiodic component can also be observed when the ERPs are not subtracted.

Replication: n-back

All analyses were repeated on an alternative n-back EEG dataset (Nakuci et al., 2023) and are presented here.

Effect of baseline correction and FOOOF decomposition on time-frequency decomposition (control dataset).

As in the main analysis (Figure 3), baseline correction (B) revealed changes in alpha, beta and theta power after stimulus presentation. FOOOF decomposition showed that changes in alpha and beta were periodic (C), whereas changes in theta power reflected task-related changes in aperiodic activity (D) (see also Figure S15, Figure S17).

Power spectra of periodic activity on the E15 channel for each participant, averaged over time (control dataset).

Similar to our main analysis (Figure S2), theta periodic activity was reliably present in only one participant (1115), with another participant (1104) showing a peak at 7-8 Hz. Both axes are displayed on a logarithmic scale.

Changes in periodic (oscillatory) activity as a function of time (control data).

(A) Time course of periodic activity averaged accross all channels. The periodic activity was most pronounced in the alpha band, with a strong decrease after stimulus onset. (B) Alpha and beta activity was most prominent in frontal channels.

Results of linear mixed model on periodic activity for comparison between conditions (control data).

There was a significant effect of load with reduced alpha and beta power at higher loads.

Changes in aperiodic activity (exponent) as a function of time (control data).

Similar to the main analysis (Figure 6), we observed two peaks, early frontal and late parietal components.

Results of linear mixed model on aperiodic activity (exponent) for comparison between conditions (control data).

There was a significant effect of load, most evident immediately after stimulus presentation. There was also an association with reaction times, particularly after 1 second post-stimulus.

Changes in aperiodic activity (offset) as a function of time (control data).

Results of linear mixed model on aperiodic activity (slope) for comparison between conditions (control data).

Replication: item-recognition task

To test the generalisability of our findings across tasks, we repeated the analysis on an item-recognition task. Although we conducted statistical comparisons between conditions, the differences were negligible, so we have chosen not to report these results here.

Schematic representation of the item-recognition task.

In each trial, two or four target stimuli of a given condition were presented sequentially in each half of the visual field while the participant focused on one half. Participants held the relevant visual properties of the stimuli in working memory. This was followed by a probe in which two stimuli were presented, one in each half of the visual field, and participants responded whether the stimulus in the attended half matched one of the previous targets. Each trial began with a fixation cross in the centre of the screen on which participants maintained their gaze. Each trial began with instructions indicating the area of focus and the number of stimuli that would follow. After a blank interval, participants viewed the target stimuli, followed by a maintenance interval and a probe. During this interval, participants indicated whether the probe corresponded to one of the previous targets. Trials were counterbalanced to ensure that an equal number of presentations occurred in both visual fields for each of the conditions and working memory loads. The number of stimuli presented sequentially (i.e., working memory load) was randomised to prevent participants from making predictions.

Periodic activity on item-recognition task.

Vertical lines represent: instruction presentation (0 s), stimuli presentation (0.4 s), end of encoding (0.8 s in load 2; 1.6 s in load 4), end of retention period (2.8 s). Topographies of theta activity were omitted due to the very weak activity and to save space. Task-related modulations were observed in alpha and beta activity, with a decrease during stimulus presentation, a relative increase during the retention phase and a significant decrease, probably motor-related, during probe presentation.

Aperiodic activity (exponent) in the item-recognition task.

As with periodic activity, we also observed task-related changes in aperiodic activity. Specifically, the aperiodic slope increased during instruction, stimulus presentation and probe presentation compared to the retention period. The topographies were similar to those of the n-back task, with activity spanning frontal and parietal channels. However, the two components could not be distinguished (see Figure S22).

Aperiodic activity (offset) in the item-recognition task.

The outcomes were comparable to those of exponent (Figure S21), however, the frontal and parietal/occipital components were discernible.

The power spectra of periodic activity on the Fz channel for each participant in the item-recognition task, averaged over time.

While the group average did not show pronounced theta activity (Figure S20, Figure S24), several participants showed periodic activity in the theta range (Seq2-s18, Seq2-s34, Seq2-s52, Seq3-s22, Seq3-s38, Seq3-s41, Seq3-s44, Seq3-s50). Furthermore, several peaks were observed between 7 and 8 Hz (Seq1-s14, Seq1-s23, Seq2-s37, Seq2-s40, Seq2-s55, Seq3-s28, Seq3-s59). Both axes are displayed on a logarithmic scale.

Group average power spectra of periodic activity in the item-recognition task, averaged over time.

As in Figure S20, only alpha and beta peaks were observed in the group average.