Embedded device control method and device based on electroencephalogram signal

By receiving and processing EEG signals, user-defined EEG band weight information is obtained and converted into control signals, which solves the problem of limited application of portable brain-computer interface devices in embedded device control, reduces the difficulty of use, and expands the The application scenarios of the device stimulate users’ desire to explore.

CN115373307BActive Publication Date: 2024-09-06ZHIYUAN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210921652.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-05-31
Filing Date
2022-08-02
Publication Date
2024-09-06
Estimated Expiration
2042-08-02

AI Technical Summary

Technical Problem

Portable brain-computer interface devices have few applications in China, especially in terms of embedded device control. Users are unfamiliar with their use and have difficulty getting started, resulting in limited applications.

Method used

By receiving EEG signals, user-defined EEG band weight information is obtained, and based on this information, the EEG signals are converted into control signals to control embedded devices, providing a visual interface for real-time presentation and customized weight settings, reducing usage Difficulty.

Benefits of technology

It enables users to adjust control signals independently, reduces the difficulty of use, enables users to experience mind control more flexibly, stimulates the desire to explore brain-computer interface technology, and expands the application scenarios of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373307B_ABST
    Figure CN115373307B_ABST
Patent Text Reader

Abstract

The present application relates to an embedded device control method, device, system, computer device and storage medium based on EEG signals. The method comprises: receiving EEG signals sent by a brain-computer interface device; the EEG signals are obtained by the brain-computer interface device analyzing and processing the collected user biological signals; obtaining user-defined EEG band weight information; converting the EEG signals into control signals according to the EEG band weight information; and controlling the embedded device according to the control signal. The embodiment of the present application allows users to trigger different control signals under different brain states. In addition, by limiting the weights of some bands, users can control embedded devices more flexibly, allowing users to better experience the process of using brain waves for mind control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of entertainment teaching of brain-computer interface technology, and in particular to an embedded device control method, device, system, computer equipment and storage medium based on electroencephalogram signals. Background Art

[0002] The following statements merely provide background information related to the present application and do not necessarily constitute prior art.

[0003] Portable brain-computer interface devices have broad application scenarios in health monitoring, education, and entertainment due to their small size, portability, and safety.

[0004] The inventor found that portable brain-computer interface devices have some consumer-level applications in China, and the supporting products are mostly mobile health detection applications or mind games. They are rarely used in wearable devices, toys, smart home products, etc. combined with embedded systems. In addition, the inventor also noticed that most users have little knowledge of brain-computer interface technology. The current usage of portable brain-computer interface devices is still relatively unfamiliar to users, and it is also difficult to get started. Summary of the invention

[0005] In view of the above-mentioned deficiencies or shortcomings, the present application provides an embedded device control method, apparatus, system, computer equipment and storage medium based on EEG signals.

[0006] According to a first aspect, the present application provides an embedded device control method based on EEG signals. In one embodiment, the method includes:

[0007] Receive the EEG signal sent by the brain-computer interface device; the EEG signal is obtained by the brain-computer interface device analyzing and processing the collected user biological signals;

[0008] Get user-defined EEG band weight information;

[0009] Converting the EEG signal into a control signal according to the EEG band weight information;

[0010] The embedded device is controlled according to the control signal.

[0011] In one embodiment, converting the EEG signal into a control signal according to the EEG band weight information includes:

[0012] Preprocessing the EEG signal, and extracting band signals of multiple bands from the preprocessed EEG signal;

[0013] A control signal is obtained according to the weights of each band included in the above-mentioned multiple band signals and the electroencephalogram band weight information.

[0014] In one embodiment, obtaining a control signal according to the weight of each band included in the above-mentioned multiple band signals and the EEG band weight information includes:

[0015] The control signal is obtained based on the following formula:

[0016]

[0017] Among them, value represents the control signal, δ op represents the weight of the δ band, δ adaptive represents the adaptive adjustment coefficient of the δ band, δ represents the signal strength of the band signal of the δ band; θ op represents the weight of the θ band, θ adaptive Represents the adaptive adjustment coefficient of the θ band, θ represents the signal strength of the band signal of the θ band; α1 op Represents the weight of the α1 band, α1 represents the signal strength of the band signal of the α1 band; α2 op Represents the weight of the α2 band, α2 represents the signal strength of the band signal of the α2 band; β1 op Represents the weight of the β1 band, β1 represents the signal strength of the band signal of the β1 band; β2 op Represents the weight of the β2 band, β2 represents the signal strength of the band signal of the β2 band; γ1 op Represents the weight of the γ1 band, γ1 represents the signal strength of the band signal of the γ1 band; γ2 op It represents the weight of the γ2 band, γ2 represents the signal strength of the band signal of the γ2 band; eegsum represents the accumulation of the band signals of each band; adapt_num represents the adaptive adjustment parameter.

[0018] In one embodiment, the method further includes:

[0019] The waveforms and / or quantized values ​​of the EEG signals and the band signals of each band are presented in real time in a visual interface.

[0020] In one embodiment, obtaining user-defined EEG band weight information includes:

[0021] Display the operation interface;

[0022] Detect the weight setting operation performed by the user on the operation interface;

[0023] In response to the weight setting operation, user-defined EEG band weight information is obtained.

[0024] In one embodiment, controlling an embedded device according to a control signal includes:

[0025] The control signal is sent to the embedded device, and the control signal is used to instruct the embedded device to convert the control signal into a corresponding control command according to a predetermined communication protocol and execute the control command.

[0026] According to a second aspect, the present application provides an embedded device control device based on EEG signals. In one embodiment, the device includes:

[0027] The EEG signal receiving module is used to receive the EEG signal sent by the brain-computer interface device; the EEG signal is obtained by the brain-computer interface device through analyzing and processing the collected user biological signals;

[0028] A weight information acquisition module is used to obtain user-defined EEG band weight information;

[0029] A signal conversion module, used for converting the EEG signal into a control signal according to the EEG band weight information;

[0030] The control module is used to control the embedded device according to the control signal.

[0031] According to a third aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for controlling an embedded device based on electroencephalogram signals provided in any of the above embodiments are implemented.

[0032] According to a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for controlling an embedded device based on electroencephalogram signals provided in any of the above embodiments are implemented.

[0033] According to the fifth aspect, the present application provides an embedded device control system based on EEG signals, the system comprising a brain-computer interface device, a control device and an embedded device; wherein the control device is used to implement the steps of the embedded device control method based on EEG signals provided in any embodiment.

[0034] In the above embodiment of the present application, the brain-computer interface device analyzes and processes the collected user biological signals to obtain EEG signals and sends them to the control device; the control device receives the EEG signals sent by the brain-computer interface device and obtains the user-defined EEG band weight information, and then converts the EEG signals into control signals according to the EEG band weight information, and controls the embedded device according to the control signal. In the embodiment of the present application, considering that the brain states of different people may be different, it supports users to flexibly adjust the EEG band weight information based on their own situation, and converts the EEG signals into control signals based on the user-defined EEG band weight information, so that users can independently adjust the control signals triggered under different brain states. Furthermore, the above embodiment of the present application can also reduce the difficulty of use by limiting the weights of some bands, so that users can switch control signals more flexibly, so that users can better experience the process of using brain waves for mind control, which is conducive to stimulating users' curiosity and desire to explore cutting-edge technologies such as brain-computer interface technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 An application environment diagram of an embedded device control method based on EEG signals in one or more embodiments;

[0036] Figure 2 A schematic diagram of software architecture in one or more embodiments;

[0037] Figure 3 A schematic diagram of a single chip microcomputer task control process in one or more embodiments;

[0038] Figure 4 A schematic diagram of a flow chart of an embedded device control method based on EEG signals in one or more embodiments;

[0039] Figure 5 A structural block diagram of an embedded device control device based on EEG signals in one or more embodiments;

[0040] Figure 6 A diagram of the internal structure of a computer device in one or more embodiments. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] The present application provides an embedded device control method based on EEG signals. In this embodiment, the embedded device control method based on EEG signals can be applied to Figure 1In the application environment shown. Among them, the brain-computer interface device 10 is a portable brain-computer interface device, which can be a non-invasive single-motor brain-computer interface device. Optionally, the brain-computer interface device 10 can be equipped with a TGAM (ThinkGear Asic Module) chip (a main control chip produced by NeuroSky); further, the form of the brain-computer interface device 10 may include but is not limited to the following forms: headband, helmet, headphones, hat; the control device 20 is installed with a pre-developed host computer software, which can implement an embedded device control method based on EEG signals when running, that is, it can obtain user-defined EEG band weight information, and can convert the EEG signal sent by the brain-computer interface device 10 into a corresponding control signal based on the EEG band weight information, and control the embedded device 30 based on the control signal, wherein the control device 20 can be various personal computers, laptops, tablet computers and desktop computers, etc. In addition, optionally, the control device 20 can also be a smart phone; the embedded device 30 can be various wearable devices (such as watches, bracelets), toys (such as cars, gyroscopes), smart home products (such as smart desk lamps, speakers), etc. that can be controlled based on a single-chip microcomputer. The brain-computer interface device 10 and the control device 20, and the control device 20 and the embedded device 30 can communicate using wireless communication methods including but not limited to Bluetooth, RS-485, Zigbee, WiFi, etc. Taking Bluetooth as an example, the brain-computer interface device 10, the control device 20, and the embedded device 30 can be equipped with a Bluetooth module, so that the brain-computer interface device 10 and the control device 20 can communicate via Bluetooth, and the control device 20 and the embedded device 30 can communicate via Bluetooth.

[0043] For example, in one example, the brain-computer interface device and the control device, as well as the control device and the embedded device, communicate via Bluetooth, wherein the control device is a PC (Personal Computer), the embedded device is an embedded car, and the control signal is a motor speed control value. The software architecture in this embodiment can be found in Figure 2 The software architecture consists of four parts: the user-oriented front-end UI (User Interface) layer, the information display layer, the logic processing layer, and the data storage layer.

[0044] The front-end UI layer allows users to interact with the PC, as well as display information and select tasks.

[0045] The display layer mainly interacts with the embedded touch screen (mounted on the embedded car) through the PC serial port, including: PC Bluetooth serial port communication, embedded system sensor signal acquisition, key information reading during operation, and identification of input commands for operation debugging.

[0046] The logic layer performs different logic operations according to the input signal and the interactive command. Among them, the input signal refers to the signal strength of the eight band signals sent by the brain-computer interface device, and the interactive command refers to the command triggered by the user through the operation interface. Specifically, the logic layer functions of the host computer software running on the PC include: calculation and abnormal value judgment of the signal processing results transmitted by the TGAM chip, setting of EEG band weight information, and statistical analysis of TGAM data; the logic layer functions of the software running on the embedded car are the self-check of the crash judgment controlled by the watchdog program, and can also include the identification and signal processing of the connected sensors.

[0047] The data layer completes the reading and writing of system data in the PC storage system, including: TGAM data stream log recording and embedded sensor data stream log recording.

[0048] The MCU task control process in the embedded car in this example can be found in Figure 3 .

[0049] In this process, the hardware modules such as the MCU IO port, Bluetooth module, LED, and touch screen are initialized first. Among them, the MCU bare metal system can be used to implement multi-task scheduling based on the timer: in the main function, the task of controlling the moving state of the embedded car based on the Bluetooth serial port command is performed; in the timer interrupt, the task of sending the sensor signal regularly is performed.

[0050] When the embedded system module self-check is completed, the timer and the main function loop are started.

[0051] The task of controlling the moving state of the embedded car based on Bluetooth serial port commands is as follows: waiting for control instructions in a loop. If a new control signal is received, the signal will be parsed based on the communication protocol, and abnormal value judgment will be made. Finally, the corresponding control command will be executed and the execution status will be returned.

[0052] Sensor signal timing sending task: each interrupt collects sensor signals, performs update detection and abnormal value detection, and finally sends the sensor signal.

[0053] When the main program receives the exit command, it stops the main program loop and turns off the timer.

[0054] This embodiment provides an embedded device control method based on EEG signals, including: Figure 4 The steps shown below are applied to Figure 1 The control device in is used as an example to illustrate.

[0055] S110: Receive the EEG signal sent by the brain-computer interface device; the EEG signal is obtained by the brain-computer interface device through analyzing and processing the collected user biological signal.

[0056] After the user wears the brain-computer interface device, the brain-computer interface device can use a single electrode to collect the user's biological signal, that is, the bioelectric signal of the user's forehead, and analyze and process the collected user's biological signal through the internal TGAM chip to obtain the EEG signal. The brain-computer interface device will send the obtained EEG signal to the control device.

[0057] S120: Obtaining user-defined EEG band weight information.

[0058] The above-mentioned EEG band weight information includes weights of multiple bands, wherein the multiple bands may specifically include δ band, θ band, α1 band, α2 band, β1 band, β2 band, γ1 band and γ2 band. The definitions of the above-mentioned bands are shown in Table 1.

[0059] Table 1:

[0060]

[0061] In order to facilitate the user to set the corresponding weight for each band, the control device can display an operation interface, and then the user can customize the EEG band weight information through the operation interface. For example, the user can set the EEG band weight information by dragging, entering weight values, etc. on the operation interface; the control device will detect the weight setting operation performed by the user on the operation interface, and after detecting the weight setting operation, obtain the user-defined EEG band weight information in response to the weight setting operation. It should be understood that the user can set the corresponding weight for some or all bands as needed.

[0062] In one embodiment, the control device can also present the waveform and / or quantized value of the received EEG signal and the band signal of each band in real time in the visual interface. This embodiment can facilitate the user to observe the characteristic value of the EEG signal and set the corresponding weight for each band based on the observation result.

[0063] S130: Convert the EEG signal into a control signal according to the EEG band weight information.

[0064] The above-mentioned conversion of the EEG signal into the control signal according to the EEG band weight information may include preprocessing the EEG signal, extracting the band signals of multiple bands from the preprocessed EEG signal, and obtaining the control signal according to the weights of each band included in the multiple band signals and the EEG band weight information. Among them, the brain-computer interface device can perform processing such as noise reduction and filtering on the EEG signal, and extract the band signals of each band as shown in Table 1, and when each band signal is sent to the control device, the control device obtains the control signal according to the band signal of each band and the weight of each band included in the EEG band weight information.

[0065] Specifically, the control signal is obtained based on the following formula:

[0066]

[0067] In the above formula, value represents the control signal, δ op represents the weight of the δ band, δ adaptive represents the adaptive adjustment coefficient of the δ band, δ represents the signal strength of the band signal of the δ band; θ op represents the weight of the θ band, θ adaptive Represents the adaptive adjustment coefficient of the θ band, θ represents the signal strength of the band signal of the θ band; α1 op Represents the weight of the α1 band, α1 represents the signal strength of the band signal of the α1 band; α2 op Represents the weight of the α2 band, α2 represents the signal strength of the band signal of the α2 band; β1 op Represents the weight of the β1 band, β1 represents the signal strength of the band signal of the β1 band; β2 op Represents the weight of the β2 band, β2 represents the signal strength of the band signal of the β2 band; γ1 op Represents the weight of the γ1 band, γ1 represents the signal strength of the band signal of the γ1 band; γ2 op It represents the weight of the γ2 band, γ2 represents the signal strength of the band signal of the γ2 band; eegsum represents the accumulation of the band signals of each band; adapt_num represents the adaptive adjustment parameter.

[0068] The weight values ​​of the above-mentioned bands can be adjusted between 0.2-0.8, and the adjustment methods may include manual adjustment and adaptive adjustment. The user can change the influence of different brain states on the value of value by adjusting the weight ratio of each band. Among them, considering that the low-frequency signal in the EEG signal accounts for a large proportion of the signal of the whole band (frequency between 1-50Hz), even if the user adjusts the weight configuration of each band, the value calculated based on the EEG signal under different brain states does not change much. Therefore, setting corresponding adaptive adjustment coefficients for the above-mentioned δ band and θ band can enhance the influence of other band signals on the value of value, so that the user can change the brain state more easily and flexibly, and then change the triggered control signal. For example, if the user maximizes the weight of the δ band, then when the user closes his eyes and relaxes himself, the value calculated by the control device is relatively large; if the weight of the β2 band is maximized, then when the user tries to stare at something and concentrates, the value calculated by the control device is relatively large.

[0069] The adapt_num mentioned above is equivalent to a normalization coefficient, which is used to control the value between 0 and 1; and the adapt_num is not a fixed value, but can change adaptively.

[0070] Specifically, the value before multiplying adapt_num can be recorded as vbefore. After completing the weight matching, the value of vbefore is calculated, which is often less than 1. Adaptnum_now = int(1 / vbefore). If Adaptnum_now is greater than the recorded adapt_num, the value is assigned to adapt_num. In other words, adapt_num is determined by the minimum value of vbefore. For example, assuming that under a certain weight matching, the value of vbefore varies between 0.2 and 0.9, after 0.2 is recorded, adapt_num is 5.

[0071] The adaptive adjustment coefficient δ of the above δ band adaptive , the adaptive adjustment coefficient θ of the θ band adaptive And the adaptive adjustment coefficient adapt_num can be determined according to the test results during actual testing.

[0072] S140: Control the embedded device according to the control signal.

[0073] Controlling the embedded device according to the control signal may include sending the control signal to the embedded device, where the control signal is used to instruct the embedded device to convert the control signal into a corresponding control command according to a predetermined communication protocol and execute the control command.

[0074] In the above embodiment, the brain-computer interface device analyzes and processes the collected user biological signals to obtain EEG signals and sends them to the control device; the control device receives the EEG signals sent by the brain-computer interface device and obtains the user-defined EEG band weight information, and then converts the EEG signals into control signals according to the EEG band weight information, and controls the embedded device according to the control signal. The embodiment of the present application takes into account that different human brain states may be different, and thus supports users to flexibly adjust EEG band weight information based on their own conditions, and converts EEG signals into control signals based on user-defined EEG band weight information, so that users can independently adjust the control signals triggered under different brain states. Furthermore, the above embodiment can also reduce the difficulty of use by limiting the weights of some bands, allowing users to switch control signals more flexibly, allowing users to better experience the process of using brain waves for mind control.

[0075] It should be noted that, with respect to the various steps included in the method for controlling an embedded device based on EEG signals provided in any of the above embodiments, unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of these steps may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0076] Based on the same inventive concept, the present application also provides an embedded device control device based on EEG signals. Figure 5 As shown, the embedded device control device based on EEG signals includes the following modules:

[0077] The EEG signal receiving module 110 is used to receive the EEG signal sent by the brain-computer interface device; the EEG signal is obtained by the brain-computer interface device through analyzing and processing the collected user biological signal;

[0078] The weight information acquisition module 120 is used to obtain the user-defined EEG band weight information;

[0079] A signal conversion module 130, used to convert the EEG signal into a control signal according to the EEG band weight information;

[0080] The control module 140 is used to control the embedded device according to the control signal.

[0081] In one embodiment, the signal conversion module 130 is used to preprocess the EEG signal and extract band signals of multiple bands from the preprocessed EEG signal; and obtain a control signal according to the weights of each band included in the above-mentioned multiple band signals and the EEG band weight information.

[0082] In one embodiment, the band signals of the above-mentioned multiple bands are respectively a band signal of a band, a band signal of a band, a band signal of a band, a band signal of a band, a band signal of a band, a band signal of a band, a band signal of a band and a band signal of a band.

[0083] In one embodiment, the signal conversion module 130 is further configured to obtain a control signal based on the following formula:

[0084]

[0085] Among them, value represents the control signal, δ op represents the weight of the δ band, δ adaptiverepresents the adaptive adjustment coefficient of the δ band, δ represents the signal strength of the band signal of the δ band; θ op represents the weight of the θ band, θ adaptive Represents the adaptive adjustment coefficient of the θ band, θ represents the signal strength of the band signal of the θ band; α1 op Represents the weight of the α1 band, α1 represents the signal strength of the band signal of the α1 band; α2 op Represents the weight of the α2 band, α2 represents the signal strength of the band signal of the α2 band; β1 op Represents the weight of the β1 band, β1 represents the signal strength of the band signal of the β1 band; β2 op Represents the weight of the β2 band, β2 represents the signal strength of the band signal of the β2 band; γ1 op Represents the weight of the γ1 band, γ1 represents the signal strength of the band signal of the γ1 band; γ2 op It represents the weight of the γ2 band, γ2 represents the signal strength of the band signal of the γ2 band; eegsum represents the accumulation of the band signals of each band; adapt_num represents the adaptive adjustment parameter.

[0086] In one embodiment, the above device further includes a visualization module (not shown in the figure).

[0087] The visualization module is used to present the waveform and / or quantized value of the EEG signal and the band signal of each band in real time in a visualization interface.

[0088] In one embodiment, the weight information acquisition module 120 is used to display an operation interface; detect a weight setting operation performed by a user on the operation interface; and acquire user-defined EEG band weight information in response to the weight setting operation.

[0089] In one embodiment, the control module 140 is used to send a control signal to the embedded device, and the control signal is used to instruct the embedded device to convert the control signal into a corresponding control command according to a predetermined communication protocol and execute the control command.

[0090] For the specific definition of the embedded device control device based on EEG signals, please refer to the definition of the embedded device control method based on EEG signals above, which will not be repeated here. Each module in the above-mentioned embedded device control device based on EEG signals can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0091] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 6shown.

[0092] The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store user-defined EEG band weight information, formulas and other data. The specific stored data can also refer to the definition in the above method embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for controlling an embedded device based on EEG signals is implemented.

[0093] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0094] This embodiment also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for controlling an embedded device based on EEG signals provided in any of the above embodiments are implemented.

[0095] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method for controlling an embedded device based on EEG signals provided in any of the above embodiments are implemented.

[0096] In one embodiment, an embedded device control system based on EEG signals is provided, the system comprising a brain-computer interface device, a control device and an embedded device, wherein the control device is used to implement the steps in the embedded device control method based on EEG signals provided in any of the above embodiments.

[0097] Those skilled in the art can understand that all or part of the processes in the above method embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0098] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0099] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for controlling an embedded device based on electroencephalogram signals, characterized in that: The method comprises: Receiving an electroencephalogram (EEG) signal sent by a brain-computer interface device; the EEG signal is obtained by analyzing and processing a collected biological signal of a user by the brain-computer interface device; Get user-defined EEG band weight information; Preprocessing the EEG signal, extracting band signals of multiple bands from the preprocessed EEG signal, and obtaining a control signal according to the multiple band signals and the weights of each band included in the EEG band weight information; obtaining a control signal according to the multiple band signals and the weights of each band included in the EEG band weight information, comprises: The control signal is obtained based on the following formula: Among them, value represents the control signal, δ op represents the weight of the δ band, δ adaptive represents the adaptive adjustment coefficient of the δ band, δ represents the signal strength of the band signal of the δ band; θ op represents the weight of the θ band, θ adaptive Represents the adaptive adjustment coefficient of the θ band, θ represents the signal strength of the band signal of the θ band; α1 op Represents the weight of the α1 band, α1 represents the signal strength of the band signal of the α1 band; α2 op Represents the weight of the α2 band, α2 represents the signal strength of the band signal of the α2 band; β1 op Represents the weight of the β1 band, β1 represents the signal strength of the band signal of the β1 band; β2 op Represents the weight of the β2 band, β2 represents the signal strength of the band signal of the β2 band; γ1 op Represents the weight of the γ1 band, γ1 represents the signal strength of the band signal of the γ1 band; γ2 op represents the weight of the γ2 band, γ2 represents the signal strength of the band signal of the γ2 band; eegsum represents the accumulation of the band signals of each of the bands; adapt_num represents the adaptive adjustment parameter; The embedded device is controlled according to the control signal.

2. The method according to claim 1, characterized in that The method further comprises: The waveforms and / or quantized values ​​of the EEG signal and the band signals of each band are presented in real time in a visual interface.

3. The method according to claim 1 or 2, characterized in that The obtaining of user-defined EEG band weight information includes: Display the operation interface; Detecting a weight setting operation performed by a user on the operation interface; In response to the weight setting operation, user-defined EEG band weight information is obtained.

4. The method according to claim 1, characterized in that The step of controlling the embedded device according to the control signal comprises: The control signal is sent to the embedded device, and the control signal is used to instruct the embedded device to convert the control signal into a corresponding control command according to a predetermined communication protocol and execute the control command.

5. An embedded device control device based on EEG signals, characterized in that: The device comprises: An EEG signal receiving module is used to receive EEG signals sent by a brain-computer interface device; the EEG signals are obtained by the brain-computer interface device through analyzing and processing the collected user biological signals; A weight information acquisition module is used to obtain user-defined EEG band weight information; A signal conversion module is used to preprocess the EEG signal, extract band signals of multiple bands from the preprocessed EEG signal, and obtain a control signal according to the multiple band signals and the weights of each band included in the EEG band weight information; the obtaining of the control signal according to the multiple band signals and the weights of each band included in the EEG band weight information comprises: obtaining the control signal based on the following formula: Among them, value represents the control signal, δ op represents the weight of the δ band, δ adaptive represents the adaptive adjustment coefficient of the δ band, δ represents the signal strength of the band signal of the δ band; θ op represents the weight of the θ band, θ adaptive Represents the adaptive adjustment coefficient of the θ band, θ represents the signal strength of the band signal of the θ band; α1 op Represents the weight of the α1 band, α1 represents the signal strength of the band signal of the α1 band; α2 op Represents the weight of the α2 band, α2 represents the signal strength of the band signal of the α2 band; β1 op Represents the weight of the β1 band, β1 represents the signal strength of the band signal of the β1 band; β2 op Represents the weight of the β2 band, β2 represents the signal strength of the band signal of the β2 band; γ1 op Represents the weight of the γ1 band, γ1 represents the signal strength of the band signal of the γ1 band; γ2 op represents the weight of the γ2 band, γ2 represents the signal strength of the band signal of the γ2 band; eegsum represents the accumulation of the band signals of each of the bands; adapt_num represents the adaptive adjustment parameter; The control module is used to control the embedded device according to the control signal.

6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

8. An embedded device control system based on EEG signals, characterized in that: The system includes a brain-computer interface device, a control device, and an embedded device; The brain-computer interface device is used to collect biological signals from the user, analyze and process the biological signals from the user to obtain electroencephalogram signals, and send the electroencephalogram signals to the control device; The control device is used to receive the EEG signal sent by the brain-computer interface device, obtain the user-defined EEG band weight information, pre-process the EEG signal, extract the band signals of multiple bands from the pre-processed EEG signal, and obtain the control signal according to the multiple band signals and the weights of each band included in the EEG band weight information; the obtaining of the control signal according to the multiple band signals and the weights of each band included in the EEG band weight information includes: obtaining the control signal based on the following formula: Among them, value represents the control signal, δ op represents the weight of the δ band, δ adaptive represents the adaptive adjustment coefficient of the δ band, δ represents the signal strength of the band signal of the δ band; θ op represents the weight of the θ band, θ adaptive Represents the adaptive adjustment coefficient of the θ band, θ represents the signal strength of the band signal of the θ band; α1 op Represents the weight of the α1 band, α1 represents the signal strength of the band signal of the α1 band; α2 op Represents the weight of the α2 band, α2 represents the signal strength of the band signal of the α2 band; β1 op Represents the weight of the β1 band, β1 represents the signal strength of the band signal of the β1 band; β2 op Represents the weight of the β2 band, β2 represents the signal strength of the band signal of the β2 band; γ1 op Represents the weight of the γ1 band, γ1 represents the signal strength of the band signal of the γ1 band; γ2 op represents the weight of the γ2 band, γ2 represents the signal strength of the band signal of the γ2 band; eegsum represents the accumulation of the band signals of each of the bands; adapt_num represents the adaptive adjustment parameter; and the embedded device is controlled according to the control signal.