Brain-computer control system and method based on Wi-Fi independent encrypted channel
By adopting a method based on Wi-Fi independent encryption channel and a three-step encryption key verification mechanism in the brain-computer control system, the problem of privacy protection of EEG signals and sensitive data is solved, and efficient data transmission security is achieved. Patients' motivation during rehabilitation is increased.
Patent Information
- Application Number
- CN202211231608.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-08
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-10-08
AI Technical Summary
The prior art is difficult to effectively protect the privacy of EEG signals and other sensitive data in the field of brain-computer control, especially in complex hospital environments, and patients are prone to boredom during the recovery process, affecting the identification results.
Using a brain-computer control system and method based on Wi-Fi independent encryption channel, the control instruction sending module and the control instruction receiving module are designed, combined with a three-step encryption key verification mechanism (WPA-PSK, RSA and fast mode exponentiation method). Ensure the security and privacy of data transmission.
It realizes effective protection of sensitive data in the EEG signal and control process, enhances the security and privacy of data transmission, and improves the enthusiasm of patients in the recovery process and the accuracy of identification results.
Smart Images

Figure CN115499830B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of brain-computer control and medical rehabilitation, and in particular relates to a brain-computer control system and method based on a Wi-Fi independent encrypted channel. Background Art
[0002] In the field of rehabilitation medicine, the accuracy of EEG signals is usually displayed in the form of animated images, such as correct or incorrect pictures, or some kind of changing animation of game objects. Software designers usually use this method to improve the perceptibility of the brain-controlled rehabilitation process. However, patients will inevitably feel bored when sitting in a fixed position for a long time and staring at a number of changing pictures or videos, which will affect the final recognition results.
[0003] In the field of brain-computer interface, with the development of EEG, researchers have further improved their research on analyzing and using EEG signals, and are more willing to use EEG signals to control existing devices. However, many researchers usually directly use script algorithm design language to design algorithms, which is slightly complicated to directly integrate into the command sending module.
[0004] In the field of communication encryption, EEG signals are more special than other signals and belong to a relatively sensitive human body signal. When used in scenarios such as hospitals, the signal environment is relatively complex. In order to maximize the protection of user privacy, privacy should be guaranteed as much as possible in the communication method. However, existing technical solutions rarely have special designs for this.
[0005] The brain-computer control system and method based on the Wi-Fi independent encrypted channel proposed in the present invention can quickly help researchers complete algorithm verification, making it convenient for them to use their own EEG recognition algorithm to control the robot; on the one hand, patients can intuitively feel the correctness of EEG recognition through the movement of the robot, which can increase the patients' enthusiasm for rehabilitation; on the other hand, the three-step encrypted key verification mechanism can effectively protect sensitive data that may be generated during the control process. Summary of the invention
[0006] In order to solve the deficiencies in the prior art, the purpose of the present invention is to provide a brain-computer control system and method based on a Wi-Fi independent encrypted channel.
[0007] To achieve the purpose of the present invention, the technical solution adopted by the present invention is:
[0008] A brain-computer control system based on a Wi-Fi independent encrypted channel, comprising a control command sending module designed for an electroencephalogram cap, a control command receiving module designed for a robot, and a motion control module for the robot;
[0009] The control instruction sending module includes an EEG signal acquisition module, an EEG recognition module and an identification result sending module; the EEG signal acquisition module reads the EEG signal data of the subject, pre-processes the data and then sends it to the EEG recognition module; the EEG recognition module extracts EEG signal features and inputs the extracted features into a trained classifier for identification and classification; the classification results are sent to the remote robot through the identification result sending module;
[0010] Among them, the recognition result sending module communicates with the corresponding remote robot based on the Wi-Fi independent encrypted channel;
[0011] The robot's control instruction receiving module receives the EEG recognition and classification results and sends them to the motion control module for controlling the robot's motion.
[0012] Furthermore, the recognition result sending module and the control instruction receiving module are both Wi-Fi modules, and independent channels are set, independent encrypted SSID names are set for the independent channels, and a verification key is required to join the independent channel;
[0013] When the recognition result sending module sends the classification result, it first searches for the Wi-Fi independent encrypted channel corresponding to the control command receiving module, and sends the classification result to the control command receiving module of the remote robot after verifying the key.
[0014] Furthermore, the robot control instruction receiving modules are all connected to the wireless hotspot network of the recognition result sending module in wireless hotspot mode;
[0015] During the process of requesting to join a wireless hotspot, the WPA-PSK method is used for access verification when joining a separate channel. If the agreed key used in the request to join matches correctly, the request is released; if the match fails, the request is rejected.
[0016] Furthermore, the robot motion control module includes a serial port message receiving module, a message training module, a serial port message parsing module, and an action execution module;
[0017] The message polling module continuously polls to see if there are any messages from the Wi-Fi receiving module. When there are messages, the serial port receiving service of the serial port message receiving module is turned on to receive the serial port messages and notify the message parsing module to start working.
[0018] The serial port message parsing module verifies the destination address, source address, bit length, and check bit information of the message parsing, and extracts the corresponding control instructions after verification; the action execution module continuously polls the commands of the message parsing module, and notifies the robot to execute the action instructions if there are correctly parsed instructions.
[0019] Furthermore, the transmission of the entire message adopts an encrypted communication mechanism, a message encryption module is provided in the recognition result sending module, a message decryption module is provided in the serial port message parsing module, and a public key and a private key pair are pre-deployed during the initialization process.
[0020] Furthermore, after the entire message is parsed, a single message frame is obtained, and the single message frame is still sent encrypted and decrypted; a message frame encryption module is provided in the recognition result sending module, and a message frame decryption module is provided in the serial port message parsing module to encrypt and decrypt the single message frame. During the initialization process, the user can customize the public key and private key pair.
[0021] Furthermore, the customization method of the public key and private key pair in the fast modular exponentiation method is that the user randomly generates a prime number pair according to a given prime number generation range, obtains the first public modulus and the second public modulus, constructs a key function, and generates a public key digital pair and a private key digital pair.
[0022] A brain-computer control method based on a Wi-Fi independent encrypted channel comprises the following steps:
[0023] The subject wears an EEG cap and performs motor imagery according to computer text and voice prompts; the EEG signal acquisition module reads the subject's EEG signal data, pre-processes the data, and then sends it to the EEG recognition module;
[0024] The EEG recognition module uses the CSP algorithm to extract EEG signal features, and inputs the extracted features into the trained classifier for recognition and classification to obtain the classification results;
[0025] The recognition result sending module searches for and joins the corresponding Wi-Fi independent encryption channel and verifies the key; the classification result is sent to the control instruction receiving module of the remote robot;
[0026] The robot's control instruction receiving module receives the EEG recognition and classification results and sends them to the motion control module for controlling the robot's motion;
[0027] The message polling module continuously polls to see if there is any message from the Wi-Fi receiving module. When there is a message, the serial port receiving service of the serial port message receiving module is turned on to receive the serial port message and notify the message parsing module to start working.
[0028] The serial port message parsing module verifies the destination address, source address, bit length, and check bit information of the message parsing, and extracts the corresponding control instructions after verification; the action execution module continuously polls the commands of the message parsing module, and if there are instructions, it notifies the robot to execute the action instructions.
[0029] Furthermore, the EEG recognition module uses the CSP algorithm to extract EEG signal features, and inputs the extracted features into a trained classifier for recognition and classification to obtain a classification result; the method also includes collecting a training set of EEG signal data from the subject, the EEG recognition module uses the CSP algorithm to extract EEG signal features from the training set, uses the extracted training set features to train the classifier, and saves the weight file; wherein the classifier uses AdaBoost.
[0030] Furthermore, a three-step encryption method is used in the communication process of brain-computer control: first, when the Wi-Fi hotspot requests to join an independent channel, the WPA-PSK method is used to perform access verification during the verification process; secondly, the entire message is sent using an encrypted communication mechanism, and the RSA method is used for encryption and decryption during the parsing process; finally, the entire message is parsed to obtain a single message frame, and the single message frame is still sent encrypted and decrypted, and the message frame parsing process uses a user-customizable fast modular exponentiation method for encryption and decryption.
[0031] The beneficial effect of the present invention is that, compared with the prior art, the present invention proposes a key verification mechanism based on Wi-Fi's three-step encryption, which securely encrypts independent channels, entire messages, and message frames separately, and performs effective and simple encryption design on the three key links of the entire wireless transmission. The three-stage encryption modules can be deployed together or separately after being split, which is highly flexible. This set of encryption combination schemes can be customized and deployed by users, has good privacy, high degree of freedom, and can more conveniently solve the problem of encrypted transmission of sensitive data in complex scenarios.
[0032] The present invention uses Matlab to independently encapsulate the module, which can be directly called, has a fast execution speed, and can quickly verify the correctness of the module. The present invention uses a widely integrated algorithm to output the recognition result, and the written sending and receiving interface has strong portability and is easy to execute.
[0033] The present invention directly demonstrates the recognition effect of EEG through the robot's forward, backward, left turn, right turn and other behaviors, which is very interesting and can help patients intuitively feel the correctness of EEG recognition and enhance their willingness for rehabilitation. The present invention proposes a complete set of solutions for EEG signal extraction, classification, encrypted transmission, reception and execution control process, which can provide a direct method for future brain-computer interface intervention in other types of robots. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the brain-computer control system based on the Wi-Fi independent encrypted channel of the present invention;
[0035] Figure 2 It is a schematic diagram of the sending process of the recognition result sending module;
[0036] Figure 3This is a schematic diagram of the control instruction receiving module receiving workflow;
[0037] Figure 4 It is a schematic diagram of the work flow of the message parsing module;
[0038] Figure 5 It is a schematic diagram of a method for generating a message frame encryption and decryption key pair;
[0039] Figure 6 It is a schematic diagram of the workflow of the action execution module;
[0040] Figure 7 This is a flow chart of the brain-computer control method based on a Wi-Fi independent encrypted channel described in the present invention. DETAILED DESCRIPTION
[0041] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of this application.
[0042] The present invention proposes a brain-computer control system and method based on Wi-Fi independent encrypted channels, which adopts a key verification mechanism based on Wi-Fi three-step encryption to securely encrypt independent channels, entire messages, and message frames separately; it can be used to display the recognition results of EEG signals and enhance the interest of the patient's rehabilitation process. A convenient matlab interface is provided for the brain-computer control interface, which can realize the direct control of the robot by the matlab EEG recognition program at any stage. In order to facilitate the control of the robot's movement, a set of solutions is encapsulated to facilitate the control program of the robot's movement.
[0043] like Figure 1 As shown, the brain-computer control system based on the Wi-Fi independent encrypted channel described in the present invention includes a control instruction sending module designed on the EEG cap, a control instruction receiving module designed on the robot, and a motion control module of the robot.
[0044] The control instruction sending module includes an EEG signal acquisition module, an EEG recognition module and a recognition result sending module.
[0045] The EEG signal acquisition module reads the EEG signal data of the subject through the EEG cap and preprocesses the data. The EEG signal acquisition module needs to set the number of subjects, set the sampling rate, single sampling time, set the EEG channel selection, and select the filter frequency band. The actual data set consists of the real-time EEG signal data of the subject. The BCI paradigm consists of four different motor imagery tasks, namely, motor imagery of the left hand (category 1), right hand (category 2), forward (category 3), and backward (category 4). The paradigm records two sets of data at different time periods. The first set is used to train the classifier that records the imaginary behavior, and the second set is used to test the subject's current EEG signal.
[0046] The subjects sat in a comfortable armchair in front of a computer screen. At the beginning of the first set of trials, the computer interface prompted the subjects to start imagining the corresponding category in text, and also gave voice prompts. Two seconds later, an animated prompt in the form of an arrow pointing to the left, right, down or up (corresponding to one of the four categories of left hand, right hand, forward or backward) appeared on the screen for several seconds. This prompted the subjects to complete the required motor imagery task. No feedback was provided at this stage. The subjects were asked to perform the motor imagery task at the sixth second until the animated prompt on the screen disappeared. Then the screen was briefly black again, and the EEG signal data collected during this period was used for EEG signal feature extraction.
[0047] The EEG recognition module uses the CSP algorithm to extract EEG signal features and performs boosting classification on the extracted features. AdaBoost is one of the classifiers with better clustering effect. The features extracted from the first set of collected data are used to train the classifier and the weight file is saved.
[0048] At the beginning of the second experiment, the computer interface prompted the subjects to start imagining the corresponding category. An animated prompt in the form of an arrow pointing to the left, right, down, or up (corresponding to one of the four categories: left hand, right hand, forward, or backward) appeared on the screen for several seconds. The subjects began to imagine and the EEG signal data was collected during this period.
[0049] The EEG recognition module uses the CSP algorithm to extract EEG signal features and inputs the extracted features into the trained classifier for recognition and classification; if the classification result is correct, the classification result is saved and waits for sending.
[0050] By using this method, EEG classification signals are obtained, and the signal acquisition process and signal recognition process are decoupled and separated, resulting in better recognition results.
[0051] The present invention uses Matlab program to extract and identify EEG signal data features, encapsulates an independent Matlab interface to facilitate developers and users to call, and provides a CSP-based EEG signal mode to control the robot's forward, backward, left, right and other behaviors.
[0052] The recognition result sending module is a Wi-Fi sending module. It opens an independent channel and encrypts it, and sets an independent encrypted SSID name for the independent channel. After obtaining the classification results obtained by the previous round of EEG recognition module, the recognition result sending module begins to search for the corresponding Wi-Fi independent encrypted channel, verify the key, specify the remote robot address, specify the required protocol type, and specify the communication port. The recognition result sending module is responsible for establishing an encrypted communication mechanism with the corresponding remote robot, and sending the sending results to the remote robot through this mechanism. Figure 2 shown.
[0053] By making the recognition result sending module and the EEG recognition module independent, the sending process can be called at any position of the EEG recognition module, thereby improving the freedom of the sending timing.
[0054] Introduction to the robot platform: Differential wheeled robot platforms are adopted by many robot platforms as a common platform for general robots due to their simple mechanical and drive structure design, easily expandable carrying capacity, and good airworthiness. The robot platform based on EEG signal control of the present invention is based on this type of platform. This type of robot platform usually has an expandable and assembled superstructure, a differential wheeled drive structure, and an electrical interface for charging.
[0055] A control instruction receiving module and a motion control module are designed on the robot platform.
[0056] The control instruction receiving module is a Wi-Fi receiving module, which opens an independent encrypted channel and sets an independent encrypted SSID name for the independent channel. Joining a separate channel requires a verification key. The present invention uses the WPA-PSK method for access verification, such as Figure 3 The control instruction receiving modules of the robot platform are all connected to the wireless hotspot of the Wi-Fi sending module of the recognition result sending module in wireless hotspot mode.
[0057] In the process of requesting to join a wireless hotspot, the separate channel authentication uses the WPA-PSK method for access authentication. If the agreed key used by the joining client matches correctly, the encryption module will release the client request; if the match fails, the client's request will be rejected.
[0058] WPA-PSK is an encryption and decryption method with a predefined security key. This method uses the WPA-PSK method to encrypt and transmit the predefined security key provided by the user. The following explains the four-step handshake process of WPA-PSK:
[0059] 1. The receiver AP hotspot transmits its random number (ANonce) to the initiator STA. After receiving the random number (ANonce), the STA generates a PTK.
[0060] 2. STA transmits its own random number to AP and adds MIC (corresponding to KCK in PTK, i.e. key confirmation key). After receiving the random number, AP can generate PTK. It compares the received MIC with the self-generated MIC for integrity check. If the check fails, the handshake fails. If the check succeeds, AP generates PTK and GTK (Group Transient Key, used to encrypt multicast and broadcast).
[0061] 3. Send GTK (Group Temporary Key) and MIC (Message Integrity Check Code) to STA. Since both parties already know PTK (Pairwise Temporary Key), GTK will be encrypted with KEK.
[0062] 4. STA sends ACK for confirmation.
[0063] After the four-way handshake is completed, all subsequent frame transmissions will be carried out in an encrypted manner. This process ensures that the message communication between each brain-computer software and the robot platform is based on an independent predefined Wi-Fi channel.
[0064] The control instruction receiving module receives the EEG recognition and classification results sent by the recognition result sending module of the control instruction sending module through the corresponding independent channel, and then sends the EEG recognition and classification results to the motion control module for controlling the motion of the robot.
[0065] The robot motion control module establishes an independent message monitoring mechanism to monitor the transmission of messages, and designs an independent message verification mechanism to parse messages. The robot motion control module includes a serial port message receiving module, a message training module, a serial port message parsing module, and an action execution module.
[0066] The serial port message receiving module is transferred from the robot's Wi-Fi receiving module interface to the robot's motion control module interface. When the message monitoring mechanism detects that there is a message incoming to the serial port, the serial port receiving service is started, the notification message training service is started, and the serial port message is received. If there is no message, it will not be started.
[0067] The message polling module, the message polling service is hung on the back end of the operating system to continuously poll and access whether there is a message from the Wi-Fi receiving module. When there is a message, the serial port message is received and the message parsing module is notified to start working.
[0068] The serial port message parsing module verifies the destination address, source address, bit length, check bit and other information of the message parsing, and extracts the corresponding control instructions after verification. Figure 4 shown.
[0069] Among them, the transmission of the whole message adopts an encrypted communication mechanism. The recognition result sending module is equipped with a message encryption module, and the serial port message parsing module is equipped with a message decryption module. Both are whole message encryption modules. The whole message encryption module is a module that encrypts and decrypts a single whole message. The initialization process requires the pre-deployment of public and private key pairs. The specific method is as follows: deploy the key generation module to generate an RSA asymmetric encryption pair, deploy the public key public.pem on the robot side, which is responsible for decrypting the message sent by the brain-computer side, and deploy the private key private.pem on the brain-computer side, which is responsible for encrypting and sending.
[0070] In the encryption process of the recognition result sending module, the brain-computer side deploys the private key private.pem, which is responsible for encryption and sending. The specific method is as follows: call get_private_key() to find the key file, read the key content and store it as msg, select the corresponding encoding type (such as 'utf-8'), and call encrypt_data() to encrypt the sent information.
[0071] The decryption process of the serial message parsing module, after the robot obtains a single whole message, it needs to decrypt the entire message before reading it. The robot side deploys the public key public.pem, which is responsible for decrypting and reading the datagram. The specific method is as follows: call get_public_key() to find the key file, read the key content and store it as msg, select the corresponding encoding type (such as 'utf-8'), and call decrypt_data() to decrypt the sent information.
[0072] This process ensures that each time the entire message is sent and received, it is based on a pair of RSA keys. This step ensures that even if the independent channel password is cracked, the message structure is not cracked, and the robot correctly obtains the parsable entire message.
[0073] The robot mentioned above obtains the parsable whole message, and obtains a single message frame after parsing, but this single message frame is still encrypted. Therefore, a message frame encryption and decryption module is further set, and a message frame encryption module is set in the recognition result sending module, and a message frame decryption module is set in the serial port message parsing module. The message frame encryption and decryption module can encrypt and decrypt a single message frame, and customize the public key and private key pair during the initialization process.
[0074] like Figure 5 As shown, the specific method of obtaining the public key and private key is as follows:
[0075] 1. Given a prime number generation range, get the two prime numbers p and q generated. The value generation range can be adjusted in the range of 128 to 65535 to modify the encryption strength. Call gen_prime() to complete;
[0076] 2. Obtain the first public modulus n1, the formula is n1=pq; obtain the second public modulus n2, the formula is n2=(p-1)(q-1);
[0077] 3. Construct the key function Key(n)=e -n ;
[0078] 4. Customize a smaller positive integer that is coprime with Key(n1) as the public exponent. Here, we select e. Then the number pair (n1, e) is the public key in the key pair, where the public key parameter is the positive integer e.
[0079] 5. Calculate d = e -1 modKey(n1), d is used as the private key parameter, then the number pair (n1, d) is the private key in the key pair.
[0080] The encrypted transmission of the message frame uses a customizable fast modular exponentiation method for encryption. The specific method is as follows: convert the input message into a hexadecimal string, input the public key (n1, e), and call the encrypt() method to complete the encryption. The encrypted data is a hexadecimal string, similar to:
[0081] "0x136a2fdc25200ae0fa09b6e88f233e4f0ddfd4c3a8f31d245525ea027ae59416ee2e6689a9eefbee8f757dac1b72727a933a316998e41291ebdb9b01ca92ef 579fb5f5f351c3ade9e109ac06f8bcd75640c7a46130296c4e40a5392b3a613ff dc50a9e7784d188bf9f68678634a4392827e62d2401167c25712188d1d346070”
[0082] After obtaining the decrypted data of the entire message, the entire message needs to be unpacked. The unpacked data is decrypted using a customizable fast modular exponentiation method. The specific method is as follows: Use the private key (n1, d) for decryption when sending. Call the decrypt() method to complete the decryption. After decryption, you will get a hexadecimal independent frame of the original message such as "0xa1", "0xa2", "0x11", "0x13", and "0x34".
[0083] Action execution module: The action execution module continuously monitors the commands of the message parsing module. If there is an instruction, it notifies the robot's wheel motor and other modules to start executing the action instruction. If there is no instruction, this process will not be carried out. Figure 6 shown.
[0084] like Figure 7 As shown, the present invention also provides a brain-computer control method based on a Wi-Fi independent encrypted channel, which is implemented based on the above system and specifically includes the steps of:
[0085] (1) The subject wears an EEG cap in front of a computer screen and performs motor imagery according to computer text and voice prompts; the EEG signal acquisition module reads the subject's EEG signal data through the EEG cap and pre-processes the data before sending it to the EEG recognition module;
[0086] (2) The EEG recognition module uses the CSP algorithm to extract EEG signal features and inputs the extracted features into the trained classifier for recognition and classification; if the classification result is correct, the classification result is saved and waits for sending;
[0087] (3) After the recognition result sending module obtains the classification result obtained by the previous round of EEG recognition module, the recognition result sending module starts searching for the corresponding Wi-Fi independent encryption channel and verifies the key; and sends the classification result to the remote robot through the encrypted communication mechanism with the corresponding remote robot;
[0088] (4) The control instruction receiving module of the robot receives the EEG recognition and classification results sent by the recognition result sending module of the control instruction sending module through the corresponding independent channel; then, the EEG recognition and classification results are sent to the motion control module for controlling the motion of the robot;
[0089] (5) The motion control module uses a message monitoring mechanism to monitor the transmission of messages. When the message monitoring mechanism detects that there is a message incoming at the serial port, it notifies the message polling service to start, the serial port receiving service to start receiving serial port messages, and notifies the message parsing module to start working; the message parsing module parses the message to obtain the command to notify the action execution module to execute it. The action execution module continuously polls and monitors the commands of the message parsing module. If there is an instruction, it notifies the robot's wheel motor and other modules to start the corresponding execution action.
[0090] Among them, a three-step encryption method is used in the communication process of brain-computer control: first, when the Wi-Fi hotspot requests to join an independent channel, the WPA-PSK method is used to perform access verification during the verification process; secondly, the entire message is sent using an encrypted communication mechanism, and the RSA method is used for encryption and decryption during the parsing process; finally, the entire message is parsed to obtain a single message frame, and the single message frame is still sent encrypted and decrypted, and the message frame parsing process uses a user-customizable fast modular exponentiation method for encryption and decryption.
[0091] The beneficial effect of the present invention is that, compared with the prior art, the present invention directly demonstrates the recognition effect of EEG through the robot's forward, backward, left turn, right turn and other behaviors, which is interesting and convenient for patients to intuitively feel the correctness of EEG recognition and enhance their willingness for rehabilitation. The present invention proposes a complete set of solutions for EEG signal extraction, classification, encrypted transmission, reception and execution control process, which can provide a direct method for the future brain-computer interface intervention of other types of robots.
[0092] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
Claims
1. A brain-computer control system based on a Wi-Fi independent encrypted channel, characterized in that: It includes a control instruction sending module designed for the EEG cap, a control instruction receiving module designed for the robot, and a motion control module for the robot; The control instruction sending module includes an EEG signal acquisition module, an EEG recognition module and an identification result sending module; The EEG signal acquisition module reads the EEG signal data of the subject, pre-processes the data and sends it to the EEG recognition module; The EEG recognition module extracts EEG signal features and inputs the extracted features into the trained classifier for recognition and classification; the classification results are sent to the remote robot through the recognition result sending module; wherein the recognition result sending module communicates with the corresponding remote robot based on a Wi-Fi independent encrypted channel; The robot's control instruction receiving module receives the EEG recognition and classification results and sends them to the motion control module for controlling the robot's motion; The robot motion control module includes a serial port message receiving module, a message training module, a serial port message parsing module, and an action execution module; The message polling module continuously polls to see if there are any messages from the Wi-Fi receiving module. When there are messages, the serial port receiving service of the serial port message receiving module is turned on to receive the serial port messages and notify the message parsing module to start working. The serial port message parsing module verifies the destination address, source address, bit length, and check bit information of the message parsing, and extracts the corresponding control instructions after verification; the action execution module continuously polls the commands of the message parsing module, and notifies the robot to execute the action instructions if there are correctly parsed instructions; The entire message is sent using an encrypted communication mechanism. The recognition result sending module is equipped with a message encryption module, and the serial port message parsing module is equipped with a message decryption module. The initialization process pre-deploys the public key and private key pair; After the entire message is parsed, a single message frame is obtained. The single message frame is still sent encrypted and decrypted. The single message frame is encrypted and decrypted using the fast modular power method. A message frame encryption module is set in the recognition result sending module, and a message frame decryption module is set in the serial port message parsing module to encrypt and decrypt a single message frame. During the initialization process, the user can customize the public key and private key pair.
2. The brain-computer control system based on Wi-Fi independent encrypted channel according to claim 1 is characterized in that: The recognition result sending module and the control command receiving module are both Wi-Fi modules. Independent channels are set, and independent encrypted SSID names are set for the independent channels. Joining the independent channel requires a verification key. When the recognition result sending module sends the classification result, it first searches for the Wi-Fi independent encrypted channel corresponding to the control command receiving module, and sends the classification result to the control command receiving module of the remote robot after verifying the key.
3. The brain-computer control system based on Wi-Fi independent encrypted channel according to claim 2 is characterized in that: The robot control instruction receiving modules are all connected to the wireless hotspot network of the recognition result sending module in wireless hotspot mode; During the process of requesting to join a wireless hotspot, the independent channel authentication uses the WPA-PSK method for access authentication. If the agreed key used in the request to join matches correctly, the request is released; if the match fails, the request is rejected.
4. The brain-computer control system based on Wi-Fi independent encrypted channel according to claim 1 is characterized in that: The method for customizing the public key and private key pair in the fast modular exponentiation method is that the user randomly generates a prime number pair according to a given prime number generation range, obtains the first public modulus and the second public modulus, constructs a key function, and generates a public key digital pair and a private key digital pair.
5. A brain-computer control method based on a Wi-Fi independent encrypted channel, based on the brain-computer control system based on a Wi-Fi independent encrypted channel according to any one of claims 1 to 4, characterized in that: Includes steps: The subject wears an EEG cap and performs motor imagery according to computer text and voice prompts; the EEG signal acquisition module reads the subject's EEG signal data, pre-processes the data, and then sends it to the EEG recognition module; The EEG recognition module uses the CSP algorithm to extract EEG signal features, and inputs the extracted features into the trained classifier for recognition and classification to obtain the classification results; The recognition result sending module searches for the Wi-Fi independent encryption channel corresponding to the control command receiving module and verifies the key; the classification result is sent to the control command receiving module of the remote robot; The robot's control instruction receiving module receives the EEG recognition and classification results and sends them to the motion control module for controlling the robot's motion; The message polling module continuously polls to see if there is any message from the Wi-Fi receiving module. When there is a message, the serial port receiving service of the serial port message receiving module is turned on to receive the serial port message and notify the message parsing module to start working. The serial port message parsing module verifies the destination address, source address, bit length, and check bit information of the message parsing, and extracts the corresponding control instructions after verification; the action execution module continuously polls the commands of the message parsing module, and notifies the robot to execute the action instructions if there are correctly parsed instructions; During the communication process of brain-computer control, a three-step encryption method is used: first, when the Wi-Fi hotspot requests to join an independent channel, the WPA-PSK method is used to perform access verification during the verification process; second, the entire message is sent using an encrypted communication mechanism, and the RSA method is used for encryption and decryption during the parsing process; finally, the entire message is parsed to obtain a single message frame, and the single message frame is still sent encrypted and decrypted, and the message frame parsing process uses a user-customizable fast modular exponentiation method for encryption and decryption.
6. The brain-computer control method based on Wi-Fi independent encrypted channel according to claim 5 is characterized in that: In the EEG recognition module, the CSP algorithm is used to extract EEG signal features, and the extracted features are input into the trained classifier for recognition and classification to obtain the classification results; before that, it also includes collecting the EEG signal data training set of the subjects, the EEG recognition module uses the CSP algorithm to extract EEG signal features from the training set, uses the extracted training set features to train the classifier, and saves the weight file; among them, the classifier uses AdaBoost.
Citation Information
Patent Citations
Secret key processing method and device
CN104244248A
Smart home control method and system based on brain-computer interface
CN110955152A
