A brain fluctuation instrument supporting multi-channel detection
The brain fluctuation instrument enables simultaneous multi-channel EEG detection by using separate threads and secure login protocols, improving efficiency and reducing costs in EEG testing.
Patent Information
- Application Number
- CN202411258896.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-09-10
AI Technical Summary
Current EEG devices are limited to single-person detection, leading to low test efficiency and high costs due to long testing times and waiting times for subjects, which is inefficient and costly.
A brain fluctuation instrument supporting multi-channel detection, utilizing USB and wireless EEG collectors connected to a computer host, with separate threads for UI and data processing, user identity verification, automatic connection, and login protocols to enable simultaneous detection of multiple individuals while ensuring data security and stability.
Enhances detection efficiency and reduces costs by allowing simultaneous testing of multiple individuals, maintaining data security and stability through thread separation, user identification, and secure login protocols.
Smart Images

Figure CN118787366B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of brain fluctuation graphs, in particular to a brain fluctuation graph supporting multi-channel detection. Background Art
[0002] The EEG is a special device used for EEG signal collection and analysis, and is often used in medical or scientific EEG signal collection projects. The characteristic of the EEG is that it requires long-term sampling, and the sampling time is at least 10 minutes. The current EEG can only detect one person at a time. If the time for wearing the electrode cap and adjusting the electrodes is included, the entire test time is about 20 minutes. The test efficiency is low, which makes the test subjects wait in line for too long, and the test cost is high. Summary of the invention
[0003] In order to overcome the shortcomings of the existing technology, a brain fluctuation instrument supporting multi-channel detection is proposed. It supports simultaneous detection of multiple people, can improve detection efficiency and reduce detection costs.
[0004] A brain fluctuation grapher supporting multi-channel detection, comprising:
[0005] A brain fluctuation graph host, wherein the brain fluctuation graph host comprises a computer host;
[0006] A plurality of EEG collectors, wherein the EEG collectors include any one or both of a USB EEG collector and a wireless EEG collector; when the EEG collectors include USB EEG collectors, the USB EEG collectors are connected to the computer host via a USB interface; when the EEG collectors include wireless EEG collectors, the wireless EEG collectors are connected to the computer host via a wireless router;
[0007] The UI interface in the computer host, the USB EEG collector, and the wireless EEG collector are respectively run in separate threads; the separate threads in the USB EEG collector and the wireless EEG collector are used for EEG data reception and decoding and filtering functions, and the decoded and filtered EEG data are exchanged with the separate thread in the UI interface;
[0008] The USB EEG collector and the wireless EEG collector both have a user information identification module, and the user information identification module is used to receive and display the identity information of the user to be tested sent from the computer host.
[0009] Preferably, after the wireless EEG collector detects that it has lost connection with the brain fluctuation graph host, it automatically connects through the following steps:
[0010] S11, the wireless EEG collector broadcasts a UDP data packet at a preset time interval, and the UDP data packet includes the IP and port of the current wireless EEG collector;
[0011] S21, after receiving the UDP data packet, the brain fluctuation graph compares it with the pre-set terminal EEG collector information; if the comparison result is consistent, a feedback packet containing the IP and port of the brain fluctuation graph is sent to the wireless EEG collector; if the comparison result is inconsistent, the brain fluctuation graph does not respond;
[0012] S31, after receiving the feedback package, the wireless EEG collector establishes a connection with the electroencephalogram instrument according to the IP and port in the feedback package.
[0013] Preferably, after the wireless EEG collector establishes a connection with the brain fluctuation graph, the brain fluctuation graph verifies the login identity of the wireless EEG collector, and includes:
[0014] S21, the brain fluctuation grapher generates a check code by using a preset check code generation formula, and sends the encrypted preset check code generation formula to the wireless EEG collector;
[0015] S22, the wireless EEG collector decrypts the received preset verification code generation formula, and calculates the verification code according to the decrypted verification code generation formula; and sends the verification code to the brain fluctuation graph;
[0016] S23, the brain fluctuation grapher compares the received code to be verified with the verification code. If the two are consistent, the wireless EEG collector is successfully logged in; if the two are inconsistent, the wireless EEG collector fails to log in.
[0017] Preferably, the preset check code generation formula includes: a first initial value, a second initial value, a third initial value, a first operator and a second operator;
[0018] Among them, the first initial value, the second initial value, and the third initial value are all random numbers, and the value ranges of the random numbers are the same or different; the first operator is located between the first initial value and the second initial value, the second operator is located between the second initial value and the third initial value, and the operation priorities of the first operator and the second operator are the same or different.
[0019] Preferably, the wireless EEG collector broadcasts a UDP data packet at a preset time interval, and further comprises:
[0020] S111, the wireless EEG collector first encrypts the UDP data packet, and then broadcasts the encrypted UDP data packet at a preset time interval;
[0021] After receiving the UDP data packet, the brain fluctuation grapher further comprises:
[0022] S121, first decrypt the UDP data packet, and compare it with the pre-set terminal EEG collector information if the decryption is correct.
[0023] Preferably, when encrypting the UDP data packet, a DES encryption algorithm is used.
[0024] Preferably, when the wireless EEG collector logs in successfully, the brain fluctuation graph sends a JSON format data packet containing system time to the wireless EEG collector; when the wireless EEG collector logs in unsuccessfully, the brain fluctuation graph disconnects from the wireless EEG collector.
[0025] The electroencephalogram supporting multi-channel detection provided by the present invention includes multiple electroencephalogram collectors connected to the electroencephalogram host through a USB interface or wirelessly, which can support simultaneous detection of multiple people, improve detection efficiency and reduce detection costs; at the same time, it adopts UI and data separation technology (that is, the UI interface and the electroencephalogram collector respectively use independent threads for data processing and data interaction), user identity information recognition technology (that is, to prevent confusion in the data obtained by each electroencephalogram collector during simultaneous detection), automatic connection technology (to keep the wireless electroencephalogram collector online) and login verification technology (to prevent information leakage and ensure data security), thereby ensuring stability and security during multi-channel detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 The framework diagram of the brain fluctuation instrument that supports multi-channel detection. DETAILED DESCRIPTION
[0027] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention.
[0028] Provide a brain fluctuation instrument that supports multi-channel detection, such as Figure 1 As shown, including:
[0029] A brain fluctuation graph host, the brain fluctuation graph host includes a computer host;
[0030] Multiple EEG collectors, including any one or both of USB EEG collectors and wireless EEG collectors; when the EEG collector includes a USB EEG collector, the USB EEG collector is connected to the computer host via a USB interface; when the EEG collector includes a wireless EEG collector, the wireless EEG collector is connected to the computer host via a wireless router.
[0031] Specifically, the brain fluctuation graph that supports multi-channel detection adopts the UI and data separation technology, that is, the UI interface in the computer host runs in a separate thread, and each EEG collector is assigned a separate thread to manage. The EEG collector thread implements the EEG collector data reception and decoding filtering functions, and the EEG data after decoding and filtering is exchanged with the UI interface through inter-thread communication. This can avoid the problem that when the UI interface and the EEG collector are running in the same thread, if the interface pop-up window action occurs, the thread will be blocked, thereby causing data loss.
[0032] At the same time, both the USB EEG collector and the wireless EEG collector have a user information identification module, which is used to receive and display the identity information of the user to be tested sent from the computer host. That is, since multiple users are supported for testing at the same time, the user information detected by each device must correspond one to one to obtain the correct test results. Therefore, after the computer host establishes the user information, the user information is sent to the corresponding EEG collector to facilitate confirmation of whether it is correct and ensure that the collected data is correct. For example, the user information identification module may include a display device, a sound playback device, etc.
[0033] Furthermore, the brain fluctuation graph apparatus supporting multi-channel detection also includes an automatic connection algorithm for the wireless EEG collector, so as to enable the wireless EEG collector to automatically connect after detecting that the connection with the brain fluctuation graph apparatus host is lost. Specifically, the steps include:
[0034] S11, the wireless EEG collector broadcasts a UDP data packet at a preset time interval, and the UDP data packet contains the IP and port of the current wireless EEG collector. That is, the wireless EEG collector broadcasts its own IP address and port information at a preset time interval. Preferably, the UDP data packet is encrypted by the DES algorithm.
[0035] S21, after receiving the UDP data packet, the brain fluctuation grapher compares it with the pre-set terminal EEG collector information. The pre-set terminal EEG collector information includes but is not limited to the IP address and port information of the wireless EEG collector, and can also be the MAC address, machine name, etc. of the wireless EEG collector. For the DES encrypted data packet, the DES algorithm is also used to first decrypt the data packet and then compare it.
[0036] If the comparison results are consistent, a feedback packet containing the IP and port of the brain fluctuation graph is sent to the wireless EEG collector. The IP and port of the brain fluctuation graph included in the feedback packet facilitate the wireless EEG collector to establish a connection after receiving it. If the comparison results are inconsistent, the brain fluctuation graph does not respond.
[0037] S31, after receiving the feedback packet, the wireless EEG collector establishes a connection with the brain fluctuation graph according to the IP and port in the feedback packet. Preferably, the feedback packet is also sent in an encrypted manner, and the invalid EEG collector first decrypts it after receiving it, and then establishes a connection with the brain fluctuation graph according to the IP and port in the feedback packet after the decryption is correct, such as a TCP connection.
[0038] Furthermore, the brain fluctuation graph instrument supporting multi-channel detection also includes a login verification algorithm to prevent illegal connection from collecting incorrect data and obtaining wrong detection results, thereby ensuring data security. The login verification algorithm includes:
[0039] S21, the brain fluctuation grapher generates a check code through a preset check code generation formula, and sends the encrypted preset check code generation formula to the wireless EEG collector.
[0040] S22, the wireless EEG collector decrypts the received preset verification code generation formula, and calculates the verification code according to the decrypted verification code generation formula; and sends the verification code to the brain fluctuation graph.
[0041] S23, the brain fluctuation grapher compares the received verification code with the verification code. If the two are consistent, the wireless EEG collector logs in successfully; if the two are inconsistent, the wireless EEG collector logs in unsuccessfully.
[0042] Among them, the preset check code generation formula can be flexibly set. In a preferred embodiment, the preset check code generation formula includes: a first initial value, a second initial value, a third initial value, and a first operator and a second operator; the first initial value, the second initial value, and the third initial value are all random numbers, and the value ranges of the random numbers are the same or different; the first operator is between the first initial value and the second initial value, the second operator is between the second initial value and the third initial value, and the operation priorities of the first operator and the second operator are the same or different.
[0043] Assume that the first initial value, the second initial value, and the third initial value are a, b, and c respectively, and the first operator and the second operator are f1 and f2 respectively. The login verification process is as follows:
[0044] 1) Let a, b, c be integers between -32768 and 32768, f1 and f2 represent the - and ÷ operators respectively, and the calculation priority of f1 is higher than that of f2. For example: a = 366, b = 1280, c = 3, then the final check code generation formula is: f = (366 - 1280) ÷ 3, where f is the check code.
[0045] 2) The host of the brain fluctuation graph directly converts the generated check code generation formula into unsigned bytes in binary form, encrypts it with the DES algorithm, and sends it to the wireless EEG collector;
[0046] 3) After receiving the login data packet, the wireless EEG collector uses the DES algorithm to decrypt it and obtain the original information, and then converts the binary information into a, b, c, f1 and f2. Then f' is calculated according to the rules of 1), and then the encrypted data packet generated by f' is sent to the host of the brain fluctuation graph;
[0047] 4) After receiving the returned result f', the brain fluctuation graph host compares it with the calculation result f generated by itself; if f' is equal to f, it means the result is correct and sends a data packet containing the system time in JSON format to the wireless EEG collector to confirm the successful login; if f' is not equal to f, the connection with the wireless EEG collector is disconnected and the login to the wireless EEG collector fails.
[0048] The above is an explanation of the brain fluctuation graph supporting multi-channel detection of the present invention, which is used to help understand the present invention; however, the implementation mode of the present invention is not limited to the above-mentioned embodiments, and any changes, modifications, substitutions, combinations, and simplifications made without departing from the principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A brain fluctuation instrument supporting multi-channel detection, characterized in that: include: A brain fluctuation graph host, the brain fluctuation graph host comprises a computer host; A plurality of EEG collectors, wherein the EEG collectors include USB EEG collectors and wireless EEG collectors; the wireless EEG collectors are connected to the computer host via a wireless router; The UI interface in the computer host, the USB EEG collector, and the wireless EEG collector are respectively run in separate threads; the separate threads in the USB EEG collector and the wireless EEG collector are used for EEG data reception and decoding and filtering functions, and the decoded and filtered EEG data are exchanged with the separate thread in the UI interface; The USB EEG collector and the wireless EEG collector both have a user information identification module, and the user information identification module is used to receive and display the identity information of the user to be tested sent from the computer host; After the wireless EEG collector detects that it has lost connection with the brain fluctuation graph host, it automatically connects through the following steps: S11, the wireless EEG collector broadcasts a UDP data packet at a preset time interval, and the UDP data packet includes the IP and port of the current wireless EEG collector; S21, after receiving the UDP data packet, the brain fluctuation graph compares it with the pre-set terminal EEG collector information; if the comparison result is consistent, a feedback packet containing the IP and port of the brain fluctuation graph is sent to the wireless EEG collector; if the comparison result is inconsistent, the brain fluctuation graph does not respond; S31, after receiving the feedback packet, the wireless EEG collector establishes a connection with the brain fluctuation graph according to the IP and port in the feedback packet; After the wireless EEG collector establishes a connection with the brain fluctuation graph, the brain fluctuation graph verifies the login identity of the wireless EEG collector, and includes: S311, the brain fluctuation grapher generates a check code by using a preset check code generation formula, and sends the encrypted preset check code generation formula to the wireless EEG collector; S312, the wireless EEG collector decrypts the received preset verification code generation formula, and calculates the verification code according to the decrypted verification code generation formula; and sends the verification code to the brain fluctuation graph; S313, the brain fluctuation grapher compares the received code to be verified with the verification code. If the two are consistent, the wireless EEG collector is successfully logged in; if the two are inconsistent, the wireless EEG collector fails to log in; The preset check code generation formula includes: a first initial value, a second initial value, a third initial value, a first operator and a second operator; Among them, the first initial value, the second initial value, and the third initial value are all random numbers, and the value ranges of the random numbers are the same or different; the first operator is located between the first initial value and the second initial value, the second operator is located between the second initial value and the third initial value, and the operation priorities of the first operator and the second operator are the same or different.
2. The brain fluctuation instrument supporting multi-channel detection as claimed in claim 1, characterized in that: The wireless EEG collector broadcasts a UDP data packet at a preset time interval, and also includes: S111, the wireless EEG collector first encrypts the UDP data packet, and then broadcasts the encrypted UDP data packet at a preset time interval; After receiving the UDP data packet, the brain fluctuation grapher further comprises: S121, first decrypt the UDP data packet, and compare it with the pre-set terminal EEG collector information if the decryption is correct.
3. The brain fluctuation instrument supporting multi-channel detection as claimed in claim 2, characterized in that: When encrypting the UDP data packet, the DES encryption algorithm is adopted.
4. The brain fluctuation instrument supporting multi-channel detection as claimed in claim 1, characterized in that: When the wireless EEG collector logs in successfully, the brain fluctuation graph sends a JSON format data packet containing system time to the wireless EEG collector; when the wireless EEG collector logs in unsuccessfully, the brain fluctuation graph disconnects from the wireless EEG collector.