DEVICE AND METHOD FOR REAL-TIME CLOSED-LOOP BRAIN STIMULATION

20210361967 · 2021-11-25

    Inventors

    Cpc classification

    International classification

    Abstract

    Brain stimulation techniques are disclosed, utilizing a brain state monitoring and stimulating component having at least one processor and memory, and a digital signal processing unit configured and operable to predict at least one brain state about to occur in a brain of a treated subject based on data or signals indicative of at least one brain state of the treated subject. The digital signal processing unit can be configured to generate based on the predicted at least one brain state stimulation data for adjusting, regulating or triggering, brain stimulation signals applied to the brain of the treated subject. The at least one processor, memory, and digital signal processing unit are embedded in some embodiments in a single hardware device.

    Claims

    1-38. (c4anceled)

    39. A brain stimulation system, comprising: a brain state monitoring and stimulating component configured and operable to predict at least one brain state about to occur in a brain of a treated subject based on data or signals indicative of at least one brain state of the treated subject, and to generate stimulation data based on the predicted at least one brain state for adjusting, regulating or triggering, brain stimulation signals applied to the brain of the treated subject, said brain state monitoring and stimulating component including: at least one processor; at least one memory; and a digital signal processing unit; wherein said at least one processor, said at least one memory, and said digital signal processing unit are embedded in a single integrated circuit device configured to use a real-time operating system by the at least one processor for operating said digital signal processing unit in said single integrated circuit device; wherein said digital signal processing unit includes at least one prediction module configured and operable to predict the at least one brain state based on a number of brain state data or signals previously measured in the treated subject responsive to one or more previously applied past brain stimulations.

    40. The brain stimulation system of claim 39 wherein the digital signal processing unit is configured and operable to repeatedly receive the data or signals indicative of the at least one brain state of the treated subject, predict the at least one brain state, and generate the stimulation data for adjusting or regulating the brain stimulation signals based on the predicted at least one brain state, to thereby provide a closed-loop brain stimulation mechanism capable of adjusting or regulating the brain stimulation signals by the generated stimulation data.

    41. The brain stimulation system of claim 39 wherein the regulating of the brain stimulation signals comprises modulating the brain stimulation signals by the generated stimulation data.

    42. The brain stimulation system of claim 39 wherein the at least one processor and the digital signal processing unit are configured to exchange data using a fast communication protocol.

    43. The brain stimulation system of claim 39 wherein the at least one processor and the digital signal processing unit are configured and operable to read and write data in the memory of the brain stimulation system by direct memory access.

    44. The brain stimulation system of claim 39 wherein the digital signal processing unit comprises at least one digital filtering module configured and operable to remove interferences from the data or signals indicative of the at least one brain state of the treated subject.

    45. The brain stimulation system of claim 39 wherein the digital signal processing unit comprises at least one artifacts rejection module configured and operable to automatically remove artifacts from the data or signals indicative of the at least one brain state of the treated subject.

    46. The brain stimulation system of claim 45 wherein the at least one artifacts rejection module is configured and operable to use an automated independent component analysis process for the removal of the artifacts.

    47. The brain stimulation system of claim 39 wherein the digital signal processing unit comprises at least one analysis module configured and operable to process the received data or signals indicative of at least one brain state and perform at least one of time-frequency analysis and spectral analysis thereof.

    48. The brain stimulation system of claim 39 wherein the digital signal processing unit comprises at least one feature extraction unit configured and operable to extract at least one feature indicative of at least one brain state of the treated subject from the received data or signals indicative of at least one brain state or from spectral analysis data thereof.

    49. The brain stimulation system of claim 39 wherein the digital signal processing unit comprises at least one prediction module configured and operable to predict at least one brain state about to occur in the brain of the treated subject based on the received data or signals indicative of at least one brain state, and generate the stimulation data based on said predicted at least one brain state.

    50. The brain stimulation system of claim 39 wherein the brain state monitoring and stimulating component comprises a communication module, and wherein the brain state monitoring and stimulating component is configured and operable to communicate via the communication module treatment data associated with treatment protocols conducted by the system.

    51. The brain stimulation system of claim 50, further comprising a database system for storing the treatment data communicated by the brain state monitoring and stimulating component via the communication module, said database system configured and operable to analyze the stored treatment data and generate statistical data associated therewith.

    52. The brain stimulation system of claim 51 wherein the database system is configured and operable to utilize artificial intelligence tools in the analysis of the stored data.

    53. The brain stimulation system of claim 39 wherein the data or signals indicative of at least one brain state are associated with at least one of EEG electrodes, tACS electrodes, fMRI equipment, or cognitive tasks performed by the treated subject.

    54. The brain stimulation system of claim 39 wherein the brain stimulation signals applied to the brain of the treated subject is associated with at least one of the following: audio, visual, TMS, tDCS, tACS, or tactile stimulation.

    55. A method for generating brain stimulations utilizing the brain stimulation system of claim 39, the method comprising: using the digital signal processing unit for receiving the data or signals indicative of the at least one brain state of the treated subject; analyzing the received data or signals to determine at least one feature associated with at least one brain state of a treated subject, predicting based on the determined at least one feature or the received data or signals at least one brain state about to occur in a brain of the treated subject; and generating stimulation data based on the predicted at least one brain state for application of stimulating signals to the brain of the treated subject.

    56. The method of claim 55, further comprising using the signal processing unit for at least one of filtering or processing the received data or signals indicative of the at least one brain state to respectively remove therefrom at least one of interferences and artifacts.

    57. The method of claim 56 wherein the processing the received data or signals indicative of the at least one brain state comprises an independent component analysis process configured to automatically remove the artifacts.

    58. The method of claim 55, further comprising continuously, periodically or intermittently, repeating through at least one treatment session the prediction of the at least one brain state and the generation of the stimulation data, for newly received data or signals indicative of at least one brain state of the treated subject.

    59. The method of claim 58, wherein the generated stimulation data is configured for regulating the stimulating signals in accordance with variations in the at least one feature determined from the received data or signals.

    60. The method of claim 59, wherein the regulating comprises modulating the stimulating signals in accordance with variations in the at least one feature determined from the received data or signals.

    61. The method of claim 55 wherein the generated stimulation data is associated with at least one of frequency, amplitude, stimulation pattern, current polarity, pulse shape, or exact location of the brain stimulation signals.

    62. The method of claim 55, further comprising: storing treatment data indicative of the received data or signals and the generated treatment data in a database; analyzing the treatment data accumulated in the database; and generating analysis data indicative thereof.

    63. The method of claim 62 wherein the analyzing of the treatment data comprises at least one of statistical analysis, machine learning, deep learning, or any combination thereof.

    64. The method of claim 55 wherein the stimulation data is generated based on brains states previously induced in the brain of the treated subject by the stimulating signals.

    65. The method of claim 55 wherein the stimulating signals comprise at least one of audio signals, visual signals, TMS signals, tDCS signals, or tACS signals.

    66. An integrated circuit system, comprising: at least one processor; at least one memory; and at least one digital signal processing unit, configured and operable to receive and process brain state data or signals indicative of at least one brain state of a treated subject and generate based thereon stimulation data for adjusting, regulating or triggering, in real-time brain stimulation signals applied to the brain of the treated subject.

    67. The integrated circuit system of claim 66, further comprising a prediction module embedded in the integrated circuit and configured and operable to predict at least one brain state that is occurring, or about to occur, in the brain of the treated subject, based on brain state data or signals, and generate based on the predicted at least one brain state the stimulation data.

    68. The integrated circuit system of claim 66, further comprising at least one digital filtering module embedded in the integrated circuit and configured and operable to remove interferences from the brain state data or signals.

    69. The integrated circuit system of claim 66, further comprising at least one artifacts rejection module embedded in the integrated circuit and configured and operable to use an automated independent component analysis process for removal of artifacts from the brain state data.

    70. The integrated circuit system of claim 66, further comprising at least one analysis module embedded in the integrated circuit and configured and operable to process the brain state data or signals and perform at least one of time-frequency analysis and spectral analysis thereof.

    71. The integrated circuit system of claim 66, further comprising at least one feature extraction module embedded in the integrated circuit and configured and operable to extract at least one feature indicative of at least one brain state of the treated subject from the brain state data or signals.

    72. The integrated circuit system of claim 66, further comprising a real-time operating system embedded in the integrated circuit for operating at least one processor and digital signal processing unit.

    73. The integrated circuit system of claim 66, further comprising a communication interface module embedded in the integrated circuit and configured and operable to communicate data over at least one of wireless data communication or bus conductors data communication channels.

    74. The integrated circuit system of claim 66 wherein at least one of the processor or digital signal processing unit of the integrated circuit system is implemented in FPGA or as a GPU.

    75. A brain stimulation system comprising the integrated circuit system of claim 66and a stimulation generator electrically connected or coupled to the integrated circuit system and configured to receive the stimulation data from the at least one digital signal processing unit and based thereon generate, or adjust, in real-time brain stimulations to be applied to the brain of the treated subject.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0041] In order to understand the invention and to see how it may be carried out in practice, embodiments will now be described, by way of non-limiting example only, with reference to the accompanying drawings. Features shown in the drawings are meant to be illustrative of only some embodiments of the invention, unless otherwise implicitly indicated. In the drawings like reference numerals are used to indicate corresponding parts, and in which:

    [0042] FIG. 1A to 1C are block diagrams schematically illustrating a brain stimulation system according to some possible embodiments;

    [0043] FIG. 2 is a block diagram schematically illustrating a brain stimulation system according to some possible embodiments utilizing transcranial alternating current stimulation for determining brain states of a treated subject;

    [0044] FIG. 3 is a block diagram schematically illustrating a brain stimulation system according to some possible embodiments utilizing EEG signals and transcranial alternating current stimulation signals/data for determining brain states of a treated subject;

    [0045] FIG. 4 is a block diagram schematically illustrating a brain stimulation system according to some possible embodiments utilizing fMRI data/signals for determining brain states of a treated subject;

    [0046] FIG. 5 is a block diagram of an applicator unit configured to adapt in real-time the shape and/or timing of stimulation signal applied by the system according to some possible embodiments;

    [0047] FIG. 6 is a flowchart exemplifying a closed-loop brain stimulation process according to some possible embodiments;

    [0048] FIG. 7 is a block diagram of a data processing and analysis system according to some possible embodiments; and

    [0049] FIG. 8 shows an angle histogram of experimental results obtained using a brain stimulation system according to an embodiment of the present application.

    DETAILED DESCRIPTION OF EMBODIMENTS

    [0050] This application discloses closed loop brain stimulation techniques and implementations configured to trigger and/or modulate/regulate brain stimuli according to real time brain state(s) determined based on EEG signals, and/or brain state frequency and phase rhythms obtained by transcranial alternating current stimulation (tACS), and/or a task dependent brain state achieved by input of external triggers (e.g., TMS pulses that induce a certain brain state, and/or sensory stimuli, such as but not limited to, auditory and/or visual, and/or haptic/tactile, stimulation), all of which generally referred to herein as brain state signals/data. Such real time implementations are difficult to achieve due to the amounts of data processing required to analyze the brain state signals/data involving filtering and cleaning the raw signal, determining source localization, spectrum analysis, phase locking, statistical computation and/or predictive model estimation, and the high data processing rates of performing these operations. Therefore, the design of real-time closed-loop brain stimulation solutions requires special and careful consideration for optimizing system performance and accuracy.

    [0051] In some possible embodiments various data processing modules of real-time closed-loop brain stimulation systems are implemented in hardware (e.g., FPGA/GPU) configured for direct memory access (DMA), or any other suitable fast communication protocol (FCP), such as but not limited to, serial peripheral interface (SPI), two-wire interface (TWI), universal synchronous and asynchronous receiver-transmitter (USART), using one or more processing units that operates the hardware data processing modules using a real-time operating system (RTOS), to thereby substantially improve performance/speed of the system. The data processing hardware modules may comprise a preprocessing module, configured for referencing, source localization and signal filtering, a time-frequency analysis module, and a brain state prediction module. The brain state prediction module can be configured to use various features extracted from the brain state signals/data, such as but not limited to signal power spectrum, and/or signal amplitude, and/or signal timing, and/or brain connectivity measures such as phase locking value, to determine at least one parameter of the stimulation signals applied by the system, and generate triggering signals based thereon. Autoregressive forward prediction model can be used to update the prediction model over time based on peak frequencies identified by the system in the brain state signals/data.

    [0052] A user interface unit is used in some embodiments to set various operational parameters (power threshold, target frequencies/phase, analysis type/time window, prediction model, processing steps) and/or conditions/states (target electrodes, stimuli patterns). This way specific stimuli triggering process, employing determined stimulation patterns, can be tailored for a specific subject for treating certain neurological/psychiatric conditions.

    [0053] A subject interface unit is used in some embodiments to interact with the treated subject for inducing desired brain states in the treated subject. The subject interface unit can be configured to present to the user audio or visual, or audio-visual, content, and/or apply haptic stimuli, configured to induce the desired brain state, and/or to stimulate the brain using tACS electrodes to induce the desired brain state. Alternatively, or additionally, the subject interface unit can be configured to present to the treated subject specially designed tasks (cognitive tasks), and optionally receive from the treated subject corresponding inputs/feedbacks, usable by the system for inducing dependent brain state e.g., achieved by input of external triggers.

    [0054] One or more specific embodiments of the present application will be described below with reference to the drawings, which are to be considered in all aspects as illustrative only and not restrictive in any manner In an effort to provide a concise description of these embodiments, not all features of an actual implementation are described in the specification. Emphasis instead being placed upon clearly illustrating the principles of the invention such that persons skilled in the art will be able to make and use brain stimulation applications, once they understand the principles of the subject matter disclosed herein.

    [0055] The embodiments described hereinbelow may be implemented in other specific forms without departing from the essential characteristics described herein. The embodiments illustrated schematically and diagrammatically in the figures are provided as example implementations that demonstrate a number of features, processes, and principles used to provide real-time closed-loop brain stimulation, but they are also useful for other applications and can be made in different variations. Therefore, this description will proceed with reference to the shown examples, but with the understanding that the invention recited in the claims below can also be implemented in myriad other ways, once the principles are understood from the descriptions, explanations, and drawings provided herein. All such variations, as well as any other modifications apparent to one of ordinary skill in the art and useful in brain stimulation applications may be suitably employed, and are intended to fall within the scope of this disclosure.

    [0056] FIG. 1A is a block diagram of a brain stimulation system 1A, configured in some possible embodiments for closed loop triggering and adjusting of non-invasive brain stimulation based on real time brain state indications. The system 10 comprises a real-time brain state monitoring and stimulating system 11 configured and operable to continuously, periodically or intermittently, read from an electroencephalogram (EEG) unit 18 EEG data/signals 13s/13s′ (also referred to herein as brain state data/signals) indicative of brain waves measured by EEG electrodes 17 positioned on the head 10s of a subject, process the received EEG data/signals 13s/13s′, and generate corresponding brain stimulation parameters and/or timing data 14s (generally referred to herein as stimulation data) for use by a stimulation generator 14. The stimulation generator 14 is configured and operable to generate stimulation signals 15s used by a stimulation applicator 15 to apply stimulation to at least one area/region of the brain of the treated subject. The real-time brain state monitoring and stimulating system 11 comprises one or more processors 11u, memories 11m, configured and operable to use a real-time operating system (RTOS) for operating a digital signal processing (DSP) unit 12 internally embedded into the brain state monitoring and stimulating system 11.

    [0057] The DSP unit 12 is configured and operable to process the brain state data/signals 13s/13s′ and based thereon generate brain stimulation parameters and/or timing data 14s supplied to the stimulation applicator. FIG. 1B shows components of the DSP unit 12 according to some possible embodiments, comprising a filter unit 12e configured to remove interferences/artifacts from the brain state data/signals 13s/13s′, an analysis unit 12f configured to process and analyze the brain state data/signals 13s/13s′, and a feature extraction unit 12x configured to determine one or more brain state features based on the brain state data/signals 13s/13s′. The DSP unit can be configured to generate the brain stimulation parameters and/or timing data 14s based on the one or more brain state features from the feature extraction unit 12x.

    [0058] In some embodiments, the real-time brain state monitoring and stimulating system 11 and all its components are implemented in a single integrated circuit device.

    [0059] FIG. 1C is a block diagram of a brain stimulation system 10, configured in some possible embodiments for closed loop triggering and adjusting of non-invasive brain stimulation based on real time brain state indications. The system 10 comprises a real-time brain state monitoring and stimulating system 11 configured and operable to continuously, periodically or intermittently, read from an electroencephalogram (EEG) unit 18 EEG data/signals 13s/13s′ indicative of brain waves measured by EEG electrodes 17 positioned on the head 10s of a subject, process the received EEG data/signals 13s/13s′, and generate corresponding brain stimulation parameters and/or timing data 14s (generally referred to herein as stimulation data) for use by a stimulation generator 14. The stimulation generator 14 is configured and operable to generate stimulation signals 15s used by a stimulation applicator 15 to apply stimulation to at least one area/region of the brain of the treated subject (10s e.g., by TMS coils, and/or sound/voice generator/player, and/or current stimulating electrodes, and/or 2D/3D display/holographic device, and/or haptic/tactile stimulator transducers).

    [0060] The real-time brain state monitoring and stimulating system 11 is configured in some embodiments to determine the brain state of the treated subject (10s) by analyzing EEG rhythms reflected from the received EEG data/signals 13s/13s′, predict based on the determined EEG rhythms at least one brain state about to occur in the brain of the treated subject (10s), and based on the determined and/or predicted brain state(s) generate one or more the brain stimulation parameters and/or timing data 14s (e.g., frequency, and/or amplitude, and/or timing) to be used by the stimulation generator 14 for generating stimulation signals 15s for stimulating the brain of the treated subject (10s) by the stimulation applicator 15.

    [0061] The brain state signals 13s′ from the EEG unit 18 are digitized by an analog-to-digital converter (ADC) 13, which can be an integral unit embedded in the real-time brain state monitoring and stimulating system 11, or a unit external to the real-time brain state monitoring and stimulating system 11. In this specific and non-limiting example, the brain stimulation generator 14 is configured to generate stimulation signals 15s for use by one or more electromagnetic coils 15c of the applicator 15, such as TMS coils, configured to induce magnetic fields in brain tissue of the treated subject (10s). However, other brain stimulation techniques can be similarly used by the brain stimulation generator 14 and applicator 15 units, such as described hereinabove and herein below, when operated in closed-loop orchestrated by the real-time brain state monitoring and stimulating system 11.

    [0062] The real-time brain state monitoring and stimulating system 11 comprises one or more processors 11u and memories (e.g., RAM, SDRAM, FLASH) 11m, configured and operable to use a real-time operating system (RTOS) for operating a digital signal processing (DSP) unit 12 internally embedded into the brain state monitoring and stimulating system 11. The DSP unit 12 is configured and operable to carry out data filtration, spectral analysis functions, feature extractions, brain state prediction, and determine operational parameters and/or timing data to be used by the brain stimulation generator 14 in the generation of the stimulation signals 15s.

    [0063] Since processing speed is essential for the accurate determination of the brain state of the treated subject (10s) in real time, the one or more processing units 11u of the real-time brain state monitoring and stimulating system 11 operated by the RTOS, and the memory 11m, are implemented in a single hardware device, and the DSP unit 12 is implemented as a separate hardware unit e.g., FPGA/GPU implementation. In order to optimize the system performance, the one or more processors 11u and/or DSP unit 12, are configured to utilize a high speed data communication protocol (e.g., FCP), and/or with direct memory access (DMA), to thereby prevent the inevitable ‘handshaking’ delays typical required in conventional systems, wherein the processing units are required to handle the memory access operations.

    [0064] For example, when implemented utilizing DMA, the one or more processors 11u and the DSP unit 12 can independently perform data read and write operations from/in the memory 11m, without one unit interrupting the continuous data processing operation of the other. Accordingly, the use of DMA and/or high speed communication protocol(s) in the brain state monitoring and stimulating system 11 releases the load off the one or more processors 11u, generally responsible for acquiring the brain state data/signals 13s/13s′. This configuration of the brain state monitoring and stimulating system 11 enables the one or more processors 11u to be more efficient and relay the data in real time with low delay times. The DSP unit 12 is further configured to determine operational parameters and scheduling/timing data 14s, and output the same to the brain stimulation generator 14.

    [0065] Table 1 demonstrates improvements in data processing speed that can be achieved by the above described hardware implementation of the brain state monitoring and stimulating system 11 according to some possible embodiments. This design significantly speeds-up the data collection and processing operations, which thus allows collection of greater amounts of data within shorter time periods, with which the prediction algorithms can provide more accurate and longer term predictions of the brains waves, and which enables precise triggering and modulation of the of brain stimulation pulses.

    TABLE-US-00001 TABLE 1 FFT results FFT Benchmark 262,155 Points CPU GPU 2 4 8 12 24 Max FPGA Benchmark Threads Threads Threads Threads Threads Threads Virtex-5 FFT 76.17 ms 45.41 ms 31.63 ms 27.85 ms 31.36 ms 8.13 us 2.59 ms (Execution)
    (from C. Cullinan, et al., MathWorks 2012)

    [0066] The improvements in the processing speed, and the prediction accuracy, obtained by the brain stimulation system 10 also allow for expanding the utility of the system to subjects for which the power of the measured alpha, or other, brainwave band is relatively low, and thus were not suitable for treatment by prior art implementations. For example, the algorithms used for the phase locking in the system of Zrenner et al., (2018) required that the measured power of alpha brainwave band be at least 25% of the total measured power i.e., of all brain waves bands, in order to perform the phase locking. This power limitation can be overcome with the brain stimulation system 10 due to its improved processing speed, which allows for better prediction accuracy even for weaker or noisier signals.

    [0067] The DSP unit 12 comprises in some embodiments a digital filter module 12e configured and operable to remove interfering signals from the EEG signals/data 13s′/13s digitized by the ADC 13 e.g., using infinite impulse response (IIR, e.g., Butterworth or Elliptical filter) filter, finite impulse response (FIR). The DSP unit 12 comprises a time-frequency (TF) analysis module 12f configured and operable to carry out spectral analysis (e.g., utilizing fast Fourier transform—FFT) and time-frequency analysis to the filtered EEG signals/data from the filter module 12e, and generate data indicative thereof, a feature extraction module 12x configured and operable to analyze the processed and filtered measured data generated by the analysis module 12f and determine based thereon one or more brain state features (e.g., dominant frequency bands in the filtered measured data, phase data, amplitude data, and suchlike), and generate feature data indicative thereof. The brain state prediction module 12p is configured and operable to process the features data generated by the feature extraction module 12x, predict at least one brain state that is about to occur in the brain of the treated subject (10s), and generate based on the predicted at least one brain state operational parameters and/or timing data 14s used for generating one or more brain stimulations by the stimulation generator 14.

    [0068] Optionally, and in some embodiments preferably, the DSP unit 12 comprises an artifacts rejection module 12r configured and operable to process the EEG signals/data 13s′/13s received from the EEG unit 18. The artifacts rejection module 12r is particularly advantageous in embodiments utilizing electromagnetic coils 15c (e.g., TMS coils) in the applicator 15, because the magnetic fields generated by the coils 15c impose strong artifacts on the EEG data/signal 13s/13s′ measured by the EEG unit 18, and thus complicates the analysis of the EEG data/signal 13s/13s′. It is however noted that artifacts can be introduced into the EEG data/signal 13s/13s′ from multiple different sources, such as for example, electrical sources, eye blinks, movements, muscle contraction, heart pulses, electrode movement, mechanical pressure on the electrode, and suchlike.

    [0069] In some embodiments the analysis module 12f is configured and operable to analyze the EEG data/signal 13s/13s′ measured by the EEG unit 18 within time windows of up to 100 ms after the application of brain stimulations by the applicator 15 e.g., TMS pulse applied by coils 15c, which can be substantially difficult to carry out due to the induced artifacts. Typically, such artifacts are removed in conventional brain stimulation systems by a manual post processing analysis stage which aims to eliminate the described artifacts by rejecting specific components extracted using independent component analysis (ICA). Although ICA is considered robust and provides good results, it is a time consuming process/algorithm not suitable for the real-time brain stimulation systems disclosed herein. The artifacts rejection module 12r is thus implemented in some embodiments (by hardware, software, or a combination of hardware and software) utilizing a real-time ICA process configured to remove the artifacts from the EEG data/signal 13s/13s′ in real time e.g., within time windows of about 100 to 600 ms, optionally about 150 to 500 ms, and in some embodiments about 200 ms, from acquisition of the brain state data/signals 13s/13s′.

    [0070] The artifacts rejection module 12r can be configured and operable to remove artifacts from the EEG signals/data 13s′/13s and pass substantially artifacts-free EEG signals/data to the filter unit 12e for signal filtration. Alternatively, in some possible embodiments the artifacts rejection module 12r is configured and operable to receive the filtered EEG signals/data generated by the filter module 12e, process the received filtered EEG signals/data to remove the artifacts therefrom, and pass the substantially artifacts-free and filtered EEG signals/data to the analysis module 12f.

    [0071] In some embodiments the different components of real-time brain state monitoring and stimulating system 11 operated by the RTOS is implemented in a single chip device (e.g., on a single semiconductor substrate as a SoC). For example, in a SoC implementation of the real-time brain state monitoring and stimulating system 11 the one or more processing units 11u can be implemented in a FPGA, and the DSP unit 12 by a GPU of the SoC. This way, the DMA, and all electrical connections, are internally formed/patterned inside the chip, without the discrete components and printed circuit boards typically required. Such SoC implementations improves data communication speeds, and substantially reduces geometrical dimensions of the system, because all the components of the system 11 are implemented and interconnected on the same semiconductor substrate of the chip.

    [0072] Non-invasive brain stimulation has been shown to be of therapeutic benefit for a range of neurological and psychiatric indications each with its own protocol and thus each could be optimized by application during different brain states. Thus, in some embodiments, the operational parameters data 14s determined by the prediction module 12p for adjusting the stimulation signals 15s generated by the stimulation generator 14 can comprise one or more of the following: stimulation signal amplitude, and/or stimulation signal frequency and/or timing, and/or brain region/area of the treated subject to be stimulated.

    [0073] In some embodiments the system 10 comprises a user interface unit 11z configured to present information to the user/practitioner and receive from the user/practitioner various data inputs. For example, and without being limiting, the user interface unit 11z can be configured allow the user/practitioner to specify at least one of the following parameters/options:

    [0074] (1) input sources/electrode(s) (e.g., EEG electrodes 17, and/or specific tACS electrodes 17′, and/or fMRI signals/data, and/or cognitive task response from the subject interface unit 11s) to be used by the analysis module 12f and feature extraction module 12x to determine the brain state of the subject, including option for targeting electrodes over multiple brain regions/areas for measures of brain connectivity;

    [0075] (2preprocessing steps to be performed by the DSP unit 12, such as but not limited to referencing, filtering and source localization;

    [0076] (3) Target frequency band and phase to be used by the stimulation generator 14;

    [0077] (4) power threshold of target frequency band to be used by the stimulation generator 14;

    [0078] (5) Time window for analysis by the analysis module 12f and for the feature extraction module 12x;

    [0079] (6) analysis type to be performed by the analysis module 12f and the feature extraction module 12x;

    [0080] (7) predictive model to be used by the prediction module 12p;

    [0081] (8) output stimulation pattern(s) to be applied by the stimulation generator 14.

    [0082] The prediction module 12p can be thus configured and operable to determine the operational parameters/stimulation data 14s to be used for adjusting the stimulation signals 15s generated by the generator 14 based on the features extracted from the input data/signals and/or the above-mentioned parameters/options (1) to (8) as set by the operator/practitioner via the user interface unit 11z. User/practitioner specification is essential in some embodiments as different applications call for not only identifying specific brain states but also require a different balance of speed and precision. Instantaneous phase locking by definition requires high speed as the phase changes continuously. The brain stimulation system embodiments hereof configured to operate at such high speeds for analysis of instantaneous phase with the required high temporal precision. It is however noted that the brain stimulation system can also utilize analysis types requiring less temporal precision, such as event related desynchronization (ERD), which provides higher stability of the analysis, and which also opens the ability to add other aspects to the analysis pipeline. For example, this may be reflected in the choice of source localization process used by the feature extraction module 12x, which may utilize in case ERD is used a more precise but slower process e.g., utilizing Laplacian transform, or a still accurate but faster process e.g., utilizing Hjorth transform.

    [0083] Another non-limiting example is the choice of predictive model employed by the prediction module 12p. In some possible embodiments the stimulation system 10 is configured to use a suite of options, such as but not limited to, autoregressive forward prediction model, modeling based on the peak frequency in the FFT transform, and back propagating feedback model, to update the prediction module 12p over time. The prediction module 12p can be configured to determine correlation of the brain state data/signals 13s/13s′ from the EEG unit 18 with brain state patterns previously measured by the system in the current, or previous, sessions, and based on the correlation predict future brain states likely to occur in the brain of the treated subject, and accordingly determine the stimulation data 14s supplied to the stimulation generator 14.

    [0084] The stimulation data 14s provided by the brain state monitoring and stimulating system 11 to the brain stimulation generator 14 comprises in some embodiments instructions for triggering a predetermined stimulation pattern that is aligned to the targeted brain state, and/or instructions to apply different patterns specified for different brain states. Accordingly, the stimulation generator 14 can be configured to be compatible with transcranial magnetic stimulation (TMS) procedures, transcranial direct current stimulation (tDCS) procedures, and/or transcranial electrical stimulation (TES) procedures.

    [0085] In some embodiments the brain stimulation system comprises a subject interface unit 11s configured and operable to interact with the treated subject for inducing desired brain states in the treated subject. The subject interface unit 11s can be configured to play to the treated subject audio-visual content configured to induce the desired brain state, and/or present to the treated subject specially designed (e.g., cognitive) tasks, and optionally receive corresponding inputs/feedbacks therefrom, usable by the system 10 for inducing dependent brain state e.g., achieved by input of external triggers.

    [0086] FIG. 2 is a block diagram of a possible embodiment of a brain stimulation system 10′, that is substantially similar to the brain stimulation system 10 shown in FIG. 1, but which utilizes tACS data 19s to determine brain states of the treated subjects, instead of the EEG data/signals. In this example the brain stimulation system 10′ further comprises a tACS unit 19 configured and operable to induce desired brain states in the brain of the treated subject by the tACS electrodes 17′ (e.g., entrain the subject's brain rhythms to a given frequency and phase). Optionally, the brain stimulation system 10′ can be configured to receive the tACS signals 19s′ applied to the treated subject by the tACS electrodes 17′, and digitize the received tACS signals 19s′ by the ADC 13. The tACS data/signals 19s/19s′ can be similarly processed by the brain state monitoring and stimulating system 11, as described hereinabove, to remove artifacts and/or filter interferences by the artifacts rejection module 12r and the filter module 12e, analyze the filtered and/or artifacts-free tACS data/signals by the analysis module 12f, to predict at least one brain state about to occur in the brain of the treated subject and generate corresponding stimulation parameters and/or timing data 14s by the brain state prediction module 12p for adjusting/regulating the stimulation signals 15s generated by the stimulation generator 14. The subject interface unit 11s can be similarly used for inputting external triggers, such as but not limited to behavioral performance, thereby making the triggering by the brain state task dependent.

    [0087] FIG. 3 is a block diagram schematically illustrating a brain stimulation system 10″ utilizing the EEG signals/data 13s′/13s and the tACS signals/data, 19s and/or 19s′, for determining brain states of the treated subject (10s). The brain stimulation system 10″ can be configured to select only the EEG data/signals 13s/13s′, only the tACS signals/data, 19s and/or 19s′, or both EEG and tACS signals/data, to predict at least one brain state about to occur in the brain of the treated subject, and use the same to generate corresponding stimulation parameters and/or timing data 14s for adjusting/regulating the stimulation signals 15s applied by the stimulation generator 14, as described hereinabove.

    [0088] FIG. 4 is a block diagram schematically illustrating a brain stimulation system 10′″ configured to use fMRI data 44s and/or signals 44s′, from fMRI system 44, for determining brain states of a treated subject. The fMRI system 44 is configured to measure brain activity of the subject (10s), and the brain stimulation system 10′″ is configured and operable to predict at least one brain state about to occur in the brain of the treated subject based on the signals/data from the fMRI system 44, and use the same to generate corresponding stimulation parameters and/or timing data 14s for adjusting/regulating the stimulation signals 15s applied by the stimulation generator 14, as described hereinabove.

    [0089] As demonstrated in FIG. 4, the brain stimulation system 10′″ can be configured and operable to combine signals/data 13s′/13s received from the EEG electrodes 17, and/or the tACS signals/data 19s′/19s, with the fMRI data/signals 44s/44s, and use the signals/data received from the various sources to extract the brain state features for the prediction and/or the generation of the stimulation data 14s.

    [0090] As shown if FIGS. 1 to 4, the real-time brain state monitoring and stimulating system 11 can comprise a communication interface module 11i configured and operable to handle the data communication with the EEG unit 18, and/or the tACS unit 19, and/or the fMRI system 44, and/or user interface unit 11z, and/or the subject interface unit 11s, and/or the stimulation generator 14. The communication interface module 11i can be configured to communicate data with the various units/systems over electrically conducting wires using, for example, serial (e.g., USB, UART, or suchlike) or parallel (ISA, ATA, SCSI, PCI, or suchlike) bus data communication protocols, and/or wireless data communication (e.g., WiFi, Bluetooth, Zigbee, or suchlike). Accordingly, in embodiments wherein the components of the real-time brain state monitoring and stimulating system 11 are embedded in a single integrated circuit (IC) device, the communication interface module 11i is also embedded into the IC of the system 11.

    [0091] FIG. 5 is a block diagram of a possible stimulation generator 14 configured to adjust in real time signals applied by the system to the brain of the treated subject based on the brain stimulation parameters and/or timing data 14s generated by the brain state monitoring and stimulating system 11. In this specific and non-limiting example, the stimulation generator 14 comprises a control unit 14u configured and operable to receive the brain stimulation parameters and/or timing data 14s and generate based thereon control signals 14w and/or 14m for adjusting in real-time the shape and/or scheduling and/or patterns of the stimulation signals 15s supplied to the stimulation applicator 15.

    [0092] The stimulation generator 14 may comprise a plurality of signal sources g1, g2, g3, . . . , gn, each associated with a respective switch unit w1, w2, w3, . . . , wn, and configured to generate a specific waveform having a desired shape and frequency. The frequency of the waveform generated by each signal source g1, g2, g3, . . . , and gn, can be determined by controlled signals (not shown) generated by the control unit 14u based on the brain stimulation parameters and/or timing data 14s. The control unit 14u is configured and operable to select the waveforms of the stimulation signal 15s by generating respective control signals 14w signals for changing the states of the respective switch unit w1, w2, w3, . . . , wn, to thereby select the waveforms supplied to a signal summation unit 14t.

    [0093] The signal summation produced by the summation unit 14t can be inputted to a signal modulation unit 14d configured and operable to modulate it with signal patterns provided through the signals/data 14m from the control unit 14u. It is noted that modulation of the signal from the summation unit 14t is not essentially required in all brain stimulation sessions, so the signals/data 14m from the control unit 14u can be accordingly used to instruct the modulator 14d to pass the signal from the summation unit 14t as is, without applying any modulation.

    [0094] FIG. 6 is a flow chart exemplifying a closed-loop brain stimulation process 40 according to some possible embodiments. The brain stimulation process 40 starts in step S1 wherein the brain stimulation system receives session inputs form the user/practitioner via the user interface unit 11z (e.g., parameters/options (1) to (8) described hereinabove). In step S2 the system determines based on the inputs received in step S1 the brain state (BS) data/signal source to be used in the session (e.g., EEG signals, tACS signals, and/or fMRI data), which devices are to be used to apply the brain stimulations (e.g., coils and/or electrode selection for targeting desired brain region/area, and/or sensory applicators), and/or the signal patterns that should be applied to the treated subject.

    [0095] In step S3 the system receives and filters, and/or remove artifacts from, the brain state signals/data. The filtered and/or artifacts-free signals/data is then analyzed in step S4 (e.g., spectral analysis and/or time-frequency analysis), and in step SS the system extracts one or more brain state features from the analyzed processed and filtered and/or artifacts-free brain state signals/data. Next, in step S6 one or more brain states about to occur in the brain of the treated subject are predicted by the system, and in step S7 the system determines operational parameters and/or timing data to be used by the stimulation applicator for applying in step S8 the stimulation signals.

    [0096] In step S9 it is checked whether the brain stimulation session is to be ended. If further brain stimulation is to be applied then steps S3 to S8 are repeated any number of times required until it is determined in step S9 that the session should be ended by stopping the stimulations applied by the applicator and moving the control to step S10. It is noted that the application of brain stimulating signals of step S8 can be continuously continued as the steps S3 to S8 are repeated, and that the applied brain stimulating signals can dynamically change during these steps as new stimulation parameters and/or timing data is generated in step S7, to adjust the applied brain stimulations to the changes occurring in the brain state of the treated user.

    [0097] It should also be understood that in the process 40, or method(s) shown or described herein, the steps of the process/method may be performed in any order or simultaneously, unless it is clear from the context that one step depends on another being performed first. The process 40, or one or more of its steps, may be realized as computer executable code created using a structured programming language (e.g., C), an object oriented programming language such as C++, or any other high-level or low-level programming language (including assembly languages, hardware description languages, and database programming languages and technologies) that may be stored, compiled or interpreted to run on a computer device, as well as heterogeneous combinations of processors, processor architectures, or combinations of different hardware and software.

    [0098] The data processing of the brain stimulation system disclosed herein may be distributed across a number of computerized, devices, which may be functionally integrated into a dedicated standalone stimulation system. All such permutations and combinations are intended to fall within the scope of the present disclosure.

    [0099] FIG. 7 shows a data processing and analysis system 50 according to some possible embodiments. The system 50 comprises a plurality of real-time brain state monitoring and stimulating systems 11, each having a communication module lie configured and operable to communicate data over a data network 51 e.g., the Internet, In some embodiments a data server 52 is used to receive and log. treatment data associated with the treatment protocols conducted by the plurality of real-time brain state monitoring and stimulating systems 11, and treatment progress and results obtained using the treatment protocols. The data received from the plurality of real-time brain state monitoring and stimulating systems 11 can be stored in a database 52d maintained by the data server 52. The data server 52 can be implemented by a computer system having one or more processors (not shown), memories (e.g., volatile and non-volatile—not shown), and data communication modules (not shown), as typically used in data servers.

    [0100] In some embodiments an analysis module 52a is used in the data server 52 to process the protocol and treatment results data stored in the database 52d, and identify from the data accumulated over time treatment protocols that presented satisfactory results. The analysis module 52a can be thus configured to utilize statistical analysis and/or machine learning tools for identifying treatment protocols for which high percentage of treatment sessions show beneficial therapeutic effects. Optionally, and in some embodiments preferably, the analysis module 52a is configured to utilize artificial intelligence tools for analyzing the data accumulated in the database 52d, such as but not limited to, neural-network, machine/deep learning algorithm, and suchlike. Accordingly, the analysis of the treatment data accumulated in the database 52d can be used to generate state and predictive biomarkers and/or statistics of protocols and/or their outcomes.

    [0101] The data server 52 can be configured to transfer to the plurality of real-time brain state monitoring and stimulating systems 11 analysis data indicative of the treatment protocols having the highest scores of the treatments of certain neurological/psychiatric conditions. The real-time brain state monitoring and stimulating systems 11 can be configured to generate and transmit to the data server 52 queries to scan the database 52d and look for treatment protocols that been reported to provide satisfactory results in treating a certain neurological/psychiatric condition. The real-time brain state monitoring and stimulating system 11 can be accordingly configured to receive response data from the data server 52 with statistical analysis of the analysis module 52a concerning the issued query, and present to the user/practitioner the response data in the user interface unit 11z.

    [0102] FIG. 8 shows an angle histogram (roseplot) of application of experimental stimulation carried using implementation of the brain stimulation system shown in FIG. 1. This plot shows the actual phase angle distribution at the time of the trigger when set to 0° (zero degrees) for a representational raw EEG trace. The standard deviation here is about 38°, despite the fact that the percentage of the alpha band of the total measured power is less than 1%. This is thus an improvement over the prior art of Zrenner et al., 2018 who's algorithm is restricted to subjects who's percentage of the alpha band from the total measured power is required to be over 25% of the total power, and which resulted in a standard deviation of 53°. As such, the brain stimulation process disclosed herein, and its implementations, are clearly more precise, and more effective to a larger population of subjects.

    [0103] Functions of the brain stimulation systems described hereinabove may be controlled through instructions executed by a computer-based control system. A control system suitable for use with embodiments described hereinabove may include, for example, one or more processors connected to a communication bus, one or more volatile memories (e.g., random access memory—RAM) or non-volatile memories (e.g., Flash memory). A secondary memory (e.g., a hard disk drive, a removable storage drive, and/or removable memory chip such as an EPROM, PROM or Flash memory) may be used for storing data, computer programs or other instructions, to be loaded into the computer system.

    [0104] Those of skill in the art would appreciate that items such as the various illustrative blocks, modules, elements, components, methods, operations, steps, and algorithms described herein may be implemented as hardware or a combination of hardware and computer software.

    [0105] In the embodiments disclosed herein, features of the invention are implemented primarily in hardware using, for example, hardware components such as application specific integrated circuits (ASICs), and/or field-programmable gated arrays (FPGAs), and/or system-on-chip implementations. Implementation of the hardware state machine so as to perform the functions described herein will be apparent to persons skilled in the relevant art(s). In yet another embodiment, features of the invention can be implemented using a combination of both hardware and software.

    [0106] As described hereinabove and shown in the associated figures, the present invention provides a closed-loop brain stimulation system, and related methods. While particular embodiments of the invention have been described, it will be understood, however, that the invention is not limited thereto, since modifications may be made by those skilled in the art, particularly in light of the foregoing teachings. As will be appreciated by the skilled person, the invention can be carried out in a great variety of ways, employing more than one technique from those described above, all without exceeding the scope of the claims.