CN113143290B - Data synchronization method of electroencephalogram device and electroencephalogram device - Google Patents

Data synchronization method of electroencephalogram device and electroencephalogram device Download PDF

Info

Publication number
CN113143290B
CN113143290B CN202110482597.8A CN202110482597A CN113143290B CN 113143290 B CN113143290 B CN 113143290B CN 202110482597 A CN202110482597 A CN 202110482597A CN 113143290 B CN113143290 B CN 113143290B
Authority
CN
China
Prior art keywords
subsystem
data
communication protocol
wireless communication
processing system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110482597.8A
Other languages
Chinese (zh)
Other versions
CN113143290A (en
Inventor
王浩冲
史改革
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Zhentai Intelligent Technology Co ltd
Original Assignee
Xi'an Zhentai Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Zhentai Intelligent Technology Co ltd filed Critical Xi'an Zhentai Intelligent Technology Co ltd
Priority to CN202110482597.8A priority Critical patent/CN113143290B/en
Publication of CN113143290A publication Critical patent/CN113143290A/en
Application granted granted Critical
Publication of CN113143290B publication Critical patent/CN113143290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/0002Remote monitoring of patients using telemetry, e.g. transmission of vital signals via a communication network
    • A61B5/0015Remote monitoring of patients using telemetry, e.g. transmission of vital signals via a communication network characterised by features of the telemetry system
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/0002Remote monitoring of patients using telemetry, e.g. transmission of vital signals via a communication network
    • A61B5/0015Remote monitoring of patients using telemetry, e.g. transmission of vital signals via a communication network characterised by features of the telemetry system
    • A61B5/0022Monitoring a patient using a global network, e.g. telephone networks, internet

Abstract

The invention discloses a data synchronization method of an electroencephalogram device and the electroencephalogram device, comprising the following steps: the central processing system sends instructions to all subsystems through a first wireless communication protocol so as to complete synchronization of all subsystems; the acquisition subsystem acquires data information and transmits the data information at a preset frequency, adds a first time stamp corresponding to the data information into a data packet, sends the data information to the central processing system, and the marking subsystem sends a second time stamp corresponding to the moment of an event occurrence signal according to the event occurrence signal transmitted by the central processing system through a wired communication protocol; the central processing system receives the data packet sent by the acquisition subsystem through a second wireless communication protocol, acquires a current second time stamp from the marking subsystem through a wired communication protocol, a first wireless communication protocol or a second wireless communication protocol, and aligns data points corresponding to the second time stamp according to the second time stamp acquired from the marking subsystem.

Description

Data synchronization method of electroencephalogram device and electroencephalogram device
Technical Field
The embodiment of the invention relates to the technical field of biological information, in particular to a data synchronization method of an electroencephalogram device and the electroencephalogram device.
Background
Event-related evoked potentials (ERP) are brain electrical signals (EEG) caused by specific stimuli that reflect neurophysiologic changes in the cognitive processes of the brain under the stimulus. During electroencephalogram signal acquisition, events and data often have strict lock-time relationships, such as event-related evoked potentials (ERP) and phase-related steady-state visual evoked potentials. Therefore, when the electroencephalogram data is recorded, the time when the event occurs needs to be accurately recorded, and the time error of the event and the data is required to be +/-1 ms.
The existing synchronization method mainly comprises two kinds of methods: one is digital wired synchronization, concretely: the event generator can generate a Transistor-Transistor Logic (TTL) level signal when an event occurs, and the TTL level signal is transmitted to the electroencephalogram acquisition device in a wired mode. After the brain electricity acquisition device detects TTL level, a synchronous label is added in the data to mark the occurrence time of an event. The other is analog wired synchronization, specifically: the synchronous trigger signal generated by the event generator is directly connected to 1 lead of the multi-lead electroencephalogram acquisition device, and the trigger signal and the electroencephalogram signal are acquired simultaneously. The synchronization of the event and the data can be realized by analyzing the acquired data of the trigger signal lead and the electroencephalogram signal lead.
However, most of the existing high-precision data transmission methods are wired transmission, require wired connection between an event generator and an electroencephalogram acquisition system, and bring great inconvenience to related experiments and researches. The existing wireless data synchronization technology has the disadvantages of low transmission speed, low transmission efficiency and complex transmission process, and is difficult to realize synchronous acquisition of various stimulation systems.
Disclosure of Invention
The embodiment of the invention provides a data synchronization method of an electroencephalogram device and the electroencephalogram device, which are used for realizing wireless synchronization of data of a general computer and wireless electroencephalogram equipment, aligning events in the computer with electroencephalogram acquisition data, and realizing data synchronization of a plurality of electroencephalogram acquisition devices, wherein the synchronization precision is within 1ms and can be applied to various stimulation events.
In a first aspect, an embodiment of the present invention provides a data synchronization method of an electroencephalogram device, where the electroencephalogram device includes a central processing system, a marking subsystem and at least one acquisition subsystem;
the data synchronization method of the electroencephalogram device comprises the following steps:
the central processing system sends instructions to the marking subsystem and the acquisition subsystem through a first wireless communication protocol so as to complete synchronization of the marking subsystem and the acquisition subsystem;
the acquisition subsystem acquires data information and transmits the data information at a preset frequency, adds a first time stamp corresponding to the data information into a data packet, and sends the data information to the central processing system together with the data information, and meanwhile, the marking subsystem sends a second time stamp corresponding to the time of the event occurrence signal according to the event occurrence signal transmitted by the central processing system through a wired communication protocol; wherein the data information in the data packet includes consecutive 1 st signal data point, …, i-1 st signal data point, and i-th signal data point, i being a positive integer;
the central processing system receives the data packet sent by the acquisition subsystem through a second wireless communication protocol, acquires a current second timestamp from the marking subsystem through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and aligns a data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem.
Optionally, the first timestamp includes:
a 1 st sampling time point corresponding to the 1 st signal data point, …, an i-1 st sampling time point corresponding to the i-1 st signal data point, and an i-th sampling time point corresponding to the i-th signal data point; or,
sequence numbers 1 and … corresponding to the 1 st signal data point, sequence number 2 corresponding to the i-1 st signal data point, and sequence number i corresponding to the i-th signal data point.
Optionally, the central processing system sends instructions to the marking subsystem and the acquisition subsystem through a first wireless communication protocol, including:
step 111, the central processing system sends a preparation start synchronization instruction to the marking subsystem and the acquisition subsystem through a first wireless communication protocol;
step 112, the marking subsystem and the acquisition subsystem respond to the central processing system according to the preparation start synchronous instruction to prepare to complete the instruction;
step 113, the central processing system determines the marking subsystem and the collecting subsystem according to the preparation completion instruction to complete preparation start synchronization, and sends a synchronization instruction to the marking subsystem and the collecting subsystem through the first wireless communication protocol, so that the marking subsystem resets its time stamp according to the synchronization instruction and the collecting subsystem resets its time stamp according to the synchronization instruction.
Optionally, after step 113, the method further includes:
the central processing system simultaneously transmits a synchronous query instruction to the at least one acquisition subsystem and the marking subsystem through a first wireless communication protocol;
the acquisition subsystem responds to the central processing system with a first initial time stamp at the moment according to the synchronous query instruction, and the marking subsystem responds to the central processing system with a second initial time stamp at the moment according to the synchronous query instruction;
the central processing system judges whether the difference value between the first initial timestamp and the second initial timestamp is within a first preset range;
and if the difference value between the first initial timestamp and the second initial timestamp is within a first preset range, the synchronization of the marking subsystem and the acquisition subsystem is completed.
Optionally, if the difference between the first initial timestamp and the second initial timestamp is not within the first preset range, returning to step 113 until the difference between the first initial timestamp and the second initial timestamp is within the first preset range.
Optionally, the marking subsystem includes a first chip, and the collecting subsystem includes a second chip;
the first chip and the second chip are the same in chip type.
Optionally, the acquisition subsystem includes at least one of an electroencephalogram acquisition device, an myoelectricity acquisition device and an electrocardiograph acquisition device;
the data information comprises an electroencephalogram signal, an electromyographic signal or an electrocardiosignal.
Optionally, the wired communication protocol includes one of TTL, SDIO protocol, parallel port communication, serial port communication, USB protocol, HMDI protocol;
the first wireless communication protocol includes: UDP protocol or ICMP protocol;
the second wireless communication protocol includes: TCP/IP protocol.
In a second aspect, an embodiment of the present invention further provides an electroencephalogram apparatus, configured to implement the data synchronization method of the electroencephalogram apparatus according to the first aspect, where the electroencephalogram apparatus includes: the system comprises a central processing system, a marking subsystem and at least one acquisition subsystem;
the central processing system is used for sending instructions to the marking subsystem and the acquisition subsystem through a first wireless communication protocol so as to complete synchronization of the marking subsystem and the acquisition subsystem;
the acquisition subsystem is used for acquiring data information and transmitting the data information at a preset frequency, adding a first timestamp corresponding to the data information into a data packet, and sending the data information and the first timestamp to the central processing system; wherein the data information in the data packet includes consecutive 1 st signal data point, …, i-1 st signal data point, and i-th signal data point, i being a positive integer;
the marking subsystem is used for sending a second time stamp of the corresponding moment of the event occurrence signal according to the event occurrence signal transmitted by the central processing system through a wired communication protocol;
the central processing system is further configured to receive the data packet sent by the acquisition subsystem through a second wireless communication protocol, acquire a current second timestamp from the marking subsystem through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and align a data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem.
Optionally, the central processing system includes a data processing module, a first wired communication module, and a first wireless communication module;
the marking subsystem comprises a second wired communication module and a second wireless communication module;
the acquisition subsystem comprises a data acquisition processing module and a network communication module;
the first wired communication module is used for establishing wired connection with the second wired communication module through a wired communication protocol;
the first wireless communication module is used for establishing wireless network connection with the second wireless communication module through a first wireless communication protocol; the network communication module is also used for establishing wireless network connection with the network communication module through a first wireless communication protocol and a second wireless communication protocol;
the data processing module is used for sending an instruction to the marking subsystem and the acquisition subsystem through the first wireless communication module in the central processing system according to the first wireless communication protocol so as to complete synchronization of the marking subsystem and the acquisition subsystem;
the data acquisition processing module is used for acquiring data information and transmitting the data information at a preset frequency, adding a first timestamp corresponding to the data information into a data packet, transmitting the data information to the data processing module together with the data information, and simultaneously transmitting a second timestamp corresponding to the moment of the event occurrence signal by the marking subsystem according to the event occurrence signal transmitted by the data processing module through the wired communication protocol;
the data processing module is further configured to receive, through the second wireless communication protocol, a data packet sent by the acquisition subsystem, obtain, through the wired communication protocol, the first wireless communication protocol, or the second wireless communication protocol, a current second timestamp from the marking subsystem, and align a data point corresponding to the second timestamp according to the second timestamp obtained from the marking subsystem.
The central processing system controls the occurrence of an event, when the event occurs, an event occurrence signal is transmitted to the marking subsystem through a low-delay wired transmission protocol, and when the marking subsystem receives the event occurrence signal, the marking subsystem immediately transmits a time stamp of the current moment to the central processing system through the low-delay wired transmission protocol or a wireless communication protocol, so that the central processing system determines data corresponding to the time stamp when the event occurs according to the time stamp, the problem of delay is avoided, and the time position of the event is accurately aligned with the position of data such as brain electricity. In addition, when the electroencephalogram device comprises a plurality of acquisition subsystems, the data information of the acquisition subsystems can be mutually aligned, so that high-precision synchronization of acquired data is ensured; the data synchronization method and the electroencephalogram device provided by the embodiment of the invention can be applied to various stimulation events.
Drawings
Fig. 1 is a schematic structural diagram of an electroencephalogram device according to an embodiment of the present invention;
fig. 2 is a flowchart of a data synchronization method of an electroencephalogram device according to an embodiment of the present invention;
FIG. 3 is a flowchart of a data synchronization method of another electroencephalogram device according to an embodiment of the present invention;
FIG. 4 is a flowchart of a data synchronization method of another electroencephalogram device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of still another electroencephalogram device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Fig. 1 is a schematic structural diagram of an electroencephalogram device according to an embodiment of the present invention, and as shown in fig. 1, an electroencephalogram device 100 according to an embodiment of the present invention includes a central processing system 10, a marking subsystem 20, and at least one acquisition subsystem 30, where fig. 1 illustrates that the electroencephalogram device 100 includes two acquisition subsystems 30 as an example. The central processing system 10 is configured to send instructions to the marking subsystem 20 and the acquisition subsystem 30 through a first wireless communication protocol to complete synchronization of the marking subsystem 20 and the acquisition subsystem 30. The acquisition subsystem 30 is configured to acquire data information and transmit the data information at a preset frequency, and add a first timestamp corresponding to the data information to the data packet, and send the data information together to the central processing system 10; wherein, the data information in the data packet comprises a continuous 1 st signal data point, a continuous … th signal data point, a continuous i-1 st signal data point and a continuous i signal data point, wherein i is a positive integer; and a marking subsystem 20 for transmitting a second time stamp corresponding to the time of the event occurrence signal according to the event occurrence signal transmitted by the central processing system 10 through the wired communication protocol. The central processing system 10 is further configured to receive the data packet sent by the acquisition subsystem 30 through the second wireless communication protocol, acquire the current second timestamp from the marking subsystem 20 through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and perform alignment of the data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem 20.
Fig. 2 is a flowchart of a data synchronization method of an electroencephalogram device according to an embodiment of the present invention, where, as shown in fig. 2, the data synchronization method of an electroencephalogram device according to an embodiment of the present invention includes:
step 110, the central processing system sends instructions to the marking subsystem and the acquisition subsystem through the first wireless communication protocol so as to complete synchronization of the marking subsystem and the acquisition subsystem.
Wherein the first wireless communication protocol comprises: UDP protocol or ICMP protocol, etc. The marking subsystem 20 and the collecting subsystem 30 are respectively two independent systems, the marking subsystem 20 is used for transmitting the time stamp, and the collecting subsystem 30 is used for transmitting the collected data information; or both data information and a timestamp. Wherein, the acquisition subsystem 30 comprises at least one of an electroencephalogram acquisition device, an electromyographic acquisition device and an electrocardio acquisition device, and correspondingly, the data information comprises an electroencephalogram signal, an electromyographic signal or an electrocardio signal. The tagging subsystem 20 may be plugged onto the central processing system 10, for example, via USB.
Illustratively, before the acquisition subsystem 30 transmits the data information, the central processing system 10 sends an instruction to both the acquisition subsystem 30 (e.g., an electroencephalogram acquisition device) and the marking subsystem 20 via a wireless broadcast protocol (e.g., UDP protocol) to complete synchronization of the marking subsystem 20 and the acquisition subsystem 30. If there are multiple acquisition subsystems 30, the timestamps of all the acquisition subsystems 30 are also aligned due to the UDP broadcast.
Optionally, the marking subsystem 20 comprises a first chip and the acquisition subsystem 30 comprises a second chip; the first chip and the second chip are the same chip type. I.e. the acquisition subsystem 30 and the marking subsystem 20 are similar using embedded hardware, high precision synchronization can be achieved when the marking subsystem 20 and the acquisition subsystem 30 receive instructions at the same time, and error accumulation is slow in subsequent acquisitions.
And 120, the acquisition subsystem acquires data information and transmits the data information at a preset frequency, adds a first time stamp corresponding to the data information into a data packet, and sends the data information to the central processing system together, and meanwhile, the marking subsystem sends a second time stamp corresponding to the moment of the event occurrence signal according to the event occurrence signal transmitted by the central processing system through a wired communication protocol.
The wired communication protocol comprises one of TTL, SDIO protocol, parallel port communication, serial port communication, USB protocol and HMDI protocol.
The data packet includes both a continuous signal data point and a first timestamp, the continuous signal data point including a 1 st signal data point, a … th, an i-1 st signal data point, and an i-th signal data point; the first timestamp includes a point count form or a time form; the time format is, for example: a 1 st sampling time point corresponding to the 1 st signal data point, …, an i-1 st sampling time point corresponding to the i-1 st signal data point, and an i-th sampling time point corresponding to the i-th signal data point; the sampling time point may be a specific time, for example, the 1 st sampling time point corresponding to the 1 st signal data point is 0.01s, and the 2 nd sampling time point corresponding to the 2 nd signal data point is 0.02s, …. The dot count form is, for example: the sequence number corresponding to a signal data point, for example, the timestamp corresponding to the 1 st signal data point is 1, the timestamp corresponding to the 2 nd signal data point is 2, …, and the timestamp corresponding to the i-th signal data point is i.
For example, when the first time stamp is in a time form, after the marking subsystem 20 and the collecting subsystem 30 are completed synchronously, the time stamps of all the collecting subsystems 30 and the time stamps of the marking subsystem 20 are accumulated at the same time interval, and all the collecting subsystems 30 collect and transmit data at the same frequency. When an event occurs, transmitting an event occurrence signal to the marking subsystem 20 through a low-delay wired transmission protocol, and the marking subsystem 20 transmitting a time stamp at the moment, namely a second time stamp, to the central processing system 10 through a wired communication protocol; wherein the second timestamp is also typically single independent, since the event occurrence is separate (e.g., flashing visual stimulus occurs at a certain moment). The acquisition subsystem 30 sends a data inclusion comprising successive sampling time points and all signal data points corresponding to the successive sampling time points to the central processing system 10.
Although there is still a millisecond delay in the signal transmission process, this delay is a fixed system error and can be eliminated by data processing.
And 130, the central processing system receives the data packet sent by the acquisition subsystem through a second wireless communication protocol, acquires a current second time stamp from the marking subsystem through a wired communication protocol, a first wireless communication protocol or a second wireless communication protocol, and aligns data points corresponding to the second time stamp according to the second time stamp acquired from the marking subsystem.
Wherein the second wireless communication protocol comprises: TCP/IP protocol, etc.
Illustratively, the first timestamp and the second timestamp are in the form of point counts, such as 1,2,3,4, … … N, where N is the total acquisition point number. For example, the sampling rate of the system is 256Hz, the total sampling point number at time t is t×256, if an event occurs at this time, the second timestamp returned by the marking subsystem 20 is "t×256", and it is known by the central processing system 10 that the data at the time point t×256 in the data packet returned by the collecting subsystem 30 is the data at the beginning of the event. The data position of the event occurrence time can be accurately determined.
Because the wireless electroencephalogram acquisition system and the general computer central processing system in the prior art carry out data transmission such as electroencephalogram, the wireless connection protocol adopts a high-delay protocol such as TCP/IP, the transmission time is long, and the instantaneity is poor, when the general computer central processing system generates an event, the timestamp in the acquisition system cannot be directly read for alignment. In the embodiment of the invention, when an event is generated by the central processing system of the general-purpose computer, the event can be transmitted to the marking subsystem 20 through wired connection, so that the marking subsystem 20 timely stamps the time corresponding to the event, the problem of delay is avoided, and the time position of the event can be accurately aligned with the data positions such as electroencephalogram and the like.
In summary, in the technical scheme provided by the embodiment of the invention, the central processing system is provided with the marking subsystem, the central processing system controls the occurrence of events, when events occur, an event occurrence signal is transmitted to the marking subsystem through a low-delay wired transmission protocol, and when the marking subsystem receives the event occurrence signal, the marking subsystem immediately transmits a time stamp of the current moment to the central processing system through the low-delay wired transmission protocol or the wireless transmission protocol, so that the central processing system determines the data corresponding to the time stamp when the events occur according to the time stamp, the problem of delay is avoided, and the time position of the events is accurately aligned with the data position of the electroencephalogram and the like. In addition, when the electroencephalogram device comprises a plurality of acquisition subsystems, the data information of the acquisition subsystems can be mutually aligned, so that high-precision synchronization of acquired data is ensured; the data synchronization method and the electroencephalogram device provided by the embodiment of the invention can be applied to various stimulation events.
Optionally, fig. 3 is a flowchart of a data synchronization method of an electroencephalogram device according to another embodiment of the present invention, where the data synchronization method of the electroencephalogram device and the data synchronization method of the electroencephalogram device of the foregoing embodiments belong to the same inventive concept, and details of the data synchronization method of the electroencephalogram device that are not described in detail in this embodiment may refer to embodiments of the data synchronization method of the foregoing electroencephalogram device. As shown in fig. 3, the data synchronization method of an electroencephalogram device provided by the embodiment of the invention includes:
step 211, the central processing system sends a preparation start synchronization instruction to the marking subsystem and the acquisition subsystem through the first wireless communication protocol.
Wherein the central processing system 10 sends a ready to start synchronization instruction to the marking subsystem 20 and the acquisition subsystem 30 via the first wireless communication protocol, i.e. the central processing system 10 determines whether the marking subsystem 20 and the acquisition subsystem 30 can be synchronized at this time.
Step 212, the tagging subsystem and the acquisition subsystem respond to the central processing system in response to the ready-to-begin synchronization instruction to prepare for completion instructions.
Wherein the marking subsystem 20 and the acquisition subsystem 30 respond to the central processing system that synchronization is possible at this time according to the preparation start synchronization instruction.
Step 213, the central processing system determines the marking subsystem and the collecting subsystem according to the preparation completion instruction to complete preparation start synchronization, and sends a synchronization instruction to the marking subsystem and the collecting subsystem through the first wireless communication protocol, so that the marking subsystem resets its time stamp according to the synchronization instruction and the collecting subsystem resets its time stamp according to the synchronization instruction.
When the central processing system 10 receives a message that the marking subsystem 20 and the collecting subsystem 30 can perform synchronization, the central processing system 10 sends a synchronization instruction to the marking subsystem 20 and the collecting subsystem 30 through the first wireless communication protocol, so that the marking subsystem 20 resets its time stamp according to the synchronization instruction and the collecting subsystem 30 resets its time stamp according to the synchronization instruction, so as to complete synchronization of the marking subsystem 20 and the collecting subsystem 30.
220, the acquisition subsystem acquires data information and transmits the data information at a preset frequency, adds a first timestamp corresponding to the data information into a data packet, and sends the data information to the central processing system together, and meanwhile, the marking subsystem sends a second timestamp corresponding to the moment of an event occurrence signal according to an event occurrence signal transmitted by the central processing system through a wired communication protocol; wherein the data information in the data packet includes consecutive 1 st signal data point, …, i-1 st signal data point, and i-th signal data point, i being a positive integer.
Step 230, the central processing system receives the data packet sent by the acquisition subsystem through the second wireless communication protocol, acquires the current second timestamp from the marking subsystem through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and aligns the data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem.
Optionally, fig. 4 is a flowchart of a data synchronization method of an electroencephalogram device according to another embodiment of the present invention, where the data synchronization method of the electroencephalogram device and the data synchronization method of the electroencephalogram device of the foregoing embodiments belong to the same inventive concept, and details of the data synchronization method of the electroencephalogram device that are not described in detail in this embodiment may refer to embodiments of the data synchronization method of the foregoing electroencephalogram device. As shown in fig. 4, the data synchronization method of an electroencephalogram device provided by the embodiment of the invention includes:
step 311, the central processing system sends a preparation start synchronization instruction to the marking subsystem and the acquisition subsystem through the first wireless communication protocol.
Step 312, the marking subsystem and the acquisition subsystem respond to the central processing system in response to the ready-to-begin synchronization instruction to prepare for the completion instruction.
Step 313, the central processing system determines the marking subsystem and the acquisition subsystem according to the preparation completion instruction to complete preparation start synchronization, and sends a synchronization instruction to the marking subsystem and the acquisition subsystem through the first wireless communication protocol, so that the marking subsystem resets its time stamp according to the synchronization instruction and the acquisition subsystem resets its time stamp according to the synchronization instruction.
Step 314, the central processing system simultaneously transmits a synchronization query instruction to at least one acquisition subsystem and the marking subsystem through the first wireless communication protocol.
Wherein, after the marking subsystem 20 resets its time stamp according to the synchronization instruction and the collecting subsystem 30 resets its time stamp according to the synchronization instruction, the central processing system 10 sends a synchronization inquiry instruction to the at least one collecting subsystem 30 and the marking subsystem 20 through the first wireless communication protocol to determine whether the time stamp of the at least one collecting subsystem 30 and the time stamp of the marking subsystem 20 are consistent.
Step 315, the acquisition subsystem responds to the central processing system with the first initial timestamp at the moment according to the synchronous query instruction, and the marking subsystem responds to the central processing system with the second initial timestamp at the moment according to the synchronous query instruction.
Wherein the acquisition subsystem 30 and the tagging subsystem 20 reply to the central processing system 10 via UDP. For example, the collecting subsystem 30 and the marking subsystem 20 are both at the same time, and reply to the central processing system 10 by UDP for a time, i.e. a start time, wherein the time for the collecting subsystem 30 to reply to the central processing system 10 according to the synchronous query is a first time stamp, and the time for the marking subsystem 20 to reply to the central processing system 10 according to the synchronous query is a second initial time stamp.
Step 316, the central processing system determines whether the difference between the first initial timestamp and the second initial timestamp is within a first preset range.
Step 317, if the difference between the first initial timestamp and the second initial timestamp is within the first preset range, the synchronization of the marking subsystem and the acquisition subsystem is completed;
step 318, if the difference between the first initial timestamp and the second initial timestamp is not within the first preset range, returning to step 313 until the difference between the first initial timestamp and the second initial timestamp is within the first preset range.
For example, if the time for which the acquisition subsystem 30 responds is 1s and the time for which the marking subsystem 20 responds is 1.1s, then the difference is small enough to indicate that the marking subsystem 20 and the acquisition subsystem 30 are completed simultaneously. If the acquisition subsystem 30 responds to the present time for 1s and the tagging subsystem 20 responds to the present time for 2s, indicating that there is no synchronization well and that resynchronization is required until the difference between the first initial timestamp and the second initial timestamp is within a first predetermined range.
Step 320, the acquisition subsystem acquires data information and transmits the data information at a preset frequency, adds a first timestamp corresponding to the data information into a data packet, and sends the data information to the central processing system together, and meanwhile, the marking subsystem sends a second timestamp corresponding to the moment of the event occurrence signal according to the event occurrence signal transmitted by the central processing system through a wired communication protocol; wherein the data information in the data packet includes consecutive 1 st signal data point, …, i-1 st signal data point and i-th signal data point, i being a positive integer; .
Step 330, the central processing system receives the data packet sent by the acquisition subsystem through the second wireless communication protocol, acquires the current second timestamp from the marking subsystem through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and aligns the data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem.
Optionally, fig. 5 is a schematic structural diagram of still another electroencephalogram device according to an embodiment of the present invention, and as shown in fig. 5, a central processing system 10 according to an embodiment of the present invention includes a data processing module 11, a first wired communication module 12, and a first wireless communication module 13. The tagging subsystem 20 comprises a second wired communication module 21 and a second wireless communication module 22; the acquisition subsystem 30 comprises a data acquisition processing module 31 and a network communication module 32; the first wired communication module 12 is configured to establish a wired connection with the second wired communication module 21 through a wired communication protocol; the first wireless communication module 13 is configured to establish a wireless network connection with the second wireless communication module 22 through a first wireless communication protocol; and is further configured to establish a wireless network connection with the network communication module 32 via the first wireless communication protocol and the second wireless communication protocol; the data processing module 11 is configured to send an instruction to the marking subsystem 20 and the acquisition subsystem 30 through a first wireless communication module in the central processing system 10 according to a first wireless communication protocol, so as to complete synchronization of the marking subsystem 20 and the acquisition subsystem 30; the data acquisition processing module 31 is configured to acquire data information and transmit the data information at a preset frequency, and add a first timestamp corresponding to the data information to the data packet, and send the data information to the data processing module 11 together, while the marking subsystem 20 sends a second timestamp corresponding to a moment of an event occurrence signal according to an event occurrence signal transmitted by the data processing module 11 through a wired communication protocol; the data processing module 11 is further configured to receive the data packet sent by the acquisition subsystem 30 through the second wireless communication protocol, acquire the current second timestamp from the marking subsystem 20 through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and perform alignment of the data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem 20.
That is, the functions of the data processing module 11 include internal trigger event generation, data reception, alignment and processing of data and events. The first wireless communication module 13 in the central processing system 10 establishes a wireless network connection with the second wireless communication module 22 in the tagging subsystem 20 and the network communication module 32 in the acquisition subsystem 30 through the first wireless communication protocol for time stamp alignment control. The first wired communication module 12 in the central processing system 10 and the second wired communication module 21 in the marking subsystem 20 establish a wired connection through a wired communication protocol to transmit the trigger event signal generated by the data processing module 11 to the marking subsystem 20 through the wired communication protocol, avoiding the problem of delay. The first wireless communication module 13 in the central processing system 10 establishes a wireless network connection with the network communication module 32 in the acquisition subsystem 30 through the second wireless communication protocol, so that the data processing module 31 in the acquisition subsystem 30 sends the data acquired according to the set sampling frequency to the data processing module 11. The data processing module 11 performs alignment of the data point corresponding to the second timestamp according to the received data packet and the current second timestamp obtained from the marking subsystem through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol. In addition, the acquisition subsystem 30 and the marking subsystem 20 may also communicate through a first wireless communication protocol, where the first wireless communication protocol is a broadcast communication protocol, and only data is sent and not interacted.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. The data synchronization method of the electroencephalogram device is characterized in that the electroencephalogram device comprises a central processing system, a marking subsystem and at least one acquisition subsystem; wherein the central processing system controls the occurrence of events;
the data synchronization method of the electroencephalogram device comprises the following steps:
the central processing system sends instructions to the marking subsystem and the acquisition subsystem through a first wireless communication protocol so as to complete synchronization of the marking subsystem and the acquisition subsystem;
the acquisition subsystem acquires data information and transmits the data information at a preset frequency, adds a first time stamp corresponding to the data information into a data packet, and sends the data information to the central processing system together with the data information, and meanwhile, the marking subsystem sends a second time stamp corresponding to the time of the event occurrence signal according to the event occurrence signal transmitted by the central processing system through a wired communication protocol; wherein the data information in the data packet includes consecutive 1 st signal data point, …, i-1 st signal data point, and i-th signal data point, i being a positive integer;
the central processing system receives the data packet sent by the acquisition subsystem through a second wireless communication protocol, acquires a current second timestamp from the marking subsystem through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and aligns a data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem.
2. The method of data synchronization of an electroencephalogram device according to claim 1, wherein the first timestamp comprises:
a 1 st sampling time point corresponding to the 1 st signal data point, …, an i-1 st sampling time point corresponding to the i-1 st signal data point, and an i-th sampling time point corresponding to the i-th signal data point; or,
sequence numbers 1 and … corresponding to the 1 st signal data point, a sequence number i-1 corresponding to the i-1 st signal data point, and a sequence number i corresponding to the i-th signal data point.
3. The method of data synchronization of an electroencephalogram device of claim 1, wherein the central processing system sending instructions to the tagging subsystem and the acquisition subsystem via a first wireless communication protocol, comprising:
step 111, the central processing system sends a preparation start synchronization instruction to the marking subsystem and the acquisition subsystem through a first wireless communication protocol;
step 112, the marking subsystem and the acquisition subsystem respond to the central processing system according to the preparation start synchronous instruction to prepare to complete the instruction;
step 113, the central processing system determines the marking subsystem and the collecting subsystem according to the preparation completion instruction to complete preparation start synchronization, and sends a synchronization instruction to the marking subsystem and the collecting subsystem through the first wireless communication protocol, so that the marking subsystem resets its time stamp according to the synchronization instruction and the collecting subsystem resets its time stamp according to the synchronization instruction.
4. The method for data synchronization of an electroencephalogram according to claim 3, further comprising, after step 113:
the central processing system simultaneously transmits a synchronous query instruction to the at least one acquisition subsystem and the marking subsystem through a first wireless communication protocol;
the acquisition subsystem responds to the central processing system with a first initial time stamp at the moment according to the synchronous query instruction, and the marking subsystem responds to the central processing system with a second initial time stamp at the moment according to the synchronous query instruction;
the central processing system judges whether the difference value between the first initial timestamp and the second initial timestamp is within a first preset range;
and if the difference value between the first initial timestamp and the second initial timestamp is within a first preset range, the synchronization of the marking subsystem and the acquisition subsystem is completed.
5. The method according to claim 4, wherein if the difference between the first initial timestamp and the second initial timestamp is not within a first preset range, returning to step 113 until the difference between the first initial timestamp and the second initial timestamp is within the first preset range.
6. The method of claim 1, wherein the tagging subsystem comprises a first chip and the acquisition subsystem comprises a second chip;
the first chip and the second chip are the same in chip type.
7. The method of claim 1, wherein the acquisition subsystem comprises at least one of an electroencephalogram acquisition device, an electromyographic acquisition device, and an electrocardiographic acquisition device;
the data information comprises an electroencephalogram signal, an electromyographic signal or an electrocardiosignal.
8. The method for synchronizing data of an electroencephalogram according to claim 1, wherein the wired communication protocol includes one of TTL, SDIO protocol, parallel port communication, serial port communication, USB protocol, HMDI protocol;
the first wireless communication protocol includes: UDP protocol or ICMP protocol;
the second wireless communication protocol includes: TCP/IP protocol.
9. An electroencephalogram device for implementing a data synchronization method of an electroencephalogram device according to any one of claims 1 to 8, the electroencephalogram device comprising: the system comprises a central processing system, a marking subsystem and at least one acquisition subsystem; wherein the central processing system controls the occurrence of events;
the central processing system is used for sending instructions to the marking subsystem and the acquisition subsystem through a first wireless communication protocol so as to complete synchronization of the marking subsystem and the acquisition subsystem;
the acquisition subsystem is used for acquiring data information and transmitting the data information at a preset frequency, adding a first timestamp corresponding to the data information into a data packet, and sending the data information and the first timestamp to the central processing system; wherein the data information in the data packet includes consecutive 1 st signal data point, …, i-1 st signal data point, and i-th signal data point, i being a positive integer;
the marking subsystem is used for sending a second time stamp of the corresponding moment of the event occurrence signal according to the event occurrence signal transmitted by the central processing system through a wired communication protocol;
the central processing system is further configured to receive the data packet sent by the acquisition subsystem through a second wireless communication protocol, acquire a current second timestamp from the marking subsystem through the wired communication protocol, the first wireless communication protocol or the second wireless communication protocol, and align a data point corresponding to the second timestamp according to the second timestamp acquired from the marking subsystem.
10. The electroencephalogram device according to claim 9, wherein the central processing system comprises a data processing module, a first wired communication module, and a first wireless communication module;
the marking subsystem comprises a second wired communication module and a second wireless communication module;
the acquisition subsystem comprises a data acquisition processing module and a network communication module;
the first wired communication module is used for establishing wired connection with the second wired communication module through a wired communication protocol;
the first wireless communication module is used for establishing wireless network connection with the second wireless communication module through a first wireless communication protocol; the network communication module is also used for establishing wireless network connection with the network communication module through a first wireless communication protocol and a second wireless communication protocol;
the data processing module is used for sending an instruction to the marking subsystem and the acquisition subsystem through the first wireless communication module in the central processing system according to the first wireless communication protocol so as to complete synchronization of the marking subsystem and the acquisition subsystem;
the data acquisition processing module is used for acquiring data information and transmitting the data information at a preset frequency, adding a first timestamp corresponding to the data information into a data packet, transmitting the data information to the data processing module together with the data information, and simultaneously transmitting a second timestamp corresponding to the moment of the event occurrence signal by the marking subsystem according to the event occurrence signal transmitted by the data processing module through the wired communication protocol;
the data processing module is further configured to receive, through the second wireless communication protocol, a data packet sent by the acquisition subsystem, obtain, through the wired communication protocol, the first wireless communication protocol, or the second wireless communication protocol, a current second timestamp from the marking subsystem, and align a data point corresponding to the second timestamp according to the second timestamp obtained from the marking subsystem.
CN202110482597.8A 2021-04-30 2021-04-30 Data synchronization method of electroencephalogram device and electroencephalogram device Active CN113143290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110482597.8A CN113143290B (en) 2021-04-30 2021-04-30 Data synchronization method of electroencephalogram device and electroencephalogram device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110482597.8A CN113143290B (en) 2021-04-30 2021-04-30 Data synchronization method of electroencephalogram device and electroencephalogram device

Publications (2)

Publication Number Publication Date
CN113143290A CN113143290A (en) 2021-07-23
CN113143290B true CN113143290B (en) 2024-01-19

Family

ID=76873200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110482597.8A Active CN113143290B (en) 2021-04-30 2021-04-30 Data synchronization method of electroencephalogram device and electroencephalogram device

Country Status (1)

Country Link
CN (1) CN113143290B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117017306A (en) * 2022-12-19 2023-11-10 天津大学 Multichannel miniature brain electricity acquisition system
CN116991201B (en) * 2023-09-27 2023-12-22 博睿康科技(常州)股份有限公司 Single-equipment multi-physiological-parameter synchronization method, acquisition system and data alignment method

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
FR2989240A1 (en) * 2012-04-10 2013-10-11 Commissariat Energie Atomique DATA SYNCHRONIZATION METHOD AND DATA TRANSMISSION SYSTEM USING SUCH A METHOD.
CN204884122U (en) * 2015-07-13 2015-12-16 北京视友科技有限责任公司 Portable many human brains electricity data synchronous sampling system based on radio communication
CN106332268A (en) * 2016-08-31 2017-01-11 博睿康科技(常州)股份有限公司 Method for precisely synchronizing wireless data of electroencephalogram device
CN106361322A (en) * 2016-08-31 2017-02-01 博睿康科技(常州)股份有限公司 Automatic accumulative deviation detection method and automatic accumulative deviation detection device for electroencephalogram device
CN107644566A (en) * 2017-08-17 2018-01-30 北京航空航天大学 A kind of brain electricity evaluation system of the simulated flight device based on brain electricity
CN107874756A (en) * 2017-11-21 2018-04-06 博睿康科技(常州)股份有限公司 The precise synchronization method of eeg collection system and video acquisition system
CN108369646A (en) * 2015-07-16 2018-08-03 博拉斯特运动有限公司 Multisensor event detection and tagging system
CN109756744A (en) * 2017-11-02 2019-05-14 腾讯科技(深圳)有限公司 Data processing method, electronic equipment and computer storage medium
CN110072278A (en) * 2019-04-30 2019-07-30 南京大学 A kind of wireless multinode physiological signal monitor system based on low-power consumption bluetooth
CN110141231A (en) * 2019-05-17 2019-08-20 天津大学 A kind of event time point synchronous recording method in wireless brain wave acquisition
CN110868269A (en) * 2020-01-19 2020-03-06 上海高仙自动化科技发展有限公司 Method and device for determining synchronization between sensors, electronic equipment and storage medium
CN111095860A (en) * 2017-10-30 2020-05-01 华为技术有限公司 Method and device for clock synchronization
CN111360809A (en) * 2018-12-25 2020-07-03 深圳市优必选科技有限公司 Signal instruction control method and device of robot and terminal equipment
CN111885569A (en) * 2020-07-13 2020-11-03 深兰人工智能芯片研究院(江苏)有限公司 Visual stimulation and response acquisition control system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010000283A (en) * 2008-06-23 2010-01-07 Shimadzu Corp Real-time simultaneous measuring system, real-time simultaneous measuring instrument, real-time simultaneous measuring method and program
US8655428B2 (en) * 2010-05-12 2014-02-18 The Nielsen Company (Us), Llc Neuro-response data synchronization
US20170020406A1 (en) * 2012-04-13 2017-01-26 UE Technology Method for measuring biological stimulus signal
US20140012509A1 (en) * 2012-07-06 2014-01-09 Daniel Barber Methods and systems for synchronization and distribution of multiple physiological and performance measures
US9935726B2 (en) * 2013-01-14 2018-04-03 Cognionics, Inc. Synchronizing wireless data acquisition of physiological information

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
FR2989240A1 (en) * 2012-04-10 2013-10-11 Commissariat Energie Atomique DATA SYNCHRONIZATION METHOD AND DATA TRANSMISSION SYSTEM USING SUCH A METHOD.
CN204884122U (en) * 2015-07-13 2015-12-16 北京视友科技有限责任公司 Portable many human brains electricity data synchronous sampling system based on radio communication
CN108369646A (en) * 2015-07-16 2018-08-03 博拉斯特运动有限公司 Multisensor event detection and tagging system
CN106332268A (en) * 2016-08-31 2017-01-11 博睿康科技(常州)股份有限公司 Method for precisely synchronizing wireless data of electroencephalogram device
CN106361322A (en) * 2016-08-31 2017-02-01 博睿康科技(常州)股份有限公司 Automatic accumulative deviation detection method and automatic accumulative deviation detection device for electroencephalogram device
CN107644566A (en) * 2017-08-17 2018-01-30 北京航空航天大学 A kind of brain electricity evaluation system of the simulated flight device based on brain electricity
CN111095860A (en) * 2017-10-30 2020-05-01 华为技术有限公司 Method and device for clock synchronization
CN109756744A (en) * 2017-11-02 2019-05-14 腾讯科技(深圳)有限公司 Data processing method, electronic equipment and computer storage medium
CN107874756A (en) * 2017-11-21 2018-04-06 博睿康科技(常州)股份有限公司 The precise synchronization method of eeg collection system and video acquisition system
CN111360809A (en) * 2018-12-25 2020-07-03 深圳市优必选科技有限公司 Signal instruction control method and device of robot and terminal equipment
CN110072278A (en) * 2019-04-30 2019-07-30 南京大学 A kind of wireless multinode physiological signal monitor system based on low-power consumption bluetooth
CN110141231A (en) * 2019-05-17 2019-08-20 天津大学 A kind of event time point synchronous recording method in wireless brain wave acquisition
CN110868269A (en) * 2020-01-19 2020-03-06 上海高仙自动化科技发展有限公司 Method and device for determining synchronization between sensors, electronic equipment and storage medium
CN111885569A (en) * 2020-07-13 2020-11-03 深兰人工智能芯片研究院(江苏)有限公司 Visual stimulation and response acquisition control system

Also Published As

Publication number Publication date
CN113143290A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN113143290B (en) Data synchronization method of electroencephalogram device and electroencephalogram device
CN110141231B (en) Event time point synchronous recording method in wireless electroencephalogram acquisition
CN103607269B (en) A kind of brain electric installation and accurate wireless event synchronizing method
DE60132665T2 (en) WIRELESS SYSTEM PROTOCOL FOR TELEMETRY MONITORING
CN108650051B (en) The clock synchronization apparatus and method of general devices at full hardware single step 1588
US20090185548A1 (en) Enhanced communication of data in wireless control area networks
DE20122743U1 (en) Device for GPS time synchronization using cellular signal sequences
CN107874756A (en) The precise synchronization method of eeg collection system and video acquisition system
CN110072278A (en) A kind of wireless multinode physiological signal monitor system based on low-power consumption bluetooth
US20140128735A1 (en) Wireless real-time electrocardiogram and medical image integration
DE102010037906A1 (en) Method and system for recording, synchronizing and analyzing data by means of spatially distributed analysis devices in a communication network
CN107898457B (en) Method for clock synchronization between group wireless electroencephalogram acquisition devices
EP1227691B1 (en) Distributed test system for testing and monitoring electronic signals on network connections
CN113288178B (en) Electroencephalogram event synchronization system and method based on multi-channel electroencephalogram acquisition
CN112804022A (en) Multi-source signal synchronization system and method thereof
US9712318B2 (en) Data synchronization method and data transmission system to carry out such a method
CN113180698B (en) Wireless automatic deviation compensation method of electroencephalogram device and electroencephalogram device
DE112014000420T5 (en) Synchronize wireless data collection of physiological information
CN102749864A (en) Bridge acceleration signal conditioner
CN102983959A (en) Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
DE102020118068A1 (en) SYNCHRONIZATION OF A NETWORK DEVICE FOR WIRELESS COMMUNICATION, IN PARTICULAR A NETWORK TERMINAL DEVICE, IN A WIRELESS NETWORK
CN113541846B (en) Method and system for monitoring network time synchronization performance
CN211127817U (en) Synchronous module
CN116991201B (en) Single-equipment multi-physiological-parameter synchronization method, acquisition system and data alignment method
EP3796723A1 (en) Method and apparatus for facilitating time synchronization of communication in an industrial environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant