Time control method and system for electroencephalogram data and storage medium

By obtaining and recording the timestamp and sampling moment in the EEG data acquisition system, it ensures the accurate time information transmission of each frame of data, solves the problem of poor time accuracy in the existing technology, and improves the real-time and accuracy of data processing. .

CN118655815APending Publication Date: 2024-09-17北京愈心科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410709971.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing EEG data time synchronization processing solutions have unstable delays and multi-modal fusion in the asynchronous process, resulting in poor time accuracy and inability to provide accurate data collection time, affecting the real-time and accuracy of data processing.

Method used

By obtaining the timestamp T0 between the collection end and the host end, and recording the sampling time ti of each frame of EEG data when collecting data, encapsulating it into a data frame and sending it to the host end. The host end obtains each frame by parsing the data frame. The data sampling time Ti ensures the accurate occurrence time of each frame of data.

Benefits of technology

It provides the accurate occurrence time of each frame of data, avoids the loss of time information during data finishing, improves the real-time and accuracy of EEG data processing, and especially maintains the availability of data during asynchronous processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655815A
    Figure CN118655815A
Patent Text Reader

Abstract

The invention discloses a time control method and system for electroencephalogram data and a storage medium, which can provide accurate occurrence time of each frame of data so as not to lose time information during electroencephalogram data finish machining. The method comprises the following steps: when networking pairing of an acquisition end and a host end is successful, the host end obtains a timestamp T0, and the acquisition end synchronously initializes a timer; the acquisition end continuously acquires a preset number of electroencephalogram data according to the sampling rate, records the sampling time ti of each electroencephalogram data, packages the electroencephalogram data and the corresponding sampling time ti into a data frame, and sends the data frame to the host end; the data frame is continuously analyzed through the host end, and the sampling time Ti of each piece of electroencephalogram data is obtained according to the sampling moment ti and the timestamp T0 of each piece of electroencephalogram data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data control technology, and in particular to a time control method, system and storage medium for electroencephalogram data. Background Art

[0002] Electroencephalographs (EEG) detects and records the brain's electrical signal waveform by attaching several electrode sensors to the forehead area in a regular manner. In order to obtain high-quality EEG signals in the forehead area and to obtain intuitive and efficient image display of processed data, the real-time and accuracy of the EEG data collected by the EEG equipment must be guaranteed.

[0003] To improve the real-time performance of EEG data, it is first necessary to ensure the time synchronization between the data processing terminal and the EEG device. Secondly, it is necessary to be able to accurately record and determine the time when data collection occurs. Synchronous processing can obtain the specific collection time of the data.

[0004] The existing EEG data time synchronization processing adopts a network time synchronization processing solution. When the existing solution processes EEG data, especially when it is asynchronous, there are unstable delays in the process, multimodal fusion, etc., the EEG data will be unusable due to poor time accuracy. Summary of the invention

[0005] The purpose of the present invention is to provide a time control method, system and storage medium for EEG data, which can provide the accurate occurrence time of each frame of data so that time information will not be lost when the EEG data is refined.

[0006] In order to achieve the above object, the first aspect of the present invention provides a time control method for EEG data, comprising:

[0007] When the acquisition end and the host end are successfully paired online, the host end obtains the timestamp T0, and the acquisition end synchronously initializes the timer;

[0008] The acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i Encapsulate into data frame and send to the host;

[0009] The host side continuously parses the data frame according to the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

[0010] Preferably, when the acquisition end is successfully paired with the host end through networking, the host end obtains the timestamp T0, and the method for the acquisition end to synchronously initialize the timer includes:

[0011] When the acquisition end and the host end are successfully paired, the host end obtains the millisecond timestamp T0;

[0012] The acquisition end initializes the timer when pairing is successful and starts counting from zero milliseconds.

[0013] Preferably, the acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i The method of encapsulating into a data frame and sending it to the host side includes:

[0014] When the acquisition end collects EEG data, an interrupt notification is triggered. The MCU chip at the acquisition end records the sampling time t of each EEG data. i , where i is the data sampling sequence number in the same frame;

[0015] Continuously collect a preset amount of EEG data according to the data sampling rate and record the sampling time t of each sampled EEG data i ;

[0016] After the data sampling rate requirement is met, the sampled EEG data and the corresponding acquisition time t i Encapsulate into data frame and send to the host.

[0017] Preferably, the host side continuously parses the data frame, and according to the sampling time t of each EEG data i and timestamp T0 to obtain the sampling time T of each EEG data i The methods include:

[0018] After receiving the data frame from the acquisition end, the host end obtains the millisecond count value t of each EEG data from the acquisition end. i ;

[0019] According to the formula T i = T0+t i Calculate the sampling time T of each EEG data i .

[0020] Preferably, the communication mode between the acquisition end and the host end includes one of Bluetooth communication, RFID communication, WiFi communication, Zig Bee communication, and cellular communication.

[0021] Preferably, the acquisition end is an EEG acquisition terminal, and the host end is an intelligent terminal installed with EEG analysis software.

[0022] Compared with the prior art, the time control method of EEG data provided by the present invention has the following beneficial effects:

[0023] The time control method of EEG data provided by the present invention is composed of at least a collection end and a host end. When the collection end and the host end are successfully paired online, the host end obtains the timestamp T0, and the collection end synchronously initializes the timer; the collection end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i The data is packaged into data frames and sent to the host. The host continuously parses the data frames and calculates the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

[0024] Existing EEG data transmission methods generally do not record the actual time of occurrence. Therefore, when processing data, especially when there are unstable delays, multimodal fusion, etc. in the asynchronous process, the data will be unusable. Therefore, the advantage of the present invention is that it can provide the accurate occurrence time of each frame of data, so that the processor will not lose time information when performing data processing.

[0025] A second aspect of the present invention provides a time control system for EEG data, which uses the time control method for EEG data described in the above technical solution, and the system comprises:

[0026] At the acquisition end, when the acquisition end and the host end are successfully paired, the host end obtains the timestamp T0, and the acquisition end synchronously initializes the timer. The acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i Encapsulate into data frame and send to the host;

[0027] The host side continuously parses the data frame and calculates the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

[0028] Preferably, the communication mode between the acquisition end and the host end includes one of Bluetooth communication, RFID communication, WiFi communication, Zig Bee communication, and cellular communication.

[0029] Preferably, the acquisition end is an EEG acquisition terminal, and the host end is an intelligent terminal installed with EEG analysis software.

[0030] Compared with the prior art, the beneficial effects of the EEG data time control system provided by the present invention are the same as the beneficial effects of the EEG data time control method provided by the above technical solution, which will not be elaborated here.

[0031] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned method for controlling the time of EEG data are executed.

[0032] Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present invention are the same as the beneficial effects of the intimacy calculation method based on the placement of sand tools in the sandbox game provided by the above-mentioned technical solution, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0034] Figure 1 Schematic diagram of a method for controlling the time of EEG data in an embodiment of the present invention;

[0035] Figure 2 Schematic diagram of an electronic device. DETAILED DESCRIPTION

[0036] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0037] Embodiment 1

[0038] See also Figure 1 This embodiment provides a method for controlling the time of electroencephalogram data, including:

[0039] When the acquisition end and the host end are successfully paired, the host end obtains the timestamp T0, and the acquisition end synchronously initializes the timer; the acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data i , and the EEG data and the corresponding sampling time t i The data is packaged into data frames and sent to the host. The host continuously parses the data frames and calculates the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

[0040] The time control method of EEG data provided in this embodiment is composed of at least a collection end and a host end. When the collection end and the host end are successfully paired online, the host end obtains the timestamp T0, and the collection end synchronously initializes the timer; the collection end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i The data is packaged into data frames and sent to the host. The host continuously parses the data frames and calculates the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

[0041] Existing EEG data transmission methods generally do not record the actual time of occurrence. Therefore, when processing data, especially when unstable delays, multimodal fusion, etc. occur in the asynchronous process, the data will be unusable. Therefore, the advantage of this embodiment is that it can provide the accurate occurrence time of each frame of data, so that the processor will not lose time information when performing data processing.

[0042] This embodiment adds timestamp information based on the data payload instead of adding the timestamp in the Bluetooth protocol message PDU header. The advantage is that for the device, since there are other business data packets, there is no need to add a timestamp field for business data that does not have higher real-time requirements than EEG data packets. Through on-demand transplantation, the time used for data transmission of the entire business process can also be saved.

[0043] In the above embodiment, when the acquisition end and the host end are successfully paired online, the host end obtains the timestamp T0, and the method for the acquisition end to synchronously initialize the timer includes:

[0044] When the acquisition end and the host end are successfully paired, the host end obtains the millisecond timestamp T0;

[0045] The acquisition end initializes the timer when pairing is successful and starts counting from zero milliseconds.

[0046] In specific implementation, after the host and the acquisition end are paired, the host end records the timestamp T0 (accurate to milliseconds) of the connection time. After the connection, the acquisition end immediately initializes the 1 millisecond timer implemented by the MCU and starts timing from zero.

[0047] In the above embodiment, the acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i The method of encapsulating into a data frame and sending it to the host side includes:

[0048] When the acquisition end collects EEG data, an interrupt notification is triggered. The MCU chip at the acquisition end records the sampling time t of each EEG data. i , where i is the data sampling sequence number in the same frame;

[0049] Continuously collect a preset amount of EEG data according to the data sampling rate and record the sampling time t of each sampled EEG data i ;

[0050] After the data sampling rate requirement is met, the sampled EEG data and the corresponding acquisition time t i Encapsulate into data frame and send to the host.

[0051] In specific implementation, when the EEG ADC at the acquisition end collects data and triggers an interrupt through GPIO to notify the MCU at the acquisition end that the EEG data is ready, the MCU records the timer count value t at the interrupt time. i (i is the data sampling sequence number in the same frame), a fixed amount of EEG data is collected according to the data sampling rate and the t of each sample is recorded i After the data sampling rate requirement is met, the sampled data and the corresponding acquisition time t i Composed data frames are sent to the host;

[0052] In the above embodiment, the host side continuously parses the data frame, and according to the sampling time t of each EEG data i and timestamp T0 to obtain the sampling time T of each EEG data i The methods include:

[0053] After receiving the data frame from the acquisition end, the host end obtains the millisecond count value ti of each EEG data from the acquisition end;

[0054] According to the formula T i = T0+t i Calculate the sampling time T of each EEG data i .

[0055] In specific implementation, after receiving the data frame from the acquisition end, the host end can obtain the millisecond count value t of each EEG data from the acquisition end. i According to the count value, the host can accurately obtain the exact time T when each sample data is collected. i , the timestamp calculation formula is T i = T0+t i .

[0056] Exemplarily, the communication mode between the acquisition end and the host end includes one of Bluetooth communication, RFID communication, WiFi communication, ZigBee communication, and cellular communication, preferably Bluetooth communication.

[0057] Exemplarily, the acquisition end is an EEG acquisition terminal, and the host end is an intelligent terminal installed with EEG analysis software. The host end is preferably a mobile phone.

[0058] It should be noted that since both BLE and EEG (electroencephalogram data) have high requirements for time, they both have high real-time performance. According to the general process, BLE master-slave pairing connection, EEG data collection, EEG data framing, and EEG data transmission on BLE, there are many influences on time in the whole process, and the format of the data frame is particularly important. Therefore, the timing method used inside the acquisition end is not the conventional year, month, day, hour, minute, and second, but a millisecond timer, which can save 3-4 bytes of data frame fields. Due to the maximum transmission unit of low-power Bluetooth, the use of a 3-byte millisecond timing value can ensure that one packet of data transmits more EEG sampling data as much as possible than the conventional 7 or 8 bytes of time information, and the timing range is wider, which improves the transmission efficiency.

[0059] In addition, the timing range can support one-time continuous data collection for about 4.6 hours, that is, within 4.6 hours, the internal timing of the device will not flip and reset, and the flip and reset will not cause timing deviation. Each flip will ensure calibration with the mobile terminal time to eliminate the error caused by time accumulation due to different clock sources between the host and the acquisition end. Therefore, there is no need to convert to the standard time format. Millisecond timing is directly used as the only basis for timing. The host only needs to record the BLE connection, that is, the moment when the acquisition end starts timing, and the time processing steps are placed on the host side with stronger processing and computing capabilities. The acquisition end only obtains the original time information. This not only avoids the loss of accuracy in the time conversion process, but also reduces the time for interrupt processing, reduces the payload size of the data frame and the same-frame packet transmission during BLE transmission, and improves the transmission speed, making the EEG data framing and transmission process more efficient and the data more authentic.

[0060] Embodiment 2

[0061] This embodiment provides a time control system for EEG data, including:

[0062] At the acquisition end, when the acquisition end and the host end are successfully paired, the host end obtains the timestamp T0, and the acquisition end synchronously initializes the timer. The acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i Encapsulate into data frame and send to the host;

[0063] The host side continuously parses the data frame and calculates the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

[0064] Preferably, the communication mode between the acquisition end and the host end includes one of Bluetooth communication, RFID communication, WiFi communication, Zig Bee communication, and cellular communication.

[0065] Preferably, the acquisition end is an EEG acquisition terminal, and the host end is an intelligent terminal installed with EEG analysis software.

[0066] Compared with the prior art, the beneficial effects of the EEG data time control system provided in this embodiment are the same as the beneficial effects of the EEG data time control method provided in the above-mentioned embodiment 1, and will not be elaborated here.

[0067] Embodiment 3

[0068] This embodiment 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 above-mentioned method for controlling the time of EEG data are executed.

[0069] The computer-readable storage medium provided in this embodiment may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0070] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0071] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.

[0072] Alternatively, the computer-readable storage medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; selects an Internet Protocol address from the at least two Internet Protocol addresses; and returns the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.

[0073] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0074] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0075] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0076] The computer-readable storage medium provided in this embodiment stores computer-readable program instructions for executing the above-mentioned EEG data time control method, and can provide the accurate occurrence time of each frame of data so that time information will not be lost when the EEG data is refined.

[0077] Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present invention are the same as the beneficial effects of the time control method of EEG data in the above-mentioned embodiment 1, and will not be elaborated here.

[0078] Embodiment 4

[0079] An embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the time control method of EEG data in the above-mentioned embodiment one.

[0080] Reference below Figure 2 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 2 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0081] like Figure 2 As shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.

[0082] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0083] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0084] The electronic device provided by the present invention adopts the time control method of EEG data in the above-mentioned embodiment 1, and can provide the accurate occurrence time of each frame of data so that time information will not be lost when the EEG data is refined.

[0085] Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the time control method of EEG data provided by the above-mentioned embodiment 1, and other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0086] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0087] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for time control of EEG data, characterized in that: include: When the acquisition end and the host end are successfully paired online, the host end obtains the timestamp T0, and the acquisition end synchronously initializes the timer; The acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i Encapsulate into data frame and send to the host; The host side continuously parses the data frame according to the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

2. The method according to claim 1, characterized in that When the acquisition end and the host end are successfully paired online, the host end obtains the timestamp T0, and the method for the acquisition end to synchronously initialize the timer includes: When the acquisition end and the host end are successfully paired, the host end obtains the millisecond timestamp T0; The acquisition end initializes the timer when pairing is successful and starts counting from zero milliseconds.

3. The method according to claim 1, characterized in that The acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i The method of encapsulating into a data frame and sending it to the host side includes: When the acquisition end collects EEG data, an interrupt notification is triggered. The MCU chip at the acquisition end records the sampling time t of each EEG data. i , where i is the data sampling sequence number in the same frame; Continuously collect a preset amount of EEG data according to the data sampling rate and record the sampling time t of each sampled EEG data i ; After the data sampling rate requirement is met, the sampled EEG data and the corresponding acquisition time t i Encapsulate into data frame and send to the host.

4. The method according to claim 1, characterized in that: The host side continuously parses the data frame according to the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i The methods include: After receiving the data frame from the acquisition end, the host end obtains the millisecond count value ti of each EEG data from the acquisition end; According to the formula T i = T0+t i Calculate the sampling time T of each EEG data i .

5. The method according to any one of claims 1 to 4, characterized in that: The communication method between the acquisition end and the host end includes one of Bluetooth communication, RFID communication, WiFi communication, Zig Bee communication, and cellular communication.

6. The method according to any one of claims 1 to 4, characterized in that: The acquisition end is an EEG acquisition terminal, and the host end is an intelligent terminal installed with EEG analysis software.

7. A time control system for EEG data, characterized in that: include: At the acquisition end, when the acquisition end and the host end are successfully paired, the host end obtains the timestamp T0, and the acquisition end synchronously initializes the timer. The acquisition end continuously collects a preset amount of EEG data according to the sampling rate, and records the sampling time t of each EEG data. i , and the EEG data and the corresponding sampling time t i Encapsulate into data frame and send to the host; The host side continuously parses the data frame and calculates the sampling time t of each EEG data. i and timestamp T0 to obtain the sampling time T of each EEG data i .

8. The system according to claim 7, characterized in that The communication method between the acquisition end and the host end includes one of Bluetooth communication, RFID communication, WiFi communication, Zig Bee communication, and cellular communication.

9. The system according to claim 7, characterized in that The acquisition end is an EEG acquisition terminal, and the host end is an intelligent terminal installed with EEG analysis software.

10. 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 described in any one of claims 1 to 6 are executed.

Citation Information

Cited By

  • Group brain research equipment synchronization method and device, equipment and storage medium

    CN119814213A