Method for controlling stimulator, stimulator, brain-computer interface system and chip

By detecting electrode voltage and performing active and passive charge balancing, it solves the safety problem of high-density electrodes in biological tissues, achieves efficient charge balance and short-circuit protection, and ensures the safety of biological tissues and electrodes.

CN118718243APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310353226.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The contact area between high-density electrodes and biological tissues is reduced, resulting in an increase in interface impedance, which requires higher voltage application to achieve specific effects, thus affecting the safety of the stimulator.

Method used

By detecting residual charge and performing active and passive charge balancing, a control signal is generated to control the driving circuit to apply electrical pulses to the electrode, ensuring the safety of the electrode and biological tissue, and disconnecting the power supply during short circuit protection to avoid excessive voltage.

Benefits of technology

Effectively eliminates residual charges, prevents instantaneous large currents, improves the safety of the stimulator and the protection of biological tissues, and ensures high accuracy and efficiency of charge balance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118718243A_ABST
    Figure CN118718243A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method for controlling a stimulator, the stimulator, a brain-computer interface system and a chip. The method comprises the following steps: acquiring the voltage of an electrode coupled with the stimulator; comparing the acquired electrode voltage with a first threshold voltage when the stimulator does not apply the electric pulse to the electrode; if the magnitude of the electrode voltage is not lower than the magnitude of the first threshold voltage, a first control signal is generated to control a drive circuit of the stimulator to apply at least one electric pulse to the electrode, and the charge polarity of the at least one electric pulse is opposite to the charge polarity indicated by the electrode voltage; and generating a second control signal to connect the electrode to the reference potential after applying the at least one electrical pulse. According to the scheme, the safety of the stimulator can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and more specifically, to a method for controlling a stimulator, a stimulator, and a brain-computer interface system. Background Art

[0002] Brain-computer interfaces can establish connections between the brain or nervous system of organic life and computing or electronic devices, and are widely used in many fields such as biomedicine and neurorehabilitation. Stimulators are an important part of brain-computer interfaces, which can apply stimulation to biological tissues via electrodes to achieve specific purposes, such as sensory reconstruction, or treatment of neurological diseases such as epilepsy and Parkinson's disease, or other types of closed-loop control.

[0003] With the development of technology, the electrodes used in stimulators are getting smaller and smaller and the density is getting higher and higher. However, the contact area between the smaller high-density electrodes and the biological tissue is significantly reduced, resulting in a larger interface impedance. Therefore, the stimulator needs to apply a higher voltage to the electrodes for stimulation to achieve a specific effect. Since the application scenario is usually biological tissue and the development trend of the stimulator is to be implanted in biological tissue, this increase in voltage leads to safety challenges. At present, there is a lack of effective means to solve the safety problem of stimulators. Summary of the invention

[0004] In order to solve the above problems, embodiments of the present disclosure provide a method for controlling a stimulator, a stimulator, a brain-computer interface system and a chip.

[0005] In a first aspect of the present disclosure, a method for controlling a stimulator is provided, comprising: acquiring a voltage of an electrode coupled to the stimulator; comparing the acquired electrode voltage with a first threshold voltage during a period when the stimulator does not apply an electric pulse to the electrode; if the magnitude of the electrode voltage is not lower than the magnitude of the first threshold voltage, generating a first control signal to control a drive circuit of the stimulator to apply at least one electric pulse to the electrode, the charge polarity of the at least one electric pulse being opposite to the charge polarity indicated by the electrode voltage; and after applying at least one electric pulse, generating a second control signal to connect the electrode to a reference potential.

[0006] In the scheme disclosed in the present invention, by detecting the residual charge and performing active charge balancing and passive charge balancing in sequence on the excessive residual charge, the safer active charge balancing can be used to offset part of the residual charge and the last small amount of charge can be quickly discharged using passive charge balancing, thereby preventing instantaneous large currents during the balancing process and eliminating residual charges with high precision, thereby ensuring the safety of biological tissues and electrodes.

[0007] In an implementation of the first aspect, the first threshold voltage includes a first value associated with residual positive charge and a second value associated with residual negative charge. Through this implementation, positive residual charge and negative residual charge can be effectively detected and eliminated.

[0008] In an implementation of the first aspect, the method further includes: generating a first stimulation signal to control the drive circuit to apply a first electrical pulse to the electrode, the first electrical pulse having a first charge polarity; during the application of the first electrical pulse to the electrode, comparing the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not less than the magnitude of the second threshold voltage, disconnecting the electrical connection between the power supply of the drive circuit and the electrode, and generating a third control signal to connect the electrode to a reference potential. Through this implementation, short-circuit protection can be implemented during the application of electrical pulses by the stimulator to prevent excessive short-circuit voltage from being applied to the electrode and biological tissue, thereby improving the safety of the stimulator.

[0009] In an implementation of the first aspect, the method further includes: generating a second stimulation signal to control the drive circuit to apply a second electric pulse to the electrode, the second electric pulse having a second charge polarity opposite to the first charge polarity; during the application of the second electric pulse to the electrode, comparing the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not less than the magnitude of the second threshold voltage, disconnecting the electrical connection between the power supply of the drive circuit and the electrode, and generating a third control signal to connect the electrode to a reference potential. Through this implementation, short-circuit protection can be achieved during the application of the electric pulse by the stimulator to prevent excessive short-circuit voltage from being applied to the electrode and biological tissue, thereby improving the safety of the stimulator.

[0010] In an implementation of the first aspect, the second threshold voltage includes a third value associated with the short-circuit protection positive voltage and a fourth value associated with the short-circuit protection negative voltage. Through this implementation, short-circuit detection and protection for positive and negative power supply voltages can be achieved.

[0011] In an implementation of the first aspect, the second control signal is used to directly connect the electrode to the reference potential, and the third control signal is used to connect the electrode to the reference potential via a current limiting element. Through this implementation, the electrode can be directly short-circuited to the reference potential in the passive charge balancing process of eliminating residual charge to ensure the balancing speed and eliminate the remaining residual charge to the greatest extent, and the electrode can be connected to the reference potential in a current limiting manner in the short-circuit protection process to eliminate the charge residue and prevent the formation of excessive current that damages biological tissues during the charge transfer process.

[0012] In an implementation of the first aspect, the method further includes: comparing the acquired electrode voltage with a third threshold voltage during a period between applying the first electrical pulse and applying the second electrical pulse; and generating an alarm signal if the magnitude of the electrode voltage is not less than the magnitude of the third threshold voltage. Through this implementation, it is possible to effectively detect whether the voltage change caused by a single charge injection exceeds the electrochemical safety range, so as to timely remind or warn the operator or the device to adjust the applied stimulation pulse when the charge injection is excessive.

[0013] In an implementation of the first aspect, the third threshold voltage includes a fifth value associated with an electrochemically safe positive voltage and a sixth value associated with an electrochemically safe negative voltage. Through this implementation, electrochemical problems caused by positive charge injection and negative charge injection can be effectively detected and warned.

[0014] In an implementation of the first aspect, obtaining the voltage of an electrode coupled to the stimulator includes: obtaining the electrode voltage at a predetermined frequency during a period when the stimulator does not apply an electrical pulse to the electrode. Through this embodiment, excessive charge accumulation can be discovered in a timely manner, thereby ensuring safety and avoiding additional power consumption caused by real-time monitoring.

[0015] In an implementation of the first aspect, generating the first control signal includes: determining at least one of a pulse width, a pulse amplitude, a pulse shape, and a pulse number of at least one electrical pulse based on the electrode voltage; and generating the first control signal based on at least one of the determined pulse width, pulse amplitude, pulse shape, and pulse number. Through this embodiment, a pulse for active balancing can be set according to the residual charge condition, thereby efficiently and accurately eliminating the residual charge.

[0016] In an implementation of the first aspect, generating the second control signal includes: determining a duration for connecting the electrode to a reference potential based on the electrode voltage and the first control signal; and generating the second control signal based on the determined duration. With this implementation, the setting of the passive charge balance can be dynamically adjusted according to the residual charge and the active charge balance, thereby improving the effect and efficiency of the charge balance.

[0017] In a second aspect of the present disclosure, a method for controlling a stimulator is provided, the method comprising: acquiring a voltage of an electrode coupled to the stimulator; generating a first stimulation signal to control a driving circuit of the stimulator to apply a first electric pulse to the electrode, the first electric pulse having a first charge polarity; during application of the first electric pulse to the electrode, comparing the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, disconnecting the electrical connection between the power supply of the driving circuit and the electrode, and generating a third control signal to connect the electrode to a reference potential.

[0018] In an implementation of the second aspect, the method also includes: generating a second stimulation signal to control the driving circuit to apply a second electric pulse to the electrode, the second electric pulse having a second charge polarity opposite to the first charge polarity; during the application of the second electric pulse to the electrode, comparing the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, disconnecting the electrical connection between the power supply of the driving circuit and the electrode, and generating a third control signal to connect the electrode to a reference potential.

[0019] In an implementation of the second aspect, the second threshold voltage includes a third value associated with a short circuit protection positive voltage and a fourth value associated with a short circuit protection negative voltage.

[0020] In an implementation of the second aspect, the third control signal is used to connect the electrode to a reference potential via a current limiting element.

[0021] In a third aspect of the present disclosure, a method for controlling a stimulator is provided, the method comprising: acquiring a voltage of an electrode coupled to the stimulator; generating a first stimulation signal to control a drive circuit to apply a first electric pulse to the electrode, the first electric pulse having a first charge polarity; generating a second stimulation signal to control the drive circuit to apply a second electric pulse to the electrode, the second electric pulse having a second charge polarity opposite to the first charge polarity; comparing the acquired electrode voltage with a third threshold voltage during a period between applying the first electric pulse and applying the second electric pulse; and generating an alarm signal if the magnitude of the electrode voltage is not lower than the magnitude of the third threshold voltage.

[0022] In an implementation of the third aspect, the third threshold voltage includes a fifth value associated with an electrochemically safe positive voltage and a sixth value associated with an electrochemically safe negative voltage.

[0023] In a fourth aspect of the present disclosure, a stimulator is provided, comprising: a drive circuit adapted to be coupled to an electrode; a detection circuit adapted to be coupled to the electrode and configured to detect an electrode voltage; a controller coupled to the drive circuit and the detection circuit and configured to: acquire the voltage of the electrode; compare the acquired electrode voltage with a first threshold voltage during a period in which the stimulator does not apply an electric pulse to the electrode; if the magnitude of the electrode voltage is not lower than the magnitude of the first threshold voltage, generate a first control signal to control the drive circuit to apply at least one electric pulse to the electrode, the charge polarity of the at least one electric pulse being opposite to the charge polarity indicated by the electrode voltage; and after applying at least one electric pulse, generate a second control signal to connect the electrode to a reference potential.

[0024] In one implementation of the fourth aspect, the controller is further configured to: generate a first stimulation signal to control the driving circuit to apply a first electric pulse to the electrode, the first electric pulse having a first charge polarity; during the application of the first electric pulse to the electrode, compare the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, disconnect the electrical connection between the power supply of the driving circuit and the electrode, and generate a third control signal to connect the electrode to a reference potential.

[0025] In one implementation of the fourth aspect, the controller is further configured to: generate a second stimulation signal to control the drive circuit to apply a second electric pulse to the electrode, the second electric pulse having a second charge polarity opposite to the first charge polarity; during the application of the second electric pulse to the electrode, compare the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, disconnect the electrical connection between the power supply of the drive circuit and the electrode, and generate a third control signal to connect the electrode to a reference potential.

[0026] In one implementation of the fourth aspect, the controller is further configured to: compare the acquired electrode voltage with a third threshold voltage during a period between applying the first electric pulse and applying the second electric pulse; and generate an alarm signal if the magnitude of the electrode voltage is not lower than the magnitude of the third threshold voltage.

[0027] In an implementation of the fourth aspect, the controller includes a processing device and a comparison circuit, the comparison circuit including: a first multiplexer configured to output a first value associated with a residual positive charge, a third value associated with a short-circuit protection positive voltage, and one of a fifth value associated with an electrochemically safe positive voltage; a first comparator configured to compare the electrode voltage detected by the detection circuit with the value output by the first multiplexer, and provide the comparison result to the processing device; a second multiplexer configured to output a second value associated with a residual negative charge, a fourth value associated with a short-circuit protection negative voltage, and one of a sixth value associated with an electrochemically safe negative voltage; and a second comparator configured to compare the electrode voltage detected by the detection circuit with the value output by the second multiplexer, and provide the comparison result to the processing device. Through this implementation, comparison of multiple thresholds can be implemented in a stimulator in a simple, low-cost and efficient manner.

[0028] In a fifth aspect of the present disclosure, a stimulator is provided, comprising: a drive circuit adapted to be coupled to an electrode; a detection circuit adapted to be coupled to the electrode and configured to detect an electrode voltage; a controller coupled to the drive circuit and the detection circuit and configured to: acquire the voltage of the electrode; generate a first stimulation signal to control the drive circuit to apply a first electric pulse to the electrode, the first electric pulse having a first charge polarity; during application of the first electric pulse to the electrode, compare the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, disconnect the electrical connection between the power supply of the drive circuit and the electrode, and generate a third control signal to connect the electrode to a reference potential.

[0029] In one implementation of the fifth aspect, the controller is further configured to: generate a second stimulation signal to control the drive circuit to apply a second electric pulse to the electrode, the second electric pulse having a second charge polarity opposite to the first charge polarity; during the application of the second electric pulse to the electrode, compare the acquired electrode voltage with a second threshold voltage; and if the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, disconnect the electrical connection between the power supply of the drive circuit and the electrode, and generate a third control signal to connect the electrode to a reference potential.

[0030] In an implementation of the fifth aspect, the third control signal is used to connect the electrode to a reference potential via a current limiting element.

[0031] In a sixth aspect of the present disclosure, a stimulator is provided, comprising: a drive circuit adapted to be coupled to an electrode; a detection circuit adapted to be coupled to the electrode and configured to detect an electrode voltage; a controller coupled to the drive circuit and the detection circuit and configured to: acquire the voltage of the electrode; generate a first stimulation signal to control the drive circuit to apply a first electric pulse to the electrode, the first electric pulse having a first charge polarity; generate a second stimulation signal to control the drive circuit to apply a second electric pulse to the electrode, the second electric pulse having a second charge polarity opposite to the first charge polarity; compare the acquired electrode voltage with a third threshold voltage during a period between applying the first electric pulse and applying the second electric pulse; and generate an alarm signal if the magnitude of the electrode voltage is not lower than the magnitude of the third threshold voltage.

[0032] In an implementation of the sixth aspect, the stimulator further includes: a passive protection device coupled between the driving circuit and the electrode, and the resistance of the passive protection device increases as the current flowing through the passive protection device or the voltage across the passive protection device increases. Through this implementation, the circuit can be quickly and effectively disconnected when a short circuit occurs to prevent excessive voltage or current from being applied to the electrode, thereby protecting the safety of biological tissue and the electrode. In addition, the use of passive protection devices can also greatly reduce space or area occupation, thereby improving the degree of device integration.

[0033] In an implementation of the sixth aspect, the drive circuit includes a first current source coupled between the power supply potential and the electrode and a second current source coupled between the ground potential and the electrode, and the passive protection device is coupled between the first current source and the electrode. Through this implementation, the power supply potential can be prevented from being directly connected to the electrode when the first current source fails and short-circuits.

[0034] In an implementation of the sixth aspect, the passive protection device includes a self-fuse device, and the self-fuse device is configured to be blown when a current flowing through the self-fuse device exceeds a blow threshold.

[0035] In an implementation of the sixth aspect, the driving circuit includes a passive balancing branch, the passive balancing branch includes a first switch, a second switch and a current limiting element, the first switch and a parallel circuit formed by the second switch and the current limiting element are connected in series between the electrode and the reference potential, the resistance of the current limiting element is adjustable, and the controller is configured to control the turning on and off of the first switch and the second switch. Through this implementation, passive charge balancing with current limiting and without current limiting can be effectively controlled and realized.

[0036] In an implementation of the sixth aspect, the detection circuit includes a plurality of voltage-dividing resistors or a plurality of voltage-dividing capacitors connected in series. Through this implementation, the electrode voltage can be accurately detected and attenuated into a voltage signal that can be processed in the low-voltage domain.

[0037] In a seventh aspect of the present disclosure, a brain-computer interface system is provided, comprising: an electrode; and a stimulator according to the fourth aspect, the fifth aspect or the sixth aspect.

[0038] In an eighth aspect of the present disclosure, a chip is provided, comprising: a processor; and a stimulator according to the fourth aspect, the fifth aspect or the sixth aspect.

[0039] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. These and other aspects of the present invention will be more concise and understandable in the description of the following (multiple) embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0041] Figure 1 A schematic block diagram of a brain-computer interface system according to an embodiment of the present disclosure is shown.

[0042] Figure 2A schematic block diagram of a brain-computer interface system according to an embodiment of the present disclosure is shown.

[0043] Figure 3 A schematic block diagram of a stimulator and electrodes according to an embodiment of the present disclosure is shown.

[0044] Figure 4 A schematic diagram showing a stimulator and a target object in a first stage according to an embodiment of the present disclosure is shown.

[0045] Figure 5 A schematic diagram showing a stimulator and a target object in a second stage according to an embodiment of the present disclosure is shown.

[0046] Figure 6 A schematic diagram showing a stimulator and a target object in a third stage according to an embodiment of the present disclosure is shown.

[0047] Figure 7 An exemplary circuit diagram of a stimulator and electrodes according to an embodiment of the present disclosure is shown.

[0048] Figure 8 A waveform graph of an output voltage in a first example process of a stimulator according to an embodiment of the present disclosure is shown.

[0049] Fig. 9 A waveform graph of the output voltage in a second example process of the stimulator according to an embodiment of the present disclosure is shown.

[0050] Fig.10 A waveform graph of an output voltage and an alarm signal in a third example process of a stimulator according to an embodiment of the present disclosure is shown.

[0051] Fig.11 A schematic flow chart of a method for controlling a stimulator according to an embodiment of the present disclosure is shown.

[0052] Fig.12 A schematic flow chart of a method for controlling a stimulator according to an embodiment of the present disclosure is shown.

[0053] Fig.13 A schematic flow chart of a method for controlling a stimulator according to an embodiment of the present disclosure is shown.

[0054] Fig.14 A schematic flow chart of a method for controlling a stimulator according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0055] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0056] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0057] Figure 1 FIG. 1 is a schematic block diagram of a brain-computer interface system 1000A according to an embodiment of the present disclosure. The brain-computer interface system 1000A can be used for closed-loop control, disease treatment, or any other appropriate scenario. Figure 1 As shown, the brain-computer interface system 1000A may include electrodes 110 and 120 and an interface chip 200A, and the interface chip 200A includes a stimulator 210, a processor 220, and a signal collector 230. The processor 220 may be, for example, an on-chip processing system. However, it is understood that the stimulator 210, the processor 220, and the signal collector 230 may also be arranged in other appropriate ways, for example, the stimulator 210, the processor 220, and the signal collector 230 may be arranged in chips or integrated circuits separated from each other, or the processor 220 and the signal collector 230 may be incorporated into or integrated into the stimulator 210, and the present disclosure does not impose any restrictions on this.

[0058] The signal collector 230 can obtain EEG signals or neural signals from the brain or nervous system of the target object 2000 through the electrode 120 and send the collected signals to the processor 220. The processor 220 processes and analyzes the received signals. Then, the processor 220 can issue instructions to the stimulator 210 according to the results of the processing and analysis, and the stimulator 210 applies the desired stimulating pulses to the corresponding brain area or the corresponding neural area through the electrode 110. Just as an example, in the application of closed-loop control, the processor 220 can determine the action intention of the brain area of ​​the brain by processing and analyzing the EEG signal, and then the processor 220 can issue instructions to the stimulator 210 according to the determined action intention, and the stimulator 210 applies the stimulating pulses corresponding to the action intention to the corresponding brain area through the electrode 110, thereby stimulating the target object 2000 to complete the action. In addition, just as an example, in the application of disease treatment, the processor 220 determines whether the target object 2000 is currently in an illness state by processing and analyzing the EEG signal. If it is determined that the target object 2000 is in an illness state, the processor 220 sends an instruction to the stimulator 210 to apply stimulating pulses to the corresponding brain area via the electrode 110 according to pre-set parameters, thereby intervening in the occurrence of the disease.

[0059] Figure 2 FIG. 1 shows a schematic block diagram of a brain-computer interface system 1000B according to an embodiment of the present disclosure. The brain-computer interface system 1000B can be used for open-loop control, sensory reconstruction, or other appropriate scenarios. Figure 2 As shown, the brain-computer interface system 1000B may include an electrode 110, an interface chip 200B and a sensor 300, and the interface chip 200B includes a stimulator 210 and a processor 220. The processor 220 may be, for example, an on-chip processing system. It is understood that the stimulator 210, the processor 220 and the sensor 300 may also be arranged in other appropriate ways, for example, the sensor 300 may be arranged in the interface chip 200B, or the processor 220 and the sensor 300 may be arranged in chips or integrated circuits separated from each other, or at least one of the processor 220 and the sensor 300 may be incorporated or integrated into the stimulator 210, and the present disclosure does not impose any restrictions on this.

[0060] The sensor 300 can collect environmental information from the external environment and convert it into an electrical signal to provide to the processor 220. The processor 220 processes and converts the received electrical signal to obtain stimulation information that the brain or nervous system can respond to. Then, the stimulator 210 can apply stimulation to the corresponding area of ​​the brain or nervous system via the electrode 110 according to the stimulation information provided by the processor 220. Just as an example, in the application of sensory reconstruction, the sensor 220 can convert the sensory information including vision, hearing, smell, taste, touch, etc. in the external environment into electrical signals, and after the electrical signal is processed and converted by the processor 220, the stimulator 210 applies stimulating pulses to the corresponding brain area or nerve area through the electrode 110, so that the target object 2000 produces or reconstructs vision, hearing, smell, taste or touch.

[0061] As mentioned above, in some applications, such as closed-loop control and sensory reconstruction, stimulators need to use higher density electrodes to obtain high-precision control signals or reconstruct high-resolution sensory signals. Compared with previous electrodes (such as millimeter-level electrodes used for disease treatment), this high-density electrode is smaller in size, for example, the diameter may be less than 100 microns, which leads to a reduction in the contact area between the electrode and the biological tissue and an increase in the interface impedance. Therefore, the stimulator needs to apply a larger voltage to the electrode accordingly, which may be greater than 10V. When the applied voltage is getting higher and higher, the operation process of the stimulator faces some safety issues. These safety issues include biological tissue safety, electrode safety, and device failure safety. The current conventional solutions are insufficient in solving the safety problems of stimulators.

[0062] The embodiments of the present disclosure propose an improved stimulator and a scheme for controlling the stimulator. In the improved scheme, by detecting the residual charge and performing active charge balancing and passive charge balancing in sequence when the residual charge is too high, the charge remaining on the electrode can be accurately eliminated to avoid damage to the electrode and biological tissue due to long-term charge accumulation, and can prevent instantaneous large current from damaging biological tissue during the charge balancing process. In addition, the improved scheme can also monitor the electrode voltage at different operating stages of the stimulator to determine whether a short circuit fault occurs and whether there is an electrochemical safety risk, thereby improving and ensuring the safety of the stimulator during multiple operating processes.

[0063] Figure 3 FIG. 2 shows a schematic block diagram of a stimulator 210 and an electrode 110 according to an embodiment of the present disclosure. Figure 3As shown, the stimulator 210 may include a drive circuit 211, which is coupled to the electrode 110. As an example, the electrode 110 may be attached or implanted in biological tissue, and the drive circuit 211 may be controlled to apply an electric pulse of positive charge polarity or negative charge polarity to the electrode 110, whereby the applied electric pulse produces neural stimulation in the brain or nervous system. Through the drive circuit 211, the voltage of the electric pulse can be effectively increased, thereby generating a current pulse with a voltage high enough to cope with a scenario with a high electrode impedance. In one embodiment, the drive circuit 211 may be coupled to a power supply 400, which may provide a higher voltage to the drive circuit 211 to generate an electric pulse sufficient to stimulate the nerves. Alternatively, the power supply 400 may also be incorporated into the drive circuit 211, and is therefore a part of the drive circuit 211 rather than being independently arranged. The power supply 400 may include an energy storage device such as a battery pack, a supercapacitor, a switching power supply connected to a utility grid or an energy storage device, or any other type of power supply facility, or any combination thereof.

[0064] The driving circuit 211 can also be controlled to perform charge recovery on the electrode 110. Specifically, after the stimulator 210 applies an electric pulse of a certain polarity to the biological tissue, the driving circuit 211 can continue to apply an electric pulse of opposite charge polarity to the biological tissue for charge recovery to offset the charge injected by the previous electric pulse. For example, the charge amount of the latter pulse can be equal to the charge amount of the previous pulse to ensure that the charge amount injected into the biological tissue is zero within a certain period of time.

[0065] In addition, the drive circuit 211 can be controlled to perform charge balance on the electrode 110. Specifically, after the stimulator 210 applies stimulation to the biological tissue, even if charge recovery is performed, due to the existence of various non-ideal effects, there may still be excessive residual charge at the electrode interface and in the biological tissue. Excessive charge that exists for a long time can cause damage to the biological tissue and the electrode. Therefore, the drive circuit 211 can perform a charge balancing operation to eliminate this residual charge. More specifically, the drive circuit 211 can perform active charge balancing or passive charge balancing, that is, the drive circuit 211 can apply one or more smaller electrical pulses of opposite polarity to the residual charge to the electrode 110 to actively offset the residual charge, or the drive circuit 211 can connect the electrode 110 to an appropriate reference potential to passively discharge the residual charge.

[0066] The stimulator 210 includes a detection circuit 212, which is coupled to the electrode 110. As an example, the detection circuit 212 can be connected to the line between the drive circuit 211 and the electrode 110, or directly connected to the electrode 110, so that the voltage of the electrode 110 can be detected, and the detected voltage can indicate different state parameters at different operation stages. For example, the electrode voltage detected by the detection circuit 212 can indicate the condition of the residual charge, or indicate whether there is a short circuit fault caused by device failure, or indicate whether there is an electrochemical safety risk. In one embodiment, the detection circuit 212 can attenuate or reduce the voltage in proportion, so that the detected voltage signal can be provided to the low voltage domain for subsequent processing and avoid excessively high voltage signals from damaging devices in the low voltage domain.

[0067] The stimulator 210 also includes a controller 213, which is coupled to the drive circuit 211 and the detection circuit 212. The controller 213 can be used to implement control for the drive circuit 211. In one embodiment, the controller 213 can be in a low voltage domain to process and analyze the detection signal, and the power supply 400 and the drive circuit 211 can be in a high voltage domain to provide stimulation pulses with a sufficiently high voltage. Some or all of the control functions of the controller 213 can be implemented in software or firmware, for example, in a program code that can be executed by a computing device and these program codes can be stored in a storage device and executed by the computing device, or in a hardware circuit such as a digital circuit or an analog circuit, or in a combination of software and hardware circuits. Some examples of the controller 213 include, but are not limited to, a central processing unit (CPU), a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), an application specific standard product (ASSP), a system on a chip (SOC), a complex programmable logic device (CPLD), and any suitable processor, controller, etc. In addition, although the controller 213 of the stimulator 210 shown in the figure and the processor 220 mentioned above are two separate control devices, the controller 213 can also be combined with the processor 220 into one control device, which can also implement the embodiments of the present disclosure.

[0068] Figure 4 A schematic diagram of a stimulator 210 and a target object 2000 in the first stage according to an embodiment of the present disclosure is shown. In the first stage, the previous round of electrical pulse stimulation (which includes, for example, the first electrical pulse and the second electrical pulse described below) applied to the target object 2000 has been completed or a period of time has passed, and the stimulator 210 has been reset and is waiting for the next round of electrical pulse stimulation. Figure 4 The operation of the stimulator 210 in the first stage will be described.

[0069] In the first stage, the controller 213 of the stimulator 210 obtains the voltage of the electrode 110 from the detection circuit 212. As an example, the voltage of the electrode 110 indicates the condition of the residual charge in the electrode interface and the biological tissue, and may also indicate the voltage abnormality caused by the short circuit. In some embodiments of the present disclosure, the controller 213 may obtain the electrode voltage at a predetermined frequency during the period when the stimulator 210 does not apply an electric pulse to the electrode 110. In this way, in a low-risk scenario where the stimulator 210 does not apply a stimulating electric pulse, the state of the residual charge of the electrode 110 can be actively monitored regularly at certain time intervals, thereby promptly discovering excessive charge accumulation, thereby ensuring safety and avoiding additional power consumption caused by real-time monitoring.

[0070] The controller 213 compares the acquired electrode voltage with the first threshold voltage during the period when the stimulator 210 does not apply an electric pulse to the electrode 110. As an example, the controller 213 may be pre-set or stored with a first threshold voltage. The first threshold voltage is related to the safety upper limit of the residual charge, and if the magnitude of the electrode voltage exceeds the magnitude of the first threshold voltage, it means that the residual charge is excessive and may cause damage to the biological tissue or the electrode. In some embodiments, the first threshold voltage may include a first value associated with the residual positive charge and a second value associated with the residual negative charge. In this case, the electrode voltage may be compared with the first value and the second value, respectively. Alternatively, the first threshold voltage may also be an absolute value, and the comparison between the electrode voltage and the first threshold voltage may be a comparison of absolute values.

[0071] If the controller 213 determines that the magnitude of the electrode voltage is not lower than the magnitude of the first threshold voltage, the controller 213 generates a first control signal to control the drive circuit 211 to apply at least one electric pulse to the electrode 110, and the charge polarity of the at least one electric pulse is opposite to the charge polarity indicated by the electrode voltage. For example, if the electrode voltage is not lower than the first value associated with the residual positive charge or not higher than the second value associated with the residual negative charge, or if the absolute value of the electrode voltage is not lower than the first voltage threshold in the form of an absolute value, it means that the residual charge exceeds the safety threshold. If the residual charge exceeds the safety threshold and the charge polarity indicated by the electrode voltage is positive, the controller 213 can control the drive circuit 211 to send one or more electric pulses of negative charge polarity to the electrode 110 to offset the residual positive charge; if the residual charge exceeds the safety threshold and the charge polarity indicated by the electrode voltage is negative, the controller 213 can control the drive circuit 211 to send one or more electric pulses of positive charge polarity to the electrode 110 to offset the residual negative charge. Thus, the controller 213 can control the drive circuit 211 to actively charge balance the residual charge. The electric pulses used for this active charge balancing are usually small pulses or a series of pulses, which can safely eliminate the residual charge step by step when there is a large amount of residual charge and avoid the generation of instantaneous large current during the balancing process.

[0072] In some embodiments of the present disclosure, the controller 213 can determine at least one of the pulse width, pulse amplitude, pulse shape and pulse number of at least one electric pulse to be applied based on the electrode voltage. For example, the pulse width can be adjusted and determined according to the residual charge condition indicated by the electrode voltage, so as to more accurately offset the residual charge. It is understandable that the pulse amplitude, pulse shape or pulse number can also be adjusted based on the electrode voltage, or two, three or all of the pulse width, pulse amplitude and pulse number can be adjusted based on the electrode voltage at the same time. In one embodiment, the controller 213 can also dynamically adjust at least one of the pulse width, pulse amplitude, pulse shape and pulse number of the electric pulse according to the change of the electrode voltage during the application of at least one electric pulse. For example, after sending one or more electric pulses for offsetting the residual charge, the controller 213 can dynamically adjust the pulse width of the subsequent electric pulse according to the change of the residual charge indicated by the electrode voltage, which is conducive to more accurately actively applying the subsequent electric pulse and obtaining a better charge balance effect.

[0073] After applying the aforementioned at least one electric pulse, the controller 213 generates a second control signal to connect the electrode 110 to the reference potential. As an example, after active charge balancing, the residual charge in the electrode interface and the biological tissue is greatly reduced, but a small amount of charge may still exist. Thus, the controller 213 can control the drive circuit 211 to connect the electrode 110 to a specific reference potential for passive charge balancing. Passive charge balancing can fix the potential of the electrode to the reference potential, thereby completely discharging the remaining small amount of charge, which effectively improves the accuracy of charge balancing, and since the passive charge balancing is after the active charge balancing, the passive charge balancing discharges less charge and does not generate instantaneous large currents that damage biological tissues. In some embodiments of the present disclosure, the controller 213 determines the duration of connecting the electrode 110 to the reference potential based on the electrode voltage and the first control signal, and generates a second control signal based on the determined duration. Specifically, the electrode voltage indicates the amount of residual charge, and the controller 213 can estimate the amount of charge that the active charge balancing can offset based on the second control signal. Thus, the controller 213 can estimate the amount of charge that may still exist after active charge balancing through simple calculations, and thus determine the duration of passive charge balancing, that is, the duration required to discharge the remaining charge. In this way, charge balancing can be completed with higher accuracy and efficiency, and avoids the passive balancing time being too short and still having residual charge, or passive balancing taking too much time and resulting in low efficiency.

[0074] It can be seen that the controller 213 coupled to the detection circuit 212 can control the drive circuit 211 to achieve charge balance based on the detection voltage provided by the detection circuit 212. As a result, in the case of excessive charges in the electrode interface and biological tissue, timely processing and intervention can be carried out to eliminate these excess charges, which effectively avoids damage to biological tissues and electrodes due to stimulation and excessive residual charges during long-term stimulation. In addition, some current conventional schemes may generate instantaneous large currents in the process of eliminating residual charges, and such instantaneous large currents will have an adverse effect on biological tissues. The embodiments of the present disclosure adopt a method of first performing active charge balancing and then performing passive charge balancing in the charge balancing process, thereby reducing and avoiding the possibility of instantaneous large currents in the charge balancing process, and can completely eliminate residual charges with high precision, for example, the residual charge can be reduced to less than 0.1%.

[0075] Figure 5 2 shows a schematic diagram of a stimulator 210 and a target object 2000 in a second stage according to an embodiment of the present disclosure. In the second stage, the stimulator 210 applies electrical pulses to the target object 2000 to stimulate the brain or nervous system. Figure 5 The operation of the stimulator 210 in the second stage will be described.

[0076] In the second stage, the controller 213 obtains the voltage of the electrode 110 from the detection circuit 212. As an example, during the application of electrical pulse stimulation, if a short circuit occurs inside the drive circuit 211, all or part of the power supply voltage may be directly applied to the electrode 110, which may cause the electrode voltage to be too high. Therefore, by monitoring the electrode voltage, the controller 213 can determine whether a device failure or a short circuit occurs in the drive circuit 211 during operation.

[0077] The controller 213 generates a first stimulation signal to control the driving circuit 211 to apply a first electric pulse to the electrode 110, and the first electric pulse has a first charge polarity. For example, the first charge polarity can be a negative charge polarity, and the driving circuit 211 amplifies the first stimulation signal and applies an electric pulse of negative charge polarity to the brain or nervous system of the target object 2000 to perform neural stimulation on the target object 2000, thereby achieving the purposes of disease intervention, closed-loop control, or sensory reconstruction as described above. However, it is understood that the first charge polarity can also be a positive charge polarity, and the present disclosure is not limited to this.

[0078] During the application of the first electrical pulse to the electrode 110, the controller 213 compares the acquired electrode voltage with the second threshold voltage. As an example, the controller 213 may be pre-set or stored with a second threshold voltage. The first threshold voltage is related to the short-circuit protection voltage, and if the magnitude of the electrode voltage exceeds the magnitude of the second threshold voltage, it means that a short-circuit fault or device failure has occurred in the drive circuit 211, resulting in part or all of the power supply voltage being applied to the electrode 110. In some embodiments, the second threshold voltage may include a third value associated with the short-circuit protection positive voltage and a fourth value associated with the short-circuit protection negative voltage. In this case, the electrode voltage may be compared with the third value and the fourth value, respectively. Alternatively, the second threshold voltage may also be an absolute value, and the comparison between the electrode voltage and the second threshold voltage may be an absolute value comparison.

[0079] If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the controller 213 disconnects the electrical connection between the power supply 400 of the drive circuit 211 and the electrode 110, and generates a third control signal to connect the electrode 110 to the reference potential. For example, if the electrode voltage is not lower than the third value associated with the short-circuit protection positive voltage or not higher than the fourth value associated with the short-circuit protection negative voltage, or if the absolute value of the electrode voltage is not lower than the second voltage threshold in the form of an absolute value, it means that the magnitude of the electrode voltage exceeds the safety threshold. The electrode voltage exceeding the safety threshold means that a device failure or a short circuit failure may have occurred, which may be harmful to the safety of biological tissue. Therefore, the controller 213 can cut off the power supply 400 of the drive circuit 211, or put the electrical connection between the power supply 400 and the electrode 110 in a high impedance state to avoid excessive voltage from continuing to be applied to the electrode 110. In addition, the controller 213 also connects the electrode 110 to the reference potential to discharge the charges accumulated in and around the electrode 110, thereby avoiding damage to the biological tissue caused by these accumulated charges. In some embodiments of the present disclosure, the third control signal is used to connect the electrode 110 to the reference potential in a current-limited manner. Specifically, when the electrode 110 is connected to the reference potential to discharge the accumulated charge, if the accumulated charge is too much, this passive charge balance may cause an instantaneous large current. Therefore, the third control signal generated by the controller 213 can discharge the charge in a current-limiting manner to limit the current size to a safe range.

[0080] Figure 6 2 shows a schematic diagram of a stimulator 210 and a target object 2000 in the third stage according to an embodiment of the present disclosure. In the second stage, the stimulator 210 applies electric pulses of opposite charge polarity to the target object 2000 for charge recovery. Figure 6 The operation of the stimulator 210 in the third stage will be described.

[0081] In the third stage, the controller 213 generates a second stimulation signal to control the drive circuit 211 to apply a second electric pulse to the electrode 110, and the second electric pulse has a second charge polarity opposite to the first charge polarity. For example, in the case where the first charge polarity is negative, the second charge polarity can be a positive charge polarity, and the drive circuit 211 amplifies the second stimulation signal and applies an electric pulse of positive charge polarity to the brain or nervous system of the target object 2000 to charge the previously applied electric pulse of negative charge polarity. In one embodiment, the amount of charge applied by the second electric pulse can be equal to the amount of charge applied by the first electric pulse, thereby ensuring that the total amount of charge applied after two electric pulses is zero.

[0082] During the application of the second electric pulse to the electrode 110, the controller 213 compares the acquired electrode voltage with the second threshold voltage; if the magnitude of the electrode voltage is not less than the magnitude of the second threshold voltage, the controller 213 disconnects the electrical connection between the power supply 400 of the drive circuit 211 and the electrode 110, and generates a third control signal to connect the electrode 110 to the reference potential. Specifically, similar to the operation during the application of the first electric pulse, if the controller 213 detects that the electrode voltage exceeds the threshold, it means that a short circuit fault or device failure occurs in the drive circuit 211 during the transmission of the second electric pulse. In order to prevent the excessively high voltage from continuing to be applied to the electrode 110, the controller 213 can cut off the power supply 400, or put the electrical connection between the power supply and the electrode 110 into a high impedance state, and connect the electrode 110 to the reference potential to discharge the accumulated charge, thereby avoiding damage to the biological tissue and the electrode and ensuring the safety of the target object 2000.

[0083] In some embodiments of the present disclosure, during the period between applying the first electric pulse and applying the second electric pulse, the controller 213 may compare the acquired electrode voltage with the third threshold voltage; and if the magnitude of the electrode voltage is not less than the magnitude of the third threshold voltage, the controller 213 generates an alarm signal. Specifically, the third threshold voltage is related to electrochemical safety. During the interval period after the second stage and before the third stage, the controller 213 can determine whether the charge injected by applying the first electric pulse during the second stage causes the voltage change to be too large and exceeds the electrochemical safety threshold by monitoring the electrode voltage. In general, the voltage change generated by a single charge injection should be within the safe electrochemical window. It is usually undesirable for the voltage to exceed the safe electrochemical window, which will cause electrolysis and electrochemical reactions of water and may have adverse effects on biological tissues. However, in some cases, some stimulation operations may be required to inject a moderately excessive amount of charge to make the voltage exceed the safe electrochemical window. Therefore, when the electrode voltage exceeds the electrochemical safety threshold, the controller 213 can only issue an alarm signal instead of directly intervening. The operator or other equipment can perform appropriate subsequent operations according to the feedback alarm signal, such as resetting the stimulation parameters or performing charge balance in time to avoid the continuous occurrence of electrochemical reactions. Similar to the first threshold voltage and the second threshold voltage, in some embodiments, the third threshold voltage includes a fifth value associated with the electrochemical safety positive voltage and a sixth value associated with the electrochemical safety negative voltage. In this case, the electrode voltage can be compared with the fifth value and the sixth value, respectively. If the electrode voltage is not lower than the fifth value associated with the electrochemical safety positive voltage or not higher than the sixth value associated with the electrochemical safety negative voltage, it means that a single charge injection exceeds the electrochemical safety range. Alternatively, the third threshold voltage can also be an absolute value, and the comparison between the electrode voltage and the third threshold voltage can be a comparison of absolute values. When comparing, if the absolute value of the electrode voltage is not lower than the second voltage threshold in the form of an absolute value, it means that a single charge injection exceeds the electrochemical safety range.

[0084] Figure 7 FIG. 2 shows an exemplary circuit diagram of a stimulator 210 and an electrode 110 according to an embodiment of the present disclosure. Figure 7As shown, the controller 213 may include a processing device 2131 and a comparison circuit 2132. As an example, the processing device 2131 may include a processing unit 2131A and a digital-to-analog conversion unit 2131B. The processing unit 2131A may be used to generate a first stimulation signal and a second stimulation signal, and output pulse amplitude, width and shape information to the digital-to-analog conversion unit 2131B as required to provide a specific pulse waveform. The digital-to-analog conversion unit 2131B converts the stimulation signal into an analog current pulse signal and outputs it to the drive circuit 211. In addition, the processing unit 2131A also receives an output signal from the comparison circuit 2132, and performs a threshold judgment to issue a first control signal and a second control signal to perform active charge balancing and passive charge balancing, or cut off the power supply and perform passive charge balancing (for example, in a current limiting manner), or issue an alarm signal to indicate that the charge injection has caused an electrochemical safety problem.

[0085] The comparison circuit 2132 includes a first multiplexer 2132A, a first comparator 2132B, a second multiplexer 2132C, and a second comparator 2132D. The first multiplexer 2132A and the first comparator 2132B are used to compare the safety threshold when the residual charge is positive, the short-circuit voltage may be positive, and the single injected charge is positive, while the second multiplexer 2132C and the second comparator 2132D are used to compare the safety threshold when the residual charge is negative, the short-circuit voltage may be negative, and the single injected charge is negative.

[0086] The first multiplexer 2132A is configured to output one of a first value th_cb_p associated with a residual positive charge, a third value th_sc_p associated with a short-circuit protection positive voltage, and a fifth value th_ec_p associated with an electrochemical safety positive voltage. For example, the first multiplexer 2132A can select one of the first value th_cb_p, the third value th_sc_p, and the fifth value th_ec_p according to a selection enable signal at its selection terminal (not shown), which can be provided by a processing device 2132 or other appropriate device. For example, the first multiplexer 2132A is made to output the first value th_cb_p in the aforementioned first stage, the third value th_sc_p is output in the aforementioned second stage and the third stage, and the fifth value th_ec_p is output in the interval period between the second stage and the third stage. The first comparator 2132B is configured to compare the electrode voltage detected by the detection circuit 212 with the value th_p output by the first multiplexer 2132A, and provide the comparison result to the processing device 2131. The processing device 2131 can decide whether to perform a charge balancing operation, a short circuit protection operation or an electrochemical safety prompt according to the comparison result.

[0087] The second multiplexer 2132C is configured to output one of the second value th_cb_n associated with the residual negative charge, the fourth value th_sc_n associated with the short-circuit protection negative voltage, and the sixth value th_ec_n associated with the electrochemical safety negative voltage. Similar to the first multiplexer 2132A, the second multiplexer 2132C can output the second value th_cb_n, the fourth value th_sc_n, or the sixth value th_ec_n based on the selection enable signal, for example, the second multiplexer 2132C outputs the second value th_cb_n in the aforementioned first stage, outputs the fourth value th_sc_n in the aforementioned second stage and the third stage, and outputs the sixth value th_ec_n in the interval period between the second stage and the third stage. The second comparator 2132D is configured to compare the electrode voltage detected by the detection circuit 212 with the value th_n output by the second multiplexer 2132C, and provide the comparison result to the processing device 2131. The processing device 2131 can decide whether to perform a charge balancing operation, a short circuit protection operation, or an electrochemical safety prompt according to the comparison result.

[0088] Understandably, Figure 7 The controller 213 is merely exemplary and not restrictive, and the controller 213 may be implemented in any other suitable manner. For example, the functionality of the comparison circuit 2132 may also be implemented in software or firmware and implemented by the processing device 2131, or the digital-to-analog conversion unit 2131B may be integrated into the processing unit 2131A without the need for a separate setting.

[0089] The driving circuit 211 may include a first current source 2111 coupled between the power supply potential and the electrode 110 and a second current source 2112 coupled between the ground potential and the electrode 110. Specifically, the first current source 2111 and the second current source 2112 may generate corresponding electric pulses to be applied to the electrode 110 under the control of the processing device 2131. For example, the first current source 2111 generates a current pulse of positive charge polarity according to a first stimulation signal from the processing device 2131, and the second current source 2112 generates a current pulse of negative charge polarity according to a second stimulation signal from the processing device 2131. In one embodiment, the branches where the first current source 2111 and the second current source 2112 are located may also be provided with switches respectively, so as to turn off the branch where the other current source is located when one current source generates a current pulse.

[0090] The driving circuit 211 may further include a passive balancing branch 2113, which includes a first switch 2113A, a second switch 2113B, and a current limiting element 2113C. The first switch 2113A and a parallel circuit formed by the second switch 2113B and the current limiting element 2113C are connected in series between the electrode 110 and the reference potential V ref , and the controller 213 is configured to control the on and off of the first switch 2113A and the second switch 2113B. For example, in the first stage, when the passive charge balancing is performed after the active charge balancing, the controller 213 can turn on the first switch 2113A and the second switch 2113B at the same time, so as to directly connect the electrode 110 to the reference potential V ref , thereby the remaining small amount of charge can be quickly discharged in a short time, and since the amount of charge is small, it will not cause instantaneous large current. In the second and third stages, in the event of a short circuit, the controller 213 can turn on the first switch 2113A and turn off the second switch 2113B after cutting off the power supply, so that the electrode 110 is connected to the reference potential V via the current limiting element 2113C. ref , which effectively limits the current in passive balance, thereby avoiding excessive current and damaging biological tissue. In one embodiment, the resistance of the current limiting element 2113C is adjustable, for example, it can be adjusted by the controller 213 or other devices. As an example, the current limiting element 2113C can be a variable resistor. Thus, the resistance of the current limiting element 2113C can be adjusted according to the charge to be discharged. For example, the resistance of the current limiting element 2113C can be increased when the charge is too large to avoid instantaneous large current, or the resistance of the current limiting element 2113C can be reduced when the charge is small to avoid the discharge of the charge too slowly and cause low efficiency.

[0091] Understandably, Figure 7 The implementation manner of the driving circuit 211 shown in FIG. 2 is merely exemplary and non-limiting, and the driving circuit 211 may be implemented in any other appropriate manner.

[0092] The detection circuit 212 may include a plurality of voltage-dividing resistors Z0 and Z1 connected in series. Specifically, the controller 213 may be in a low-voltage domain, and the power supply 400 and the drive circuit 211 may be in a high-voltage domain, so when an electric pulse is applied, the electrode voltage in the high-voltage domain is relatively high. Through two or more voltage-dividing resistors, the electrode voltage can be proportionally attenuated or reduced to a lower voltage, which is conducive to analyzing and processing the detection signal in the low-voltage domain, and avoiding the high-voltage signal from damaging the device in the low-voltage domain. By placing the controller 213 in the low-voltage domain and the drive circuit 211 in the high-voltage domain, the signal can be processed and analyzed with lower voltage and power consumption, and a stimulation pulse with a sufficiently large voltage can be provided. In an alternative embodiment, the detection circuit 212 may include a plurality of voltage-dividing capacitors connected in series. By using capacitor voltage division, a voltage attenuation effect similar to that of resistor voltage division can be achieved, and the DC component can also be effectively isolated, thereby protecting the device in the low-voltage domain. In the implementation mode where the detection circuit 212 uses multiple voltage-dividing capacitors, the detection circuit 212 needs to cooperate with the passive balancing branch 2113. For example, before using the stimulator 210, the passive balancing branch 2113 is used to discharge the residual charge in the voltage-dividing capacitor in advance to avoid affecting subsequent operations. It can be understood that Figure 7 The implementation manner of the detection circuit 212 shown in FIG. 2 is merely exemplary and not limiting, and the detection circuit 212 may be implemented in any other suitable manner.

[0093] In some embodiments of the present disclosure, the stimulator 210 may further include a passive protection device 214, which is coupled between the drive circuit 211 and the electrode 110. The resistance of the passive protection device 214 increases as the current flowing through the passive protection device 214 increases or the voltage across the passive protection device 214 increases. In this way, the passive protection device 214 can become a high-resistance state when a short circuit occurs and a large current or high voltage occurs, thereby avoiding excessive voltage or current from being applied to the electrode 211 to protect the safety of biological tissue and the electrode. In one embodiment, the passive protection device 214 can be a self-fusing device, such as an electronic fuse, and can be fused when the current flowing through itself exceeds the fusing threshold to achieve a protection function. In one embodiment, the passive protection device 214 can be coupled between the first current source 2111 and the electrode 110. For example, when the stimulator 210 is working normally, the resistance of the passive protection device 214 is very low, so it will not affect the output of the stimulation electric pulse. If the first current source 2111 coupled to the power supply potential is short-circuited due to failure, the passive protection device 214 can change the circuit between the power supply potential and the electrode 110 to a high impedance state or cut it off, thereby preventing the power supply potential from being directly connected to the electrode 110.

[0094] There are obvious benefits to using passive protection devices such as self-fuse devices in the stimulator 210. Specifically, in some conventional schemes, a coupling capacitor is inserted between the stimulator and the electrode, so that even if a short circuit occurs, as long as the coupling capacitor is not broken down, the high voltage with safety risks will not be applied to the electrode and biological tissue. However, in order to ensure that most of the charge output by the stimulator is injected into the biological tissue through the electrode, rather than being lost on the coupling capacitor, the capacitance value of the coupling capacitor needs to be much larger than the equivalent capacitance in the electrode model. Considering that the equivalent capacitance in the electrode model is generally more than tens of nF, the capacitance value of the coupling capacitor is usually in the order of μF. This coupling capacitor cannot be integrated on-chip because it is too large. In contrast, the use of passive protection devices such as self-fuse devices can greatly reduce the occupied area. For example, the occupied area of ​​some self-fuse devices is only 1 / 25000 of the coupling capacitor, thereby effectively reducing the space and area occupation and improving the integration of the device.

[0095] Figure 8 FIG. 2 shows a waveform graph of the output voltage of the stimulator 210 in a first example process according to an embodiment of the present disclosure. Figure 8 As shown, in the TP1 period, the first stimulation signal generated by the controller 213 outputs a constant negative current pulse as the first electrical pulse to the electrode 110 via the drive circuit 211. Due to the capacitive characteristics of the electrode 110, the electrode voltage gradually decreases over time. In this period, since no short circuit occurs, the stimulator 210 does not perform any short circuit protection operation. In the TP2 period, the first electrical pulse ends, and the voltage on the electrode 110 is caused by the charge injected by the first electrical pulse. Since the voltage change is within the electrochemical safety range, the controller 213 of the stimulator 210 does not generate any alarm signal. In the TP3 period, the second stimulation signal generated by the controller 213 outputs a constant positive current pulse as the second electrical pulse to the electrode 110 via the drive circuit 211. Similarly, due to the capacitive characteristics of the electrode, the electrode voltage gradually rises over time, and since no short circuit occurs, the stimulator 210 does not perform a short circuit protection operation. In the TP4 and TP5 periods, the second electrical pulse ends, and the stimulator 210 performs a charge balancing operation to eliminate residual charge. The stimulator 210 first performs active charge balancing in the TP4 period. Since the polarity of the residual charge after the second electric pulse is positive and exceeds the safety threshold, the controller 213 controls the driving circuit 211 to output a series of electric pulses of negative charge polarity with small amplitude and small pulse width to the electrode 110 until the amount of residual charge is gradually reduced to below a certain threshold. Then, the stimulator 210 performs passive charge balance in the TP5 period, and after a period of time, the potential of the electrode 110 drops to the reference potential.

[0096] Fig. 9FIG. 2 shows a waveform graph of the output voltage of the stimulator 210 in a second example process according to an embodiment of the present disclosure. Figure 8 The first example process, in Fig. 9 In the embodiment, the stimulator 210 outputs a first electric pulse of negative charge polarity to the electrode 110 during the TP1 period, and performs an electrochemical safety test during the TP2 period. During the TP1 period and the TP2 period, no short circuit fault occurs and no electrochemical safety problem occurs. During the TP6 period, the stimulator 210 outputs a second electric pulse of positive charge polarity to the electrode 110. At the moment t1 in the TP6 period, the stimulator 210 has a short circuit fault caused by device failure, such as a short circuit of the first current source 2111, so a large amount of charge is injected into the biological tissue through the electrode 110, causing the electrode voltage to rise rapidly. At the moment t2 at the end of the TP6 period, the controller 213 finds that the electrode voltage exceeds the safety threshold through the detection circuit 212, and performs a short circuit protection operation. As a result, the electrical connection between the power supply and the electrode 110 is disconnected, for example, the controller 213 actively controls the switch on the branch where the first current source 2111 is located to disconnect to cut off the power supply, and / or the passive protection device 214 is placed in a high impedance state or blown. During the T7 period, the controller 213 connects the electrode 110 to the reference potential via the current limiting element 2113C for charge balance. Within tens of microseconds, the voltage of the electrode 110 returns to the normal voltage, thus avoiding the long-term accumulation of a large amount of charge in the biological tissue.

[0097] Fig.10 FIG. 2 shows a waveform graph of the output voltage and the alarm signal in the third example process of the stimulator 210 according to an embodiment of the present disclosure. Figure 8 The process is similar to the first example. Fig.10 In the example, the stimulator 210 applies a first electric pulse to the electrode 110 during the TP1 period, performs an electrochemical safety test during the TP2 period, applies a second electric pulse to the electrode 110 during the TP3 period, and performs active charge balancing and passive charge balancing during the TP4 and TP5 periods, respectively. The difference from the first example process is that during the TP1 period, the stimulator 210 injects too much charge into the biological tissue in the process of applying the first electric pulse, resulting in excessive voltage changes at the electrode interface. During the TP2 period, the controller 213 of the stimulator 210 finds that the voltage exceeds the electrochemical safety range, and therefore generates a high-level pulse signal as an alarm signal to warn or remind the operator or other equipment.

[0098] Combined with the above Figures 1 to 10 , the stimulator 210 provided in the present application and the brain-computer interface systems 1000A and 1000B including the stimulator 210 are described in detail, and the following will be combined with Figures 11 to 14, describing the control method provided by the present application based on the above-mentioned stimulator 210.

[0099] Fig.11 FIG. 1 is a schematic flow chart of a method 1100 for controlling a stimulator 210 according to an embodiment of the present disclosure. The method 1100 may be performed in Figures 1 to 3 as well as Figure 7 The stimulator 210 is implemented in the embodiment of the present invention, and can be executed by the controller 213 of the stimulator 210, for example. Figures 1 to 3 as well as Figure 7 The various aspects described can be applied to method 1100. For the purpose of discussion, Figures 1 to 3 as well as Figure 7 To describe method 1100.

[0100] At block 1101, the controller 213 acquires the voltage of the electrode 110 coupled to the stimulator 210. In some embodiments, during a period when the stimulator 210 does not apply an electrical pulse to the electrode 110, the controller 213 acquires the electrode voltage at a predetermined frequency.

[0101] At block 1102, the controller 213 compares the acquired electrode voltage with a first threshold voltage during a period when the stimulator 210 does not apply an electrical pulse to the electrode 110. In some embodiments, the first threshold voltage includes a first value th_cb_p associated with residual positive charge and a second value th_cb_n associated with residual negative charge.

[0102] At block 1103 , the controller 213 determines whether the magnitude of the electrode voltage is not less than the magnitude of the first threshold voltage.

[0103] At block 1104, if the magnitude of the electrode voltage is not less than the magnitude of the first threshold voltage, the controller 213 generates a first control signal to control the drive circuit 211 of the stimulator 210 to apply at least one electrical pulse to the electrode 110, the charge polarity of the at least one electrical pulse being opposite to the charge polarity indicated by the electrode voltage. In some embodiments, the controller 213 determines at least one of a pulse width, a pulse amplitude, a pulse shape, and a pulse number of the at least one electrical pulse based on the electrode voltage, and generates the first control signal based on at least one of the determined pulse width, pulse amplitude, pulse shape, and pulse number.

[0104] At block 1105, after applying at least one electrical pulse, the controller 213 generates a second control signal to connect the electrode 110 to the reference potential V ref In some embodiments, the second control signal is used to connect the electrode 110 directly to the reference potential V ref In some embodiments, the controller 213 determines to connect the electrode 110 to the reference potential V based on the electrode voltage and the first control signal.ref and generating a second control signal based on the determined duration.

[0105] At block 1106, if the magnitude of the electrode voltage is below the magnitude of the first threshold voltage, the controller 213 continues to wait for generating the first stimulation signal.

[0106] Fig.12 FIG. 1 is a schematic flow chart of a method 1200 for controlling a stimulator 210 according to an embodiment of the present disclosure. The method 1200 may be performed in Figures 1 to 3 as well as Figure 7 The method 1200 is implemented in the stimulator 210 of the present invention and can be executed, for example, by the controller 213 of the stimulator 210. The method 1200 can be executed after or before the method 1100 or can be executed independently.

[0107] In block 1201 , the controller 213 generates a first stimulation signal to control the driving circuit 211 of the stimulator 210 to apply a first electrical pulse to the electrode 110 , the first electrical pulse having a first charge polarity.

[0108] At block 1202, during application of a first electrical pulse to the electrode 110, the controller 213 compares the acquired electrode voltage with a second threshold voltage. In some embodiments, the second threshold voltage includes a third value th_sc_p associated with a short protection positive voltage and a fourth value th_sc_n associated with a short protection negative voltage.

[0109] At block 1203 , the controller 213 determines whether the magnitude of the electrode voltage is not less than the magnitude of the second threshold voltage.

[0110] At block 1204, if the magnitude of the electrode voltage is not less than the magnitude of the second threshold voltage, the power supply 400 of the driving circuit 211 is disconnected from the electrode 110, and a third control signal is generated to connect the electrode 110 to the reference potential V ref In some embodiments, the third control signal is used to connect the electrode 110 to the reference potential V via the current limiting element 2113C. ref .

[0111] In block 1205 , if the magnitude of the electrode voltage is lower than the magnitude of the second threshold voltage, the controller 213 controls the driving circuit 211 to continue applying the first electrical pulse to the electrode 110 .

[0112] Fig.13 FIG. 1 is a schematic flow chart of a method 1300 for controlling a stimulator 210 according to an embodiment of the present disclosure. The method 1300 may be performed in Figures 1 to 3 as well as Figure 7The method 1300 is implemented in the stimulator 210 of the embodiment of the present invention, and can be executed by the controller 213 of the stimulator 210, for example. The method 1300 can be executed after the method 1200.

[0113] At block 1301 , the controller 213 generates a second stimulation signal to control the driving circuit 211 to apply a second electric pulse to the electrode 110 , the second electric pulse having a second charge polarity opposite to the first charge polarity.

[0114] At block 1302 , during application of a second electrical pulse to the electrode 110 , the controller 213 compares the acquired electrode voltage to a second threshold voltage.

[0115] At block 1303 , the controller 213 determines whether the magnitude of the electrode voltage is not less than the magnitude of the second threshold voltage.

[0116] At block 1304, if the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the controller 213 disconnects the power supply 400 of the drive circuit 211 from the electrode 110 and generates a third control signal to connect the electrode 110 to the reference potential V ref .

[0117] In block 1305 , if the magnitude of the electrode voltage is lower than the magnitude of the second threshold voltage, the controller 213 controls the driving circuit 211 to continue applying the second electrical pulse to the electrode 110 .

[0118] Fig.14 FIG. 1 is a schematic flow chart of a method 1400 for controlling a stimulator 210 according to an embodiment of the present disclosure. The method 1400 may be performed in Figures 1 to 3 as well as Figure 7 The method 1400 is implemented in the stimulator 210 of the embodiment of the present invention, and can be executed by the controller 213 of the stimulator 210, for example. The method 1400 can be executed after the method 1100 and before the method 1200.

[0119] At block 1401, during a period between applying the first electrical pulse and applying the second electrical pulse, the controller 213 compares the acquired electrode voltage with a third threshold voltage. In some embodiments, the third threshold voltage includes a fifth value th_ec_p associated with an electrochemically safe positive voltage and a sixth value th_ec_n associated with an electrochemically safe negative voltage.

[0120] At block 1402 , the controller 213 determines whether the magnitude of the electrode voltage is not less than the magnitude of a third threshold voltage.

[0121] At block 1403 , if the magnitude of the electrode voltage is not below the magnitude of the third threshold voltage, the controller 213 generates an alarm signal.

[0122] At block 1404, if the magnitude of the electrode voltage is below the magnitude of the third threshold voltage, the controller 213 continues to wait for generating a second stimulation signal.

[0123] Through the teachings given in the above description and the related drawings, many modifications and other embodiments of the present disclosure given here will be recognized by those skilled in the art of the present disclosure. Therefore, it is to be understood that the embodiments of the present disclosure are not limited to the specific embodiments disclosed, and modifications and other embodiments are intended to be included in the scope of the present disclosure. In addition, although the above description and the related drawings describe the example embodiments in the context of some example combinations of parts and / or functions, it should be appreciated that different combinations of parts and / or functions can be provided by alternative embodiments without departing from the scope of the present disclosure. In this regard, for example, other combinations of parts and / or functions that are different from those clearly described above are also expected to be within the scope of the present disclosure. Although specific terms are used here, they are only used in a general and descriptive sense and are not intended to be limited.

Claims

1. A method for controlling a stimulator (210), comprising: Acquiring a voltage of an electrode (110) coupled to the stimulator (210); During a period when the stimulator (210) does not apply an electrical pulse to the electrode (110), comparing the acquired electrode voltage with a first threshold voltage; If the magnitude of the electrode voltage is not less than the magnitude of the first threshold voltage, a first control signal is generated to control a drive circuit (211) of the stimulator (210) to apply at least one electric pulse to the electrode (110), the charge polarity of the at least one electric pulse being opposite to the charge polarity indicated by the electrode voltage; as well as After applying the at least one electrical pulse, a second control signal is generated to connect the electrode (110) to a reference potential (V ref ).

2. The method according to claim 1, further comprising: generating a first stimulation signal to control the driving circuit (211) to apply a first electric pulse to the electrode (110), wherein the first electric pulse has a first charge polarity; During application of the first electrical pulse to the electrode (110), comparing the acquired electrode voltage with a second threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the power supply (400) of the drive circuit (211) is electrically disconnected from the electrode (110), and a third control signal is generated to connect the electrode (110) to a reference potential (V ref ).

3. The method according to claim 2, further comprising: generating a second stimulation signal to control the driving circuit (211) to apply a second electric pulse to the electrode (110), the second electric pulse having a second charge polarity opposite to the first charge polarity; During application of the second electrical pulse to the electrode (110), comparing the acquired electrode voltage with the second threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the power supply (400) of the drive circuit (211) is electrically disconnected from the electrode (110), and a third control signal is generated to connect the electrode (110) to a reference potential (V ref ).

4. The method according to claim 2 or 3, wherein the second control signal is used to connect the electrode (110) directly to a reference potential (V ref ), and the third control signal is used to connect the electrode (110) to a reference potential (V ref ).

5. The method according to claim 3, further comprising: During a period between applying the first electric pulse and applying the second electric pulse, comparing the acquired electrode voltage with a third threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the third threshold voltage, an alarm signal is generated.

6. The method according to claim 1, wherein acquiring a voltage of an electrode (110) coupled to the stimulator (210) comprises: During a period when the stimulator (210) does not apply an electrical pulse to the electrode (110), the electrode voltage is acquired at a predetermined frequency.

7. The method of claim 1 , wherein generating the first control signal comprises: determining at least one of a pulse width, a pulse amplitude, a pulse shape, and a pulse number of the at least one electrical pulse based on the electrode voltage; as well as The first control signal is generated based on at least one of the determined pulse width, pulse amplitude, pulse shape and number of pulses.

8. The method of claim 1 , wherein generating the second control signal comprises: Based on the electrode voltage and the first control signal, determining to connect the electrode (110) to a reference potential (V ref ) duration; as well as Based on the determined duration, the second control signal is generated. 9 . The method of claim 1 , wherein the first threshold voltage comprises a first value (th_cb_p) associated with residual positive charge and a second value (th_cb_n) associated with residual negative charge.

10. The method of claim 2 or 3, wherein the second threshold voltage comprises a third value (th_sc_p) associated with a short circuit protection positive voltage and a fourth value (th_sc_n) associated with a short circuit protection negative voltage. 11 . The method of claim 5 , wherein the third threshold voltage comprises a fifth value (th_ec_p) associated with an electrochemically safe positive voltage and a sixth value (th_ec_n) associated with an electrochemically safe negative voltage.

12. A method of controlling a stimulator (210), comprising: Acquiring a voltage of an electrode (110) coupled to the stimulator (210); generating a first stimulation signal to control a driving circuit (211) of the stimulator (210) to apply a first electric pulse to the electrode (110), the first electric pulse having a first charge polarity; During application of the first electrical pulse to the electrode (110), comparing the acquired electrode voltage with a second threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the power supply (400) of the drive circuit (211) is electrically disconnected from the electrode (110), and a third control signal is generated to connect the electrode (110) to a reference potential (V ref ).

13. The method according to claim 12, further comprising: generating a second stimulation signal to control the driving circuit (211) to apply a second electric pulse to the electrode (110), the second electric pulse having a second charge polarity opposite to the first charge polarity; During application of the second electrical pulse to the electrode (110), comparing the acquired electrode voltage with the second threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the power supply (400) of the drive circuit (211) is electrically disconnected from the electrode (110), and a third control signal is generated to connect the electrode (110) to a reference potential (V ref ).

14. The method according to claim 12 or 13, wherein the second threshold voltage comprises a third value (th_sc_p) associated with a short circuit protection positive voltage and a fourth value (th_sc_n) associated with a short circuit protection negative voltage.

15. The method according to claim 12 or 13, wherein the third control signal is used to connect the electrode (110) to the reference potential (V ref ).

16. A method of controlling a stimulator (210), comprising: Acquiring a voltage of an electrode (110) coupled to the stimulator (210); generating a first stimulation signal to control the driving circuit (211) to apply a first electric pulse to the electrode (110), wherein the first electric pulse has a first charge polarity; generating a second stimulation signal to control the driving circuit (211) to apply a second electric pulse to the electrode (110), the second electric pulse having a second charge polarity opposite to the first charge polarity; During a period between applying the first electric pulse and applying the second electric pulse, comparing the acquired electrode voltage with a third threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the third threshold voltage, an alarm signal is generated. 17 . The method of claim 16 , wherein the third threshold voltage comprises a fifth value (th_ec_p) associated with an electrochemically safe positive voltage and a sixth value (th_ec_n) associated with an electrochemically safe negative voltage.

18. A stimulator (210), comprising: A drive circuit (211) adapted to be coupled to the electrode (110); A detection circuit (212) adapted to be coupled to the electrode (110) and configured to detect an electrode voltage; A controller (213) is coupled to the driving circuit (211) and the detecting circuit (212) and is configured to: Obtaining the voltage of the electrode (110); During a period when the stimulator (210) does not apply an electrical pulse to the electrode (110), comparing the acquired electrode voltage with a first threshold voltage; If the magnitude of the electrode voltage is not lower than the magnitude of the first threshold voltage, a first control signal is generated to control the drive circuit (211) to apply at least one electric pulse to the electrode (110), wherein the charge polarity of the at least one electric pulse is opposite to the charge polarity indicated by the electrode voltage; as well as After applying the at least one electrical pulse, a second control signal is generated to connect the electrode (110) to a reference potential (V ref ).

19. The stimulator (210) according to claim 18, wherein the controller (213) is further configured to: generating a first stimulation signal to control the driving circuit (211) to apply a first electric pulse to the electrode (110), wherein the first electric pulse has a first charge polarity; During application of the first electrical pulse to the electrode (110), comparing the acquired electrode voltage with a second threshold voltage; and If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the power supply (400) of the drive circuit (211) is electrically disconnected from the electrode (110), and a third control signal is generated to connect the electrode (110) to a reference potential (V ref ).

20. The stimulator (210) according to claim 19, wherein the controller (213) is further configured to: generating a second stimulation signal to control the driving circuit (211) to apply a second electric pulse to the electrode (110), the second electric pulse having a second charge polarity opposite to the first charge polarity; During application of the second electrical pulse to the electrode (110), comparing the acquired electrode voltage with the second threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the power supply (400) of the drive circuit (211) is electrically disconnected from the electrode (110), and a third control signal is generated to connect the electrode (110) to a reference potential (V ref ).

21. The stimulator (210) according to claim 20, wherein the controller (213) is further configured to: During a period between applying the first electric pulse and applying the second electric pulse, comparing the acquired electrode voltage with a third threshold voltage; and If the magnitude of the electrode voltage is not lower than the magnitude of the third threshold voltage, an alarm signal is generated.

22. The stimulator (210) according to claim 21, wherein the controller (213) comprises a processing device (2131) and a comparison circuit (2132), the comparison circuit (2132) comprising: a first multiplexer (2132A) configured to output one of a first value (th_cb_p) associated with a residual positive charge, a third value (th_sc_p) associated with a short circuit protection positive voltage, and a fifth value (th_ec_p) associated with an electrochemical safety positive voltage; a first comparator (2132B) configured to compare the electrode voltage detected by the detection circuit (212) with the value (th_p) output by the first multiplexer (2132A), and provide the comparison result to the processing device (2131); a second multiplexer (2132C) configured to output one of a second value (th_cb_n) associated with a residual negative charge, a fourth value (th_sc_n) associated with a short circuit protection negative voltage, and a sixth value (th_ec_n) associated with an electrochemical safety negative voltage; as well as The second comparator (2132D) is configured to compare the electrode voltage detected by the detection circuit (212) with the value (th_n) output by the second multiplexer (2132C), and provide the comparison result to the processing device (2131).

23. A stimulator (210), comprising: A drive circuit (211) adapted to be coupled to the electrode (110); A detection circuit (212) adapted to be coupled to the electrode (110) and configured to detect an electrode voltage; A controller (213) is coupled to the driving circuit (211) and the detecting circuit (212) and is configured to: Obtaining the voltage of the electrode (110); generating a first stimulation signal to control the driving circuit (211) to apply a first electric pulse to the electrode (110), wherein the first electric pulse has a first charge polarity; During application of the first electrical pulse to the electrode (110), comparing the acquired electrode voltage with a second threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, the power supply (400) of the drive circuit (211) is electrically disconnected from the electrode (110), and a third control signal is generated to connect the electrode (110) to a reference potential (V ref ).

24. The stimulator (210) according to claim 23, wherein the controller (213) is further configured to: generating a second stimulation signal to control the driving circuit (211) to apply a second electric pulse to the electrode (110), the second electric pulse having a second charge polarity opposite to the first charge polarity; During application of the second electrical pulse to the electrode (110), comparing the acquired electrode voltage with the second threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the second threshold voltage, disconnecting the power supply (400) of the drive circuit (211) from the electrode (110), and generating a third control signal to connect the electrode (110) to a reference potential (V ref ).

25. The stimulator (210) according to claim 23 or 24, wherein the third control signal is used to connect the electrode (110) to a reference potential (V ref ).

26. A stimulator (210), comprising: A drive circuit (211) adapted to be coupled to the electrode (110); A detection circuit (212) adapted to be coupled to the electrode (110) and configured to detect an electrode voltage; A controller (213) is coupled to the driving circuit (211) and the detecting circuit (212) and is configured to: Obtaining the voltage of the electrode (110); generating a first stimulation signal to control the driving circuit (211) to apply a first electric pulse to the electrode (110), wherein the first electric pulse has a first charge polarity; generating a second stimulation signal to control the driving circuit (211) to apply a second electric pulse to the electrode (110), the second electric pulse having a second charge polarity opposite to the first charge polarity; During a period between applying the first electric pulse and applying the second electric pulse, comparing the acquired electrode voltage with a third threshold voltage; as well as If the magnitude of the electrode voltage is not lower than the magnitude of the third threshold voltage, an alarm signal is generated.

27. The stimulator (210) according to any one of claims 18, 23 and 26, further comprising: A passive protection device (214) is coupled between the drive circuit (211) and the electrode (110), and the resistance of the passive protection device (214) increases as the current flowing through the passive protection device (214) increases or the voltage across the passive protection device (214) increases.

28. A stimulator (210) according to claim 27, wherein the driving circuit (211) includes a first current source (2111) coupled between a power supply potential and the electrode (110) and a second current source (2112) coupled between the ground potential and the electrode (110), and the passive protection device (214) is coupled between the first current source (2111) and the electrode (110).

29. The stimulator (210) of claim 27, wherein the passive protection device (214) comprises a self-fuse device configured to blow when a current flowing through the self-fuse device exceeds a blowing threshold.

30. A stimulator (210) according to any one of claims 18, 23 and 26, wherein the driving circuit (211) comprises a passive balancing branch (2113), the passive balancing branch (2113) comprising a first switch (2113A), a second switch (2113B) and a current limiting element (2113C), the first switch (2113A) and a parallel circuit formed by the second switch (2113B) and the current limiting element (2113C) being connected in series between the electrode (110) and the reference potential (V ref ), the resistance of the current limiting element (2113C) is adjustable, and the controller (213) is configured to control the on and off of the first switch (2113A) and the second switch (2113B).

31. The stimulator (210) according to any one of claims 18, 23 and 26, wherein the detection circuit (212) comprises a plurality of voltage-dividing resistors or a plurality of voltage-dividing capacitors (Z0, Z1) connected in series.

32. A brain-computer interface system (1000A, 1000B), comprising: Electrode (110); as well as A stimulator (210) according to any one of claims 18 to 31.

33. A chip (200), comprising: Processor (220); as well as A stimulator (210) according to any one of claims 18 to 31.