Portable brain-computer device with multi-channel EEG acquisition and EEG stimulation functions

By using switch arrays to select data channels in the brain-computer device, switching between EEG and electrical stimulation tasks is achieved, the problem of limited performance and function of portable EEG machines is solved, and the functions of EEG signal acquisition and electrical stimulation are realized. Expanding, improving the accuracy of analysis and judgment of EEG signals.

CN114795243BActive Publication Date: 2024-11-22NUOZHU TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210524549.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-11-22
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

Due to its large size and single function, the existing bedside EEG machine is difficult to meet the needs of intracranial EEG monitoring in epilepsy patients. The performance and function of the portable EEG machine are limited, so it is impossible to achieve EEG signal acquisition and electrical stimulation at the same time. Extension of functions.

Method used

A brain-computer device is designed, using a switch array to select data channels to realize switching of EEG acquisition tasks or EEG stimulation tasks. The same data channel is used to apply to different tasks, expand the number of data channels and expand the functions to make it It has functions of electroencephalographic signal acquisition and electrical stimulation.

Benefits of technology

It realizes the function expansion of the portable brain computer device, and can simultaneously collect and stimulate EEG signals, improves the utilization efficiency of data channels, supports multiple acquisition and stimulation modes, and enhances the closed-loop regulation and control capabilities of EEG signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114795243B_ABST
    Figure CN114795243B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a portable brain-computer device with multi-channel EEG acquisition and EEG stimulation functions, the device comprising: an electrode unit, a switch array, an acquisition function unit, a stimulation function unit and a control unit, the control unit being used to: in response to an EEG acquisition task, control one or more switches in the switch array, connect the acquisition function unit with the electrode, and control the acquisition function unit to acquire EEG signals according to an acquisition mode; and / or in response to an EEG stimulation task, control one or more switches in the switch array, connect the stimulation function unit with the electrode, and control the stimulation function unit to output electrical stimulation to the electrode according to a stimulation mode. According to the device of the embodiment of the present disclosure, the switch array is used to select the tasks performed by each data channel, so that the same data channel can be applied to different tasks, which is conducive to expanding the functions and enables the portable brain-computer device to have the functions of EEG signal acquisition and electrical stimulation at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a portable brain-computer device with multi-channel EEG acquisition and EEG stimulation functions. Background Art

[0002] In recent years, EEG signal acquisition based on invasive intracranial electrodes has been a key area of ​​focus in the development of brain-computer interface technology. Recording EEG signals through intracranial electrodes avoids the low-pass filtering effect of human tissue structures such as the skull and scalp, and can obtain EEG signals with a wider frequency range and stronger signal strength. At the same time, the design of the electrodes can collect local field potential signals of multi-neuron discharges, and can also collect electrical signals of single neuron cells, laying an important data foundation for brain-computer interface related applications. However, due to the complexity of invasive surgery and high safety risks, it is currently only used for patients who need craniotomy.

[0003] Epilepsy is currently the second largest neurological disease in China, second only to headaches. About 30% of epilepsy patients need to be treated through surgical intervention. Among them, medium- and long-term (several days to weeks) scalp and intracranial EEG monitoring of epilepsy patients is the key to treatment. In related technologies, sEEG (stereoelectroencephalography) is usually used to implant dozens of electrodes in the heads of epilepsy patients, and use bedside EEG machines to collect EEG signals from patients for several weeks to obtain EEGs. Finally, clinicians use image recognition methods to determine the patient's epileptogenic focus and develop treatment and surgical plans.

[0004] However, the bedside EEG machines currently widely used in clinical practice are unable to meet the needs of patients' intracranial EEG monitoring due to their large size and single function. Summary of the invention

[0005] The present disclosure proposes a brain-computer device.

[0006] According to one aspect of the present disclosure, a brain-computer device is provided, comprising: an electrode unit, a switch array, an acquisition function unit, a stimulation function unit and a control unit; the control unit is used to: in response to an EEG acquisition task, control one or more switches in the switch array to connect the acquisition function unit with the electrodes in the electrode unit, and control the acquisition function unit to acquire the EEG signals acquired by the electrodes according to an acquisition mode corresponding to the EEG acquisition task; and / or in response to an EEG stimulation task, control one or more switches in the switch array to connect the stimulation function unit with the electrodes in the electrode unit, and control the stimulation function unit to output electrical stimulation to the electrodes according to a stimulation mode corresponding to the EEG stimulation task.

[0007] In a possible implementation, the switch includes a primary switch, and the primary switch is used to: select a connection state between the electrode and the switch array so that the electrode performs the EEG acquisition task or the EEG stimulation task.

[0008] In a possible implementation, the switch includes a secondary switch for selecting a connection state between the switch array and the acquisition function unit according to the acquisition mode when the electrode performs the EEG acquisition task.

[0009] In a possible implementation, the switch includes a secondary switch for selecting a connection state between the switch array and the stimulation functional unit according to the stimulation mode when the electrode performs the brain electrical stimulation task.

[0010] In a possible implementation, the acquisition mode includes a unipolar acquisition mode, and the control unit is further used to: control the primary switch of the switch corresponding to the first electrode so that the first electrode is connected to the acquisition branch in the switch array, and control the secondary switch of the switch corresponding to the first electrode so that the acquisition branch is connected to the acquisition functional unit; control the primary switch of the switch corresponding to the second electrode so that the second electrode is connected to the acquisition branch in the switch array, and control the secondary switch of the switch corresponding to the second electrode so that the acquisition branch is connected to the reference circuit; wherein the first electrode and the second electrode are electrodes located at preset positions of the brain, respectively.

[0011] In a possible implementation, the acquisition mode includes a bipolar differential acquisition mode, and the control unit is further used to: control the primary switch of the switch corresponding to the first electrode so that the first electrode is connected to the acquisition branch in the switch array, and control the secondary switch of the switch corresponding to the first electrode so that the acquisition branch is connected to the acquisition functional unit; control the primary switch of the switch corresponding to the second electrode so that the second electrode is connected to the acquisition branch in the switch array, and control the secondary switch of the switch corresponding to the second electrode so that the acquisition branch is connected to the acquisition functional unit; wherein the first electrode and the second electrode are electrodes located at preset positions of the brain, respectively.

[0012] In a possible implementation manner, the first electrode and the second electrode are respectively connected to a positive voltage signal acquisition interface and a negative voltage signal acquisition interface in the acquisition function unit.

[0013] In a possible implementation, the stimulation mode includes an active stimulation mode, and the control unit is further used to: control the primary switch of the switch corresponding to the third electrode so that the third electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the third electrode so that the stimulation branch is connected to the stimulation function unit; control the primary switch of the switch corresponding to the fourth electrode so that the fourth electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the fourth electrode so that the stimulation branch is connected to the ground wire; the third electrode is an electrode located at a preset position in the brain, so that the electrical stimulation generated by the stimulation function unit can reach the preset position, and the fourth electrode is an electrode located at a preset position in the brain or on the body surface.

[0014] In one possible implementation, the active stimulation mode includes an active charge balanced bipolar stimulation mode, in which the fourth electrode is located at a preset position in the brain; or the active stimulation mode includes an active charge balanced monopolar stimulation mode, in which the fourth electrode is located on the body surface.

[0015] In a possible implementation, the stimulation mode includes a passive stimulation mode, and the control unit is further used to: control the primary switch of the switch corresponding to the third electrode so that the third electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the third electrode so that the stimulation branch is connected to the stimulation function unit; control the primary switch of the switch corresponding to the fourth electrode so that the fourth electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the fourth electrode so that the stimulation branch is connected to the ground wire; control the stimulation function unit to generate electrical stimulation; control the secondary switch of the switch corresponding to the third electrode and the secondary switch of the switch corresponding to the fourth electrode to be connected to a short circuit; the third electrode is an electrode located at a preset position in the brain, so that the electrical stimulation generated by the stimulation function unit can reach the preset position, and the fourth electrode is an electrode located at the preset position in the brain or on the body surface.

[0016] In one possible implementation, the passive stimulation mode includes a passive charge balanced bipolar stimulation mode, in which the fourth electrode is located at a preset position in the brain; or the passive stimulation mode includes a passive charge balanced monopolar stimulation mode, in which the fourth electrode is located on the body surface.

[0017] In a possible implementation, the control unit is further configured to: obtain an electrical stimulation tail at least according to a waveform feature of the electrical stimulation; and obtain a target signal according to the collected EEG signal and the electrical stimulation tail.

[0018] In a possible implementation, the control unit is further used to: slice the target signal to obtain multiple signal segments; obtain power spectra of the multiple signal segments; and determine the brain state corresponding to the signal segment based on the power spectrum and a preset energy threshold.

[0019] According to the brain-computer device of the embodiment of the present disclosure, a switch array is used to select the task performed by each data channel, that is, to select an EEG acquisition task or an EEG stimulation task, so that the same data channel can be applied to different tasks, which is beneficial to expand the number of data channels in a single task and to expand the functions, so that the portable brain-computer device can have the functions of EEG signal acquisition and electrical stimulation at the same time.

[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification, and these drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure;

[0022] Figure 1 A block diagram of a brain-computer device according to an embodiment of the present disclosure is shown;

[0023] Figure 2 A schematic diagram showing an application of a brain-computer device according to an embodiment of the present disclosure is shown;

[0024] Figure 3 A schematic diagram showing a control unit according to an embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram showing a collection function unit according to an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram showing a collection front-end chip according to an embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram showing a stimulation functional unit according to an embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram showing a communication unit according to an embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram showing a switch according to an embodiment of the present disclosure;

[0030] Fig. 9 A schematic diagram showing a monopolar acquisition mode according to an embodiment of the present disclosure;

[0031] Fig.10 A schematic diagram showing a bipolar differential acquisition mode according to an embodiment of the present disclosure;

[0032] Fig.11 A schematic diagram showing a bipolar stimulation mode according to an embodiment of the present disclosure;

[0033] Fig.12 A schematic diagram showing a monopolar stimulation mode according to an embodiment of the present disclosure;

[0034] Fig.13 A schematic diagram of an application of a switch array according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0035] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0036] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0037] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0038] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0039] In the related art, the bedside EEG machine mainly includes: electrode junction box, EEG amplifier, isolated power supply, processor, video camera, etc. Among them, the electrode junction box and EEG amplifier of some models are integrated designs. In terms of power supply, the bedside EEG machine is powered by an isolated power supply, and ensures that all parts are wired to the same ground. The function of the isolated power supply is to provide a stable and low-noise power supply for the bedside EEG machine. In terms of data transmission and storage, the EEG amplifier host is connected to the processor and transmits data through interfaces such as USB interface or LAN network interface. Usually, the USB interface only supports EEG machines with a low number of channels. For EEG machines with more than 100 channels, the LAN network interface is mainly used, and data is transmitted through the TCP / IP protocol. In terms of data storage, the collected EEG signals are usually stored in the storage medium of the processor. Other peripherals, such as video monitoring and electrical stimulation modules, are connected to the system in a certain way according to needs. This type of bedside EEG machine is bulky and not portable. It cannot monitor the user's EEG signals in real time, nor can it stimulate the user in real time and adjust the user's EEG signals. In order to adapt to portability, there are also models such as dynamic EEG machines and wireless EEG machines in the related technology. Among them, the dynamic EEG machine adopts a battery-powered and wearable design. The number of channels for collecting EEG signals is generally less than 32 channels, and the collected EEG signals are stored in a built-in memory card. Compared with the dynamic EEG machine, the wireless EEG machine has added wireless transmission functions such as Bluetooth and Wi-Fi, which can realize wireless transmission of data. In general, the portable EEG machine in the related technology has achieved portability compared to the EEG bedside system, but the performance and functions are greatly limited, making it difficult to expand, and it cannot support other functions, such as electrical stimulation.

[0040] In response to the above problems, the present disclosure relates to a brain-computer device that can achieve functional expansion of the brain-computer device while having characteristics such as portability, so that it also has functions such as EEG signal collection and electrical stimulation.

[0041] Figure 1 A block diagram of a brain-computer device according to an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the method comprises: an electrode unit 11, a switch array 12, a collection function unit 13, a stimulation function unit 14 and a control unit 15;

[0042] The control unit 15 is used for:

[0043] In response to an EEG acquisition task, controlling one or more switches in the switch array to connect the acquisition function unit to the electrodes in the electrode unit, and controlling the acquisition function unit to obtain the EEG signals acquired by the electrodes according to an acquisition mode corresponding to the EEG acquisition task; and / or

[0044] In response to an electroencephalographic stimulation task, one or more switches in the switch array are controlled to connect the stimulation function unit to the electrodes in the electrode unit, and the stimulation function unit is controlled to output electrical stimulation to the electrodes according to a stimulation mode corresponding to the electroencephalographic stimulation task.

[0045] According to the brain-computer device of the embodiment of the present disclosure, a switch array is used to select the task performed by each data channel, that is, to select an EEG acquisition task or an EEG stimulation task, so that the same data channel can be applied to different tasks, which is beneficial to expand the number of data channels in a single task and to expand the functions, so that the portable brain-computer device can have the functions of EEG signal acquisition and electrical stimulation at the same time.

[0046] In one possible implementation, the electrode unit 11 may include a plurality of electrodes arranged at preset positions on the body of the target object (for example, preset positions on the brain or preset positions on other parts), and a high-density connector connecting the electrodes to the data channels of the brain-computer device. The high-density connector may connect the plurality of electrodes to the switch array 12 to control the tasks to be performed by the electrodes (for example, whether to perform an EEG acquisition task or an EEG stimulation task) through the switch array 12. For example, by controlling the branch connected to the switch in each data channel (acquisition branch or stimulation branch), the task performed by the electrode corresponding to the data channel is controlled to be an EEG acquisition task or an EEG stimulation task.

[0047] In one possible implementation, the acquisition function unit 13 may include a functional unit for performing the acquisition function, for example, it may include functional units such as signal amplification, analog-to-digital conversion, and caching, which can be used to collect various types of signals such as EEG signals, ECG signals, and EMG signals, and convert them into digital signals that can be processed and analyzed by the processor.

[0048] In a possible implementation, the stimulation function unit 14 may output electrical stimulation through electrodes by active charge balancing and passive charge balancing.

[0049] In one possible implementation, the control unit 15 may include a variety of controllers, processors, etc. that can be used to control the switch array according to needs, thereby controlling each electrode to perform EEG acquisition tasks or EEG stimulation tasks, and controlling the stimulation function unit to output electrical stimulation on an appropriate data channel, or controlling the acquisition function unit to obtain EEG signals on an appropriate data channel, etc.

[0050] In a possible implementation, through the control of the control unit 15, each switch in the switch array can be controlled according to demand. For a certain switch, the switch can be controlled to connect the corresponding electrode to the corresponding interface in the acquisition function unit, or to the corresponding interface in the stimulation function unit, and the interface of the acquisition function unit is controlled to collect EEG signals or the interface of the stimulation function unit is controlled to output electrical stimulation. That is, through the control of the switch, it is possible to use the same electrode (that is, the same data channel) to perform multiple tasks (that is, EEG acquisition tasks or EEG stimulation tasks) at different times, thereby expanding the function of the brain-computer device, and at the same time, each data channel can be used more efficiently to expand the number of data channels used for EEG signal acquisition and for electrical stimulation. Further, by controlling multiple switches in the switch array, the EEG acquisition task and the EEG stimulation task can be performed simultaneously (for example, some electrodes can be controlled to be connected to the acquisition function unit, and some electrodes can be controlled to be connected to the stimulation function unit), and closed-loop regulation and control of the EEG signal can be achieved, thereby further expanding the function of the brain-computer device. For example, when outputting electrical stimulation, it is possible to detect the EEG signal to determine the effect of the electrical stimulation.

[0051] Figure 2 A schematic diagram of an application of a brain-computer device according to an embodiment of the present disclosure is shown. Figure 2 As shown, the brain-computer device may include the above-mentioned electrode unit 11, switch array 12, acquisition function unit 13, stimulation function unit 14 and control unit 15, wherein the control unit 15 may include a hardware drive controller, which may control the switch array 12, acquisition function unit 13 and stimulation function unit 14 based on the instructions of the central controller, so that the electrode is connected to the acquisition function unit 13 or the stimulation function unit 14, and the hardware drive controller may include FPGA (Field Programmable Gate Array) or low-power MCU (Microcontroller Unit), etc. The present disclosure does not limit the specific type of the hardware drive controller. The control unit 15 may also include a central controller and a computing unit, which is used to process and analyze the collected EEG signals according to a preset EEG signal analysis algorithm (for example, a software package written into the central controller), and generate instructions for controlling the hardware drive controller according to task requirements, and the central processing unit and the computing unit include FPGA or ARM-based CPU (central processing unit), etc. The present disclosure does not limit the specific type of the central processing unit and the computing unit.

[0052] Figure 3 A schematic diagram of a control unit according to an embodiment of the present disclosure is shown. Figure 3As shown, in the control unit, the central controller and the hardware driver controller can work together through dual cores. In the central controller part, task scheduling and management are implemented based on the operating system (for example, the Linux operating system). The task may include a TCP / IP protocol stack management task for implementing the networking and data transmission of the brain-computer device, such as supporting the communication protocol of the communication module, and sending the collected EEG signals, or receiving information or instructions. The task may include an EEG acquisition task for implementing the acquisition function and setting acquisition parameters, such as data channel setting, sampling rate setting, acquisition mode setting, etc. The task may include an EEG stimulation task for implementing the stimulation function and setting electrical stimulation parameters, such as channel setting, stimulation mode setting, stimulation current intensity setting, etc. The task may include an impedance test task for implementing functions such as electrode impedance testing and electroplating, and the impedance of the electrode and the preset position of the human body (for example, the preset position of the brain or skin) can be determined to more accurately analyze the EEG signal or input more accurate electrical stimulation. The tasks may include signal processing tasks for realizing the processing of collected EEG signals, and machine learning algorithms (e.g., software packages) may be written into them. For example, in the process of identifying epilepsy, algorithms such as epileptic seizure detection may be written into them, and filtering algorithms, tail removal algorithms, etc. may also be added.

[0053] In a possible implementation, in the hardware driver controller, the lowest level software is the hardware configuration directly related to the hardware (e.g., configuration software). After hardware virtualization, the hardware can be directly called by the upper level software. When the underlying hardware changes or is upgraded, only the configuration software of the lowest level hardware configuration and the hardware virtualization layer software need to be adjusted. The top level is the hardware driver, which is used to implement information interaction with the central controller and support the functions required for various tasks.

[0054] In a possible implementation, low power consumption can be achieved by optimizing the task scheduling logic of the operating system. For example, in the EEG acquisition task, after the acquisition parameters are set, the operating system enters a low-power sleep state, only starting the acquisition task timer, establishing the acquisition task clock signal, timing triggering the acquisition data reading function, and TCP / IP transmission function, etc. Similarly, other tasks can also be processed in a similar way to establish the clock, timing trigger, etc., to achieve the purpose of reducing power consumption.

[0055] In a possible implementation, the acquisition function unit receives the instruction of the hardware drive controller, and collects the EEG signal through the data channel corresponding to the instruction (the hardware drive controller can also control the switch corresponding to the data channel in the switch array to be connected to the acquisition branch, thereby realizing the function of EEG acquisition). The collected EEG signal can be transmitted to the hardware drive controller, and then transmitted to the computing unit for analysis and processing (i.e., high-throughput data stream 2), and the processed result can be transmitted to the communication unit (e.g., a wired or wireless communication unit supporting Ethernet, WIFI, Bluetooth, USB), and can be transmitted by the communication unit to other devices, or sent to the cloud for further analysis and processing, or the processed result can be stored. Alternatively, the EEG signal collected by the acquisition function unit can also be directly transmitted to the communication unit (i.e., high-throughput data stream 1), and the communication unit directly sends the EEG signal to other devices or the cloud for analysis or storage. When transmitted to the communication unit, the high-throughput data stream 1 can be converted using the data conversion interface, for example, according to the communication protocol, the high-throughput data stream 1 is converted to meet the communication requirements.

[0056] Figure 4 A schematic diagram of a collection function unit according to an embodiment of the present disclosure is shown, Figure 4 As shown, the acquisition function unit can receive instructions from the hardware driver controller to perform timing control, data channel selection, weak electrical signal amplification and digitization, data caching and other functions. The low-power FPGA plays the role of logic control, bridging, driving, data interface and other functions in the acquisition function unit. The low-power FPGA can receive instructions from the hardware driver controller through the data interface, and determine the timing and data channel through the logic control of the low-power FPGA, and drive the acquisition front-end chip through bridging and driving the low-power FPGA to collect EEG signals through the corresponding data channel in the acquisition front-end chip. Multiple acquisition front-end chips are controlled separately through the bridge circuit of the bridge and driving low-power FPGA, and the coordinated control of each acquisition front-end chip is achieved through parallel work enable, daisy chain and other topological structures, so as to perform acquisition processing based on the control logic or timing control of the data channel in each acquisition front-end chip. In terms of acquisition data caching, each acquisition front-end chip corresponds to a buffer. When all acquisition front-end chips work at the same time, the data can be stored in their respective buffers to improve the system acquisition efficiency, thereby achieving the purpose of high-frequency sampling. All buffers can be connected to the AHB bus, and the interface driver circuit on the data interface low-power FPGA provides an access interface to the external circuit. The external device (for example, the hardware driver controller, the central controller or the communication unit) completes the reading of the collected data from different channels according to the preset addressing method, thereby transmitting the collected EEG signals to the hardware driver controller, the central controller or the communication unit.

[0057] Figure 5A schematic diagram of a collection front-end chip according to an embodiment of the present disclosure is shown, Figure 5 As shown, the acquisition front-end chip may include multiple data channels and provide functions such as amplification and analog-to-digital conversion of EEG signals. An acquisition front-end chip may include multiple data channels, for example, 8, 16, 32 or 64 data channels. By combining multiple acquisition front-end chips, 512 channels, 1024 channels or even more channels can be obtained. The expansion of the number of channels by combining multiple chips is conducive to improving the robustness and maintainability of the acquisition function unit. In addition, the acquisition front-end chip can also set some acquisition parameters, such as signal input range, filter bandwidth, signal amplification factor, analog-to-digital conversion accuracy, common mode rejection ratio, input noise and other parameters. In order to reduce the impact of high-speed digital signals on analog signal acquisition, a digital interface with differential levels can be used, for example, to acquire differential signals (for example, acquisition 1+, acquisition 1- represents the positive and negative voltage acquisition channels of data channel 1, that is, differential signal acquisition channels). The acquisition front-end chip can enable the corresponding data channel through the multi-way selection switch according to the instructions of the bridge and driving low-power FPGA, and collect EEG signals based on the data channel, and amplify the weak EEG signals through the amplifier circuit, and then input them into the analog-to-digital conversion unit (ADC) for analog-to-digital conversion processing, so as to obtain digital EEG signals, and cache the digital EEG signals through the internal register or transmit the digital EEG signals to the cache of the acquisition function unit through the interface such as SPI for subsequent transmission and processing. Furthermore, the acquisition front-end chip can also provide a reference voltage source and a public REF network (for example, a reference circuit network), so that in a specific mode, the electrodes can be connected to the reference circuit.

[0058] Figure 6 A schematic diagram of a stimulation function unit according to an embodiment of the present disclosure is shown, Figure 6 As shown, the stimulation function unit may include a charge pump and a plurality of (for example, n, where n is a positive integer) voltage-controlled constant current sources of data channels. The charge pump may provide the voltage-controlled constant current source with the power required for outputting electrical stimulation, and the charge pump may provide each voltage-controlled constant current source with a voltage of a preset gear, for example, voltages of gears such as 1V, 2V, 3V, 4V, and 5V. The voltage-controlled constant current source may control the constant current output intensity by analog voltage, and a constant current of a specific intensity is the electrical stimulation, and the electrical stimulation may include positive current stimulation and negative current stimulation. The stimulation function unit may be controlled by a hardware drive controller, for example, to control the timing, control the data channel for outputting electrical stimulation (i.e., control the voltage-controlled constant current source for outputting electrical stimulation), control the voltage-controlled constant current source to output positive current stimulation or negative current stimulation, the form of the output electrical stimulation (for example, a triangle wave, a sine wave, an exponential wave, etc.), the frequency and intensity, etc.

[0059] In a possible implementation, the communication unit can send EEG signals or processing results of EEG signals to the outside, and can also receive information from other devices. For example, after sending EEG signals to other devices for processing, other devices can send the processing results back to the brain-computer device, and the brain-computer device can receive the processing results through the communication unit. Alternatively, the brain-computer device can receive instructions from other devices through the communication unit, for example, receiving instructions from a host computer, etc. The present disclosure does not limit the specific use of the communication unit.

[0060] Figure 7 A schematic diagram of a communication unit according to an embodiment of the present disclosure is shown. Figure 7 As shown, the communication unit shown may include a wireless communication unit (e.g., Figure 7 ) and / or a wired communication unit (e.g. Figure 7 The communication unit can establish a data connection with other units (for example, a central controller or an acquisition function unit) through a USB protocol interface. The central controller can transmit data through the USB protocol, so no additional data conversion interface is required. When the acquisition function unit transmits data to the network unit, if the USB protocol is not supported, an additional data conversion interface is required to support the USB protocol. In the wireless communication unit, Wi-Fi, 4G, 5G and other radio frequency communication modules can be used. In order to increase the capacity of the wireless channel, in the example, multi-band and multi-antenna technology can be used. For example, the communication unit supports 2.4G and 5G dual-band Wi-Fi and uses 2×2 MIMO antennas, that is, a total of 4 groups of antennas are required, which are connected to the radio frequency communication module through the transceiver circuit to realize data transceiver processing. The multi-antenna system solves the problems of insufficient wireless channel capacity and unstable wireless system. In the wired communication unit, a gigabit network port to USB interface chip can be used to realize wired data transmission, or directly output through the USB interface. In addition, the management of the TCP / IP protocol can be implemented in the central controller. Regardless of whether the wireless communication unit or the wired communication unit is selected, the data transmission scheduling for the central controller is consistent, except that the selected network port is different.

[0061] In a possible implementation, the brain-computer device may also include a power system, which may be a battery, and may provide power for other units and may also provide power required for electrical stimulation when outputting electrical stimulation.

[0062] In a possible implementation, the hardware driver controller can control whether the switch in the switch array is connected to the acquisition branch or the stimulation branch to control the data channel corresponding to the switch to perform the EEG acquisition task or the EEG stimulation task. For example, when a data channel performs an EEG acquisition task, the hardware driver controller can control the switch corresponding to the data channel in the switch array to connect the electrode to the interface in the acquisition function unit through the acquisition branch, and control the acquisition function unit to obtain the EEG signal obtained by the electrode in the data channel, and then perform signal amplification, analog-to-digital conversion and other processing to complete the EEG acquisition task of the data channel. For another example, when a data channel performs an EEG stimulation task, the hardware driver controller can control the switch corresponding to the data channel in the switch array to connect the electrode to the interface in the stimulation function unit through the stimulation branch, and control the stimulation function unit to output electrical stimulation of a specific frequency, specific intensity and specific waveform to complete the EEG stimulation task in the data channel.

[0063] Figure 8 A schematic diagram of a switch according to an embodiment of the present disclosure is shown. Figure 8 As shown, the switch is a switch corresponding to a certain data channel in the switch array, and one end of the switch is connected to a microneedle of a high-density connector, and the microneedle can be connected to an electrode set at a preset position of the target object's body (for example, a preset position on the brain or skin). The switch includes a primary switch, and the primary switch is used to: by selecting the connection state between the electrode and the switch array, the electrode performs the EEG acquisition task or the EEG stimulation task. That is, the primary switch is used to select which branch the electrode is connected to (for example, the stimulation branch, the acquisition branch, or the suspended state), and also to select which task the electrode performs (for example, the EEG acquisition task or the EEG stimulation task).

[0064] In a possible implementation, the switch further includes a secondary switch, which is used to select the connection state between the switch array and the stimulation function unit according to the stimulation mode when the electrode performs the brain electrical stimulation task. For example, the secondary switch is used to select connection with the voltage-controlled constant current source in the stimulation function unit, or to connect to the ground line (i.e., the common GND network) or the short circuit (i.e., the common short circuit network) according to the specific stimulation mode.

[0065] In a possible implementation, the switch includes a secondary switch, which is used to select the connection state between the switch array and the acquisition function unit according to the acquisition mode when the electrode performs the EEG acquisition task. For example, the secondary switch can be used to select the interface connection with the acquisition front-end chip in the acquisition function unit or the connection with the reference circuit (i.e., the common REF network) according to the specific acquisition mode.

[0066] In a possible implementation, the acquisition mode may include a unipolar acquisition mode and a bipolar differential acquisition mode.

[0067] In a possible implementation, in the monopolar acquisition mode, the control unit is further used to: control the primary switch of the switch corresponding to the first electrode so that the first electrode is connected to the acquisition branch in the switch array, and control the secondary switch of the switch corresponding to the first electrode so that the acquisition branch is connected to the acquisition functional unit; control the primary switch of the switch corresponding to the second electrode so that the second electrode is connected to the acquisition branch in the switch array, and control the secondary switch of the switch corresponding to the second electrode so that the acquisition branch is connected to the reference circuit; wherein the first electrode and the second electrode are electrodes located at preset positions of the brain, respectively.

[0068] Fig. 9 A schematic diagram showing a monopolar acquisition mode according to an embodiment of the present disclosure is shown as follows: Fig. 9 As shown, the two electrodes can be located at preset positions of the brain. Among them, the first switch of the switch corresponding to the first electrode (i.e., the active electrode for collecting EEG signals) is connected to the collection branch, and the second switch is connected to the collection function unit, so that the first electrode is connected to the interface of the collection front-end chip of the collection function unit, for example, connected to the positive voltage collection channel or the negative voltage collection channel. The first switch of the switch corresponding to the second electrode (i.e., the reference electrode providing the reference level) is connected to the collection branch, and the second switch is connected to the reference circuit, so that the second electrode is connected to the common REF network. Further, the hardware drive controller can control the collection function unit to obtain the EEG signals of the data channels corresponding to the above two electrodes, and perform amplification, analog-to-digital conversion and other processing, thereby completing the EEG collection task in the unipolar collection mode. In addition, multiple switches can be controlled to be connected in the above manner at the same time, so as to control multiple data channels to perform the EEG collection task in the unipolar collection mode. The present disclosure does not limit the number of data channels for performing the EEG collection task in the unipolar collection mode.

[0069] In a possible implementation, in a bipolar differential acquisition mode, the control unit is further used to: control a primary switch of a switch corresponding to a first electrode so that the first electrode is connected to an acquisition branch in the switch array, and control a secondary switch of a switch corresponding to the first electrode so that the acquisition branch is connected to the acquisition functional unit; control a primary switch of a switch corresponding to a second electrode so that the second electrode is connected to an acquisition branch in the switch array, and control a secondary switch of a switch corresponding to the second electrode so that the acquisition branch is connected to the acquisition functional unit; wherein the first electrode and the second electrode are electrodes located at preset positions of the brain, respectively.

[0070] Fig.10 A schematic diagram showing a bipolar differential acquisition mode according to an embodiment of the present disclosure is shown in FIG. Fig.10 As shown, the two electrodes can be located at preset positions of the brain. Among them, the first electrode and the second electrode are both active electrodes for collecting EEG signals, and the first-level switches of the switches corresponding to the two are connected to the collection branch, and the second-level switches are connected to the collection function unit, except that one second-level switch is connected to the interface of the positive voltage collection channel of the collection front-end chip of the collection function unit, and the other second-level switch is connected to the interface of the negative voltage collection channel of the collection front-end chip of the collection function unit, that is, the first electrode and the second electrode are respectively connected to the positive voltage signal collection interface (that is, the interface of the positive voltage collection channel) and the negative voltage signal collection interface (that is, the interface of the negative voltage collection channel) in the collection function unit. Further, the hardware drive controller can control the collection function unit to obtain the EEG signals of the data channels corresponding to the above two electrodes, and perform amplification, analog-to-digital conversion and other processing, thereby completing the EEG collection task in the bipolar differential collection mode. In addition, multiple switches can be controlled to be connected in the above manner at the same time, so as to control multiple data channels to perform the EEG collection task in the bipolar differential collection mode. The present disclosure does not limit the number of data channels for performing the EEG collection task in the bipolar differential collection mode.

[0071] In a possible implementation, the stimulation mode may include an active stimulation mode and a passive stimulation mode. The active stimulation mode may include an active charge-balanced bipolar stimulation mode and an active charge-balanced monopolar stimulation mode. The passive stimulation mode may include a passive charge-balanced bipolar stimulation mode and a passive charge-balanced monopolar stimulation mode.

[0072] In a possible implementation, in the active stimulation mode, the control unit is further used to: control the primary switch of the switch corresponding to the third electrode so that the third electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the third electrode so that the stimulation branch is connected to the stimulation function unit; control the primary switch of the switch corresponding to the fourth electrode so that the fourth electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the fourth electrode so that the stimulation branch is connected to the ground wire; the third electrode is an electrode located at a preset position in the brain, so that the electrical stimulation generated by the stimulation function unit can reach the preset position, and the fourth electrode is an electrode located at a preset position in the brain or on the body surface.

[0073] Fig.11 A schematic diagram showing a bipolar stimulation mode according to an embodiment of the present disclosure is shown as follows: Fig.11As shown, in the active charge-balanced bipolar stimulation mode, the third electrode and the fourth electrode are both active electrodes, the switches corresponding to the two electrodes and the switches are connected to the stimulation branch, the secondary switch of the switch corresponding to the third electrode is connected to the voltage-controlled constant current source of the stimulation function unit, the secondary switch of the switch corresponding to the fourth electrode is connected to the ground line (i.e., the common GND network), and the fourth electrode is located at a preset position in the brain. The hardware driver controller can control the voltage-controlled constant current source of the stimulation function unit to output electrical stimulation of a preset frequency, preset type, and preset intensity, thereby completing the brain electrical stimulation task in the active charge-balanced bipolar stimulation mode, so that the charge at the brain position where the third electrode and the fourth electrode are located is balanced through the above-mentioned active output electrical stimulation method, thereby stimulating the two positions and regulating the brain electrical signal.

[0074] Fig.12 A schematic diagram showing a monopolar stimulation mode according to an embodiment of the present disclosure is shown as follows: Fig.12 As shown, in the active charge-balanced monopolar stimulation mode, the third electrode is the active electrode, the fourth electrode is the reference electrode, the switches corresponding to the two electrodes and the switches are connected to the stimulation branch, the secondary switch of the switch corresponding to the third electrode is connected to the voltage-controlled constant current source of the stimulation function unit, the secondary switch of the switch corresponding to the fourth electrode is connected to the ground line (i.e., the common GND network), and the fourth electrode is located on the body surface to provide a reference level. The hardware driver controller can control the voltage-controlled constant current source of the stimulation function unit to output electrical stimulation of a preset frequency, preset type, and preset intensity, thereby completing the brain electrical stimulation task in the active charge-balanced monopolar stimulation mode, by actively outputting electrical stimulation to the brain position where the third electrode is located, so that the charge balance is achieved between the brain position where the third electrode is located and the body surface, thereby stimulating the position where the third electrode is located and regulating the brain electrical signal.

[0075] In a possible implementation, in the passive stimulation mode, the control unit is further used to: control the primary switch of the switch corresponding to the third electrode so that the third electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the third electrode so that the stimulation branch is connected to the stimulation function unit; control the primary switch of the switch corresponding to the fourth electrode so that the fourth electrode is connected to the stimulation branch in the switch array, and control the secondary switch of the switch corresponding to the fourth electrode so that the stimulation branch is connected to the ground wire; control the stimulation function unit to generate electrical stimulation; control the secondary switch of the switch corresponding to the third electrode and the secondary switch of the switch corresponding to the fourth electrode to be connected to a short circuit; the third electrode is an electrode located at a preset position in the brain, so that the electrical stimulation generated by the stimulation function unit can reach the preset position, and the fourth electrode is an electrode located at the preset position in the brain or on the body surface.

[0076] In one possible implementation, Fig.11 As shown, in the passive charge-balanced bipolar stimulation mode, the third electrode and the fourth electrode are both active electrodes, the switches corresponding to the two electrodes and the switches are connected to the stimulation branch, the secondary switch of the switch corresponding to the third electrode is connected to the voltage-controlled constant current source of the stimulation function unit, the secondary switch of the switch corresponding to the fourth electrode is connected to the ground line (i.e., the common GND network), and the fourth electrode is located at a preset position in the brain. The hardware driver controller can control the voltage-controlled constant current source of the stimulation function unit to output electrical stimulation of a preset frequency, preset type, and preset intensity, and after the output is completed, the secondary switch of the switch corresponding to the third electrode and the secondary switch of the switch corresponding to the fourth electrode are controlled to be connected to a short-circuit circuit (e.g., a common short-circuit network), thereby completing the brain electrical stimulation task in the passive charge-balanced bipolar stimulation mode, so that the charges at the brain positions where the third electrode and the fourth electrode are located are connected to the short-circuit circuit through the above-mentioned output electrical stimulation, and the charges at the two positions are balanced through the short-circuit connection, that is, the charges are moved in the short-circuit connection to achieve passive charge balance, thereby stimulating the two positions and regulating the brain electrical signals.

[0077] In one possible implementation, Fig.12 As shown, in the passive charge-balanced monopolar stimulation mode, the third electrode is the active electrode, the fourth electrode is the reference electrode, the switches corresponding to the two electrodes and the switches are connected to the stimulation branch, the secondary switch of the switch corresponding to the third electrode is connected to the voltage-controlled constant current source of the stimulation function unit, the secondary switch of the switch corresponding to the fourth electrode is connected to the ground line (i.e., the common GND network), and the fourth electrode is located on the body surface to provide a reference level. The hardware driver controller can control the voltage-controlled constant current source of the stimulation function unit to output electrical stimulation of a preset frequency, preset type, and preset intensity, and after the output is completed, the secondary switch of the switch corresponding to the third electrode and the secondary switch of the switch corresponding to the fourth electrode are controlled to be connected to a short-circuit circuit (e.g., a common short-circuit network), thereby completing the brain electrical stimulation task in the passive charge-balanced monopolar stimulation mode, so that the charge of the brain position where the third electrode is located and the body surface where the fourth electrode is located are connected to the short-circuit circuit through the above-mentioned output electrical stimulation, and the charge of the two positions is balanced through the short-circuit connection, that is, the charge is moved in the short-circuit connection to achieve passive charge balance, thereby stimulating the position where the third electrode is located and regulating the brain electrical signal.

[0078] Fig.13 FIG. 4 shows an application schematic diagram of a switch array according to an embodiment of the present disclosure. Fig.13 As shown, an 8-contact sEEG (stereoelectroencephalography) electrode (each contact can be used as an electrode) is connected to the brain-computer device through a high-density connector. By setting the switch array, the 8 contacts on the sEEG electrode can realize different functions.

[0079] In the example, by switching the switches of the switch array, the EEG acquisition task in the bipolar differential acquisition mode can be completed between sEEG contact 8 and sEEG contact 1, that is, the first-level switches of the switches corresponding to sEEG contact 8 and sEEG contact 1 are both connected to the acquisition branch, the second-level switch of the switch corresponding to sEEG contact 8 is connected to the negative voltage signal acquisition interface of the acquisition front-end chip of the acquisition function unit, and the second-level switch of the switch corresponding to sEEG contact 1 is connected to the positive voltage signal acquisition interface of the acquisition front-end chip of the acquisition function unit, and the EEG acquisition task in the bipolar differential acquisition mode is completed through the acquisition function unit.

[0080] In the example, by switching the switches of the switch array, the electroencephalogram (EEG) stimulation task in the active charge balanced bipolar stimulation mode can be completed between sEEG contact 4 and sEEG contact 5, that is, the primary switches of the switches corresponding to sEEG contact 4 and sEEG contact 5 are both connected to the stimulation branch, the secondary switch of the switch corresponding to sEEG contact 5 is connected to the voltage-controlled constant current source of the stimulation functional unit, and the secondary switch of the switch corresponding to sEEG contact 5 is connected to the ground wire (that is, the common GND network), so that electrical stimulation can be output under the control of the hardware drive controller to complete the electroencephalogram (EEG) stimulation task in the active charge balanced bipolar stimulation mode.

[0081] In a possible implementation, the above two modes are only examples, and the hardware driver controller can control the switch array and the acquisition function unit and the stimulation function unit to enable any number of data channels to perform EEG acquisition tasks in any acquisition mode, and / or enable any number of data channels to perform EEG stimulation tasks in any stimulation mode. Furthermore, EEG acquisition tasks and EEG stimulation tasks can be performed simultaneously (i.e., EEG acquisition tasks are performed through some data channels, and EEG stimulation tasks are performed through some data channels), or EEG acquisition tasks and EEG stimulation tasks are performed at different times through the same data channel. In the example, an EEG acquisition task can be performed through certain data channels, and the physiological condition of the brain can be judged based on the acquired EEG signals. For example, whether symptoms such as epilepsy and depression occur can be judged based on the EEG signals, and when necessary (for example, when symptoms occur), an EEG stimulation task can be performed through the above data channels or other data channels to adjust the EEG signals to control the above symptoms. Furthermore, after the EEG stimulation task is completed, the EEG acquisition task can be performed again to obtain the EEG signals and determine the effect of the stimulation (for example, whether the symptoms are controlled, etc.). In the above process, multiple data channels are used to repeatedly perform the EEG acquisition task and the EEG stimulation task.

[0082] In a possible implementation, in the above case, after the electrical stimulation is output, when the EEG signal is collected again, the electrical signal of the output electrical stimulation may be collected, thereby interfering with the judgment of the EEG signal. Therefore, it is necessary to remove the interference and judge the signal after the interference is removed. The control unit is also used to: obtain the electrical stimulation tail at least based on the waveform characteristics of the electrical stimulation; obtain the target signal based on the collected EEG signal and the electrical stimulation tail.

[0083] In a possible implementation, the above interference is the electrical stimulation tail, that is, the electrical signal generated by electrical stimulation in the brain may interfere with the electrical signal of the brain itself, thereby affecting the analysis and judgment of the EEG signal. Therefore, the electrical stimulation tail can be obtained based on the waveform characteristics of the electrical stimulation (for example, frequency, phase, amplitude, etc.), and the electrical stimulation tail can also be comprehensively determined based on other information, such as the characteristics of the impedance determined above, etc. The present disclosure does not limit the specific method of obtaining the electrical stimulation tail.

[0084] In one possible implementation, the interference of the electrical stimulation tail can be removed from the acquired EEG signal. For example, the acquired EEG signal can be subtracted from the electrical stimulation tail to obtain a target signal, that is, a target signal after removing the interference of the electrical stimulation tail.

[0085] In a possible implementation, the control unit is further used to: slice the target signal to obtain multiple signal segments; obtain power spectra of the multiple signal segments; and determine the brain state corresponding to the signal segment based on the power spectrum and a preset energy threshold.

[0086] In a possible implementation, the target signal is a signal after removing the interference of the electrical stimulation tail, and the noise in the signal is small and the accuracy is high. The target signal can be analyzed and judged, for example, to determine whether the above symptoms appear. For example, the target signal can be sliced ​​to obtain multiple signal segments, and each signal segment can be processed by wavelet transform and the like to obtain the power spectrum of each signal segment, and then based on the energy of the power spectrum and a preset energy threshold, the brain state corresponding to each signal segment is determined. For example, when the energy of the power spectrum is greater than or equal to the energy threshold, it can be determined that the brain has a symptom when the signal segment is detected. The present disclosure does not limit the specific method of obtaining the power spectrum.

[0087] According to the brain-computer device of the embodiment of the present disclosure, a switch array is used to select the task performed by each data channel, that is, to select the EEG acquisition task or the EEG stimulation task, so that the same data channel can be applied to different tasks, which is beneficial to expand the number of data channels in a single task and to expand the functions. It can enable the portable brain-computer device to have the functions of EEG signal acquisition and electrical stimulation at the same time, and can also remove the interference of electrical stimulation on the collected EEG signals, thereby improving the accuracy of analysis and judgment of EEG signals.

[0088] It can be understood that the above-mentioned various device embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned device of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.

[0089] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A brain-computer device, characterized in that: include: Electrode unit, switch array, acquisition function unit, stimulation function unit and control unit; The control unit is used for: In response to an EEG acquisition task, one or more switches in the switch array are controlled to connect the acquisition function unit with the electrodes in the electrode unit, and the acquisition function unit is controlled to acquire the EEG signals acquired by the electrodes according to an acquisition mode corresponding to the EEG acquisition task; and / or In response to an electroencephalographic stimulation task, controlling one or more switches in the switch array to connect the stimulation function unit to the electrodes in the electrode unit, and controlling the stimulation function unit to output electrical stimulation to the electrodes according to a stimulation mode corresponding to the electroencephalographic stimulation task; The switch comprises a primary switch and a secondary switch, wherein the primary switch is used to: select a connection state between the electrode and the switch array so that the electrode performs the EEG acquisition task or the EEG stimulation task; The secondary switch is used to select the connection state between the switch array and the acquisition function unit according to the acquisition mode when the electrode performs the EEG acquisition task; When the electrode performs the brain electrical stimulation task, the connection state between the switch array and the stimulation function unit is selected according to the stimulation mode.

2. The device according to claim 1, characterized in that The acquisition mode includes a monopolar acquisition mode, and the control unit is further configured to: Controlling a primary switch of a switch corresponding to a first electrode so that the first electrode is connected to a collection branch in the switch array, and controlling a secondary switch of a switch corresponding to the first electrode so that the collection branch is connected to the collection function unit; Controlling a primary switch of a switch corresponding to a second electrode so that the second electrode is connected to a collection branch in the switch array, and controlling a secondary switch of a switch corresponding to the second electrode so that the collection branch is connected to a reference circuit; Wherein, the first electrode and the second electrode are electrodes located at preset positions of the brain respectively.

3. The device according to claim 1, characterized in that The acquisition mode includes a bipolar differential acquisition mode, and the control unit is further configured to: Controlling a primary switch of a switch corresponding to a first electrode so that the first electrode is connected to a collection branch in the switch array, and controlling a secondary switch of a switch corresponding to the first electrode so that the collection branch is connected to the collection function unit; Controlling the primary switch of the switch corresponding to the second electrode so that the second electrode is connected to the collection branch in the switch array, and controlling the secondary switch of the switch corresponding to the second electrode so that the collection branch is connected to the collection function unit; Wherein, the first electrode and the second electrode are electrodes located at preset positions of the brain respectively.

4. The device according to claim 3, characterized in that The first electrode and the second electrode are respectively connected to the positive voltage signal acquisition interface and the negative voltage signal acquisition interface in the acquisition function unit.

5. The device according to claim 1, characterized in that The stimulation mode includes an active stimulation mode, and the control unit is further configured to: Controlling the primary switch of the switch corresponding to the third electrode so that the third electrode is connected to the stimulation branch in the switch array, and controlling the secondary switch of the switch corresponding to the third electrode so that the stimulation branch is connected to the stimulation function unit; Controlling the primary switch of the switch corresponding to the fourth electrode so that the fourth electrode is connected to the stimulation branch in the switch array, and controlling the secondary switch of the switch corresponding to the fourth electrode so that the stimulation branch is connected to the ground line; The third electrode is an electrode located at a preset position in the brain, so that the electrical stimulation generated by the stimulation functional unit can reach the preset position, and the fourth electrode is an electrode located at a preset position in the brain or on the body surface.

6. The device according to claim 5, characterized in that The active stimulation mode includes an active charge-balanced bipolar stimulation mode, in which the fourth electrode is located at a preset position of the brain; or The active stimulation mode includes an active charge-balanced monopolar stimulation mode. In the active charge-balanced monopolar stimulation mode, the fourth electrode is located on the body surface.

7. The device according to claim 1, characterized in that The stimulation mode includes a passive stimulation mode, and the control unit is further configured to: Controlling the primary switch of the switch corresponding to the third electrode so that the third electrode is connected to the stimulation branch in the switch array, and controlling the secondary switch of the switch corresponding to the third electrode so that the stimulation branch is connected to the stimulation function unit; Controlling the primary switch of the switch corresponding to the fourth electrode so that the fourth electrode is connected to the stimulation branch in the switch array, and controlling the secondary switch of the switch corresponding to the fourth electrode so that the stimulation branch is connected to the ground line; Controlling the stimulation functional unit to generate electrical stimulation; The secondary switch controlling the switch corresponding to the third electrode and the secondary switch controlling the switch corresponding to the fourth electrode are both connected to a short circuit; The third electrode is an electrode located at a preset position in the brain, so that the electrical stimulation generated by the stimulation functional unit can reach the preset position, and the fourth electrode is an electrode located at a preset position in the brain or on the body surface.

8. The device according to claim 7, characterized in that The passive stimulation mode includes a passive charge-balanced bipolar stimulation mode, in which the fourth electrode is located at a preset position of the brain; or The passive stimulation mode includes a passive charge-balanced monopolar stimulation mode. In the passive charge-balanced monopolar stimulation mode, the fourth electrode is located on the body surface.

9. The device according to claim 1, characterized in that The control unit is also used for: At least according to the waveform characteristics of the electrical stimulation, obtain the electrical stimulation tail; The target signal is obtained based on the collected EEG signal and the electrical stimulation tail.

10. The device according to claim 9, characterized in that The control unit is also used for: Slicing the target signal to obtain multiple signal segments; Acquire power spectra of the plurality of signal segments; The brain state corresponding to the signal segment is determined according to the power spectrum and a preset energy threshold.