Abstract
Absent epilepsy is a kind of refractory epilepsy, which is characterized by 2–4 Hz spike and wave discharges (SWDs) in electroencephalogram. Open-loop deep brain stimulation (DBS) targeting the thalamic reticular nucleus (TRN) is an effective method to treat absent epilepsy by eliminating SWDs in the brain. Compared with open-loop DBS, closed-loop DBS has been recognized by researchers for its advantages of significantly inhibiting seizures and having fewer side effects. Since traditional trial-and-error methods for adjusting closed-loop controller parameters are too dependent on the experience of doctors, in this paper we designed two proportional integral (PI) controllers based on the basal ganglia-cortical-thalamic model, whose PI parameters are calculated from the stability of the system. The two PI controllers can automatically adjust the frequency and amplitude of DBS respectively according to the change of the firing rate detected by substantia nigra pars reticulata (SNr). The parameters of the PI controller are calculated based on the Routh-Hurwitz stability criterion of a linear system which transformed by the original system using controlled auto-regressive (CAR) model and recursive least squares (RLS) method. Numerical simulation results show that both PI controllers significantly destroy the SWDs of the cerebral cortex and restore it to the other two normal discharge modes according to the different target firing rate, which supplies a promising brain stimulation strategy.
Similar content being viewed by others
Introduction
Absence epilepsy has been widely studied for its unique pathogenesis1,2, including the main frequency of 2–4 Hz spike and wave discharges (SWDs) in electroencephalogram (EEG)3,4, sudden and temporary loss of consciousness5, and widespread seizures in the adolescent years6,7. Previous studies have suggested that the thalamus plays a crucial role in epileptic seizures and that abnormal feedback from the thalamus to the cerebral cortex is responsible for the appearance of SWDs8,9. Subsequently, electrophysiological records in the cerebral cortex and thalamus of epileptic patients also demonstrated the corticothalamic system was associated with SWDs10,11, and the corresponding corticothalamic model was established12,13. The basal ganglia, as the information processing unit of the brain, directly or indirectly participates in the information transmission between the cortex and the thalamus14,15. Clinical studies have shown that damage to basal ganglia can lead to various brain disorders, including epilepsy16, cognitive impairment, and Parkinson's disease17,18. The basal ganglia are composed of subthalamic nucleus (STN), globus pallidus internal (GPi), globus pallidus external (GPe), and substantia nigra pars reticulata (SNr), of which the most important output nucleus is SNr neurons. Moreover, experimental studies on SNr in rodent models suggested that SNr plays an important role in the control of absence epilepsy19,20. Therefore, given that underlying mechanism of SNr in the brain is not clear, further research on SNr is necessary.
Slow oscillations of 0.1–0.2 Hz in the human brain are traveling waves that can trigger the thalamic spindles and periodically sweep across the cerebral cortex21. Spindles, which are associated with slow oscillations, can be observed in the electroencephalogram (EEG) in deep sleep22. Furthermore, experimental records showed that sleep spindles disappear when the transmission between thalamus reticular nucleus (TRN) and specific relay nucleus (SRN) is disrupted23,24. Therefore, researchers believe that TRN can act as a pacemaker of the spindles, and that the slow oscillation of different brain regions can also be regulated by TRN25,26. In recent years, more and more biophysical models have been established to study TRN. Fan et al. achieved the interconversion between spindles and SWDs in the cerebral cortex by applying deep brain stimulation (DBS) stimulation to TRN27. Wang et al. investigated the mechanism of external stimulation on TRN in the cortical thalamic model28. These studies have stimulated our enthusiasm to study the underlying mechanism of DBS stimulation on TRN.
There are many ways to treat epilepsy and the traditional methods are drug therapy or surgical removal29,30. Although these methods have a certain control effect on the absence epilepsy, the risks of surgery and the side effects of drugs should not be ignored31,32. DBS stimulation may be an alternative treatment for epilepsy in some patients with drug immunity33. DBS stimulation, which uses implanted electrodes to send electrical pulses to specific areas of the brain, has been shown to significantly reduce the onset of absence seizures34,35. However, when we build DBS stimulation, we need to consider many constraints such as battery life, stimulation intensity, and dynamic changes of the system36,37. In recent years, closed-loop DBS stimulation has received more attention than traditional open-loop DBS stimulation38. Closed-loop DBS is a control method that adaptively adjusts parameters and optimizes battery utilization39. The design of the closed-loop DBS stimulus controller is mainly about the selection of biomarkers reflecting the absence epileptic state and the selection of reference signals adapting to the dynamic changes of the system40,41. Specifically, when the epilepsy marker changes, which means the seizure, the reference signal triggers our preset value, and then the closed-loop controller automatically updates the DBS parameters to control the seizure34. From a dynamic point of view, the nervous system is multi-stable during epileptic seizures, and the closed-loop DBS controller serves to pull the cortical state back to the normal attraction basin42,43. At present, the closed-loop brain stimulation, vagus nerve stimulation and spinal cord stimulation applied in clinical practice basically depend on the feedback of therapeutic effect to adjust the stimulation parameters, which results in the control parameters being empirically selected44,45. The responsive neurostimulation, such as RNS System (NeuroPace, Inc. USA), can provide on-demand stimulation based on the detection of abnormal signals in the lesion, but RNS System has been used clinically for a short time and only treats patients with one or two foci of epilepsy46. Therefore, there are at least two limitations to traditional brain stimulation strategies. Firstly, the process of closed-loop control parameter adjustment relies too much on the experience of the physician. Secondly, the relationship between absent epilepsy and basal ganglia was neglected when the closed-loop control strategy was developed.
To break through these limitations, we designed two PI controllers, whose PI parameters are calculated from the stability of the system. PI controller successfully tracked the change of the firing rate of SNr, the main output nucleus of basal ganglia. The design of PI controller is based on approximating the basal ganglia-cortical-thalamic system into a linear system using controlled auto-regressive (CAR) model and recursive least squares (RLS) method, and then using Routh-Hurwitz stability criterion to calculate PI parameters. There are two commonly used system identification methods for CAR model, one is maximum likelihood method, and the other is RLS method. Because of its simplicity and practicality, the RLS method is often applied to nervous system models47. For example, in the study of Su et al., the algorithm combining CAR model and RLS was used to successfully track the dynamic beta oscillation activity in the basal ganglia48. In addition, proportional integral (PI) controller is widely used in the field of control engineering because of its robust performance and simple implementation. Moreover, PI controller also plays an important role in the field of neuropathic diseases49,50,51. Proportional feedback stimulation was applied to rat epileptic foci to control paroxysmal seizures52. Amplitude proportional with integral bias and derivative control were designed for Parkinson’s disease53.
The rest of the paper is organized as follows. In Section “Model and measure”, the absence seizures model was introduced, the relation of stimulus–response was established through CAR model and RLS method and the PI controller was designed according to the parameters obtained by Routh-Hurwitz stability criterion. In Section “Results”, the results of numerical simulation were illustrated. In Section “Conclusion and discussion”, the conclusion was given.
Model and measure
In this section, we selected the absence epilepsy model composed of cerebral cortex, thalamus, and basal ganglion as the carrier of deep brain stimulation (DBS) stimulation and the experimental platform for the generation of absence epilepsy data54,55. Then, considering the importance of substantia nigra pars reticulata (SNr) in basal ganglia and its high correlation with other neurological diseases, we selected the mean firing rate of SNr as a reference signal, and identified the linear relationship between the DBS stimulus parameters and the firing rate of SNr. Finally, we constructed a closed-loop controller using a linear controlled auto-regressive (CAR) model and Routh-Hurwitz stability criterion to control absence epilepsy.
Introduction of absence seizures model
The basal ganglia-cortical-thalamic network proposed by Chen et al. extends the basal ganglia based on the cortical-thalamic model55,56. Based on this model, we can successfully achieve the transformation of spike and wave discharges (SWDs) to spindle oscillations in the cerebral cortex. As shown in Fig. 1, the whole network model can be divided into three categories according to color, namely cerebral cortex (orange), thalamus (blue) and basal ganglia (green), each of which can be divided into different sub-modules. For example, the cerebral cortex is made up of two orange rectangles, called inhibitory interneurons (II) and excitatory pyramidal neurons (EPN). The different submodules are connected by projections: excitatory projections mediated by glutamate (purple arrow solid line), inhibitory projections mediated by GABAA (blue arrow solid line), and inhibitory projections mediated by GABAB (blue arrow dot line).
Structural diagram of a computational model for absent epilepsy. Nine neuron groups are shown as follows, STN subthalamic nucleus, GPe globus pallidus external, SNr substantia nigra pars reticulate, D2 striatal D2 neurons, D1 striatal D1 neurons, SRN specific relay nuclei, TRN thalamic reticular nucleus, II inhibitory interneurons, EPN excitatory pyramidal neurons. The excitatory projections are represented by purple arrow solid line. The blue lines represent inhibitory projections, where the solid and dot lines represent GABAA-mediated and GABAB-mediated, respectively.
The biophysical model of absence epilepsy is shown as follows55:
where \(X\left( t \right) = \left[ {V_{EPN} \left( t \right),V_{{D_{1} }} \left( t \right),V_{{D_{2} }} \left( t \right),V_{SNr} \left( t \right),V_{GPe} \left( t \right),V_{STN} \left( t \right),V_{TRN} \left( t \right),V_{SRN} \left( t \right)} \right]^{T}\),
where \(\alpha\) is synaptodendritic decay time constant, and \(\beta\) is synaptodendritic rise time constant. \(\gamma_{e}\) denotes cortical damping rate, and \(i \in \left[ {EPN,II,TRN,SRN,D_{1} ,D_{2} ,SNr,GPe,STN} \right]\) represents one of nine groups of neurons. \(r\) indicates the spatial position, \(\sigma\) represents the threshold variability of firing rate, \(\theta_{i}\) represents the mean firing threshold, and \(Q_{i}^{max}\) indicates the maximum firing rate. \(\phi_{e}\) denotes cortical excitatory axonal field. \(\tau\) and \(\phi_{n}\) are represent the GABAB delay and the constant nonspecific subthalamic input onto SRN. \(v_{i,j}\) indicates coupling strength from \(i\) to \(j\),\(i,j \in \left[ {EPN,II,TRN,SRN,D_{1} ,D_{2} ,SNr,GPe,STN} \right]\). The other parameters are shown in Table 155.
Establish stimulus–response relation
The design diagram of the closed-loop DBS controller is illustrated in Fig. 2A. We selected the firing rate of SNr as the reference signal \(r\left( m \right)\). Then, we input the difference between \(r\left( m \right)\) and expected mean firing rate \(r_{rs} \left( m \right)\) into the proportional integral (PI) controller to obtain the DBS stimulus parameter \(s\left( m \right)\). Finally, we obtained DBS stimulation for the control of absence epilepsy. Since absence epilepsy is highly nonlinear, direct use of PI controller is not appropriate. Figure 2B shows the linear system of a closed-loop DBS controller, which is used to describe the linear relationship between DBS stimulus parameter and the mean firing rate of SNr. The CAR model is calculated as follows57:
where z, \(r\left( m \right)\), and \(s\left( m \right)\) are the lag operator, output signal, and input signal, respectively. \(n_{a} ,\)\(\varepsilon \left( m \right)\), and \(n_{b}\) are the order of output, error, and the order of input, respectively.
(A) The closed loop DBS controller. First, The mean firing rate of SNr is calculated from the absence epilepsy model and used as feedback signals \(r\left( m \right).\) Then, the difference between the expected mean firing rate \(r_{rs} \left( m \right)\) and \(r\left( m \right)\) is used as input to the PI controller to calculate the frequency or amplitude of DBS stimulate \(s\left( m \right)\). Finally, the DBS stimulus current input to the absence epilepsy model is constructed. (B) Linear system of closed-loop DBS controller.
As we know, the CAR model describes a linear relationship between stimulus and responses and relies heavily on input and output data. Therefore, to extract more information from the relationship between DBS parameters and mean firing rate of SNr, we let DBS parameters change randomly in a certain range. For example, Fig. 3A,B respectively show the discharge of DBS current during 4–6 s, and we change the frequency and amplitude of current respectively every 0.2 s. In addition, we also consider the influence of time window bin on the control accuracy of closed-loop DBS. As shown in Fig. 3C, we plotted the box diagram of mean firing rate of SNr as a function of the time window bin. The simulation results show that when the time window bin is 0.2 s, the mean firing rate of SNr measured each time is scattered, which means that the time window bin of 0.2 s is sensitive to the changes of the system.
(A) The DBS current with different frequency. The duration of each current is 0.2 s, and the current frequency is between 20 and 100 Hz. (B) The DBS current with different amplitude. The duration of each current is 0.2 s, and the current amplitude is between 1 and 4 mA. (C) The box figure of mean firing rate of SNr plotted as a function of time window bin (60 trials), where the blue rectangle consists of the median, upper quartile and lower quartile, and the outliers are marked with red crosses. MFRSNr represents mean firing rate of SNr.
The recursive least squares (RLS) method is used to estimate CAR model parameters \(a_{1} ,a_{2} , \ldots ,a_{{n_{a} }}\) and \(b_{1} ,b_{2} , \ldots ,b_{{n_{b} }}\). The least square form of the CAR model is shown as follows57:
where \(\varphi \left( m \right) = \left[ { - r\left( {m - 1} \right), \cdots - r\left( {m - n_{a} } \right),s\left( m \right), \cdots s\left( {m - n_{b} } \right)} \right]^{T}\) is composed of past input and output data and current input data. \(\theta = \left[ {a_{1} ,a_{2} , \cdots ,a_{na} ,b_{0} ,b_{1} , \cdots ,b_{nb} } \right]^{T}\) can be estimated by the following equation:
Figure 4 shows the performance of CAR model tracking dynamically changing firing rate of SNr when \(n_{a} = 2\) and \(n_{b} = 2\). We periodically change the DBS parameters from 1 s and start tracking the firing rate of SNr using the CAR model. When the input of CAR model is the frequency and amplitude of DBS current respectively, the corresponding performance of CAR model in model training is illustrated in Fig. 4A1,B1 respectively. Figure 4A2,B2 show the parameter estimation process of CAR model and the fitting of test data is shown in Fig. 4A3,B3 respectively. As we can see in Fig. 4, the CAR model performs well in training and testing, even though the order of the CAR model is relatively low. We should be more interested in the stability than the fitting accuracy of CAR model. Therefore, the CAR model in this paper is expressed as follows:
The performance of CAR models in model training (A1), parameter estimation (A2), and model testing (A3) when input of CAR model is DBS current frequency. The performance of CAR models in model training (B1), parameter estimation (B2), and model testing (B3) when input of CAR model is DBS current amplitude. In (A1,B1,A3,B3), the solid blue lines represent data from the basal ganglia-cortical-thalamic model. Dashed orange lines represent training data for CAR models in (A1) and (B1), and test data for CAR models in (A3) and (B3).
Design of closed-loop controller
The system replacing the absence epilepsy model with CAR model is shown in Fig. 2B and the structure of PI controller is as follows:
where \(k_{p}\) and \(k_{i}\) are computed by the Routh-Hurwitz stability criterion, which is introduced by the following equations.
The forward transfer function of the system in Fig. 2B is as follows:
The closed-loop transfer function is
The characteristic equation of this system is
substituted \(z\) with \(w\), where \(z = \frac{w + 1}{{w - 1}}\), we get
where:
Then, multiplying both sides of equation by \(\left( {w - 1} \right)^{3}\), we get
where:
Based on the Routh-Hurwitz stability criterion, the stability of this system is equivalent to \(n_{i} \left( {k_{p} ,k_{i} } \right) > 0\left( {i = 0,1,2,3} \right)\), and the corresponding subset of feasible solutions is \(k_{p} \,\,{\text{and}}\,\,k_{i} > 0\).
Traditional closed-loop DBS designs mostly control the amplitude of DBS to adjust the intensity of DBS58. However, from the perspective of signal analysis, frequency modulation has stronger anti-interference ability than amplitude modulation. To sum up, we designed two types of closed-loop DBS controllers, one of which is based on frequency modulation (BoFM). We limit the frequency to 20–100 Hz, and the BoFM controller is shown as follows:
The other is a closed-loop DBS controller based on amplitude modulation (BoAM). We limit the amplitude to 1–4 mA, and the BoAM controller is shown as follows:
Simulation analysis
In the paper, all the numerical calculations were conducted in the MATLAB R2019a (MathWorks, USA) simulation environment. The differential equation was solved by the standard fourth order Runge–Kutta method, with the temporal resolution of numerical integration is 0.05 ms. In the process of parameter training of CAR model, the optimal parameters can be obtained by running for sufficient time (> 15 s). The time series \(\phi_{e}\) of cortical excitatory axon field was used to describe the cortical macro dynamics, the transient waveform which was unstable at the beginning was discarded to ensure that the time series used for analysis was obtained under the premise that the system was stable. The fast Fourier transform is used to estimate the dominant frequency of time series \(\phi_{e}\).
Results
Dynamic change of firing rate in substantia nigra reticulum induced by open-loop deep brain stimulation
Our model successfully demonstrated the dynamic transition from spike and wave discharges (SWDs) firing to normal firing state by changing the inhibitory coupling strength \(- v_{SRNTRN}\) and GABAB delay \(\tau\). State region diagrams and dominant frequency diagrams are used to describe the firing activity of the cerebral cortex as \(- v_{SRNTRN}\) and \(\tau\) change. Specifically, as \(- v_{SRNTRN}\) changes, the cortical discharge activity can change from one state to another, and at the same time, the dominant frequency corresponding to the discharge activity changes, as shown in Fig. 5B,D. As shown in Fig. 5A, when the time delay is fixed at \(\tau = 49\) ms, the firing state of the cerebral cortex first change from saturation state to SWDs state, and then from SWDs state to normal simple oscillation state with the increase of coupling strength \(- v_{SRNTRN}\). Finally, the firing state of the cerebral cortex changes to low firing state due to the high inhibition of specific relay nuclei (SRN) by thalamic reticular nucleus (TRN). Moreover, when we add appropriate deep brain stimulation (DBS) to the TRN in absence epilepsy model, all firing regions of the cerebral cortex are inhibited. As shown in Fig. 5C, under the effect of DBS, the four firing states of the cerebral cortex are inhibited to the low firing state in the \(\left( {\tau , - v_{SRNTRN} } \right)\) panel. Correspondingly, the main frequency of cortical electrical activity also decreases to 0 Hz in Fig. 5D.
State (left) and dominant frequency (right) diagrams of the cerebral cortex in absence epilepsy model. The initial state and dominant frequency are shown in (A,B) respectively, while the state and dominant frequency with DBS stimulation is shown in (C,D) respectively. Different color regions in (A) represent different discharge states and are marked by different symbols: saturation state (green filled square), SWDs oscillation state (red filled circle), simple oscillation state (yellow filled diamond), low firing state (blue filled pentagram).
As we can see, Fig. 6 clearly shows the four different firing states of the cerebral cortex and the corresponding firing rate of the substantia nigra pars reticulata (SNr). Figure 6A2–D2 respectively show the time series of cerebral cortex discharges in saturation state, SWDs state, simple oscillation state and low firing state, and the corresponding SNr firing rates are shown in Fig. 6A1–D1. Compared with the more stable firing rates such as saturation state and low firing state, the mean firing rates of SWDs oscillating state and simple oscillating state are constantly changing, which brings us difficulties in designing the closed-loop controller with mean firing rate as reference signal in the next section. For simplicity, we calculated the mean firing rate of four firing activity and find that the mean firing rate of SNr is arranged from high to low in the order of saturation state, SWDs oscillation state, simple oscillation state, and low firing state. Therefore, we chose the average value of firing rates of simple oscillation and low oscillation respectively as the expected firing rates of the closed-loop DBS controller, which are \(r_{rs} = {27}{\text{.7884}}\) Hz and \(r_{rs} = {28}{\text{.4144}}\) Hz, respectively.
The four main kinds of firing activities (right) of the cerebral cortex and the corresponding firing rate (left) of the SNr. The firing activities of (A2,B2,C2,D2) correspond to saturation state, SWDs state, simple oscillation state and low firing state respectively and (A1,B1,C1,D1) show the firing rate of SNr in these four states.
It has been known from Fig. 5C that DBS stimulation current can inhibit the firing activity of cerebral cortex, therefore we also want to research whether DBS stimulation current can also control the firing rate of SNr. For this purpose, we investigated the effects of frequency and amplitude of DBS stimulation on MFR of SNr. As shown in Fig. 7A1,A2,B1,B2, when the frequency of DBS stimulation increases from 20 to 40 Hz, the cortical firing activity changes from SWDs oscillation state to simple oscillation state, and the amplitude of the firing rate oscillation of SNr decreases. At the same time, we found a similar situation when the amplitude of DBS stimulus increased. As shown in Fig. 8A1,B1,A2,B2, as the amplitude of DBS stimulation increases from 1 to 3 mA, the amplitude of the firing rate of SNr decreases significantly, and the cortical firing activity changes from SWDs oscillation state to simple oscillation state. In addition, an interesting phenomenon is that we detected simple oscillations of 60 Hz with very low amplitude in the low firing state suppressed by DBS stimulation in Figs. 7C1,C2, 8C1,C2. This may be due to the introduction of artificial high-frequency electrical stimulation in the absence epilepsy model.
To test whether the above results can be generalized to a larger parameter range, we extended the frequency and amplitude ranges to \(\left[ {20,100} \right]\) Hz and \([1,4][1,4]\) mA respectively. As shown in Fig. 9A1, the mean firing rate of SNr increases to a peak at Freq2 and then decreases slowly with increasing frequency. Combined with Fig. 9A1,A2, it is found that the mean firing rate of SNr when the firing activity is in simple oscillation state is higher than that when the firing activity is in SWDs oscillation state. The same situation can be observed in Fig. 9B1, B2. Therefore, it can be concluded that when DBS stimulation intensity increases, including the frequency or amplitude of DBS stimulation, the mean firing rate of SNR increases to a peak at the transition point from simple oscillation state to low discharge state, and then slowly decreases.
The mean firing rate (A1) of SNr and the firing state (A2) of cerebral cortex with the increase of DBS stimulation frequency. The mean firing rate (B1) of SNr and the firing state (B2) of cerebral cortex with the increase of DBS stimulation amplitude. The states 1, 0, and 2 represent SWDs oscillation state, simple oscillation state, and low firing state respectively.
Efficacy of closed-loop control strategy based on frequency modulation
After the analysis in the previous section, we known that the increase of DBS stimulation intensity will decrease the amplitude of SNr firing rate, which constitutes the theoretical basis for our design of closed-loop DBS controller. In this section, we will focus on the control effect of absence epilepsy under the BoFM strategy. As shown in Fig. 10, we designed a closed-loop controller based on BoFM control strategy for the purpose of controlling the state of cortical discharge activity. Meanwhile, considering the influence of expected firing rate on DBS control results, we selected the mean firing rate of SNr under the condition of cortical low firing state as the expected firing rate, and we applied closed-loop DBS control at 1 s. As shown in Fig. 10B, the cortical firing activity realized the transition from SWDs oscillation state to simple oscillation state at T1 = 1.20825 s, and from simple oscillation state to low firing state at T2 = 1.66255 s. The variations of SNr firing rate and closed-loop DBS current are shown in Fig. 10A,C, respectively.
Moreover, we also selected the mean firing rate of SNr under the condition of cortical simple oscillation state as the expected firing rate to study the control effects of cortical activity. As shown in Fig. 11B, the cortical firing activity realized the transition from SWDs oscillation state to simple oscillation state at T1 = 1.1772s. The variations of SNr firing rate and closed-loop DBS current are shown in Fig. 11A,C, respectively. Compared with Fig. 10B, the cortical firing activity in Fig. 11B did not switch to a low firing state but presented a simple oscillation state. The reason may be that we increase the expected firing rate of the closed-loop controller. Compared with Fig. 11C and Fig. 10C, The DBS current in Fig. 11C is sparser than that in Fig. 10C, which means that the power consumption of the closed-loop DBS current is inversely proportional to the value of the expected firing rate. In addition, an interesting finding is that the response time (T1 = 1.1772s) of simple oscillation in Fig. 11B is smaller than the response time (T1 = 1.20825 s) of simple oscillation in Fig. 10B.
Efficacy of closed-loop control strategy based on amplitude modulation
In the previous section, we successfully implemented the closed-loop control under the BoFM strategy, and we found that under the BoFM strategy, the control effect induced by different expected rate of fire is different. Considering the influence of DBS amplitude on SNr firing rate, we will focus on the control effect of absence epilepsy under the BoAM strategy in this section.
Like Fig. 10B, when the expected firing rate is 27.7884 Hz, we realize the transition from SWDs oscillation state to low firing state under the BoAM strategy. As shown in Fig. 12B, the simple oscillation state appeared at time T1 = 1.19885 s, and the low firing state appeared at time T2 = 4.8032 s. The variations of SNr firing rate and closed-loop DBS current are shown in Fig. 12A,C, respectively. However, the response time T2 of low discharge state under BoAM strategy is much larger than that under BoFM strategy. Moreover, the amplitude of the closed-loop control BDS current under the BoAM strategy rises from 1 mA to nearly 4 mA and gradually remains stable in Fig. 12C. We also analyze the control of cortical firing activity when the expected firing rate is 28.4144 Hz, which is the mean firing rate of SNr when the cortex is in simple oscillation state. As shown in Fig. 13B, when the expected firing rate is 28.4144 Hz, the cortical firing activity changes from SWDs oscillation state to simple oscillation state at time T1 = 1.19885 s. The variations of SNr firing rate and closed-loop DBS current are shown in Fig. 13A,C, respectively. The response times of simple oscillations are similar in Figs. 12B and 13B, which is different from we concluded in the previous section. In addition, we find that the amplitude of closed-loop DBS current in Fig. 13C is chaotic, which is different from Fig. 12C. However, like the conclusion in the previous section, the DBS current in Fig. 13C is sparser than that in Fig. 12C, which means that the DBS current in Fig. 13C consumes less power than that in Fig. 12C.
Conclusion and discussion
In this paper, we successfully achieved the conversion of spike and wave discharges (SWDs) oscillating state to other firing state in the cerebral cortex using a closed-loop deep brain stimulation (DBS) controller based on a model of absence epilepsy involving cerebral cortex, thalamus, and basal ganglia. The mean firing rate of substantia nigra pars reticulata (SNr) is selected as a reference signal, and the cortical firing activity is selected as a biomarker reflecting the epileptic state. The controlled auto-regressive (CAR) model and the Routh-Hurwitz stability criterion are introduced to determine the coefficients of the proportional integral (PI) controller. Moreover, we chose the average value of firing rates of simple oscillation and low oscillation respectively as the expected firing rates of the closed-loop DBS controller, which are \(r_{rs} = {27}{\text{.7884}}\) Hz and \(r_{rs} = {28}{\text{.4144}}\) Hz, respectively.
According to the numerical results, the intensity of the open-loop DBS current, including the amplitude or frequency of the DBS current, will reduce the amplitude of the SNr firing rate. With the increase of current intensity, the mean firing rate of SNr increase firstly and then decrease, and the firing activity of cerebral cortex change from SWDs oscillation state to simple oscillation state and finally kick to low firing state. Therefore, we designed closed-loop controllers based on BoFM strategy and BoAM strategy, respectively. The closed-loop controllers with two control strategies can achieve the desired control effect under different expected firing rates. By adjusting the expected firing rate from 27.7884 Hz to 28.4144 Hz, the final firing state under the closed-loop control is transformed from low firing state to simple oscillation state. Meanwhile, the power consumption of closed-loop DBS current decreases with the increase of expected firing rate. In addition, an interesting phenomenon is that the response time of low firing state under BoAM strategy is much larger than that under BoFM strategy when the expected firing rate is 27.7884 Hz, we hope that the research can provide reference and help for the treatment and prevention of epilepsy patients.
The PI parameters of the closed-loop DBS controller proposed in this paper are calculated by using the stability of the system rather than by traditional trial-and-error adjustment44. Therefore, the challenge to apply the proposed closed-loop DBS method to clinical or experimental applications is to identify the relationship between stimulus intensity and reference signal. In our study, the discharge rate of SNr was selected as the reference signal, and the frequency and amplitude of DBS were selected as the stimulus intensity. Although the proposed closed-loop control algorithm can eliminate the SWDs oscillation in the cerebral cortex, some limitations of the study cannot be ignored. First, the PI controller can track the mean firing rate of SNr well only when the change of frequency and amplitude is less than 1 Hz. In other words, a faster change in the target mean firing rate than 1 Hz will lead to an increase in tracking error, which may be caused by unmodeled dynamics. Therefore, to improve the tracking performance of the dynamic reference signal, an adaptive controller is designed to adjust the parameters of PI controller to adapt to the dynamic change of mean firing rate. Second, although TRN has been shown to be effective as a stimulus target for the treatment of absent epilepsy27,28, the centromedian thalamic nucleus59, subthalamic nucleus60,61, and anterior nucleus62,63 may also be potential stimulation targets as they are associated with other types of refractory epilepsy. Finally, the basal ganglia-cortical-thalamic network is highly non-linear, so it is necessary to use a non-linear controller in the following work.
Data availability
The data used to support the findings of this study are included within the article.
References
Crunelli, V. & leresche, N. Childhood absence epilepsy: Genes, channels, neurons and networks. Nat. Rev. Neurosci. 3, 371‒382 (2002).
Cao, F. et al. Neuroligin 2 regulates absence seizures and behavioral arrests through GABAergic transmission within the thalamocortical circuitry. Nat. Commun. 11, 3744 (2020).
Destexhe, A. Can GABAA conductances explain the fast oscillation frequency of absence seizures in rodents?. Eur. J. Neurosci. 11, 2175–2181 (1999).
Fong, G. C. Y. et al. Childhood absence epilepsy with tonic-clonic seizures and electroencephalogram 3–4 Hz spike and multispike–slow wave complexes: linkage to chromosome 8q24. Am. J. Hum. Genet. 63, 1117–1129 (1998).
Loiseau, P., Duché, B. & Pédespan, J. M. Absence epilepsies. Epilepsia 36, 1182–1186 (1995).
Marescaux, C. & Vergnes, M. Genetic absence epilepsy in rats from strasbourg (GAERS). Ital. J. Neurol. Sci. 16, 113–118 (1995).
Panayiotopoulos, C. P. Typical absence seizures and related epileptic syndromes: Assessment of current state and directions for future research. Epilepsia 49, 2131–2139 (2008).
Coenen, A. M. L. & Luijtelaar, G. V. Genetic Animal models for absence epilepsy: A review of the WAG/Rij strain of rats. Behav. Genet. 33, 635–655 (2003).
Avoli, M. & Gloor, P. The Effects of transient functional depression of the thalamus on spindles and on bilateral synchronous epileptic discharges of feline generalized penicillin epilepsy. Epilepsia 22, 443–452 (1981).
Destexhe, A. Spike-and-wave oscillations based on the properties of GABAB receptors. J. Neurosci. 18, 9099–9111 (1998).
Robinson, P. A., Rennie, C. J., Wright, J. J. & Bourke, P. D. Steady states and global dynamics of electrical activity in the cerebral cortex. Phys. Rev. E 58, 3557–3571 (1998).
Marten, F., Rodrigues, S., Benjamin, O., Richardson, M. P. & Terry, J. R. Onset of polyspike complexes in a mean-field model of human electroencephalography and its application to absence epilepsy. Philos. T. R. Soc. A. 28, 1145–1161 (2009).
Lytton, W. W. Computer modelling of epilepsy. Nat. Rev. Neurosci. 9, 626–637 (2008).
Groenewegen, H. J. The Basal ganglia and motor control. Neural Plast. 10, 107–120 (2003).
Deransart, C., Vercueil, L., Marescaux, C. & Depaulis, A. The role of basal ganglia in the control of generalized absence seizures. Epilepsy Res. 32, 213–223 (1998).
Slaght, S. J. et al. Functional organization of the circuits connecting the cerebral cortex and the basal ganglia: Implications for the role of the basal ganglia in epilepsy. Epileptic Disord. 4, 9–22 (2003).
Arakaki, T., Mahon, S., Charpier, S., Leblois, A. & Hansel, D. The Role of striatal feedforward inhibition in the maintenance of absence seizures. J. Neurosci. 36, 9618–9632 (2016).
Paz, J. T., Deniau, J. M. & Charpier, S. Rhythmic bursting in the cortico-subthalamo-pallidal network during spontaneous genetically determined spike and wave discharges. J. Neurosci. 25, 2092–2101 (2005).
Deransart, C. & Depaulis, A. The control of seizures by the basal ganglia? A review of experimental data. Epileptic Disord. 4, 61–72 (2003).
Kase, D., Inoue, T. & Imoto, K. Roles of the subthalamic nucleus and subthalamic HCN channels in absence seizures. J. Neurophysiol. 107, 393–406 (2012).
Steriade, M., Domich, L., Oakson, G. & Deschenes, M. The deafferented reticular thalamic nucleus generates spindle rhythmicity. J. Neurophysiol. 57, 260–273 (1987).
Mölle, M., Bergmann, T. O., Marshall, L. & Born, J. Fast and slow spindles during the sleep slow oscillation: disparate coalescence and engagement in memory processing. Sleep 34, 1411–1421 (2011).
Chatburn, A. et al. Sleep spindle activity and cognitive performance in healthy children. Sleep 36, 237–243 (2013).
Wamsley, E. J. et al. Reduced sleep spindles and spindle coherence in schizophrenia: Mechanisms of impaired memory consolidation?. Biol. Psychiat. 71, 154–161 (2012).
Zhao, X., Kim, J. W. & Robinson, P. A. Slow-wave oscillations in a corticothalamic model of sleep and wake. J. Theor. Biol. 370, 93–102 (2015).
Latreille, V. et al. Sleep spindles in Parkinson’s disease may predict the development of dementia. Neurobiol. aging 36(2), 1083–1090 (2014).
Fan, D., Wang, Q., Su, J. & Xi, H. Stimulus-induced transitions between spike-wave discharges and spindles with the modulation of thalamic reticular nucleus. J. Comput. Neurosci. 43, 1–23 (2017).
Wang, Z. & Wang, Q. Eliminating absence seizures through the deep brain stimulation to thalamus reticular nucleus. Front. Comput. Neurosc. 11, 22 (2017).
Krishnamurthi, N., Mulligan, S., Mahant, P., Samanta, J. & Abbas, J. J. Deep brain stimulation amplitude alters posture shift velocity in Parkinson’s disease. Cogn. Neurodynamics 6, 325–332 (2012).
Macrodimitris, S., Sherman, E. M., Williams, T. S., Bigras, C. & Wiebe, S. Measuring patient satisfaction following epilepsy surgery: Satisfaction Following Epilepsy Surgery. Epilepsia 52, 1409–1417 (2011).
Chambers, A. & Bowen, J. M. Electrical stimulation for drug-resistant epilepsy: An evidence-based analysis. Ont. Health Technol. Assess. Ser. 13, 1–37 (2013).
Reid, K., Herbert, A. & Baker, G. A. Epilepsy surgery: Patient-perceived long-term costs and benefits. Epilepsy Behav. 5, 81–87 (2004).
Paz, J. T. et al. Closed-loop optogenetic control of thalamus as a new tool to interrupt seizures after cortical injury. Nat. Neurosci. 16, 64–70 (2012).
Taylor, P. N., Wang, Y., Goodfellow, M., Dauwels, J., Moeller, F., Stephani, U. & Baier, G. A computational study of stimulus driven epileptic seizure abatement. Plos One 9, e114316 (2014).
Fuentes, R., Petersson, P., Siesser, W. B., Caron, M. G. & Nicolelis, M. A. Spinal cord stimulation restores locomotion in animal models of Parkinson’s disease. Science 323, 1578–1582 (2009).
Berényi, A., Belluscio, M., Mao, D. & Buzsáki, G. Closed-Loop control of epilepsy by transcranial electrical stimulation. Science 337, 735–737 (2012).
Rajna, P. & Lona, C. Sensory stimulation for inhibition of epileptic seizures. Epilepsia 30, 168–174 (1989).
Scangos, K. W. et al. Closed-loop neuromodulation in an individual with treatment-resistant depression. Nat. Med. 27, 1696–1700 (2021).
Nagel, S. J. & Najm, I. M. Deep brain stimulation for epilepsy. Neuromodulation 12, 270–280 (2009).
Li, M. C. H. & Cook, M. J. Deep brain stimulation for drug-resistant epilepsy. Epilepsia 59, 273–290 (2018).
Hu, B. & Wang, Q. Controlling absence seizures by deep brain stimulus applied on substantia nigra pars reticulata and cortex. Chaos Soliton. Fract. 80, 13–23 (2015).
Jirsa, V. K., Stacey, W. C., Quilichini, P. P., Ivanov, A. I. & Bernard, C. On the nature of seizure dynamics. Brain 137, 2210–2230 (2014).
Suffczynski, P., Kalitzin, S. & Silva, F. L. D. Dynamics of non-convulsive epileptic phenomena modeled by a bistable neuronal network. Neuroscience 126, 467–484 (2004).
Opri, E. et al. Chronic embedded cortico-thalamic closed-loop deep brain stimulation for the treatment of essential tremor. Sci. Transl. Med. 12, 572 (2020).
Wang, J. et al. Suppressing epileptic activity in a neural mass model using a closed-loop proportional-integral controller. Sci. Rep. 6, 27344 (2016).
Jarosiewicz, B. & Morrell, M. The RNS System: Brain-responsive neurostimulation for the treatment of epilepsy. Expert Rev. Med. Devices. 18, 129–138 (2021).
Zhu, Y. et al. Adaptive parameter modulation of deep brain stimulation in a computational model of basal ganglia–thalamic network. Nonlinear Dyn. 106, 945–958 (2021).
Su, F., Kumaravelu, K., Wang, J. & Grill, W. M. Model-based evaluation of closed-loop deep brain stimulation controller to adapt to dynamic changes in reference signal. Front. Neurosci. 13, 956 (2019).
Luo, M., Wu, Y. & Peng, J. Washout filter aided mean field feedback desynchronization in an ensemble of globally coupled neural oscillators. Biol. Cybern. 101, 241–246 (2009).
Liu, X., Liu, H., Tang, Y. & Gao, Q. Fuzzy PID control of epileptiform spikes in a neural mass model. Nonlinear Dynam. 71, 13–23 (2013).
Ma, Z., Zhou, W., Geng, S., Yuan, Q. & Li, X. Synchronization regulation in a model of coupled neural masses. Biol. Cybern. 107, 131–140 (2013).
Colpan, M. E., Li, Y., Dwyer, J. & Mogul, D. J. Proportional feedback stimulation for seizure control in rats. Epilepsia 48, 1594–1603 (2007).
Gorzelic, P., Schiff, S. & Sinha, A. Model-based rational feedback controller design for closed-loop deep brain stimulation of Parkinson’s disease. J. Neural. Eng. 10, 026016 (2013).
Hu, B. et al. Controlling mechanism of absence seizures by deep brain stimulus applied on subthalamic nucleus. Cogn. Neurodynamics 12, 103–119 (2018).
Chen, M., Guo, D., Wang, T., Jing, W., Xia, Y., Xu, P., Luo, C., Valdés-Sosa, P. A. & Yao, D. Bidirectional control of absence seizures by the basal ganglia: A computational evidence. PLoS Comput. Biol. 10, e1003495 (2014).
Chen, M., Guo, D., Li, M., Ma, T., Wu, S., Ma, J., Cui, Y., Xia, Y., Xu, P. & Yao, D. Critical roles of the direct gabaergic pallido-cortical pathway in controlling absence seizures. PLoS Comput. Biol. 11, e1004539 (2015).
Han, H., Xie, L., Ding, F. & Liu, X. Hierarchical least-squares based iterative identification for multivariable systems with moving average noises. Math. Comput. Model. 51, 1213–1220 (2010).
Fan, D. & Wang, Q. Closed-loop control of absence seizures inspired by feedback modulation of basal ganglia to the corticothalamic circuit. IEEE T. Neur. Sys. Reh. 28, 581–590 (2020).
Valentín, A., García Navarrete, E., Chelvarajah, R. et al. Deep brain stimulation of the centromedian thalamic nucleus for the treatment of generalized and frontal epilepsies. Epilepsia 54, 1823‒1833 (2013).
Chabardès, S. et al. Deep brain stimulation in epilepsy with particular reference to the subthalamic nucleus. Epileptic Disord. 4, 83–93 (2002).
Lyons, K. E., Wilkinson, S. B., Overman, J. & Pahwa, R. Surgical and hardware complications of subthalamic stimulation: A series of 160 procedures. Neurology 63, 612–616 (2004).
Krishna, V. et al. Anterior nucleus deep brain stimulation for refractory epilepsy: Insights into patterns of seizure control and efficacious target. Neurosurgery 78, 802–811 (2016).
Fisher, R. et al. Electrical stimulation of the anterior nucleus of thalamus for treatment of refractory epilepsy. Epilepsia 51, 899–908 (2010).
Acknowledgements
This research was supported by the National Natural Science Foundation of China (No. 11502139).
Funding
This article was funded by National Natural Science Foundation of China (Grant no. 11502139).
Author information
Authors and Affiliations
Contributions
H.Z. and Y. Chai. conceived the idea, Y. Chen. collected the data; H. Z. preformed the calculations and conducted the numerical analyses; Y.X. prepared figures and illustrations; Y. Chai. supervised the overall study; H.Z., Y. Chen., Y.X., and Y. Chai. jointly wrote the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
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
Zhang, H., Chen, Y., Xie, Y. et al. Closed-loop controller based on reference signal tracking for absence seizures. Sci Rep 12, 6730 (2022). https://doi.org/10.1038/s41598-022-10803-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-022-10803-x