Abstract
In this paper, a closed-loop brain stimulation control problem is investigated using the nonsingular integral terminal sliding mode (NITSM) control approach. First, the thalamocortical model of epilepsy seizure is given, which is composed of the cortical PY-IN subnetwork and the subcortical RE-TC subsystem. Then, a nonsingular integral terminal sliding mode surface is designed utilizing the derived output tracking error, and the stability of the sliding mode dynamics is proved by Lyapunov approach. Furthermore, a disturbance observer (DOB) based NITSM controller design approach is proposed for the established thalamocortical model, and the reachability of the closed-loop control system under the designed controller is analyzed using Lyapunov theory. Finally, simulation results are given to illustrate the effectiveness and superiority of the designed control scheme.
Keywords
Introduction
Epilepsy is neurological disease that bothers the whole world very much (Jonathan et al., 2014; Shenoy and Carmena, 2014). About 50 million people worldwide have epilepsy and many patients suffer from the disease. Moreover, the disturbing is that many aspects of epilepsy patients’ lives are more or less affected by epilepsy, such as making friends, working, getting married and so on (Blumcke et al., 2017; Riasi et al., 2014). It cannot be denied that the successful development of effective epilepsy therapies is of extremely important significance and great benefit to epilepsy patients worldwide. At present, epilepsy patients all over the world still mainly use drugs to relieve the pain of seizures, and sometimes they are forced to undergo surgical treatment. However, many medical investigations show that epilepsy drugs are not effective in curing epilepsy and have a lot of adverse effects. For example, it is very easy to damage the function of body organs, especially the liver, if the patient takes too much epilepsy drugs. While the other normal treatment method, surgical treatment is not suitable for patients with general epilepsy either. It requires doctors with very high surgical skills since it is very dangerous and any small deviation or accident in surgical treatment process will cause permanent and irreversible damage to the human brain. Therefore, compared with the above two schemes, the brain stimulation therapy has distinct advantages in terms of treatment effect and safety (Kozak and Berenyi, 2017).
Many brain stimulation therapies are originally developed by adapting some control schemes used in clinical treatment. It has been proved that the deep brain stimulation (DBS) therapy has better stimulation effects on many neurological diseases, including epilepsy, primary dystonia, essential tremor, medication intractable Parkinson’s disease, and so on (Jonathan et al., 2014; Shenoy and Carmena, 2014). The DBS therapy can be interpreted as inserting electrodes into specific nucleus of the brain, then these electrodes release therapeutic electrical stimulation signals, mainly continuous high-frequency pulses, to inhibit abnormal brain nuclei discharge, thereby achieve a therapeutic effect. DBS can be divided into two types, and the open-loop brain stimulation is the most common followed by the closed-loop brain stimulation therapy. According to a large number of medical investigations, it is found that the open-loop brain stimulation technology in seizure abatement cannot stably and effectively suppress the pathological peak discharge, so a more efficient, stable and applicable closed-loop control strategy is needed (Johnson et al., 2016; Saillet et al., 2013). Shortening seizure time and decreasing seizure intensity are important signs of seizure relief, which can be achieved using the high-frequency pulse stimulation string released by brain stimulation device. However, the study on closed-loop control strategy for brain stimulation is still in its infancy and there is very few results (Kozak and Berenyi, 2017). Therefore, the task of this study is to design an efficient closed-loop brain stimulation control scheme for epilepsy seizure abatement (Ge et al., 2019), which can continuously adjust the stimulus signals online by the wired or wireless connection between the computer and the brain.
There is a cerebral cortex area with normal background activity when an epilepsy patient is healthy. The normal neural electric signals generated by healthy brain neural activity are collected by recording electrodes, and then a controller is developed so that the thalamocortical area with pathological characteristics can learn the behavior of normal neural electric signals, that is, the stimulation signals can make the patient return to normal from the diseased state. The smaller gap between pathological dynamics and normal dynamics, the better therapeutic effect for seizures abatement. Therefore, the reduction or even elimination of seizures can be transformed into tracking control problem of the thalamocortical system.
In recent years, the sliding mode control technique has been widely concerned and developed rapidly for its robustness against the uncertainties of parameters and the dynamics of disturbances on the specified sliding surface (Miao et al., 2019; Songa and Lewis, 2020; Zhang et al., 2016). For example, the robust closed-loop controller proposed in the Ge’s study is suitable for the neural system with nonlinearities, loss of model dynamics and disturbances, and has a relatively good control effect on seizures. However, the slow tracking speed is its obvious disadvantage in the closed-loop control scheme (Ge et al., 2019). The terminal sliding mode control strategy can be employed to raise tracking rate (Labbadi and Cherkaoui, 2019; Mobayen, 2018), while the integral sliding mode technique plays an important role in improving control accuracy (Zhang et al., 2016; Riani et al., 2018). Recently, observer-based sliding mode control technique has also obtained some remarkable results, and the observer is applied in approximating the unmeasured states, uncertainties, and disturbances of controlled systems (Rabiee et al., 2019; Tuan, 2019; Tuan, et al., 2021). Considering the unmodeled dynamics of the thalamocortical system, ubiquitous electromagnetic disturbances, and the oscillations of seizures, an applicable disturbance observer can be adopted to estimate the effect of lumped disturbances. Here the considered lumped disturbances contain the practical unmodeled dynamics as well as electromagnetic disturbances.
Motivated by the above discussion, a closed-loop brain stimulation control scheme is developed for Taylor’s epilepsy thalamocortical model (Taylor et al., 2014) in this paper, which guarantees that thalamocortical signal of seizures quickly and accurately converges to the normal level. In light of the specific finite-time stability, a nonsingular integral terminal sliding mode controller on the basis of a disturbance observer is proposed in this study, and the satisfactory convergence speed and tracking precision of the thalamocortical system can be furthermore achieved. Compared with other recently proposed approaches and results, the main contributions of this control scheme are summarized as follows:
Based on epilepsy patients’ thalamocortical mechanism model, a novel closed-loop brain stimulation control scheme is proposed. Compared with most open-loop treatment strategy, our closed-loop control scheme can greatly improve the effectiveness of epileptic seizures abatement.
To eliminate the effect of lumped disturbances, a disturbance observer (DOB) is designed for the thalamocortical system. The lumped disturbances including the unmodeled dynamics and electromagnetic disturbances are estimated accurately so that the behavior of thalamocortical area with pathological characteristics tracks normal neural electric signals.
The DOB-based nonsingular integral terminal sliding mode controller is designed in this study, which guarantees that EEG signal returns to the normal level within a preset time. Moreover, the required convergence speed and tracking performance can be improved. Therefore, in terms of the timely and quick online response for seizures, the proposed control scheme is more suitable for clinical treatment of epilepsy than the other recently research results.
Noting that
Problem formation
Neural mass models can well characterize the macroscopic dynamics of neuronal networks and provide a potential way to illustrate the mechanisms underlying absence seizures. In this paper, we use a macroscopic model of thalamocortical system consisting essentially of the synaptic circuitry of thalamus and cortex to investigate the effects of stimulation on SWDs. Figure 1 shows the connectivity scheme of the thalamocortical system, where the cortical subsystem includes an excitatory pyramidal neuronal population

Schematic diagram of the neural field model of thalamocortical system used in this paper.
Thee interactions within the thalamocortical system are described as the following differential equations (Taylor et al., 2014)
where
Both the unmodeled dynamics and electromagnetic signals lead to extensive lumped disturbances in the brain stimulation control system, which has a huge impact on neural electric signals and network connections. Therefore, the interaction of the thalamic cortex system of the epilepsy patient can be mathematically modeled by describable differential equations as follows (Ge et al., 2019; Taylor et al., 2014)
where
where
The following Assumptions and Lemmas are introduced, which will be used for deriving our main results in the sequel.
where
then the system
where
where the equal sign holds if and only if
Main results
The objective of this article is to design a DOB-based integral sliding mode control strategy such that all the tracking errors of system (2) can converge to zero in presence of unmodeled dynamics and electromagnetic disturbances. The closed-loop brain stimulation sliding control scheme is shown in Figure 2.

The closed-loop brain stimulation control system for epilepsy abatement.
Design for sliding mode surface
In this part, a novel sliding manifold is presented for system (2), and the stability and convergence of its tracking control system are theoretically proved.
For an epilepsy patient, if the discharging activities of system (2) return to the normal level within a predefined time, the control objective of seizure abatement achieves. Meanwhile, the discharging activities can be described by the output of system (2) as well as the desired output
In order to achieve the goal that the dynamics of the thalamocortical cortex can track the desired normal activities well, namely
where
The derivative of both sides of equation (9) with respect to time is
Consider the Lyapunov function candidate
Substituting (8) into the derivative of (13) with respect to time yields
The above inequality can be transformed into
Thus,
Necessary conditions to ensure this sliding motion which is attained and maintained will further be developed.
Reachability analysis
Fast and precise tracking of the desired signal plays a decisive role in the treatment of epilepsy. However, the general sliding mode control approach is not ideal in terms of tracking accuracy and speed. In order to satisfy the above requirements, a finite time nonsingular integral terminal sliding mode (FNITSM) controller is proposed for the treatment of seizure abatement, as illustrated in Figure 2.
It is worth noting that the lumped disturbances and their upper bounds are unknown, which are effected by cerebral blood circulation, glucose conversion, BOLD, complex electromagnetic signals and so on. The lumped disturbances need to be identified by using various identification algorithms for the compensation control design. In this paper, the disturbance observer (DOB) technique, which has been proposed in Chen (2004) and Chen et al. (2000, 2016), is introduced to identify the lumped disturbances and has the following form
where
It has been shown in Chen (2004) that the DOB asymptotically estimates the disturbance if the observer gain
is asymptotically stable regardless of
According to equation (9), one can get the differential equation as follows
The corresponding integral terminal sliding mode control law can be designed as
where the equivalent control law can be
and the approaching control law is
where
Taking the time derivative of the above formula to yield
Substituting equations (19)–(21) into equation (23) and using equation (2), one can obtain
According to Lemma 3, the above inequality can be transformed into
When
Let
Let
where
According to Lemma 2, the tracking error system (8) can reach the designed sliding surface (9) within
Taking into account classic sliding mode control theory, Theorem 2 together with Theorem 1 shows that the tracking error
Simulation
In the section, to verify the effectiveness of the DOB-FNITSM control scheme proposed in this paper, the control performance comparison between DOB-FNITSM scheme and RBFNN-NSM scheme in Ge et al. (2019), DOB-OPC scheme in Songa and Lewis, (2020) will be implemented. Here the thalamocortical system (2) including uncertainties and disturbances is considered as the actual controlled system.
The initial value of
In the view of practical clinical application, it is assumed that there exist the parameter uncertainties caused by blood flow change of cerebral cortex in the state matrix
In Case 1, controllers work from start to end of the simulation
where
In Case 2, Controllers work from 4 seconds to the end of the simulation
where
Note that the amplitude of the pulse here is to make the simulation effect more obvious, while the actual clinical pulse in EEG observed is from half to two times magnitude of the fluctuation of the ideal value
Table 1 lists the parameters used in the DOB-FNITSM controller:
Design of control parameters based on different control schemes.
To compare our scheme with RBFNN-NSM of Ge et al. (2019), the sliding mode surface of RBFNN-NSM can be chosen as
The control objective is that the actual output
In all the simulation figures below, the red line represents randomly distributed pulses
Comparisons between RBFNN-NSM andDOB-FNITSM
In Ge et al. (2019), a normal sliding mode controller with radial basis function neural networks (RBFNN-NSM) is used for seizure abatement, while this paper uses a DOB-FNITSM controller. Figures 3–10 shows the comparisons between the control effect of two controllers. Under the case 1, Figures 3 and 4 show the output and input dynamics of RBFNN-NSM and DOB-FNITSM, respectively. In order to illustrate the tracking performance more clearly, the tracking error curves are exhibited in Figures 5 and 6, which obviously reveals that the tracking error of RBFNN-NSM and DOB-FNITSM converges to the small neighborhood of the origin within 1.5 and 0.2 seconds, respectively. Moreover, it can be observed from Figures 5 and 6 that the error dynamics of RBFNN-NSM is seriously effected by the single pulse, while the error dynamics of DOB-FNITSM is almost not effected. Under case 2, Figures 7 and 8 exhibit the output and input dynamics of two schemes. The closed-loop system under both the two controllers has the satisfactory tracking performance. However, the tracking errors of RBFNN-NSM and DOB-FNITSM shown in Figures 9 and 10 converge to the small neighborhood of the origin within 4.4 and 4.01 seconds, respectively, and error value of DOB-FNITSM is much smaller than RBFNN-NSM. Both two cases fully show that DOB-FNITSM controller is better than RBFNN-NSM controller in terms of convergence speed. All comparisons above reveal the better tracking precision and convergence speed of the finite time integral terms included in DOB-FNITSM controller, which is not available in normal sliding mode. The finite time nonsingular integral term in the sliding manifold can improve the dynamics of thalamocortical system. Moreover, the disturbance observer can identify the lumped effect of unknown uncertainties and disturbances. The proposed DOB-FNITSM fully illustrates the superiority of combination of the finite time integral terminal sliding mode technique and the disturbance observer.

Output and input curves of RBFNN-NSM in case 1.

Output and input curves of DOB-FNITSM in case 1.

Tracking error of RBFNN-NSM in case 1.

Tracking error of DOB-FNITSM in case 1.

Output and input curves of RBFNN-NSM in case 2.

Output and input curves of DOB-FNITSM in case 2.

Tracking error of RBFNN-NSM in case 2.

Tracking error of DOB-FNITSM in case 2.
Comparisons between DOB-OPC and DOB-FNITSM
Based on the research results in Songa and Lewis (2020), we compare DOB-OPC designed in Songa and Lewis (2020) with DOB-FNITSM control scheme in this study. Figures 11–18 show the comparison results between two different controllers. It should be noted that two controllers can finally achieve effective tracking control, but the control performance is obviously different. Under the case 1, Figures 11 and 12 exhibit the output and input dynamics of DOB-OPC and DOB-FNITSM respectively. In order to show the tracking performance more clearly, the tracking errors are displayed in Figures 13 and 14, respectively. It is obvious from the Figures 13 and 14 that the tracking errors of DOB-OPC and DOB-FNITSM converge to a smaller area of origin within 1 and 0.2 seconds, respectively, but the tracking error of DOB-OPC is several times larger than that of DOB-FNITSM. Moreover, it can be observed that the tracking performance of DOB-OPC is severely effected by the single pulse at 3 and 7 seconds, but the tracking error of DOB-FNITSM is almost not effected by the single pulse. In case 2, Figures 15 and 16 display the output and input curves, which show that the system stability can be guaranteed by both two different controllers. Figures 17 and 18 exhibit that the tracking errors of DOB-OPC and DOB-FNITSM converge to a small neighborhood of origin within 4.1 and 4.01 seconds, respectively, and the tracking error of DOB-FNITSM is less than DOB-OPC. Based on the same disturbance observer, the difference between DOB-OPC and DOB-FNITSM is the difference between robust optimal controller and finite time integral sliding mode controller. In summary, the DOB-FNITSM can accelerate convergence process and improve tracking precision by adopting the nonsingular integral terminal sliding mode technique in the controller.

Output and input curves of DOB-OPC in case 1.

Output and input curves of DOB-FNITSM in case 1.

Tracking error of DOB-OPC in case 1.

Tracking error of DOB-FNITSM in case 1.

Output and input curves of DOB-OPC in case 2.

Output and input curves of DOB-FNITSM in case 2.

Tracking error of DOB-OPC in case 2.

Tracking error of DOB-FNITSM in case 2.
Conclusion
In this paper, a new integral sliding mode control scheme is proposed for the reduction or elimination of seizures, and the effective control of seizures is converted into a tracking control problem after reasonable analysis. First, the mathematical model of epilepsy seizures is transformed into a regular nonlinear control system, which considers the lumped disturbances comprised all uncertainties and electromagnetic disturbances. Second, the disturbance observer technique is used to estimate the lumped disturbances in the thalamocortical system such as glucose metabolism, electromagnetic disturbances, parameter uncertainties, and so on. Then, a novel finite time nonsingular integral terminal sliding mode controller based on the estimated information is developed, which is applied in adjusting the control signal of brain stimulation. Moreover, the theoretical proof of stability and reachability of the closed-loop control system are given rigorously by Lyapunov theory. Finally, the effectiveness and superiority of the proposed scheme are verified through sufficient simulation comparisons.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Post Doctoral Research Foundation of Jiangsu Province (1701140B), National Key Research and Development Project (2019YFB1705803), Natural Science Foundation of China (21727818), Postgraduate Research & Innovation Program of Jiangsu Province (KYCX21_1136), the GF Research, and Development Program of the Nanjing Tech University (201709).
