Skip to main content
Cognitive Neurodynamics logoLink to Cognitive Neurodynamics
. 2019 Sep 22;14(1):51–67. doi: 10.1007/s11571-019-09555-8

Model-based robust suppression of epileptic seizures without sensory measurements

Meriç Çetin 1,
PMCID: PMC6974245  PMID: 32015767

Abstract

Uncontrolled seizures may lead to irreversible damages in the brain and various limitations in the patient’s life. There exist experimental studies to stabilize the patient seizures. However, the experimental setups have many sensory devices to measure the dynamics of the brain cortex. These equipments prevent to produce small portable stabilizers for patients in everyday life. Recently, a comprehensive cortex model is introduced to apply model-based observers and controllers. However, this cortex model can be uncertain and have time-varying parameters. Therefore, in this paper, a robust Takagi–Sugeno (TS) controller and observer are designed to suppress the epileptic seizures without sensory measurements. The unavailable sensory measurements are provided by the designed nonlinear observer. The exponential convergence of the observer and controller is satisfied by the feedback parameter design using linear matrix inequalities. In addition, TS fuzzy observer–controller design has been compared with the conventional PID method in terms of control performance and design problem. The numerical computations show that the epileptic seizures are more effectively suppressed by the TS fuzzy observer-based controller under uncertain membrane potential dynamics.

Keywords: Cortex model, Epileptic seizure, Uncertain dynamics, Takagi–Sugeno fuzzy modeling, Observer-based stabilization, PID control

Introduction

The functions of the human brain, one of the most complex systems known, are investigated by analysis of neuronal excitability and synaptic transmissions. Simulation of mesoscopic cortical electrical activity with a mathematical model of the brain cortex system is very important for the treatment of seizures such as epilepsy, Parkinson, cortical spreading depression and etc. (Traub et al. 2005; Kramer et al. 2007; Wang et al. 2015). Such neurological disorders, which can be assessed by electroencephalogram (EEG), is characterized by genetic or developmental anomalies, trauma, central nervous system infections or tumor-induced chaotic electrical brain activity (Iasemidis 2003). In addition, there are several studies that treat these neurological disorders with deep brain stimulating voltage. In these studies, it was observed that epileptic seizures were controlled by clinical parameters adjusted periodically to certain values (Hu et al. 2018). Thanks to EEG-based approaches to drug discovery and optimization, changes in brain activity, drug effects on structural and functional recovery are better understood (Mumtaz et al. 2018). Epilepsy is not only a discomfort in the central nervous system, but also a change in the different disorders of the brain activity into seizures. The chaotic dynamics in seizure-phase consist of high amplitude regular spike wave oscillations, in contrast to low amplitude irregular oscillations in the non-seizure-phase (Taylor et al. 2015). Control signals produced by known feedback control methods (direct electrical stimulation, magnetic stimulation and optogenetics) are applied as the treatment of instant seizures (Ratnadurai-Giridharan et al. 2017). However, the designed control methods are based on the assumption that the exact mathematical model of the cortex is known. Since it is not effective to measure all dynamics of the cortex model (CM), the control methods applied to this model are generally designed based on the minimization of the output error.

Nonlinear observers have an important role in monitoring and control for state and parameter estimation. Although the sensor technology is evolved for measurement of the states, the observers are preferred due to the weight/size limitations of the sensors. In addition to this, the observers are more advantageous in terms of cost since they are software-based. In this study, an observer-based controller has been designed to estimate all unmeasurable states of cortex dynamics. There are several studies in the literature that include different mechanisms of control and estimation using the brain cortex model. For instance, in Çetin and Beyhan (2018), an adaptive unscented Kalman filter-based optimal controller is proposed to control the dynamics of uncertain cortex with a single membrane potential measurement in their recent study. In Shan et al. (2015), to reproduce the dynamics and to estimate the unmeasurable parameters of the model, a control framework has been proposed to inhibit epilepticform wave in a neural mass model by external electric field. The values of neurophysiological parameters were estimated using the detailed biophysical model of brain activity in Rowe et al. (2004). In López-Cuevas et al. (2015), a cubature Kalman filter was used to estimate the parameters and status of the model during seizure from observed electrophysiological signals. In Tsakalis et al. (2006), the problem of controlling or suppressing seizures by means of feedback control was investigated. Kramer et al. (2006) showed that three controllers could be used to eliminate the seizure activity. The authors presented new approaches to investigate a feedback control model for epileptic seizures in humans with Lopour and Szeri (2010). In Wang et al. (2016), a Proportional Integral (PI) type closed-loop controller was designed to suppress the epileptic activity in the neural-mass model of Jansen where the controller parameters were optimized to keep the system in stable region. Haghighi and Markazi (207) has led to further investigation of possible seizure prevention approaches.

Nerve cells communicate with the generation and transmission of short electrical pulses. It is possible to obtain the control of the membrane potential and ionic currents, which is important for suppressing oscillations, blocking the action potential transmission and neuromodulation, by an observer-based control method (Fröhlich and Jezernik 2005; Beyhan 2017). Recently, efficient applications of Takagi–Sugeno (TS) fuzzy control methodologies have been developed for complex dynamic systems in various neuroscience applications. TS fuzzy models, expressed by a group of linear sub-models, are considered as a useful tool for approaching such complex nonlinear systems. These models are preferred as modern control tools due to their success in accurate modeling, prediction, estimation, control and fault tolerance in the control of such nonlinear systems (Tseng et al. 2001; Tanaka and Wang 2004; Ho and Chou 2007; Lendek et al. 2009; Wu et al. 2010; Li et al. 2015; Tong et al. 2016; Dahmani et al. 2016; Beyhan et al. 2017; Wei et al. 2017). In TS fuzzy modeling, stability analysis and controller/observer gain design associated with each sub-model is obtained by linear matrix inequality (LMI) tools. In addition, the fuzzy controller asymptotically stabilizes the TS fuzzy model, if there is a common solution to the LMI-based stability conditions (Boyd et al. 1997). A fuzzy Proportional−Integral−Derivative (PID) controller was designed for a class of neural mass models in Liu et al. (2013). For Hindmarsh Rose neuronal model, an affine TS fuzzy modeling-based observer and controller has been proposed in Beyhan (2017). A fuzzy interpolation method was used to approach the nonlinear stochastic Hodgkin–Huxley neuron system (Chen and Li 2010). In Aly and Tapus (2015), an online incremental learning system was developed to understand and produce multimodal actions from a cognitive perspective using TS fuzzy model.

In this study, observer-based stabilization of the epileptic cortex dynamics is investigated while the introduced mathematical model is assumed under unknown uncertainties and noise. In order that, a robust TS fuzzy observer/controller is designed and applied for the observer-based stabilization. Except the membrane potential, all the states are estimated and utilized in state feedback control. Note that the estimated states are trusted for the feedback control since the designed observer feedback gains satisfy the exponential stability and so the convergence of the estimates. In addition, the standard PID stabilization results of the cortex model have been presented comparatively to enhance the contribution of the designed controller for uncertain and noisy cases. In numerical computations, acceptable and applicable results are obtained for a real time treatment. It is expected that a low-cost software based portable device can be produced in the future, and many patient’s life will be healed by the stabilization of the epileptic seizure.

The organization of the paper follows that: in Sect. 2, the human brain cortex model used in this study is presented. TS fuzzy observer-based controller design is introduced in Sect. 3. The computational results are given in Sect. 4 and the conclusions are discussed in Sect. 5.

Chaotic dynamics of brain cortex model

Since animal implementation experiments encourage new studies, some tests should be done on mathematical models in order to understand the effects of experiments on humans. The cortex model, which represents the electrical activity of the human brain cortex, is expressed involving stochastic partial differential equations (SPDEs). According to Lopour and Szeri (2010), this model is a mean-field model, meaning that all of its variables represent spatially averaged properties of populations of neurons. Electroencephalography (EEG) based applications such as epilepsy (Kramer et al. 2007), sleep (Wilson et al. 2006) and anesthesia (Steyn-Ross et al. 2003) can be investigated in consideration of the stochastic and nonlinear behavior of cortex model. The cortex model presented SPDEs in second-order terms as in Liley et al. (1999) is converted into a simpler system (Kramer et al. 2007) as

h˙e(t)=((herest-he)+ψee(he)Iee+ψie(he)Iie+u+v)/τe,h˙i(t)=((hirest-hi)+ψei(hi)Iei+ψii(hi)Iii)/τi,I˙ee(t)=Jee,J˙ee(t)=-2γeJee-γe2Iee+[NeeβSe(he)+ϕe+pee]Geγee+Γ1,I˙ei(t)=Jei,J˙ei(t)=-2γeJei-γe2Iei+[NeiβSe(he)+ϕi+pei]Geγee+Γ2,I˙ie(t)=Jie,J˙ie(t)=-2γiJie-γi2Iie+[NieβSi(hi)+pie]Giγie+Γ3,I˙ii(t)=Jii,J˙ii(t)=-2γiJii-γi2Iii+[NiiβSi(hi)+pii]Giγie+Γ4,ϕ˙e(t)=χe,χ˙e(t)=-2ν¯Λeeχe-(ν¯Λee)2ϕe+ν¯ΛeeNeeαt+ν¯ΛeeSe(he),ϕ˙i(t)=χi,χ˙i(t)=-2ν¯Λeiχi-(ν¯Λei)2ϕi+ν¯ΛeiNeiαt+ν¯ΛeiSe(he), 1

where the indexes e and i indicate excitatory and inhibitory neuron populations, the states he(mV) and hi(mV) imply that the excitatory and inhibitory mean soma potential for a neuronal population, respectively. Iee(mV) is the postsynaptic activation of the excitatory population due to inputs from the excitatory population and Iei(mV) is the postsynaptic activation of the inhibitory population due to inputs from excitatory population. Similarly, Iie(mV) is the postsynaptic activation of the excitatory population due to inputs from the inhibitory population and Iii(mV) is the postsynaptic activation of the inhibitory population due to inputs from inhibitory population. ϕe(s-1) and ϕi(s-1) are corticocortical inputs to excitatory and inhibitory populations, respectively. The variables Γ1,Γ2,Γ3 and Γ4 are the stochastic inputs. v is uncertainty term that is considered to cause external disturbances, system failures or noise. In Eq. (1), the term u which was calculated by TS fuzzy model based feedback control and applied by the cortical surface electrode was added. ψjk(hk)(j,ke,i)=hjrev-hk|hjrev-hkrest|,(j,ke,i), terms are weighting factors for Ijk inputs. The sigmoid functions mapping to the soma potential to the firing rate are expressed as Se(he)=Semax1+exp[-ge(he-θe)] and Si(hi)=Simax1+exp[-gi(hi-θi)]. The definition of the Pee and Γe parameters in the dimensionless form of the cortex model are as follows.

Pee=peeSemax,Γe=GeeSemaxγe|herev-herest| 2

The parameters of the cortex dynamics are given in Table 1. In Fig. 1, the chaotic behavior of the cortex model without controller design was investigated and illustrated to show how change in pathological parameters (Kramer et al. 2006) (subcortical spike input to excitatory population (pee) and peak amplitude of excitatory postsynaptic potential (Ge)) with the influence of the stochastic input (Γe) in the dynamics. According to Kramer et al. (2006), the “healthy state” occurs when the typical values of pathological parameters are pee=1100 and Ge=0.18 mV with Γe=1.42×10-3. However, the “epileptic state” occurs when pee=54,800 and Ge=0.1 mV with Γe=0.8×10-3. Figure 1a illustrates the bifurcation diagram for unstabilized dynamic of he(t) versus the variation of the Γe. The numerical solution of he(t) at the pathological parameters with Γe=0.8×10-3 is given in Fig. 1b. While the dynamics of the healthy state is similar to a damping behavior, regular oscillations are observed on the mean soma potential signal for epileptic state.

Table 1.

Parameters of the cortex model (Steyn-Ross et al. 2003)

τe,τi Membrane time constant 0.04, 0.04 s
herest,hirest Resting potential -70, -70mV
herev,hirev Reversal potential 45, -90mV
pee,pie Subcortical spike input to e population 1100, 1600 s-1
pei,pii Subcortical spike input to i population 1600, 1100 s-1
ee,ei Corticotical inverse-length 0.04, 0.065 mm-1
γe,γi Neurotransmitter rate constant for e, i postsynaptic potential 300, 65 s-1
Ge,Gi Peak amplitude of e i postsynaptic potential 0.18, 0.37 mV
Neeβ,Neiβ Total number of local synaptic connections of e 3034, 3034
Nieβ,Niiβ Total number of local synaptic connections of i 536, 536
Neeα,Neiα Total number of synaptic connections from distant e populations 4000, 2000
v¯ Mean axonal conduction speed 7000 mms-1
Semax,Simax Maximum of sigmoid function 100, 100 s-1
θe,θi Inflection-point potential for sigmoid function -60, -60mV
ge,gi Sigmoid slope at inflection point 0.28, 0.14 mV-1

Fig. 1.

Fig. 1

a Bifurcation diagram for unstabilized dynamics of Eq. (1) at the pathological parameter values (pee=54,800,Ge=0.1×10-3,Γe=0.8×10-3). b Numerical solution of the cortex model at the pathological parameters. c Lyapunov exponents of the cortex model. d The variation of entropy versus Γe

Deterministic or statistical methods based on dynamic system theory are used for analysis of neurophysiological signals and measuring complexity. Among these methods, the results of electrophysiological recordings analyzed by entropy measurement for epilepsy, schizophrenia, abnormal cognitive disorders, coma and sleep are presented in Mateos et al. (2018). The entropy criterion as well as the large Lyapunov exponent (LLE) are important statistics used to analyze chaotic behaviors. Therefore, in this paper, chaotic behaviors observed in cortex dynamics have been examined by LLE and entropy criteria. The critical value range of Γe([0.64,1.15]×10-3) shows its effect on LLE and entropy in Fig. 1c, d, respectively.

Observer and controller design for cortex model

The TS fuzzy model-based dynamic system was defined by fuzzy IF–THEN rules that represent local linear input–output relations of a nonlinear system in Takagi and Sugeno (1985). The ith rule of the TS fuzzy model for continuous fuzzy system (Tanaka et al. 1998) with the initial state vector x(0) is as (i=1,2,,r)

IFz1(t)isMi1andzp(t)isMipTHENx˙(t)=Aix(t)+Biu(t)y(t)=Cix(t) 3

where Mij is the fuzzy set, r is the rule number and z1(t)zp(t) are the premise variables. x(t)Rn is the state vector, u(t)Rm is the input vector and y(t)Rq is the output vector, respectively. AiRn×n, BiRn×m and CiRq×n constant suitable matrices and the linear equation set denoted by x˙(t) is called the subsystem. According to this definitions, TS fuzzy-model based system is inferred from (3) as

x˙(t)=i=1rhi(z(t)){Aix(t)+Biu(t)}y(t)=i=1rhi(z(t))Cix(t) 4

where hi(z(t))=wi(z(t))i=1rwi(z(t))>0, wi(z(t))=j=1pMij(zj(t))0 for all t. Mij(zj(t)) is the grade membership of zj(t) in Mij.

Using Eq. (4), we have that i=1rhi(z(t))=1 and hi(z(t))0 for all t. Then, the fuzzy system rules can be represented as

IFx(t)isMi1andx(t-n+1)isMinTHENx(t+1)=Aix(t)+Biu(t)y(t)=Cix(t) 5

where x(t)=[x(t)x(t-1)x(t-n+1)]T. The stability conditions of continuous fuzzy system (4) is investigated in Tanaka et al. (1998).

Sector nonlinearity-based TS fuzzy modeling

The brain cortex model in (1) can be referred to produce sector nonlinearities, which is used for the design of model-based TS fuzzy systems as follows

x˙=f(x,u)x+g(x,u)u+a(x,u)+v(x),y=h(x,u)x+d(x,u), 6

where f(.),g(.) and h(.) are nonlinear functions where (x,u) are defined in compact sets. The input (control voltage), state and output (membrane potential) variables are defined in compact sets with uU, xX and yY and a(.) and d(.) are bounded affine vector terms. v(.) is uncertainty function that is considered to cause external disturbances, system failures or noise. The output (y) is measured where the all states are stabilized to the equilibrium points with estimated variables. The nonlinear state-space representation of the cortex model (CM) model is as follows.

x˙(t)=Ax(t)+Bu(t)+vy(t)=Cx(t) 7

where

A=-1τe0z1τe000z2τe00000000-1τi00z3τi000z4τi0000000010000000000p10-γe2-2γe000000p700000000100000000p2000-γe2-2γe000000p70000000010000000p30000-γi2-2γi000000000000000100000p4000000-γi2-2γi000000000000000100p5000000000p8p90000000000000001p600000000000p10p11B=1τe0000000000000TC=10000000000000 8

and the parameters in Eq. (8)

p1=NeeβGeγez5e,p2=NeiβGeγez5e,p3=NieβGiγiz6e,p4=NiiβGiγiz6e,p5=v¯eeNeeαz7+(v¯ee)2Neeαz5,p6=v¯eiNeiαz7+(v¯ei)2Neiαz5,p7=Geγee,p8=-(v¯ee)2,p9=-2v¯ee,p10=-(v¯ei)2,p11=-2v¯ei

In the nonlinear state-space form of brain cortex model, the minimum and maximum values of the design functions (z1(x),,z7(x)) can be calculated according to the minimum and maximum values of the CM model dynamics where he[-70,45] mV, hi[-90,-70] mV.

As an example, let’s explain how z1(x) limit values are calculated. According to the Table 1, herest-70 mV, hirest-70 mV, herev45 mV, hirev-90 mV. The maximum limit value of nz¯1=1τe(herev-he(t)herev-herest)=10.04(45mV-(-70)mV45mV-(-70)mV)=25. In addition, the minimum limit value of nz_1=10.04(45mV-(45)mV45mV-(-70)mV)=0. The limit values of the other nonlinear design functions (z2(x),,z7(x)) are calculated similarly. The designed sector nonlinear-based TS fuzzy system rule-base are given as follows

  1. z1(x)=1τe(herev-he(t)herev-herest)[0,25] where nz_1=0 and nz¯1=25 are set. The weighting functions are defined as
    w11=nz¯1-z1(x)nz¯1-nz_1,w01=1-w11. 9
    The value of the designed function can be determined using the weighted sum of the functions as
    z1(x)=nz_1w01(z1)-nz¯1w11(z1). 10
  2. z2(x)=1τe(hirev-he(t)herest-hirev)[-1.687×102,-25] where nz_2=-1.687×102 and nz¯2=-25 are set. The weighting functions are defined as
    w12=nz¯2-z2(x)nz¯2-nz_2,w02=1-w12. 11
    The value of the designed function can be determined using the weighted sum of the functions as
    z2(x)=nz_2w02(z2)-nz¯2w12(z2). 12
  3. z3(x)=1τi(herev-hi(t)herev-hirest)[25,29.347] where nz_3=25 and nz¯3=29.347 are set. The weighting functions are defined as
    w13=nz¯3-z3(x)nz¯3-nz_3,w03=1-w13. 13
    The value of the designed function can be determined using the weighted sum of the functions as
    z3(x)=nz_3w03(z3)-nz¯3w13(z3). 14
  4. z4(x)=1τi(hirev-hi(t)hirest-hirev)[-25,0] where nz_4=-25 and nz¯4=0 are set. The weighting functions are defined as
    w14=nz¯4-z4(x)nz¯4-nz_4,w04=1-w14. 15
    The value of the designed function can be determined using the weighted sum of the functions as
    z4(x)=nz_4w04(z4)-nz¯4w14(z4). 16
  5. z5(x)=1he(Semax1+exp[-ge(he-θe)])[-0.081,2.222] where nz_5=-0.081 and nz¯5=2.222 are set. The weighting functions are defined as
    w15=nz¯5-z5(x)nz¯5-nz_5,w05=1-w15. 17
    The value of the designed function can be determined using the weighted sum of the functions as
    z5(x)=nz_5w05(z5)-nz¯5w15(z5). 18
  6. z6(x)=1hi(Simax1+exp[-gi(hi-θi)])[-0.282,-0.016] where nz_6=-0.282 and nz¯6=-0.016 are set. The weighting functions are defined as
    w16=nz¯6-z6(x)nz¯6-nz_6,w06=1-w16. 19
    The value of the designed function can be determined using the weighted sum of the functions as
    z6(x)=nz_6w06(z6)-nz¯6w16(z6). 20
  7. z7(x)=1he(Semaxgeexp[ge(θe-he)](exp[ge(θe-he)]+1)2)[-0.021,1.06×10-13] where nz_7=-0.021 and nz¯7=1.06×10-13 are set. The weighting functions are defined as
    w17=nz¯7-z7(x)nz¯7-nz_7,w07=1-w17. 21
    The value of the designed function can be determined using the weighted sum of the functions as
    z7(x)=nz_7w07(z7)-nz¯7w17(z7). 22

Using the above definitions, Rij fuzzy sets (i=0,1;j=1,,7) and TS fuzzy rule base can be defined according to the weighting functions. There are 7 nonlinear design functions (p=7) and 128 fuzzy rules (r=2p=128). Some of the rule base as follows

Rule 1:IFz1isR01andz2isR02andz3isR03andz4isR04andz5isR05andz6isR06andz7isR07THENx˙(t)=A1x(t)+B1u(t),y(t)=C1x(t)The correspondingA1matrix depends on[nz_1,nz_2,nz_3,nz_4,nz_5,nz_6,nz_7]B1=1τe0000000000000TC1=10000000000000The fuzzy membership function of this rule ish(1)(z)=w01w02w03w04w05w06w07Rule 2:IFz1isR01andz2isR02andz3isR03andz4isR04andz5isR05andz6isR06andz7isR17THENx˙(t)=A2x(t)+B2u(t),y(t)=C2x(t)The correspondingA2matrix depends on[nz_1,nz_2,nz_3,nz_4,nz_5,nz_6,nz¯7]B2=1τe0000000000000TC2=10000000000000The fuzzy membership function of this rule ish(2)(z)=w01w02w03w04w05w06w17Rule 127:IFz1isR01andz2isR12andz3isR13andz4isR14andz5isR15andz6isR16andz7isR07THENx˙(t)=A127x(t)+B127u(t),y(t)=C127x(t)The correspondingA127matrix depends on[nz_1,nz¯2,nz¯3,nz¯4,nz¯5,nz¯6,nz_7]B127=1τe0000000000000TC127=10000000000000The fuzzy membership function of this rule ish(127)(z)=w01w12w13w14w15w16w07Rule 128:IFz1isR01andz2isR12andz3isR13andz4isR14andz5isR15andz6isR16andz7isR17THENx˙(t)=A128x(t)+B128u(t),y(t)=C128x(t)The correspondingA128matrix depends on[nz_1,nz¯2,nz¯3,nz¯4,nz¯5,nz¯6,nz¯7]B128=1τe0000000000000TC128=10000000000000The fuzzy membership function of this rule ish(128)(z)=w01w12w13w14w15w16w17 23

After that, observer-based controller design using the TS fuzzy model instead of the CM model can explain.

TS fuzzy controller based stabilization

Fuzzy controllers are designed to provide x(t)0 when t to stabilization of control systems. For Eq. (3) the following fuzzy controller based stabilization is designed via parallel distributed compensation (PDC) (Wang et al. 1995)

IFz1(t)isMi1andandzp(t)isMipTHENu(t)=-Fix(t),i=1,2,,r. 24

The fuzzy controller is to determine the local feedback gains Fi with respect to linear state feedback rules as

u(t)=-i=1rwi(z(t))Fix(t)i=1rwi(z(t))=-i=1rhi(z(t))Fix(t). 25

Using (25) into (4), the continuous fuzzy system is obtained as

x˙(t)=i=1rj=1rhi(z(t))hj(z(t)){Ai-BiFj}x(t)y=i=1rhi(z(t))Cix(t). 26

If Gij=Ai-BiFj, then Eq. (26) can be rewritten as

x˙(t)=i=1rhi(z(t))hi(z(t))Giix(t)+2i<jrhi(z(t))hj(z(t))Gij+Gji2x(t). 27

The continuous fuzzy control system defined by (27) is asymptotically stable in the presence of a common positive defined P matrix such that

GiiTP+PGii<0,i=1,2,,rGij+Gji2TP+PGij+Gji20,i<j 28

In addition, if r that fire is less than or equal s where 1<sr, the continuous fuzzy control system defined by (27) is asymptotically stable in the presence of a common positive defined P matrix and a common positive semi-definite matrix Q such that

GiiTP+PGii+(s-1)Q<0Gij+Gji2TP+PGij+Gji2-Q0,i<j 29

for all i and j excepting the pairs (ij) such that hi(z(t))hj(z(t))=0,t and s>1 (Tanaka et al. 1998). It is specified in Wang et al. (1995, 1996) that the common P problem for the fuzzy controller design can be solved numerically and the stability conditions of (28) can be expressed by linear matrix inequalities (LMIs) (Boyd et al. 1997). In Tanaka et al. (1998), LMI-based designs for fuzzy controllers/observers were presented for both discrete-time and continuous-time fuzzy control systems. In these designs, nonlinear systems were defined by fuzzy models. LMI-based designs provide system stability, decay rate and constraints on control input/output (Boyd et al. 1997). According to Tanaka et al. (1998), the design problem that determines the Fi coefficients for CFS can be defined as (X>0,Y0 and Mi(i=1r) satisfying):

-XAiT-AiX+MiTBiT+BiMi-(s-1)Y>02Y-XAiT-AiX-XAjT-AjX+MjTBiT+BiMj+MiTBjT+BjMi0,i<j 30

where X=P-1,Mi=FiX,Y=XQX. The conditions in (30) are LMI’s and a positive definite matrix X, a positive semi-definite matrix Y and Mi, which satisfy the above conditions, can be found. There are powerful mathematical programming tools available in the literature to solve this feasibility problem (Sturm 1999; Lofberg 2004). Therefore, Fi,P and Q can be obtained as P=X-1,Fi=MiX-1,Q=PYP from the solutions X,Y and Mi.

TS fuzzy observer design for unmeasurable dynamics

An observer is used to reconstruct or estimate state variables when the state of a system is not fully available. A fuzzy observer, which is designed by the PDC, can be used to estimate the unobservable states of a real-time system. The observer rule for continuous fuzzy system is represented by

IFz1(t)isMi1andandzp(t)isMipTHENx^˙(t)=Aix^(t)+Biu(t)+Ki(y(t)-y^(t)),i=1,2,,r. 31

where y^(t)=i=1rhi(z^(t))Cix^(t), x^(t) is the estimated state vector, Ki is the observer gain for the ith subsystem and Ai and Ci must be observable. The purpose of the TS fuzzy observer design is to provide x(t)-x^(t)0 when t. If z(t) depends on the estimated state variables, the overall fuzzy observer is represented as follows (Tanaka et al. 1998)

x^˙(t)=i=1rhi(z(t)){Aix^(t)+Biu(t)+Ki(y(t)-y^(t))}. 32

The observer error dynamics is represented as

e^˙(t)=i=1rhi(z(t)){Ai+Biu(t)-KiCi}e^. 33

The Lyapunov function (V=e^TPe^) is used to prove the stability conditions of (33). The observer error dynamics converges to the zero with designed local gains, asymptotically.

Theorem 1

(Tanaka et al. 1998) The given dynamics in (33) are asymptotically stable, if there exists a commonP=PT>0such that

P(Ai-KiC)+(Ai-KiC)TP<0i=1,,r 34

whereMi=PKi (34) is turn into

(PAi-MiC)+(PAi-MiC)T<0i=1,,r 35

This LMI can be numerically solved using mathematical programming tools (Lofberg 2004). In addition, the LMIs for desired decay rate(α)can be defined in the TS fuzzy observer design.

Theorem 2

(Tanaka et al. 1998) The desired decay rate of (33) is at leastα>0, if there exists a commonP=PT>0such that

P(Ai-KiC)+(P(Ai-KiC))T+2αP<0i=1,,r 36

The design of the fuzzy observer turns into the determination of local gainsKi=Mi-1Pwith solving LMIs in (36).

Embedded observer–controller design

In the presence of unmeasurable states, the main purpose of the observer-based control strategy is to find the common solution in full compliance with all inequalities. Thus, the ideal behavior of system dynamics can be stabilized. LMI designs can also be used with TS fuzzy observer based controller. It is not easy to obtain observer and controller gains directly when the problem is not convex. x(t)0 for the regulator design and x(t)-x^(t)0 for the observer design are required to satisfy when t. There are two possible case where z1(t)zp(t) depend on estimated states by a fuzzy observer or do not depend.

If z1(t)zp(t) depends on estimated state, Eq. (37) is used instead of Eq. (25) in the use of the fuzzy observer as follows

u(t)=-i=1rwi(z(t))Fix^(t)i=1rwi(z(t))=-i=1rhi(z(t))Fix^(t). 37

From (37) and (32), we obtain these equations, where e(t)=x(t)-x^(t)

x˙(t)=i=1rj=1rhi(z(t))hj(z(t)){(Ai-BiFj)x(t)+BiFje(t)}e˙(t)=i=1rj=1rhi(z(t))hj(z(t)){Ai-KiCj}e(t) 38

The TS fuzzy observer-based controller is represented for a continuous system as

x˙a(t)=i=1rj=1rhi(z(t))hj(z(t))Gijxa(t)=i=1rhi(z(t))hi(z(t))Giixa(t)+2i<jrhi(z(t))hj(z(t))Gij+Gji2xa(t) 39

The equilibrium point of the system defined by (39) is asymptotically stable if there is a definite positive P matrix such that

GiiTP+PGii<0(Gij+Gji)T2P+P(Gij+Gji2)<0,i<j 40

In addition, the continuous fuzzy control system defined by (39) is asymptotically stable in the presence of a common positive defined P matrix and a common positive semi-definite matrix Q such that

GiiTP+PGii+(s-1)Q<0(Gij+Gji)T2P+P(Gij+Gji)2-Q0,i<j 41

for all i and j excepting the pairs (ij) such that hi(z(t))hj(z(t))=0,t and s>1 (Tanaka et al. 1998). The LMI’s for decay rate can be defined in the TS fuzzy observer-based system as follows

GiiTP+PGii+(s-1)Q+2αP<0(Gij+Gji)T2P+P(Gij+Gji)2-Q+2αP0,i<j 42

where α>0. The conditions (40), (41) and (42) can be converted to LMI to find feedback gains Fi and observer gains Ki.

To present the proposed controller more clearly, schematic diagram of the TS fuzzy observer-based controller is illustrated in Fig. 2.

Fig. 2.

Fig. 2

Block diagram of TS fuzzy observer–controller

Computational results

In this section, the application results of the embedded observer–controller are presented to suppress the epileptic seizures. The numerical computations were performed with the fourth order Runge–Kutta integration routine and sampling period was selected as T=10-4 s. Using Eqs. (36) and (42), the decay rates for observer/controller design were determined by a grid-search of a reasonable interval then selected as α1=105,α2=103, respectively. Those parameters affect the convergence of the estimation/stabilization errors. There exist seven sector nonlinearity functions in the cortex model therefore 128 TS fuzzy rules are constructed. To estimate and stabilize each TS fuzzy subsystem, 128 observer and controller feedback gain vector are calculated. Below, the first and last feedback gains of the observer (Ki) and controller (Fi) are given.

K1=4.45×1072.61×10-9-9.11×10-6-1.02×10-9-2.40×10-112.87×10-114.33×10-5-4.12×10-9-1.87×10-95.62×10-10-7.53×10-98.34×10-98.30×10-9-6.60×10-9,,K128=4.05×1072.37×10-9-8.27×10-6-9.33×10-10-2.18×10-112.61×10-113.94×10-5-3.74×10-9-1.70×10-95.11×10-10-6.84×10-97.58×10-97.54×10-9-5.99×10-9. 43
F1=3.96×103-6.37×10-5-0.92×102-5.62×102-2.60×10-441.01×10-2-0.94×1026.99×103-1.02×10-51.70×10-3-0.12×1015.03×1020.16×1025.245×101,,F128=5.69×103-3.92×10-5-0.12×102-9.70×103-4.29×10-474.01×10-2-0.11×1028.95×102-6.94×10-62.40×10-3-0.27×1011.09×1030.17×1010.83×102. 44

It is assumed that the mathematical model of the brain cortex has uncertainties, unknown parameters, unmodeled dynamics, noise or disturbances. Therefore, the observer/controller must suppress these uncertainties when a real-time application is considered. In order to simulate the uncertainty condition, it is applied an artificial uncertainty function to the membrane potential dynamics in epileptic case as v(t)=40+20sin(he(t)). For the uncertain case of the dynamics, the all stabilization and estimation dynamics of the cortex model are shown in Figs. 3 and 4, respectively. In Fig. 3a, the epileptic and stabilized membrane potential are shown with desired reference membrane potential. The applied control signal to stabilize the membrane potential is given in Fig. 3b. The produced and applied control signal is in the range of the applicable interval. The complete stabilized states are normalized and plotted in Fig. 3c since some of the states have very large values. Remember that these stabilization results are obtained under uncertain case and estimation of the unmeasured states. Therefore, the state estimation errors are normalized and demonstrated in Fig. 3d.

Fig. 3.

Fig. 3

Observer based stabilization results

Fig. 4.

Fig. 4

TS fuzzy observer estimation results

The real stabilized states and their estimates under uncertain case are illustrated in Fig. 4. The estimated states converge to the real values in short periods. At first, there is obtained relatively higher estimation errors, however, their values are to be compensated by the state feedback gains of both observer and controller. These estimation results are based on the system model therefore the uncertainty of the model is also compensated by the observer feedback gains. It also shows the robustness of the designed observer.

The standard PID controller, which can only operate within the linear operating range, is still the most widely used controller in the industrial applications in terms of simple design and efficiency. In this part of the paper, the standard PID control results of the cortex model have been illustrated comparatively to the TS fuzzy observer–controller design. The stabilization and tracking results of the designed controllers for constant membrane potential and spike waveform, including uncertain conditions, are shown in Fig. 5. Note that the spike waveform of Hodgkin Huxley neuron is used to show the applicability of the designed controllers. The PID parameters have been calculated as optimum values through grid-search as follows: (i) to stabilize a constant trajectory: KP=4,KI=0.3,KD=2. (ii) to stabilize a spike waveform: KP=40,KI=35,KD=0.2, respectively.

Fig. 5.

Fig. 5

Comparative stabilization results with different membrane potentials

In addition to uncertain case, a Gaussian measurement noise with SNR 20 dB was applied to the measured output for constant membrane potential and spike waveform as shown in Fig. 6. The corresponding performance results for designed controllers in this section are given in Table 2.

Fig. 6.

Fig. 6

Stabilization membrane potentials with different trajectories under noise

Table 2.

Numerical performances

Performance PID controller TS Fuzzy controller
(RMSE(e)=1T0Te(t)2dt) (for states)
State estimation err. (for 14 state) 8.41×102
Stabilization err. (constant ref.) 0.66 0.30
Stabilization err. under noise (constant ref.) 0.77 0.31
Stabilization err. (spike waveform) 0.67 0.44
Stabilization err. under noise (spike waveform) 0.81 0.56
P(u)=12T0Tu(t)2dt (for control signal)
Average power (constant ref.) 82.23 53.71
Average power under noise (constant ref.) 84.40 62.33
Average power under (spike waveform) 82.68 52.23
Average power under noise (spike waveform) 85.53 62.21

According to these results, seizure oscillations are suppressed by both controllers seen in Figs. 5 and 6. The stabilization and tracking of the membrane potential by using the standard PID controller is not as efficient as the TS Fuzzy controller in terms of transient-response characteristics such as rise time, settling time and maximum overshoot.

Discussion and conclusion

The mathematical dynamics of the cortex model has many sector or nonlinearity functions. Therefore, at first, it can be seen difficult to construct a TS fuzzy model of cortex model for an observer/controller designs. However, in the end of a detailed work on the sector functions, a TS fuzzy model is designed for the cortex model.The TS fuzzy controller produces a control signal based on the state feedback so that there is no adapting parameters or online optimization that provides faster generation of the control signal. The feedback gains of controller/observer only depend on the feasible solution of the LMI equations, once a feedback vector is obtained then they are not changed and applied continuously.

Due to the large number of the constructed fuzzy rules, the convergence of the states and production of the control signal can also be expected slow. In contrast, according to the application results, the applied control signal can be produced in an applicable period and the convergence of the epileptic membrane potential needs very-small time in numerical simulation. These are the main motivations of presenting the application results. In fact, in the optimization of the feedback constants, they are designed to provide an exponential convergence of states and suppressing the unknown small uncertainties. Noting that the theory of TS fuzzy controller and observer design are well-established and the feedback vectors providing an exponential convergence guarantee is based on the linear system theory and feasible LMI solution.

Although widely used, tuning of the PID parameters is an important problem to be solved to achieve the desired control performance. There are different methods for setting PID parameters in linear time-invariant (LTI) systems. However, these parameters are usually adjusted for local regions using the linearization methods of the nonlinear systems. But linearization method is mostly unsatisfactory for highly nonlinear systems. Furthermore, there may be some uncertainities in the closed-loop control that cause different linearization points when the system contains chaotic dynamics such as cortex model.

As a summary, many sensory device are not needed by using the TS fuzzy observer design, and an exponential convergence of epilepsy stabilization is obtained by using the TS fuzzy controller. Compared with PID controller, it can be concluded that the a TS fuzzy observer–controller can be designed for the complex dynamics of cortex model such that these designs provide a satisfactory level of performances for the application in real-time and production of a portable device.

Footnotes

Publisher's Note

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

References

  1. Aly A, Tapus A. An online fuzzy-based approach for human emotions detection: an overview on the human cognitive model of understanding and generating multimodal actions. In: Mohammed S, Moreno JC, Kong K, Amirat Y, editors. Intelligent assistive robots. Berlin: Springer; 2015. pp. 185–212. [Google Scholar]
  2. Beyhan S. Affine TS fuzzy model-based estimation and control of Hindmarsh–Rose neuronal model. IEEE Trans Syst Man Cybern Syst. 2017;47(8):2342–2350. [Google Scholar]
  3. Beyhan S, Sarabi FE, Lendek Z, Babuška R. Takagi–Sugeno fuzzy payload estimation and adaptive control. IFAC-PapersOnLine. 2017;50(1):844–849. [Google Scholar]
  4. Boyd S, El Ghaoui L, Feron E, Balakrishnan V. Linear matrix inequalities in system and control theory. Philadelphia: SIAM; 1997. [Google Scholar]
  5. Çetin M, Beyhan S. Adaptive stabilization of uncertain cortex dynamics under joint estimates and input constraints. IEEE Trans Circuits Syst II Express Briefs. 2018 [Google Scholar]
  6. Chen BS, Li CW. Robust observer-based tracking control of Hodgkin–Huxley neuron systems under environmental disturbances. Neural Comput. 2010;22(12):3143–3178. doi: 10.1162/NECO_a_00053. [DOI] [PubMed] [Google Scholar]
  7. Dahmani H, Pagès O, El Hajjaji A. Observer-based state feedback control for vehicle chassis stability in critical situations. IEEE Trans Control Syst Technol. 2016;24(2):636–643. [Google Scholar]
  8. Fröhlich F, Jezernik S. Feedback control of Hodgkin–Huxley nerve cell dynamics. Control Eng Pract. 2005;13(9):1195–1206. [Google Scholar]
  9. Haghighi HS, Markazi A. A new description of epileptic seizures based on dynamic analysis of a thalamocortical model. Sci Rep. 2017;7(1):13615. doi: 10.1038/s41598-017-13126-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Ho WH, Chou JH. Design of optimal controllers for Takagi–Sugeno fuzzy-model-based systems. IEEE Trans Syst Man Cybern A Syst Hum. 2007;37(3):329–339. [Google Scholar]
  11. Hu B, Guo Y, Zou X, Dong J, Pan L, Yu M, Yang Z, Zhou C, Cheng Z, Tang W, et al. Controlling mechanism of absence seizures by deep brain stimulus applied on subthalamic nucleus. Cognit Neurodyn. 2018;12(1):103–119. doi: 10.1007/s11571-017-9457-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Iasemidis LD. Epileptic seizure prediction and control. IEEE Trans Biomed Eng. 2003;50(5):549–558. doi: 10.1109/tbme.2003.810705. [DOI] [PubMed] [Google Scholar]
  13. Kramer MA, Lopour BA, Kirsch HE, Szeri AJ. Bifurcation control of a seizing human cortex. Phys Rev E. 2006;73(4):041928. doi: 10.1103/PhysRevE.73.041928. [DOI] [PubMed] [Google Scholar]
  14. Kramer MA, Szeri AJ, Sleigh JW, Kirsch HE. Mechanisms of seizure propagation in a cortical model. J Comput Neurosci. 2007;22(1):63–80. doi: 10.1007/s10827-006-9508-5. [DOI] [PubMed] [Google Scholar]
  15. Lendek Z, Babu R, De Schutter B, et al. Stability of cascaded fuzzy systems and observers. IEEE Trans Fuzzy Syst. 2009;17(3):641–653. [Google Scholar]
  16. Li H, Gao Y, Wu L, Lam HK. Fault detection for TS fuzzy time-delay systems: delta operator and input–output methods. IEEE Trans Cybern. 2015;45(2):229–241. doi: 10.1109/TCYB.2014.2323994. [DOI] [PubMed] [Google Scholar]
  17. Liley DT, Cadusch PJ, Wright JJ. A continuum theory of electro-cortical activity. Neurocomputing. 1999;26:795–800. [Google Scholar]
  18. Liu X, Liu H, Tang Y, Gao Q. Fuzzy pid control of epileptiform spikes in a neural mass model. Nonlinear Dyn. 2013;71(1–2):13–23. [Google Scholar]
  19. Lofberg J (2004) Yalmip: a toolbox for modeling and optimization in matlab. In: 2004 IEEE international symposium on computer aided control systems design, IEEE, pp 284–289
  20. López-Cuevas A, Castillo-Toledo B, Medina-Ceja L, Ventura-Mejía C. State and parameter estimation of a neural mass model from electrophysiological signals during the status epilepticus. NeuroImage. 2015;113:374–386. doi: 10.1016/j.neuroimage.2015.02.059. [DOI] [PubMed] [Google Scholar]
  21. Lopour BA, Szeri AJ. A model of feedback control for the charge-balanced suppression of epileptic seizures. J Comput Neurosci. 2010;28(3):375–387. doi: 10.1007/s10827-010-0215-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Mateos D, Erra RG, Wennberg R, Velazquez JP. Measures of entropy and complexity in altered states of consciousness. Cognit Neurodyn. 2018;12(1):73–84. doi: 10.1007/s11571-017-9459-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Mumtaz W, Vuong PL, Malik AS, Rashid RBA. A review on eeg-based methods for screening and diagnosing alcohol use disorder. Cognit Neurodyn. 2018;12(2):141–156. doi: 10.1007/s11571-017-9465-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Ratnadurai-Giridharan S, Cheung CC, Rubchinsky LL. Effects of electrical and optogenetic deep brain stimulation on synchronized oscillatory activity in parkinsonian basal ganglia. IEEE Trans Neural Syst Rehabil Eng. 2017;25(11):2188–2195. doi: 10.1109/TNSRE.2017.2712418. [DOI] [PubMed] [Google Scholar]
  25. Rowe DL, Robinson PA, Rennie CJ. Estimation of neurophysiological parameters from the waking EEG using a biophysical model of brain dynamics. J Theor Biol. 2004;231(3):413–433. doi: 10.1016/j.jtbi.2004.07.004. [DOI] [PubMed] [Google Scholar]
  26. Shan B, Wang J, Deng B, Wei X, Yu H, Li H. Ukf-based closed loop iterative learning control of epileptiform wave in a neural mass model. Cognit Neurodyn. 2015;9(1):31–40. doi: 10.1007/s11571-014-9306-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Steyn-Ross ML, Steyn-Ross DA, Sleigh JW, Whiting DR. Theoretical predictions for spatial covariance of the electroencephalographic signal during the anesthetic-induced phase transition: increased correlation length and emergence of spatial self-organization. Phys Rev E. 2003;68(2):021902. doi: 10.1103/PhysRevE.68.021902. [DOI] [PubMed] [Google Scholar]
  28. Sturm JF. Using sedumi 1.02, a matlab toolbox for optimization over symmetric cones. Optim Methods Softw. 1999;11(1–4):625–653. [Google Scholar]
  29. Takagi T, Sugeno M. Fuzzy identification of systems and its applications to modeling and control. IEEE Trans Syst Man Cybern. 1985;1:116–132. [Google Scholar]
  30. Tanaka K, Wang HO. Fuzzy control systems design and analysis: a linear matrix inequality approach. New York: Wiley; 2004. [Google Scholar]
  31. Tanaka K, Ikeda T, Wang HO. Fuzzy regulators and fuzzy observers: relaxed stability conditions and LMI-based designs. IEEE Trans Fuzzy Syst. 1998;6(2):250–265. [Google Scholar]
  32. Taylor PN, Thomas J, Sinha N, Dauwels J, Kaiser M, Thesen T, Ruths J. Optimal control based seizure abatement using patient derived connectivity. Front Neurosci. 2015;9:202. doi: 10.3389/fnins.2015.00202. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Tong S, Zhang L, Li Y. Observed-based adaptive fuzzy decentralized tracking control for switched uncertain nonlinear large-scale systems with dead zones. IEEE Trans Syst Man Cybern Syst. 2016;46(1):37–47. [Google Scholar]
  34. Traub RD, Contreras D, Cunningham MO, Murray H, LeBeau FEN, Roopun AK, Bibbig AEJ, Wilent WB, Higley M, Whittington MA. Single-column thalamocortical network model exhibiting gamma oscillations, sleep spindles, and epileptogenic bursts. J Neurophysiol. 2005;93(4):2194–232. doi: 10.1152/jn.00983.2004. [DOI] [PubMed] [Google Scholar]
  35. Tsakalis K, Chakravarthy N, Sabesan S, Iasemidis L, Pardalos P. A feedback control systems view of epileptic seizures. Cybern Syst Anal. 2006;42(4):483–495. [Google Scholar]
  36. Tseng CS, Chen BS, Uang HJ. Fuzzy tracking control design for nonlinear dynamic systems via TS fuzzy model. IEEE Trans Fuzzy Syst. 2001;9(3):381–392. [Google Scholar]
  37. Wang HO, Tanaka K, Griffin M (1995) Parallel distributed compensation of nonlinear systems by Takagi–Sugeno fuzzy model. In: Fuzzy systems, international joint conference of the fourth IEEE international conference on fuzzy systems and the second international fuzzy engineering symposium, vol 2, pp 531–538
  38. Wang HO, Tanaka K, Griffin MF. An approach to fuzzy control of nonlinear systems: stability and design issues. IEEE Trans Fuzzy Syst. 1996;4(1):14–23. [Google Scholar]
  39. Wang J, Niebur E, Hu J, Li X. Suppressing epileptic activity in a neural mass model using a closed-loop proportional-integral controller. Sci Rep. 2016;6:27344. doi: 10.1038/srep27344. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Wang Y, Hutchings F, Kaiser M. Progress in brain research. Amsterdam: Elsevier; 2015. Computational modeling of neurostimulation in brain diseases; pp. 191–228. [DOI] [PubMed] [Google Scholar]
  41. Wei Y, Qiu J, Karimi HR. Reliable output feedback control of discrete-time fuzzy affine systems with actuator faults. IEEE Trans Circuits Syst I Regul Pap. 2017;64(1):170–181. [Google Scholar]
  42. Wilson MT, Steyn-Ross DA, Sleigh JW, Steyn-Ross ML, Wilcocks L, Gillies I. The k-complex and slow oscillation in terms of a mean-field cortical model. J Comput Neurosci. 2006;21(3):243–257. doi: 10.1007/s10827-006-7948-6. [DOI] [PubMed] [Google Scholar]
  43. Wu X, Wang Y, Huang L, Zuo Y. Robust stability analysis of delayed Takagi–Sugeno fuzzy hopfield neural networks with discontinuous activation functions. Cognit Neurodyn. 2010;4(4):347–354. doi: 10.1007/s11571-010-9123-z. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Cognitive Neurodynamics are provided here courtesy of Springer Science+Business Media B.V.

RESOURCES