## Abstract

Clinical scalp electroencephalographic recordings from patients with epilepsy are distinguished by the presence of epileptic discharges *i.e.* spikes or sharp waves. These often occur randomly on a background of fluctuating potentials. The spike rate varies between different brain states (sleep and awake) and patients. Epileptogenic tissue and regions near these often show increased spike rates in comparison to other cortical regions. Several studies have shown a relation between spike rate and background activity although the underlying reason for this is still poorly understood. Both these processes, spike occurrence and background activity show evidence of being at least partly stochastic processes. In this study we show that epileptic discharges seen on scalp electroencephalographic recordings and background activity are driven at least partly by a common biological noise. Furthermore, our results indicate noise induced quiescence of spike generation which, in analogy with computational models of spiking, indicate spikes to be generated by transitions between semi-stable states of the brain, similar to the generation of epileptic seizure activity. The deepened physiological understanding of spike generation in epilepsy that this study provides could be useful in the electrophysiological assessment of different therapies for epilepsy including the effect of different drugs or electrical stimulation.

## Introduction

Epilepsy is a chronic disorder characterized by heterogeneous and dynamic pathophysiological processes leading to an altered balance between excitatory and inhibitory influences at cortical level. The disease involves a network of regions of the brain which is specific to each patient.

Electroencephalography (EEG) of patients with epilepsy is characterized by the presence of epileptic discharges, *e.g.* spikes or sharp waves. Hereafter, we will use the word spike to designate all epileptic discharges on the EEG. In clinical recordings spikes often repeat randomly on a background of fluctuating potentials (*i.e.* the spontaneous EEG activity) although their frequency might be affected by level of alertness or wakefulness, as well as the epileptogenicity of the underlying tissue. Spike rate has in several studies been shown to reduce during electrical stimulation of the cortex together with an attenuation of the spontaneous EEG activity (Kinoshita et al. 2005, Westin et al. 2019, Yamamoto et al. 2006). The underlying cause of this change and the relation between background attenuation and spike rate is still not understood. The spike waveform has been modelled using several computational models both for spikes seen in single neuron measurements and clinical spikes seen in epilepsy. Single neuron spiking has been effectively modelled using the Hodgkin-Huxley model which models both sodium and potassium ion channelling (Hodgkin and Huxley 1952). Macroelectrode recordings, as used in clinical settings (EEG), measure potentials generated by postsynaptic potentials in the dendritic trees of cortical pyramidal cells. Synchronous activity from 10,000–100,000 cells are required to induce measurable potentials. Cortical histology and functional structure indicate presence of cortical columns arranged in microcircuits containing pyramidal cells, excitatory and inhibitory interneurons (Douglas et al. 1989). A patch of cortex generating an EEG signal can be approximated as a collection of cortical columns. Several computational models of cortical microcircuits/columns exist which have been shown to generate both spontaneous EEG activity and spikes (David and Friston 2003; Jansen and Rit 1995; Pinotsis et al. 2012; Wendling et al. 2000; Wilson and Cowan 1972). Single cell and population induced spikes can often be approximated using phenomenological models, where the FitzHugh-Nagumo model is one of the simplest (FitzHugh 1961; Nagumo et al. 1962). The mentioned models are all deterministic and cannot model randomly occurring spikes if not modified. Adding random noise to the mentioned models; however, allows for randomly generated spikes. Background activity of EEG, similar to spike rate, is dependent on the state of the brain and characterized by different rhythms with a unique spectral distribution (Schomer and Da Silva 2012). However, the exact prediction of EEG potentials over time is extremely difficult due to the high level of randomness in the signal. Perturbation of the mentioned models with noise generate signals with frequency characteristics similar to measured background EEG data.

In this study we hypothesize that epileptic discharges seen on scalp EEG and background activity are driven at least partly by a common biological noise. Our objective will be to investigate the relation between interspike interval (ISI) duration, background activity and a latent noise variable. We will show data that indicates that the interspike interval distribution is dependent on the noise intensity together with a maxima of ISI for intermediate noise levels.

## Method

### Patients

Data was collected from 19 patients undergoing prolonged EEG recordings at the epilepsy monitoring unit at the Department of Paediatric Neurology at Karolinska University Hospital, Stockholm, Sweden. Median age was 7 (1–18) years and 11 were male.

### EEG recordings

Patients were all recorded with 21 scalp-electrodes according to the 10–20 system (Fp1, Fp2, F7, F3, Fz, F4, F8, T3, C3, Cz, C4, T4, T5, P3, Pz, P4, T6, O1, O2, A1 and A2). Recordings were performed using a NicoletOne EEG System (Natus, Pleasanton, CA 94566 USA). Data was registered at 250 Hz and bandpass filtered between 0.5 – 70 Hz. Each patients was recorded during 1–7 days. All EEG data was analysed by an Electroencephalographer (AC) identifying ictal (seizure) and interictal (non-seizure) data. All recordings with ictal episodes were removed from further analysis. Interictal EEG data was further divided into awake and sleep states, with separate analysis for each state of consciousness. Average amount of data per patient for each state was 8.0 h of wakefulness and 11.9 h of sleep. Data was divided into wake and sleep states using visual analysis of the EEG with identification of state specific waveforms and spectral distributions unique to each state (Schomer and Da Silva 2012). Visual analysis of 1–2 h of awake and sleep data was performed to identify epileptic discharges. The data was dominated by either focal or regional spikes for each patient. The interictal discharges of each patient was located using a spike-detection algorithm (Barkmeier et al. 2012). The threshold of the algorithm was set to an optimal level (with maximal Youden’s J statistic) for each patient to improve detection of epileptic discharges as has been described previously (Westin et al. 2019).

### Data analysis

All analysis was done separately for awake and sleep data with an average reference (*i.e.* 0 mean over all electrodes). Please see Appendix for exact definition of parameters (including \( {\mathcal{G}}_x^i,{\mathcal{J}}^i \)). Parameters were normalized as necessary to allow for merger of data values across patients in the subsequent analysis.

#### ISI-analysis

Data was divided into windows (interspike interval) limited by interictal epileptic discharges, see Fig. 1. The ISI (*I*^{i}) was defined as the length of the window in seconds. The ISI was normalized for each patient (\( {\mathcal{J}}^i \)) for awake and for sleep data such that the mean was 1 for both awake and sleep data for each patient.

#### Spectral analysis

EEG data from each interspike interval was used to estimate the window specific background activity. EEG data 1 s after the maximum of the first spike and 100 ms before the limiting spike was removed from the window to remove direct effects of spike waveforms on subsequent EEG activity, see Fig. 1. Each segment of EEG data was further subdivided into 1 s epochs to perform spectral analysis of the signal. All analysis was done in the following frequency bands (1 ≤ *f* < 40, 1 ≤ *f* < 4, 4 ≤ *f* < 8, 8 ≤ *f* < 12, 12 ≤ *f* < 40 Hz). Cross spectral density was estimated for each interspike interval window for the different frequency bands and normalized (\( {\mathcal{G}}_x^i \)). Analysis included visualization of scatter plots between ISI and spectral parameters. To further reveal any relation between the variables not clearly visible on the scatter plots the range of the “independent” variable (*e.g.* \( {\mathcal{G}}_x^i \)) was divided into 100 sub-intervals. Within each sub-interval the average of the dependent and independent variable was calculated (\( \overline{{\mathcal{G}}_x^i} \) and \( \overline{{\mathcal{J}}^i} \)). The resulting data was used for visual analysis and log-log plotting to reveal quantitative relations between the variables. This analysis is schematically illustrated in Fig. 1.

### Computational modelling

#### Background activity

The background activity was approximated as the stationary state of the perturbation of a neural mass model (*H,* n coupled ordinary differential equations) under noise (see Moran et al. 2009 for details on a similar description). A stable point was chosen as the point of perturbation. The noise term was given by a standard n-dimensional Brownian motion with covariation matrix *σσ*^{T} and zero mean, *d**B*_{t}. The dynamics was governed by the following stochastic differential equation:

The above function *H* was linearized around a stable point (as we are studying perturbations) giving,

The spectral density of ** x**, can then be shown to be proportional to the covariance matrix of the noise (Wiener-Khintchine Theorem),

The measured EEG signals over the m electrodes, ** y**(

*t*) ∈

*ℝ*

^{m}, was approximated by a linear mapping of the state variables (

**) under some function**

*x*

*L*_{2}∈

*ℝ*

^{n}×

*ℝ*

^{m}.

The spectral density of y would then be given by the following,

Due to the above relation the spectral density of the EEG will be used as a proxy for the input noise to the cortex.

#### Spike generation

The FitzHugh-Nagumo model with *I = 0.326* and noise was used to study the generation of spikes (Tuckwell et al. 2003). *X*_{t} is the voltage variable and *Y*_{t} the recovery variable. The noise term is given by standard Brownian motion with correlation matrix *σ*^{2} and zero mean, *dB*_{t}.

In this setting the dynamics of the FitzHugh-Nagumo is described by a stable stationary state surrounded by a stable orbit. The trajectories moving along the stable orbit represented spiking of the model where one revolution resulted in a spike-like waveform of *X*_{t} when plotted against time (*t*), see Fig. 2. To analyse inter-spike intervals the movement of trajectories between the stable point and the stable limit cycle was analysed. To make the estimation amenable for computational analysis further simplification was done. The phase space was compartmentalised into three regions, Fig. 2. The first described trajectories moving around the stable point and this motion was modelled by movement within a disc surrounding the stable point. The lower right quadrant of the circle limiting the disc was modelled as an absorbing boundary and the remaining boundaries as reflecting, Fig. 3. Trajectories that reached the absorbing boundary represented transitions to the stable orbit of the compartmentalised model. Motion along the limit cycle was modelled using two compartments, 2 and 3. The trajectories were allowed to make a transition to the first compartment (from the limit cycle) in the second compartment but not in the third compartment. The third compartment represented flow on the limit cycle away from the stable point (where the probability of transition between the compartments was low). The second compartment represented an area where the transition to the stable point was of higher probability due to the proximity between the stable limit cycle and fixed point. The mean escape time was estimated from all three compartments. The timing between two inter-spikes would then consist of the following sequence of events. Trajectories in compartment 2 could either move to compartment 1 or 3. We estimated the transition probabilities between the compartments and the mean time spent in each as described in the appendix, Fig. 3.

We estimated the expected ISI, *E*[*T*], for all possible transition chains. *T* denoted ISI for a trajectory. *μ* denotes the measure of trajectories in phase space. *φ* denotes a trajectory. *p* denotes the probability of transfer from compartment 2 to 1. *T*_{1} denotes the expected time spent in the following chain of transitions: compartment 3–2-3. *T*_{2} denotes the expected time spent in the following chain of transitions: compartment 2–1-3.

On the third line we approximated a binomial distribution with a Gaussian distribution. We used the Fokker Planck equation associated with the FitzHugh-Nagumo model in each compartment to estimate the following parameters for different noise levels (see appendix 7.3): *p*, *T*_{1} and *T*_{2}. The partial differential equations were solved using FENICS (Alnaes et al. 2015).

#### Spectral parameters and input noise

As shown in the *Background activity* noise intensity is proportional to spectral density. In the following analysis we will use spectral density parameters as proxies for noise intensity.

## Results

### ISI-distribution

ISI was measured (*I*^{i}) and normalised (\( {\mathcal{J}}^i \)) for each patient as described in *Method* and *Appendix.* The probability distribution for awake and sleep data were similar and no significant changes could be found. The distribution of normalised ISI (\( {\mathcal{J}}^i \)) was used to estimate the number of spikes occurring in one unit of time both for awake and sleep data. Note that the data was normalized among patients where mean spike rate for each patient was set to 1. The resulting distribution was compared to the Poisson distribution with rate 1, Fig. 4. The measured spike occurrences (awake and sleep data) were more than three standard deviations from the Poisson distribution, indicating a significant difference.

### Cross spectral density

Averaged cross spectral density (\( {G}_x^i \)) was estimated for each frequency band as described in *Method* and *Appendix.* This was done separately for awake and sleep data and no significant differences between awake and sleep were found.

#### Spectral parameters and interspike interval

The spectral parameters were assessed using normalized cross spectral density (\( {\mathcal{G}}_x^i \)). The parameters were estimated for each interspike interval window which allowed us to create scatter plots between the spectral parameters and normalized ISI (\( {\mathcal{J}}^i \)). This was done separately for awake and sleep data. Scatter plots of normalized cross spectral density (\( {\mathcal{G}}_x^i \)) and ISI showed Gaussian distributions with a right sided tail with increased ISI around −1 for the full frequency band (1-40 Hz) and around −1 to 0 for the other frequency bands (1–4, 4–8, 8–12 and 12–40 Hz) for both awake (Fig. 5) and sleep data.

The mean values of normalized cross spectral density and interspike interval (\( \overline{{\mathcal{G}}_x^i}, \) and \( \overline{{\mathcal{J}}^i} \)) was calculated as described in *Method.* Awake activity within 1–4 Hz, 4–8 Hz and 8–12 Hz and the full bandwidth showed maximal values for ISI for intermediate noise levels. The 12-40 Hz frequency band indicated a monotonically decreasing curve (Fig. 6). Sleep data showed similar results to awake data.

Log normalized cross spectral density was plotted against log ISI. There was an approximate linear relationship between both variables between −0.5 to 1 (awake) and − 1 to 1 (sleep). This was evident for all frequency bands but most clear for 4–8, 8–12 and 12–40 Hz. The gradient was estimated for each frequency band for both awake and sleep data and varied between [−0.56,-0.19], Table 1.

### Computed ISI for FitzHugh-Nagumo model

As described in methods the ISI was computed for different noise intensities for the FitzHugh-Nagumo model. There was a maximal ISI interval for intermediate noise intensities with reducing ISI for small and large noise levels, Fig. 7.

## Discussion

This study investigated the relation between epileptic interspike intervals and a latent noise variable in patients with epilepsy. The noise intensity was shown to be proportional to the spectral density of the EEG recording, see *Computations*. We found that interspike interval or duration was dependent on the latent noise variable and that ISI was maximal for intermediate noise levels. This behavior has not previously, to our knowledge, been presented or noted in clinical EEG. The FitzHugh-Nagumo model showed similar results for ISI in relation to noise level and we will discuss why our results could indicate that epileptic spikes are created by the transition between different states of the cortex (or brain) similar to epileptic seizures.

The normalized interspike intervals measured from the patients were used to plot a histogram over number of occurrences of spikes per unit time. If the average spike rate was constant this distribution would follow a poisson distribution which we could show it did not. Data from both awake and sleep states showed a clear statistical difference from the poisson distribution. This could indicate a process where the spike rate was dependent on an underlying non-constant parameter resulting in a varying average spike rate or equivalently varying interspike intervals. Computational modelling of spike triggering requires the addition of external (biological) noise and it has been shown that average spike rate changes with noise intensity. The system is randomly driven to a fixed threshold by the noise such that increasing noise intensity reduces ISI (Tuckwell et al. 2009; Tuckwell et al. 2003; Tuckwell and Wan 2005). We computed the ISI for the FitzHugh-Nagumo model (with noise) showing, as has been previously presented in the literature, that average spike intervals are a function of the noise intensity driving the system. To find evidence of a similar relation in our clinical data, we would need to estimate the biological noise driving the system. The analyzed data is from an *in-vivo* system (patient data) with no ethical possibilities of controlling the incoming noise or directly measuring it. Instead we relied on the relation between the spectral distribution of the data and the driving noise. In 2.4.1, we suggested that the spectral density of the EEG data could be approximated as being proportional to an undetermined biological noise process driving the system similar to what has been modeled in several publications (Moran et al. 2009; Robinson et al. 2001; Steyn-Ross et al. 1999). Based on these previous studies and our own computation we estimated that there could be a proportionality between the spectral parameters estimated in the study and the latent biological noise intensity. This allowed us to have an estimate of noise intensity in the form of the spectral parameters that we estimated for the data. As was shown in Results, the ISI-spectral parameter curves showed a maxima at a log normalized spectral parameter of around −1 for the different frequency bands indicating that the findings were at least partly frequency independent. The maxima is not typical for classical stochastic resonance which is frequency dependent (McDonnell et al. 2015). Assuming that the spectral features were the result of fluctuations around a stable point the independence on the frequency band would be expected as discussed in Section 2.4.1. and could also be estimated from the ISI simulation in the FitzHugh-Nagumo model. The spectral “EEG” parameters of the FitzHugh-Nagumo model would then be estimated from the fluctuations of the trajectories around the stable steady point. The assumption that spontaneous EEG activity is generated by the fluctuation around a stable point is a simplification of a complex neurobiological process which does not allow the activities within the different frequency bands of spontaneous EEG to be modelled as independent processes. In the present study this simplifying assumption was supported by the results as it was not possible to distinguish differences in the relation between ISI and spectral parameters for different frequency bands. If future studies reveal frequency band dependency on the ISI maxima more complex models would be required. The noise induced ISI maximum has been seen for single and multi-neuron measurements both *in vitro* and *in vivo* (Buchin et al. 2016; Gluckman et al. 1998). Simulations and computations have shown similar findings for a multitude of spike models including both the Hodgkin-Huxley and FitzHugh-Nagumo model (Tuckwell et al. 2009; Tuckwell et al. 2003; Tuckwell and Wan 2005).

The phase space of the Fitz-Hugh-Nagumo model was simplified to allow for computation of the ISI. We used three compartments to describe the flow of trajectories: compartment 1 contained the stable fixed point and compartment 2 and 3 contained the stable limit cycle. At low noise levels the trajectories were shown to collect along the stable limit cycle. As the noise level increased the probability of getting attracted to the stable fixed point increased which resulted in an increase in ISI as trajectories were “held” at the stationary point. With further increasing noise, the time where trajectories were located around the fixed point (compartment 1) reduced resulting in a reduction of ISI. Removal of the limit cycle from the FitzHugh-Nagumo model (by changing the parameter *I*) resulted in ISI values decreasing with increasing noise (simulated data). We further studied the effect of varying the geometry of the compartments which did not change the qualitative relation between ISI and noise. The results seen in the FitzHugh-Nagumo model resemble the findings we see in epileptic spikes in patients with epilepsy. The analogy with the FitzHigh-Nagumo model (and several other models in the literature) would indicate that epileptic spikes are created by the transition between two stable or semi-stable states of the brain.

## Conclusion

This study has shown the effect of a latent noise variable on epileptic spike production in patients with epilepsy indicating the possible transition of the cortex between semi-stable states, similar to the generation of epileptic seizure activity (Jirsa et al. 2014). We hypothesize that these findings are general and should be reproduced in other studies of epileptic spikes in patients with epilepsy including different modalities such as MEG and intracranial EEG. Further study, including spikes and seizure activity and their dynamics could be of importance in defining the brain states involved in epileptic activity (*i.e.* epileptic spikes and seizure activity). The deepened understanding of the electrophysiology of epilepsy that this study provides could be useful in the assessment of different therapies for epilepsy including the effect of different drugs or electrical stimulation.

## References

Alnaes MS, Blechta J, Hake J, Johansson A, Kehlet B., Logg A., Richardson C., Ring J., M. E. Rognes and G. N. Wells. The FEniCS Project Version 1.5

*Archive of Numerical Software*, vol. 3, 2015.Barkmeier, D. T., Shah, A. K., Flanagan, D., Atkinson, M. D., Agarwal, R., Fuerst, D. R., … Loeb, J. A. (2012). High inter-reviewer variability of spike detection on intracranial EEG addressed by an automated multi-channel algorithm.

*Clinical Neurophysiology*https://doi.org/10.1016/j.clinph.2011.09.023.Buchin, A., Rieubland, S., Häusser, M., Gutkin, B. S., & Roth, A. (2016). Inverse stochastic resonance in cerebellar Purkinje cells.

*PLoS Computational Biology., 12*, e1005000. https://doi.org/10.1371/journal.pcbi.1005000.David, O., & Friston, K. J. (2003). A neural mass model for MEG/EEG: NeuroImage. https://doi.org/10.1016/j.neuroimage.2003.07.015.

Douglas, R. J., Martin, K. A. C., & Whitteridge, D. (1989). A Canonical Microcircuit for Neocortex.

*Neural Computation., 1*, 480–488. https://doi.org/10.1162/neco.1989.1.4.480.FitzHugh, R. (1961). Impulses and physiological states in theoretical models of nerve membrane.

*Biophysical Journal, 1*, 445–466. https://doi.org/10.1016/S0006-3495(61)86902-6.Gluckman, B. J., So, P., Netoff, T. I., Spano, M. L., & Schiff, S. J. (1998). Stochastic resonance in mammalian neuronal networks.

*Chaos., 8*, 588–598. https://doi.org/10.1063/1.166340.Hodgkin, A. L., & Huxley, A. F. (1952 Aug 28). A quantitative description of membrane current and its application to conduction and excitation in nerve.

*The Journal of physiology., 117*(4), 500–544.Jansen, B. H., & Rit, V. G. (1995). Electroencephalogram and visual evoked potential generation in a mathematical model of coupled cortical columns.

*Biological Cybernetics., 73*, 357–366. https://doi.org/10.1007/BF00199471.Jirsa, V. K., Stacey, W. C., Quilichini, P. P., Ivanov, A. I., & Bernard, C. (2014). On the nature of seizure dynamics.

*Brain., 137*(8), 2210–2230.Kinoshita, M., Ikeda, A., Matsuhashi, M., Matsumoto, R., Hitomi, T., Begum, T., Usui, K., Takayama, M., Mikuni, N., Miyamoto, S., Hashimoto, N., & Shibasaki, H. (2005). Electric cortical stimulation suppresses epileptic and background activities in neocortical epilepsy and mesial temporal lobe epilepsy.

*Clinical Neurophysiology, 116*, 1291–1299.McDonnell, M. D., Iannella, N., To, M. S., Tuckwell, H. C., Jost, J., Gutkin, B. S., & Ward, L. M. (2015).

*A review of methods for identifying stochastic resonance in simulations of single neuron models*. Network: Computation in Neural Systems. https://doi.org/10.3109/0954898X.2014.990064.Moran, R. J., Stephan, K. E., Seidenbecher, T., Pape, H. C., Dolan, R. J., & Friston, K. J. (2009). Dynamic causal models of steady-state responses.

*NeuroImage., 44*, 796–811. https://doi.org/10.1016/j.neuroimage.2008.09.048.Nagumo, J., Arimoto, S., & Yoshizawa, S. (1962). An active pulse transmission line simulating nerve axon*.

*Proceedings of the IRE., 50*,*2061*–*2070*. https://doi.org/10.1109/JRPROC.1962.288235.Oksendal B. (2013) Stochastic differential equations: An introduction with applications. Springer Science & Business Media.

Pinotsis, D. A., Moran, R. J., & Friston, K. J. (2012 Jan 16). Dynamic causal modeling with neural fields.

*Neuroimage., 59*(2), 1261–1274.Robinson, P. A., Rennie, C. J., Wright, J. J., Bahramali, H., Gordon, E., & Rowe, D. L. (2001 Jan 18). Prediction of electroencephalographic spectra from neurophysiology.

*Physical Review E., 63*(2), 021903.Schomer, D.L., Da Silva, F.L., (2012) Niedermeyer's electroencephalography: Basic principles, clinical applications, and related fields. Lippincott Williams & Wilkins.

Steyn-Ross, M.L., Steyn-Ross, D.A., Sleigh, J.W. and Liley, D.T.J., (1999). Theoretical electroencephalogram stationary spectrum for a white-noise-driven cortex: Evidence for a general anesthetic-induced phase transition.

*Physical Review E*,*60*(6), p.7299.Tuckwell, H. C., Jost, J., & Gutkin, B. S. (2009). Inhibition and modulation of rhythmic neuronal spiking by noise.

*Physical Review E - Statistical, Nonlinear, and Soft Matter Physics., 80*. https://doi.org/10.1103/PhysRevE.80.031907.Tuckwell, H. C., Rodriguez, R., & Wan, F. Y. M. (2003). Determination of firing times for the stochastic Fitzhugh-Nagumo neuronal model.

*Neural Computation., 15*, 143–159. https://doi.org/10.1162/089976603321043739.Tuckwell, H. C., & Wan, F. Y. M. (2005). Time to first spike in stochastic Hodgkin-Huxley systems.

*Physica A: Statistical Mechanics and Its Applications., 351*, 427–438. https://doi.org/10.1016/j.physa.2004.11.059.Wendling, F., Bellanger, J. J., Bartolomei, F., & Chauvel, P. (2000). Relevance of nonlinear lumped-parameter models in the analysis of depth-EEG epileptic signals.

*Biological Cybernetics., 83*, 367–378. https://doi.org/10.1007/s004220000160.Westin, K., Lundstrom, B., Van Gompel, J., & Cooray, G. (2019). Neurophysiological effects of continuous cortical stimulation in epilepsy – Spike and spontaneous ECoG activity.

*Clinical Neurophysiology, 130*(1), 38–45. https://doi.org/10.1016/j.clinph.2018.10.009.Wilson, H. R., & Cowan, J. D. (1972). Excitatory and inhibitory interactions in localized populations of model neurons.

*Biophysical Journal, 12*, 1–24. https://doi.org/10.1016/S0006-3495(72)86068-5.Yamamoto, J., Ikeda, A., Kinoshita, M., Matsumoto, R., Satow, T., Takeshita, K., Matsuhashi, M., Mikuni, N., Miyamoto, S., Hashimoto, N., & Shibasaki, H. (2006). Low-frequency electric cortical stimulation decreases interictal and ictal activity in human epilepsy.

*Seizure, 15*, 520–527.

## Acknowledgments

GC and AC were supported by research grants from The Swedish Society of Medicine. GC and CC were supported by research grants from Stockholm County Council.

### Availability of data and codes

On request from the corresponding author raw data can be accessed for re-analysis of the presented findings. Codes used for this study can be requested from the corresponding author.

## Funding

Open Access funding provided by Karolinska Institute. GC and AC were supported by research grants from The Swedish Society of Medicine. GC and CC were supported by research grants from Stockholm County Council.

## Author information

### Authors and Affiliations

### Corresponding author

## Ethics declarations

### Conflicts of interest

None of the authors have potential conflicts of interest to be disclosed.

### Ethical approval and consent to participate and for publication

The following study was approved by the ethical board (Dnr. 2016/1509–31/4) at Karolinska University Hospital, Stockholm and followed the 1964 Declaration of Helsinki and its later amendments. All patients or guardians for patients less than 18 years gave consent to participate in the study and for publication of the study.

## Additional information

Action Editor: Steven J. Schiff

### Publisher’s note

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

## Appendix

### Appendix

### Definition of normalized ISI (\( {\mathcal{J}}^{\mathrm{i}}\Big) \)

The ISI (*I*^{i}) was defined as the length of the window in seconds. The normalized interval (\( {\mathcal{J}}^i \)) was defined as follows, where N denotes the number of interspike interval windows:

### Definition of normalized cross spectral density (\( {\mathcal{G}}_{\mathrm{x}}^{\mathrm{i}} \))

The cross spectral density, \( {G}_{xy}^{ij}\left(\omega \right) \), where *x* and *y* denote EEG channels, was calculated for each interspike interval window (i) and epoch (j) (each interspike interval window was subdivided into 1 s long epochs).

Where \( {F}_x^{ij}\left(\omega \right) \) is the fourier transform of EEG channel x in the j-th epoch of the i-th interspike interval window. The average cross-spectral density was estimated as below for each interspike interval (i) and for the channel (x) with maximum spike amplitude; n denotes number of EEG-channels and m denotes number of epochs in the i-th interspike interval window:

The averaged cross spectral density was estimated in the following frequency bands: 1–40, 1–4, 4–8, 8–12 and 12–40 Hz. This was done as follows:

The averaged cross spectral density, \( {G}_x^i \), was normalized (\( {\mathcal{G}}_x^i \)) for each patient to allow for merger of data values across patients in the subsequent analysis:

This was estimated for the different frequency bands: 1–40, 1–4, 4–8, 8–12 and 12–40 Hz:

### Estimation of the relation between inter-spike interval and input noise in the FitzHugh-Nagumo model

The Fokker Planck operator was used to estimate the expected time of trajectories in each compartment and the following transition probabilities: compartment 2 to 1 and compartment 2 to 3.

### Estimation of the expected time spent in compartment 1

An ellipse was used to model compartment 1 which was centered at the stationary state of the system (−0.9719, −0.3399), Fig. 2.

An absorbing boundary was placed on the lower right quadrant of the boundary and a reflecting on the rest of the boundary. Rescaled and translated dimensions were used \( \left(x=\frac{\overline{x}+0.9719}{0.12},y=\frac{\overline{y}+0.3399}{0.03}\right) \) such that the ellipse was transformed into a disc with centre at the origin, Fig. 3. The dynamics of the trajectories within compartment 1 was given by the following stochastic differential equation:

The expected escape time *f(x)* starting at *x* from compartment 1 was estimated using Dynkin’s formula (Ch7. Oksendal 2013). Where *f(x)* satisfies the following partial differential equation (PDE),

Note, that *L* is the adjoint of the Fokker Planck operator for the stochastic differential equation governing the trajectories. Boundary conditions included an absorbing boundary limiting the lower right quadrant (∂Ω_{a}) and reflecting on the remaining boundary (∂Ω_{r}). The PDE was solved using FENICS and the expected time in compartment 1 was estimated with *x* located at the stationary point (Alnaes et al. 2015).

#### Estimation of the expected time spent in compartment 2 and transition probabilities to compartments 1 and 3

Compartment 2 was located symmetrically around the stable limit cycle in the box *x* ∈ [−1.03, −1] and *y* ∈ [−0.35, −0.383]. The upper boundary was set at a distance of 0.015 from the stable limit cycle, which was the distance to the unstable limit cycle. A symmetrical lower boundary was placed at a the same distance from the stable limit cycle, 0.015, Fig. 2. The length of compartment 2 was set to 0.03. A coordinate system was set with one coordinate along the limit cycle (*X*) and one transverse (*Y*) to this. This compartment was rescaled into a unit-square, Fig. 3. The dynamics of the rescaled compartment 2 was given by,

Note that we incorporated the factor of 70 in the noise term *σ* for the rest of this section. The Fokker Planck operator was given by (v = 2):

The flow of the distribution of trajectories (p) was given by,

The following discretized equation was solved (with test function *q*),

Robins conditions at reflecting boundaries (null probability flux),

The final variational form was given by,

This variational form of the PDE was solved for p. The transition probability and expected time for transition to compartment 1 or 3 was estimated from p.

### Estimation of the expected time spent in compartment 3

In a similar way the expected time in compartment 3 was estimated.

### Estimation of expected time between spikes (ISI) for different levels of noise

*p*, *T*_{1} and *T*_{2} were estimated from the results of 7.2 and the ISI was calculated for different levels of noise, Fig. 7.

## 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 http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Cooray, C.N., Carvalho, A. & Cooray, G.K. Noise induced quiescence of epileptic spike generation in patients with epilepsy.
*J Comput Neurosci* **49**, 57–67 (2021). https://doi.org/10.1007/s10827-020-00772-3

Received:

Revised:

Accepted:

Published:

Issue Date:

DOI: https://doi.org/10.1007/s10827-020-00772-3

### Keywords

- Interspike interval
- Cortical-state transitions
- Spike threshold
- EEG
- Epilepsy