Event marking time accuracy assessment method and related products
By acquiring and recording the marked signal moments in the ERP EEG signal acquisition equipment, the problem of inaccurate event marking time accuracy is solved, and accurate analysis of ERP components and signal quality improvement are achieved.
Patent Information
- Application Number
- CN202410971039.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-19
AI Technical Summary
In the existing ERP EEG signal acquisition technology, the accuracy of event marking time is not accurate enough, resulting in the inability to accurately analyze ERP components.
By obtaining the real marking moments and recorded marking moments of multiple marking signals, the target accuracy value of the marking time of the target event is determined, and a marking trigger unit, a pulse signal generator and an EEG amplifier are used to perform a series of steps: response Mark the signal, generate the pulse waveform, record the starting moment, perform the EEG signal acquisition operation, and record the starting moment of the acquisition operation to determine the accuracy of the marking time based on multiple moments.
It achieves accurate assessment of event marking time, thereby accurately analyzing ERP components, and improves the reliability and signal quality of EEG signal acquisition data.
Smart Images

Figure CN118507085B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electroencephalogram signal technology, and in particular to a method for evaluating the accuracy of event marking time and related products. Background Art
[0002] Event-Related Potential (ERP) reflects the immediate changes of the brain's neural ERP hardware detection device in response to external or internal stimuli. It is a non-invasive, high-temporal resolution neuroelectrophysiology technology that is commonly used to study cognitive functions such as attention, memory, language comprehension, emotion, learning, and to understand changes in brain function in cases of neurological diseases, developmental disorders, and brain damage.
[0003] Before collecting ERP EEG signals, there will be a delay from the actual marking to the collection by the EEG amplifier. Due to different communication methods, the delay data will be different. Although the delay data can be marked at present, the marked delay data is not accurate enough, that is, the accuracy of the marked delay data cannot be determined, resulting in the inability to accurately analyze the ERP components. Summary of the invention
[0004] The technical problem to be solved by the embodiments of the present invention is to provide a method for evaluating the accuracy of event marking time and related products, by determining the real marking time and the recorded marking time corresponding to multiple marking signals, and thus determining the target accuracy value of the marking time of the target event according to the real marking time and the recorded marking time corresponding to the multiple marking signals, accurately evaluating the accuracy of the event marking time, and then accurately analyzing the ERP component of the target event.
[0005] In the first aspect, the embodiment of the present application provides a method for evaluating the accuracy of event marking time, which is applied to an ERP hardware detection device. The ERP hardware detection device includes: a marking trigger unit, a pulse signal generator, and an EEG amplifier. The method includes:
[0006] Obtaining n marking signals of the target event through a marking trigger unit, where n is an integer greater than 1;
[0007] According to the determination method in the following steps S1-S5, the real marking time and the recorded marking time corresponding to each of the n marking signals are determined to obtain n real marking times and n recorded marking times, which are specifically the following steps:
[0008] S1, responding to a first marking signal through a marking trigger unit, performing a marking operation, sending a first pulse generation instruction to a pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to an EEG amplifier, wherein the first marking signal is any one of n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously;
[0009] S2, generating a first pulse waveform by a pulse signal generator;
[0010] S3, recording the starting time of the first pulse waveform by a pulse signal generator to obtain the first real marking time;
[0011] S4, when the first acquisition signal reaches the EEG amplifier, the EEG amplifier performs an EEG signal acquisition operation, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0012] S5, recording, by a pulse signal generator, in the first pulse waveform, a first recording marking time corresponding to the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0013] A target accuracy value of the marking time of the target event is determined based on the n real marking moments and the n recorded marking moments.
[0014] In a second aspect, an embodiment of the present application provides an event marking time accuracy assessment device, the event marking time accuracy assessment device is applied to an ERP hardware detection device, the ERP hardware detection device includes: a marking trigger unit, a pulse signal generator, and an electroencephalogram amplifier, and the event marking time accuracy assessment device includes: an acquisition unit and a processing unit;
[0015] An acquisition unit, used for acquiring n marking signals of a target event through a marking trigger unit, wherein n is an integer greater than 1;
[0016] The processing unit is used to determine the real marking time and the recorded marking time corresponding to each of the n marking signals according to the determination method in the following steps S1-S5, and obtain n real marking times and n recorded marking times, specifically the following steps:
[0017] S1, responding to a first marking signal through a marking trigger unit, performing a marking operation, sending a first pulse generation instruction to a pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to an EEG amplifier, wherein the first marking signal is any one of n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously;
[0018] S2, generating a first pulse waveform by a pulse signal generator;
[0019] S3, recording the starting time of the first pulse waveform by a pulse signal generator to obtain the first real marking time;
[0020] S4, when the first acquisition signal reaches the EEG amplifier, the EEG amplifier performs an EEG signal acquisition operation, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0021] S5, recording, by a pulse signal generator, in the first pulse waveform, a first recording marking time corresponding to the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0022] A target accuracy value of the marking time of the target event is determined based on the n real marking moments and the n recorded marking moments.
[0023] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the electronic device executes the method of the first aspect.
[0024] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method of the first aspect.
[0025] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is computer-operable to cause the computer to execute the method of the first aspect.
[0026] The implementation of the present invention has the following beneficial effects:
[0027] It can be seen that the accuracy assessment method of event marking time described in the implementation mode of the present application is applied to an ERP hardware detection device. The ERP hardware detection device includes: a marking trigger unit, a pulse signal generator, and an EEG amplifier. The method includes: obtaining n marking signals of the target event through the marking trigger unit, and determining the real marking time and the recorded marking time corresponding to each of the n marking signals according to the determination method in the following steps S1-S5, so as to obtain n real marking times and n recorded marking times, which are specifically the following steps: S1. Responding to the first marking signal through the marking trigger unit, performing a marking operation, sending a first pulse generation instruction to the pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to the EEG amplifier, wherein the first marking signal is any one of the n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously; S2. The signal generator generates a first pulse waveform; S3, records the starting moment of the first pulse waveform through the pulse signal generator to obtain a first real marking moment; S4, when the first acquisition signal reaches the EEG amplifier, performs an EEG signal acquisition operation through the EEG amplifier, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the starting moment of the EEG amplifier performing the EEG signal acquisition operation; S5, records the first recorded marking moment corresponding to the starting moment of the EEG amplifier performing the EEG signal acquisition operation in the first pulse waveform through the pulse signal generator; determines a target accuracy value of the marking time of the target event based on n real marking moments and n recorded marking moments, and determines the target accuracy value of the marking time of the target event according to the real marking moments and recorded marking moments corresponding to multiple marking signals, so as to accurately evaluate the accuracy of the event marking time, and then accurately analyze the ERP component of the target event. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the implementation methods of the present application or the background technology, the drawings required for use in the implementation methods of the present application or the background technology will be described below.
[0029] Figure 1 It is a structural schematic diagram of an ERP hardware detection device provided in an embodiment of the present application;
[0030] Figure 2 It is a flow chart of a method for evaluating the accuracy of event marking time provided by an embodiment of the present application;
[0031] Figure 3 It is a structural schematic diagram of a marking trigger unit provided in an embodiment of the present application;
[0032] Figure 4is a flow chart of determining the real marking time of the first marking signal and recording the marking time provided by an embodiment of the present application;
[0033] Figure 5 is a schematic diagram of a pulse waveform provided in an embodiment of the present application;
[0034] Figure 6 It is a flow chart of determining a target accuracy value of a marking time of a target event provided by an embodiment of the present application;
[0035] Figure 7 It is a structural schematic diagram of a device for evaluating the accuracy of event marking time provided by an embodiment of the present invention;
[0036] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the implementation mode of the present application. Obviously, the described implementation mode is only a part of the implementation mode of the present application, not all the implementation modes. Based on the implementation mode in the present application, all other implementation modes obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0038] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0039] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0040] The following is an explanation of some professional terms involved in this application:
[0041] Event-Related Potential (ERP) is a special EEG signal that reflects the electrophysiological activity generated by the brain when processing specific sensory, cognitive or motor events. It has a high temporal resolution and can be accurate to the millisecond level, which enables it to capture instantaneous changes in the brain's information processing process.
[0042] Microcontroller Unit (MCU) can integrate multiple peripheral interfaces or drive circuits on a single chip to form a chip-level computer with the characteristics of small size, low power consumption and strong control function.
[0043] Host computer: A computer that can directly issue control commands, generally at a higher control level, with a human-computer interaction interface, used to monitor, manage and control the entire ERP hardware detection device.
[0044] See also Figure 1 , Figure 1 is a structural diagram of an ERP hardware detection device provided in an embodiment of the present application, such as Figure 1 As shown, the ERP hardware detection device 10 includes a marking trigger unit 101 , a pulse signal generator 102 , and an EEG amplifier 103 .
[0045] Among them, a first marking signal of a target event is obtained through a marking trigger unit 101, the first marking signal is any marking signal among the n marking signals, and then the marking trigger unit 101 responds to the first marking signal, performs a marking operation, sends a first pulse generation instruction to the pulse signal generator 102, sends a first acquisition signal for performing an EEG signal acquisition operation to the EEG amplifier 103, generates a first pulse waveform through the pulse signal generator 102, records the starting time of the first pulse waveform through the pulse signal generator 102, obtains a first real marking time, and when the first acquisition signal When the signal reaches the EEG amplifier 103, the EEG signal acquisition operation is performed through the EEG amplifier 103, and a first recording instruction is sent to the pulse signal generator 102, and the first recording marking time corresponding to the starting time when the EEG amplifier 103 performs the EEG signal acquisition operation is recorded in the first pulse waveform through the pulse signal generator 102, and finally the target accuracy value of the marking time of the target event is determined based on the n real marking times and the n recorded marking times, so as to accurately evaluate the accuracy of the event marking time, and then accurately analyze the ERP component of the target event.
[0046] See also Figure 2 , Figure 2is a flow chart of a method for evaluating the accuracy of event marking time provided by an embodiment of the present application, and the method is applied to Figure 1 The ERP hardware detection device shown includes but is not limited to the following steps:
[0047] S201: Obtain n marking signals of a target event through a marking trigger unit.
[0048] In this embodiment, n is an integer greater than 1. The marking trigger unit includes an MCU and a serial port module. Figure 3 , Figure 3 It is a structural diagram of a marking trigger unit provided in the embodiment of the present application. The marking trigger unit 101 includes an MCU 301 and a serial port module 302. The MCU is the control center of the marking trigger unit, responsible for processing and coordinating the working logic of the marking trigger unit, receiving a trigger signal from the outside or deciding when to trigger the marking operation according to the preset program logic. The serial port module is used to communicate with devices such as EEG amplifiers, and can receive control instructions from the marking trigger unit and send signals to devices such as EEG amplifiers.
[0049] S202: Determine the real marking time and the recorded marking time corresponding to each of the n marking signals, and obtain n real marking times and n recorded marking times.
[0050] In this embodiment, taking the first marking signal as an example, the first real marking time and the first recorded marking time corresponding to the first marking signal are determined. It should be noted that the first marking signal is any one of the n marking signals, and the method for determining the real marking time and the recorded marking time corresponding to each of the n marking signals is similar to that of the first marking signal.
[0051] See also Figure 4 , Figure 4 The present application provides a flowchart for determining the real marking time of the first marking signal and recording the marking time, including but not limited to the following steps:
[0052] S401: Responding to the first marking signal through the marking trigger unit, performing the marking operation, sending the first pulse generation instruction to the pulse signal generator, and sending the first acquisition signal for performing the EEG signal acquisition operation to the EEG amplifier.
[0053] In this embodiment, the first marking signal is any one of the n marking signals, and the first pulse generation instruction and the first acquisition signal are issued simultaneously.
[0054] When the marking trigger unit receives the first marking signal, it responds based on the first marking signal and performs the marking operation. While performing the marking operation, the MCU in the marking trigger unit determines the first pulse generation instruction and the first control instruction for determining the acquisition signal based on the first marking signal, and then sends the first pulse generation instruction to the pulse signal generator, and sends the first control instruction to the serial port module. Specifically, the first marking signal can be collected by the MCU, and the first pulse generation instruction and the first control instruction for determining the first acquisition signal can be determined based on the first marking signal, and then the first pulse generation instruction is sent to the pulse signal generator and the first control instruction is sent to the serial port module, and then the first control instruction is executed by the serial port module to obtain the first acquisition signal, and the first acquisition signal is sent to the EEG amplifier.
[0055] The first pulse generation instruction may include characteristic parameters regarding the desired pulse waveform, such as pulse amplitude, width, frequency, etc.
[0056] After receiving the first pulse generation instruction, the pulse signal generator can generate a first pulse waveform in response to the characteristic parameters in the first pulse generation instruction. After receiving the first control instruction, the serial port module can generate a first acquisition signal in response to the first control instruction, and send the first acquisition signal for performing the EEG signal acquisition operation to the EEG amplifier.
[0057] It can be seen that by responding to the first marking signal through the marking trigger unit, executing the marking operation, sending the first pulse generation instruction to the pulse signal generator, and sending the first acquisition signal for performing the EEG signal acquisition operation to the EEG amplifier, it can ensure that the first pulse generation instruction and the first acquisition signal are sent at the same time, and also reduce the complexity and time interval of the operation, and avoid the delay and asynchrony that may be caused by controlling different devices separately.
[0058] S402: Generate a first pulse waveform by a pulse signal generator.
[0059] In this embodiment, after receiving the first pulse generation instruction, the pulse signal generator generates a first pulse waveform in response to the first pulse generation instruction. Figure 5 , Figure 5 It is a schematic diagram of a pulse waveform provided by the embodiment of the present application. The horizontal axis of the pulse waveform is time, the vertical axis is amplitude, the starting time of the pulse waveform is the real marking time, and when the EEG amplifier records the marking signal, the corresponding time in the pulse waveform is the recorded marking time.
[0060] It can be seen that the pulse signal generator generates a first pulse waveform in response to the first pulse generation instruction, can respond to the instruction in time, and quickly generate a pulse waveform, which helps to maintain good synchronization with other operations, reduces manual intervention, improves the degree of automation of the ERP hardware detection device, and reduces operational errors and complexity.
[0061] S403: Record the starting time of the first pulse waveform by a pulse signal generator to obtain a first real marking time.
[0062] In this embodiment, the timing module in the pulse signal generator can be used to record the corresponding different times in the first pulse waveform. When the first pulse waveform is generated, the timing module in the pulse signal generator records the starting time of the first pulse waveform to obtain the first real marking time.
[0063] It can be seen that by recording the starting moment of the first pulse waveform by the pulse signal generator, the moment when marking occurs can be accurately determined, which is convenient for time synchronization with the operation of the EEG amplifier and helps to evaluate the timeliness and accuracy of the marking operation.
[0064] S404: When the first acquisition signal reaches the EEG amplifier, the EEG amplifier performs an EEG signal acquisition operation and sends a first recording instruction to the pulse signal generator.
[0065] In this embodiment, the first recording instruction is used to record the start time of the EEG amplifier performing the EEG signal acquisition operation.
[0066] When the first acquisition signal is sent from the marking trigger unit and reaches the EEG amplifier, the EEG amplifier responds to the first acquisition signal and performs an EEG signal acquisition operation. Specifically, the EEG amplifier receives weak electrical signals generated by brain neuron activity. After receiving the weak EEG signal from the electrode, it is amplified using an amplifier circuit. The amplifier usually has a high gain to amplify the microvolt-level EEG signal to an amplitude suitable for subsequent processing and analysis. The amplified signal is then filtered to remove noise and unnecessary frequency components. Common filtering includes high-pass filtering (removing low-frequency drift and DC components), low-pass filtering (removing high-frequency noise), and band-pass filtering (selecting EEG signals in a specific frequency band, such as common alpha waves, beta waves, etc.). The amplified and filtered analog EEG signal is then converted into a digital signal for processing and analysis by a computer or other digital processing device.
[0067] After the marking operation is performed, the first acquisition signal is transmitted from the marking trigger unit to the EEG amplifier. The line length, medium, etc. that it passes through will affect the transmission speed of the signal, thereby causing a delay. Electromagnetic interference in the surrounding environment may affect the transmission quality of the signal, causing signal distortion or delay, which will also cause a delay. After the EEG amplifier itself receives the signal, the internal processing and response mechanism may also cause a certain delay. Therefore, the first acquisition signal is sent from the marking trigger unit and arrives at the EEG amplifier at a time that is not the first real marking time, but after the first real marking time. Therefore, by performing the EEG signal acquisition operation through the EEG amplifier and sending the first recording instruction to the pulse signal generator for recording the starting time of the EEG amplifier performing the EEG signal acquisition operation, the starting time of the EEG signal acquisition operation can be accurately recorded.
[0068] S405: Recording a first recording marking time corresponding to the start time of the EEG amplifier performing the EEG signal acquisition operation in the first pulse waveform through a pulse signal generator.
[0069] When the pulse signal generator receives the first recording instruction, it responds to the first recording instruction and records in the first pulse waveform the first recording marking time corresponding to the starting time of the EEG amplifier performing the EEG signal acquisition operation. This can take into account the delay in signal transmission and processing, and can accurately record the starting time of the EEG signal acquisition operation, which helps to accurately distinguish the starting time of the EEG signal acquisition from the actual marking time.
[0070] It can be seen that the first recorded marking moment corresponding to the starting moment of the EEG amplifier performing the EEG signal acquisition operation is recorded in the first pulse waveform, and the real marking moment and the recorded marking moment can be associated in the form of a pulse waveform, and the difference between the two moments can be clearly compared, so as to more accurately determine the real marking moment and the recorded marking moment, and provide a more accurate basis for determining the target accuracy value of the marking time of subsequent target events, thereby enhancing the reliability of EEG signal acquisition data and marking operation related data.
[0071] S203: Determine a target accuracy value of the marking time of the target event based on the n real marking moments and the n recorded marking moments.
[0072] In this embodiment, based on the method of determining the real marking time and the recorded marking time corresponding to the first marking signal, n real marking times and n recorded marking times can be determined.
[0073] Based on n real marking moments and n recorded marking moments, the differences corresponding to n marking signals are determined to obtain n differences, and then the absolute delay is determined based on the n differences. The absolute delay is the inherent time error generated when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier. The absolute delay is calculated specifically according to the following formula:
[0074]
[0075] in, For absolute delay, is an integer greater than or equal to 1, For the The difference.
[0076] The jitter delay is determined based on the absolute delay and n differences. The jitter delay is used to characterize the time error caused by the channel interference signal when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier. The jitter delay is calculated according to the following formula:
[0077]
[0078] in, Jitter delay.
[0079] Exemplarily, after determining the absolute delay and jitter delay based on n real marking moments and n recorded marking moments, the accuracy of the marking time of the target event is evaluated based on the absolute delay and jitter delay to obtain the target accuracy value of the marking time of the target event, see Figure 6 , Figure 6 The flowchart of determining the target accuracy value of the marking time of a target event provided by an embodiment of the present application includes but is not limited to the following steps:
[0080] S601: Obtain a first weight corresponding to the absolute delay and a second weight corresponding to the jitter delay.
[0081] In this implementation, a first reference weight corresponding to the absolute delay and a second reference weight corresponding to the jitter delay are first obtained, and then the first reference weight and the second reference weight are optimized to obtain the first weight and the second weight.
[0082] Specifically, when optimizing the first reference weight, first obtain the connection mode between the marking trigger unit and the EEG amplifier to obtain the target connection mode. The target connection mode can be a wired connection or a wireless connection. The wired connection can be connected through a physical medium such as a cable, and the wireless connection can be realized through Bluetooth, Wi-Fi, etc. Based on the target connection mode, determine the signal path length between the marking trigger unit and the EEG amplifier to obtain the target signal path length. Specifically, if it is a wired connection, the target signal path length can be directly obtained by measuring the physical length of the cable. If it is a wireless connection, the measured value of the signal strength can be used and estimated in combination with the wireless transmission model. After obtaining the target signal path length, determine the first optimization factor corresponding to the target signal path length. The mapping relationship between the preset signal characteristics and the interference type can be pre-stored, and the interference type parameter corresponding to the target signal characteristics can be determined based on the mapping relationship. Since the absolute delay is affected by the signal path length, the first reference weight is optimized according to the first optimization factor. The first reference weight and the first optimization factor can be multiplied, added, etc. to obtain the first weight, or a specific algorithm or model can be used for optimization to obtain the first weight.
[0083] Specifically, when optimizing the second reference weight, first obtain the channel parameters of the channel between the marking trigger unit and the EEG amplifier to obtain the target channel parameters. The target channel parameters may include parameters such as the channel bandwidth and the channel noise interference. A narrower bandwidth may lead to limited signal transmission rate, which may easily cause data packet queuing and delay changes, thereby increasing jitter delay. Noise may distort the signal and interfere with the receiver's judgment of the signal arrival time, increasing the uncertainty of jitter delay. Therefore, the second optimization factor corresponding to the target channel parameter is determined, and the second reference weight is optimized according to the second optimization factor. The second reference weight and the second optimization factor may be multiplied, added, or the like to obtain the second weight. Alternatively, a specific algorithm or model may be used for optimization to obtain the second weight.
[0084] It can be seen that by optimizing the first reference weight corresponding to the absolute delay and the second reference weight corresponding to the jitter delay, the first weight corresponding to the absolute delay and the second weight corresponding to the jitter delay are determined. By optimizing the reference weights of the absolute delay and the jitter delay and considering the connection mode and channel parameters, the performance of signal transmission can be more accurately evaluated and adjusted, thereby reducing errors and uncertainties in signal transmission. By optimizing the weights according to different connection modes and channel conditions, the entire ERP hardware detection device can be adapted to various actual working scenarios, and the overall performance and stability of the ERP hardware detection device can be improved. By optimizing the weights and adapting to different connection and channel conditions, the need for expensive hardware upgrades or complex reconstruction of the ERP hardware detection device can be reduced, thereby reducing costs. It can adapt to different environments and equipment configurations, so that the ERP hardware detection device can maintain good performance under different conditions, thereby increasing the versatility and scalability of the ERP hardware detection device. The influence of absolute delay and jitter delay in the evaluation can also be analyzed by the size of the first weight and the second weight. If the first weight is larger, it means that the influence of absolute delay in the evaluation is more significant. Conversely, if the second weight is larger, it means that the influence of jitter delay is more significant.
[0085] S602: Perform a weighted operation based on the absolute delay, the jitter delay, the first weight and the second weight to obtain a first target evaluation value.
[0086] In this embodiment, the first target evaluation value is the product of the absolute delay and the first weight plus the product of the jitter delay and the second weight. The subsequent target accuracy value can be further determined based on the obtained first target evaluation value. Specifically, the first target evaluation value is calculated according to the following formula:
[0087]
[0088] Among them, F is the first target evaluation value, For absolute delay, is the jitter delay, a is the first weight, and b is the second weight.
[0089] S603: If the first target evaluation value is less than or equal to a preset threshold, determine a target accuracy value according to the first target evaluation value.
[0090] In this embodiment, if the first target evaluation value is less than or equal to the preset threshold, it means that the current evaluation result is within an acceptable range, and the target accuracy value is directly determined based on the first target evaluation value.
[0091] S604: If the first target evaluation value is greater than a preset threshold, interference removal is performed on each of the n marking signals to obtain n target marking signals.
[0092] If the first target evaluation value is greater than the preset threshold, it means that there are interference factors in the current n marking signals, and each of the n marking signals needs to be de-interfered. Specifically, feature extraction is performed on the marking signal i to obtain the signal feature of the marking signal i, wherein the marking signal i is any of the n marking signals, and the signal feature of the marking signal i can be extracted by time domain analysis, frequency domain analysis, time-frequency analysis, morphological features, correlation analysis, complexity analysis and other methods, and then the interference signal existing in the marking signal i is determined according to the signal feature, wherein the interference signal includes at least one of the following: communication link interference, computer program interference, network status interference, after determining the interference signal existing in the marking signal i, the interference signal existing in the marking signal i is filtered to obtain the target marking signal corresponding to the marking signal i. High-frequency noise and interference can be removed by low-pass filtering, low-frequency drift or DC components can be removed by high-pass filtering, useful signals within a specific frequency range can be extracted by band-pass filtering, and interference in other frequency bands can be removed. Signals within a specified frequency band can also be attenuated by band-stop filtering, allowing signals outside the frequency band to pass, and interference at specific frequencies can be removed.
[0093] It can be seen that if the first target evaluation value is greater than the preset threshold, each of the n marking signals is subjected to interference removal processing to obtain n target marking signals, which can remove interference, make the marking signal clearer and more accurate, and reduce the impact of noise and abnormalities on the signal, thereby improving the quality and reliability of the signal, and helping to improve the performance of the entire ERP hardware detection device, making subsequent processing and analysis based on these marking signals more accurate and effective, and can reduce errors or deviations caused by interference, thereby improving the accuracy of conclusions or decisions based on these signals, reducing sudden abnormalities and errors caused by interference, and enabling the ERP hardware detection device to better cope with complex and harsh signal environments, and enhancing the working ability and adaptability of the ERP hardware detection device under different conditions.
[0094] S605: Determine the time difference between the recording marking time of each target marking signal among the n target marking signals and the recording marking time of the corresponding marking signal among the n marking signals, and obtain n time differences.
[0095] Each of the n marking signals is subjected to interference removal processing to obtain n target marking signals. Since the actual marking time corresponding to each of the n marking signals has not changed, the time difference between the recorded marking time of each of the n target marking signals and the recorded marking time of the corresponding marking signal in the n marking signals is determined. This can clearly understand the influence of the interference removal processing on the recording time of the marking signal.
[0096] S606: Dynamically optimize the first target evaluation value using n time differences to obtain a second target evaluation value.
[0097] In this embodiment, the maximum value and the minimum value of the n time differences are first determined, the maximum value represents the maximum deviation degree in the time difference, and the minimum value represents the minimum deviation degree, and then the target difference between the maximum value and the minimum value is determined, and this difference reflects the overall distribution range of the time difference, and then according to the minimum value and the maximum value, k interval ranges corresponding to the target difference are determined, wherein k is an integer greater than 1, and the k intervals divide the value range of the time difference, and then the n time differences fall into the k interval ranges, that is, the n time differences are respectively classified into the k interval ranges, and the number of time differences in the k interval ranges is counted to obtain the number of k time differences, and the k interval ranges are obtained for each interval range. Corresponding weights are obtained to obtain k weights, where the sum of the k weights is 1, and the closer the interval is to the minimum value, the smaller the weight is. The quantity proportion corresponding to each interval is determined according to the k time difference quantities, and k quantity proportions are obtained. A weighted operation is performed on the k quantity proportions and the k weights to obtain a target deviation parameter. The obtained target deviation parameter comprehensively reflects the distribution and importance of the time difference in each interval, and the third optimization factor corresponding to the target deviation parameter is determined. The third optimization factor is used to adjust and optimize the first target evaluation value, so as to obtain a more accurate and reasonable second target evaluation value, and then the first target evaluation value is optimized according to the third optimization factor to obtain the second target evaluation value.
[0098] It can be seen that by determining the maximum value, the minimum value and dividing the time difference into multiple intervals to analyze the time difference, we can understand the distribution of the time difference more comprehensively and meticulously, rather than just focusing on a single extreme value. Setting weights for different intervals can reflect the importance of different degrees of deviation in the overall evaluation. The interval weight close to the minimum value is smaller, which means that smaller deviations have relatively smaller impacts, and more attention is paid to the overall impact of larger deviations. The target deviation parameter is obtained by weighted calculation of the quantity proportion and the weight, which can accurately quantify the degree of deviation of the time difference. The third optimization factor determined based on the target deviation parameter is used to optimize the first target evaluation value, which can make the evaluation result more in line with the actual signal situation, improve the accuracy and reliability of the evaluation, facilitate a clear understanding of the distribution and deviation of the time difference, and help to more accurately determine the evaluation value.
[0099] S607: Determine a target accuracy value according to the second target evaluation value.
[0100] In this embodiment, first, a reference accuracy value corresponding to the second target evaluation value is determined. This is a preliminary estimated accuracy value, which serves as the basis for subsequent adjustments. Then, the historical accuracy values of a preset time period are obtained to obtain x historical accuracy values, where x is a positive integer and each historical accuracy value corresponds to an accuracy detection moment. These historical data reflect the changes in the accuracy values over a period of time. Fitting is performed based on the x historical accuracy values and the corresponding accuracy detection moments to obtain a fitting straight line, where the horizontal axis of the fitting straight line is time and the vertical axis is the accuracy value. The purpose of fitting is to find a straight line that can approximately describe the trend of these data changes. Since the horizontal axis represents time and the vertical axis represents the accuracy value, this straight line can reflect the trend of the accuracy value changing over time. Then obtain the target slope of the fitting line. The slope indicates how quickly the accuracy value changes over time. If the slope is positive, it means that the accuracy value is increasing over time. If the slope is negative, it means that the accuracy value is decreasing. A slope close to 0 indicates that the accuracy value is relatively stable. Then determine the target fine-tuning parameter with the target slope. This parameter is determined based on the slope and is used to adjust the reference accuracy value. Finally, fine-tune the reference accuracy value according to the target fine-tuning parameter to obtain the target accuracy value. The target accuracy value obtained comprehensively considers the current second target evaluation value and the changing trend of the historical accuracy value, making the determination of the accuracy value more accurate and reasonable.
[0101] It can be seen that the accuracy is determined not only based on the current second target evaluation value, but also the historical accuracy values within the preset time period are fully utilized, making the determination of the accuracy value more comprehensive and objective. By fitting the changes in historical accuracy values over time to obtain the slope of the straight line, we can clearly understand whether the change in accuracy is increasing, decreasing, or maintaining a stable trend, thereby providing direction for the adjustment of accuracy. Fine-tuning combined with historical trends can better predict possible future accuracy performance and reduce accuracy deviations caused by uncertainty or outliers in a single evaluation. According to the ever-changing historical data and trends, the accuracy value is adjusted in real time, so that the ERP hardware detection device can adapt to different working conditions and environmental changes. Comprehensive consideration of history and current conditions avoids large fluctuations in accuracy values caused by relying solely on a single data point, making the accuracy value more stable and reliable.
[0102] In summary, the implementation of the present invention has the following beneficial effects:
[0103] It can be seen that the accuracy assessment method of event marking time described in the implementation mode of the present application is applied to an ERP hardware detection device. The ERP hardware detection device includes: a marking trigger unit, a pulse signal generator, and an EEG amplifier. The method includes: obtaining n marking signals of the target event through the marking trigger unit, and determining the real marking time and the recorded marking time corresponding to each of the n marking signals according to the determination method in the following steps S1-S5, so as to obtain n real marking times and n recorded marking times, which are specifically the following steps: S1. Responding to the first marking signal through the marking trigger unit, performing a marking operation, sending a first pulse generation instruction to the pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to the EEG amplifier, wherein the first marking signal is any one of the n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously; S2. The signal generator generates a first pulse waveform; S3, records the starting moment of the first pulse waveform through the pulse signal generator to obtain a first real marking moment; S4, when the first acquisition signal reaches the EEG amplifier, performs an EEG signal acquisition operation through the EEG amplifier, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the starting moment of the EEG amplifier performing the EEG signal acquisition operation; S5, records the first recorded marking moment corresponding to the starting moment of the EEG amplifier performing the EEG signal acquisition operation in the first pulse waveform through the pulse signal generator; determines a target accuracy value of the marking time of the target event based on n real marking moments and n recorded marking moments, and determines the target accuracy value of the marking time of the target event according to the real marking moments and recorded marking moments corresponding to multiple marking signals, so as to accurately evaluate the accuracy of the event marking time, and then accurately analyze the ERP component of the target event.
[0104] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of an event marking time accuracy assessment device provided by an embodiment of the present invention. The event marking time accuracy assessment device is applied to an ERP hardware detection device, and the ERP hardware detection device includes: a marking trigger unit, a pulse signal generator, and an EEG amplifier. Figure 7 As shown, the device 700 for evaluating the accuracy of event marking time includes: an acquisition unit 701 and a processing unit 702 .
[0105] An acquisition unit 701 is used to acquire n marking signals of a target event through a marking trigger unit, where n is an integer greater than 1;
[0106] The processing unit 702 is used to determine the real marking time and the recorded marking time corresponding to each of the n marking signals according to the determination method in the following steps S1-S5, and obtain n real marking times and n recorded marking times, which is specifically the following steps:
[0107] S1, responding to a first marking signal through a marking trigger unit, performing a marking operation, sending a first pulse generation instruction to a pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to an EEG amplifier, wherein the first marking signal is any one of n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously;
[0108] S2, generating a first pulse waveform by a pulse signal generator;
[0109] S3, recording the starting time of the first pulse waveform by a pulse signal generator to obtain the first real marking time;
[0110] S4, when the first acquisition signal reaches the EEG amplifier, the EEG amplifier performs an EEG signal acquisition operation, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0111] S5, recording, by a pulse signal generator, in the first pulse waveform, a first recording marking time corresponding to the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0112] A target accuracy value of the marking time of the target event is determined based on the n real marking moments and the n recorded marking moments.
[0113] In some possible implementations, in determining a target accuracy value of a marking time of a target event based on n real marking moments and n recorded marking moments, the processing unit 702 is specifically configured to:
[0114] Determine the difference values corresponding to the n marking signals based on the n real marking moments and the n recorded marking moments, and obtain n difference values;
[0115] Determine an absolute delay based on the n differences, wherein the absolute delay is an inherent time error generated when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier;
[0116] The jitter delay is determined based on the absolute delay and the n differences, and the jitter delay is used to characterize the time error caused by the channel interference signal when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier;
[0117] The accuracy of the marking time of the target event is evaluated based on the absolute delay and the jitter delay, and a target accuracy value of the marking time of the target event is obtained.
[0118] In some possible implementations, in terms of evaluating the accuracy of the marking time of the target event based on the absolute delay and the jitter delay to obtain a target accuracy value of the marking time of the target event, the processing unit 702 is specifically configured to:
[0119] Obtaining a first weight corresponding to the absolute delay and a second weight corresponding to the jitter delay;
[0120] Perform a weighted operation based on the absolute delay, the jitter delay, the first weight and the second weight to obtain a first target evaluation value;
[0121] If the first target evaluation value is less than or equal to the preset threshold, determining the target accuracy value according to the first target evaluation value;
[0122] If the first target evaluation value is greater than a preset threshold, each of the n marking signals is subjected to interference removal processing to obtain n target marking signals;
[0123] Determine the time difference between the recording marking time of each target marking signal in the n target marking signals and the recording marking time of the corresponding marking signal in the n marking signals to obtain n time differences;
[0124] Dynamically optimize the first target evaluation value using n time differences to obtain a second target evaluation value;
[0125] A target accuracy value is determined based on the second target evaluation value.
[0126] In some possible implementations, in terms of obtaining a first weight corresponding to the absolute delay and a second weight corresponding to the jitter delay, the processing unit 702 is specifically configured to:
[0127] Obtaining a first reference weight corresponding to the absolute delay and a second reference weight corresponding to the jitter delay;
[0128] Acquire the connection mode between the marking trigger unit and the EEG amplifier to obtain a target connection mode, wherein the target connection mode includes a wired connection or a wireless connection;
[0129] Determine the signal path length between the marking trigger unit and the EEG amplifier based on the target connection mode to obtain the target signal path length;
[0130] Determine a first optimization factor corresponding to the target signal path length;
[0131] Optimizing the first reference weight according to the first optimization factor to obtain a first weight;
[0132] Obtain the channel parameters of the channel between the marking trigger unit and the EEG amplifier to obtain the target channel parameters;
[0133] Determining a second optimization factor corresponding to the target channel parameter;
[0134] The second reference weight is optimized according to the second optimization factor to obtain a second weight.
[0135] In some possible implementations, in terms of dynamically optimizing the first target evaluation value by using n time differences to obtain the second target evaluation value, the processing unit 702 is specifically configured to:
[0136] Determine the maximum and minimum of the n time differences;
[0137] Determine the target difference between the maximum and minimum values;
[0138] According to the minimum value and the maximum value, k interval ranges corresponding to the target difference are determined, where k is an integer greater than 1;
[0139] Put n time differences into k intervals;
[0140] Count the number of time differences in k intervals to obtain the number of k time differences;
[0141] Obtain the weight corresponding to each of the k interval ranges to obtain k weights, where the sum of the k weights is 1, and the weight of the interval range closer to the minimum value is smaller;
[0142] Determine the quantity proportion corresponding to each interval range according to the number of k time differences, and obtain k quantity proportions;
[0143] Perform a weighted operation based on the k quantity proportions and k weights to obtain the target deviation parameter;
[0144] determining a third optimization factor corresponding to the target deviation parameter;
[0145] The first target evaluation value is optimized according to the third optimization factor to obtain a second target evaluation value.
[0146] In some possible implementations, in performing interference removal processing on each of the n marking signals to obtain n target marking signals, the processing unit 702 is specifically configured to:
[0147] Perform feature extraction on the marking signal i to obtain a signal feature of the marking signal i, wherein the marking signal i is any marking signal among the n marking signals;
[0148] Determine an interference signal present in the marking signal i according to the signal characteristics, wherein the interference signal includes at least one of the following: communication link interference, computer program interference, and network status interference;
[0149] The interference signal in the marking signal i is filtered to obtain the target marking signal corresponding to the marking signal i.
[0150] In some possible implementations, in determining the target accuracy value according to the second target evaluation value, the processing unit 702 is specifically configured to:
[0151] determining a reference accuracy value corresponding to the second target evaluation value;
[0152] Obtain the historical accuracy values of a preset time period, and obtain x historical accuracy values, where x is a positive integer and each historical accuracy value corresponds to an accuracy detection moment;
[0153] Perform fitting according to x historical accuracy values and corresponding accuracy detection moments to obtain a fitting straight line, wherein the horizontal axis of the fitting straight line is time and the vertical axis is the accuracy value;
[0154] Get the target slope of the fitted straight line;
[0155] Determine target fine-tuning parameters with target slope;
[0156] The reference accuracy value is fine-tuned according to the target fine-tuning parameter to obtain the target accuracy value.
[0157] It can be understood that the event marking time accuracy assessment device 700 provided in this embodiment can also perform other steps in the above embodiment, and its specific implementation process can refer to the relevant description of the above embodiment, which will not be repeated here.
[0158] See also Figure 8 , Figure 8 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 8 As shown, the electronic device 800 includes a transceiver 801, a processor 802 and a memory 803. They are connected via a bus 804. The memory 803 is used to store computer programs and data, and can transmit the data stored in the memory 803 to the processor 802.
[0159] The above program includes instructions for performing the following steps:
[0160] Obtain n marking signals of the target event through the marking trigger unit, where n is an integer greater than 1;
[0161] According to the determination method in the following steps S1-S5, the real marking time and the recorded marking time corresponding to each of the n marking signals are determined to obtain n real marking times and n recorded marking times, which are specifically the following steps:
[0162] S1, responding to a first marking signal through a marking trigger unit, performing a marking operation, sending a first pulse generation instruction to a pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to an EEG amplifier, wherein the first marking signal is any one of n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously;
[0163] S2, generating a first pulse waveform by a pulse signal generator;
[0164] S3, recording the starting time of the first pulse waveform by a pulse signal generator to obtain the first real marking time;
[0165] S4, when the first acquisition signal reaches the EEG amplifier, the EEG amplifier performs an EEG signal acquisition operation, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0166] S5, recording, by a pulse signal generator, in the first pulse waveform, a first recording marking time corresponding to the start time of the EEG amplifier performing the EEG signal acquisition operation;
[0167] A target accuracy value of the marking time of the target event is determined based on the n real marking moments and the n recorded marking moments.
[0168] In some possible implementations, in determining a target accuracy value of a marking time of a target event based on n real marking moments and n recorded marking moments, the program further includes instructions for executing the following steps:
[0169] Determine the difference values corresponding to the n marking signals based on the n real marking moments and the n recorded marking moments, and obtain n difference values;
[0170] Determine an absolute delay based on the n differences, wherein the absolute delay is an inherent time error generated when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier;
[0171] The jitter delay is determined based on the absolute delay and the n differences, and the jitter delay is used to characterize the time error caused by the channel interference signal when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier;
[0172] The accuracy of the marking time of the target event is evaluated based on the absolute delay and the jitter delay, and a target accuracy value of the marking time of the target event is obtained.
[0173] In some possible implementations, in terms of evaluating the accuracy of the marking time of the target event based on the absolute delay and the jitter delay to obtain a target accuracy value of the marking time of the target event, the program further includes instructions for executing the following steps:
[0174] Obtaining a first weight corresponding to the absolute delay and a second weight corresponding to the jitter delay;
[0175] Perform a weighted operation based on the absolute delay, the jitter delay, the first weight and the second weight to obtain a first target evaluation value;
[0176] If the first target evaluation value is less than or equal to the preset threshold, determining the target accuracy value according to the first target evaluation value;
[0177] If the first target evaluation value is greater than a preset threshold, each of the n marking signals is subjected to interference removal processing to obtain n target marking signals;
[0178] Determine the time difference between the recording marking time of each target marking signal in the n target marking signals and the recording marking time of the corresponding marking signal in the n marking signals to obtain n time differences;
[0179] Dynamically optimize the first target evaluation value using n time differences to obtain a second target evaluation value;
[0180] A target accuracy value is determined based on the second target evaluation value.
[0181] In some possible implementations, in terms of obtaining a first weight corresponding to the absolute delay and a second weight corresponding to the jitter delay, the program further includes instructions for executing the following steps:
[0182] Obtaining a first reference weight corresponding to the absolute delay and a second reference weight corresponding to the jitter delay;
[0183] Acquire the connection mode between the marking trigger unit and the EEG amplifier to obtain a target connection mode, wherein the target connection mode includes a wired connection or a wireless connection;
[0184] Determine the signal path length between the marking trigger unit and the EEG amplifier based on the target connection mode to obtain the target signal path length;
[0185] Determine a first optimization factor corresponding to the target signal path length;
[0186] Optimizing the first reference weight according to the first optimization factor to obtain a first weight;
[0187] Obtain the channel parameters of the channel between the marking trigger unit and the EEG amplifier to obtain the target channel parameters;
[0188] Determining a second optimization factor corresponding to the target channel parameter;
[0189] The second reference weight is optimized according to the second optimization factor to obtain a second weight.
[0190] In some possible implementations, in terms of dynamically optimizing the first target evaluation value using n time differences to obtain the second target evaluation value, the program further includes instructions for executing the following steps:
[0191] Determine the maximum and minimum of the n time differences;
[0192] Determine the target difference between the maximum and minimum values;
[0193] According to the minimum value and the maximum value, k interval ranges corresponding to the target difference are determined, where k is an integer greater than 1;
[0194] Put n time differences into k intervals;
[0195] Count the number of time differences in k intervals to obtain the number of k time differences;
[0196] Obtain the weight corresponding to each of the k interval ranges to obtain k weights, where the sum of the k weights is 1, and the weight of the interval range closer to the minimum value is smaller;
[0197] Determine the quantity proportion corresponding to each interval range according to the number of k time differences, and obtain k quantity proportions;
[0198] Perform a weighted operation based on the k quantity proportions and k weights to obtain the target deviation parameter;
[0199] determining a third optimization factor corresponding to the target deviation parameter;
[0200] The first target evaluation value is optimized according to the third optimization factor to obtain a second target evaluation value.
[0201] In some possible implementations, in terms of performing interference removal processing on each of the n marking signals to obtain n target marking signals, the program further includes instructions for executing the following steps:
[0202] Perform feature extraction on the marking signal i to obtain a signal feature of the marking signal i, wherein the marking signal i is any marking signal among the n marking signals;
[0203] Determine an interference signal present in the marking signal i according to the signal characteristics, wherein the interference signal includes at least one of the following: communication link interference, computer program interference, and network status interference;
[0204] The interference signal in the marking signal i is filtered to obtain the target marking signal corresponding to the marking signal i.
[0205] In some possible implementations, in determining the target accuracy value according to the second target evaluation value, the program further includes instructions for performing the following steps:
[0206] determining a reference accuracy value corresponding to the second target evaluation value;
[0207] Obtain the historical accuracy values of a preset time period, and obtain x historical accuracy values, where x is a positive integer and each historical accuracy value corresponds to an accuracy detection moment;
[0208] Perform fitting according to x historical accuracy values and corresponding accuracy detection moments to obtain a fitting straight line, wherein the horizontal axis of the fitting straight line is time and the vertical axis is the accuracy value;
[0209] Get the target slope of the fitted straight line;
[0210] Determine target fine-tuning parameters with target slope;
[0211] The reference accuracy value is fine-tuned according to the target fine-tuning parameter to obtain the target accuracy value.
[0212] It should be understood that the electronic devices in this application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, mobile Internet devices MID (Mobile Internet Devices, referred to as: MID) or wearable devices or servers, edge computing nodes, etc. The above electronic devices are only examples, not exhaustive, and include but are not limited to the above electronic devices. In practical applications, the above electronic devices may also include: smart vehicle terminals, computer equipment, etc.
[0213] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement part or all of the steps of any event marking time accuracy assessment method recorded in the above method embodiment.
[0214] The embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any event marking time accuracy assessment method recorded in the above method embodiment.
[0215] It should be noted that, for the above-mentioned various method implementations, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the implementations described in the specification are all optional implementations, and the actions and modules involved are not necessarily required by this application.
[0216] In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0217] In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device implementation described above is only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another ERP hardware detection device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical or other forms.
[0218] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0219] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0220] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of each implementation method of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0221] A person skilled in the art may understand that all or part of the steps in the various methods of the above-mentioned embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0222] The above is a detailed introduction to the implementation methods of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above implementation methods is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for evaluating the accuracy of event marking time, It is characterized in that Applied to an ERP hardware detection device, the ERP hardware detection device includes: a marking trigger unit, a pulse signal generator, and an electroencephalogram amplifier, and the method includes: Acquire n marking signals of the target event through the marking trigger unit, wherein n is an integer greater than 1; According to the determination method in the following steps S1-S5, the real marking time and the recorded marking time corresponding to each of the n marking signals are determined to obtain n real marking times and n recorded marking times, which are specifically the following steps: S1, responding to a first marking signal through the marking trigger unit, performing a marking operation, sending a first pulse generation instruction to the pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to the EEG amplifier, wherein the first marking signal is any one of the n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously; S2, generating a first pulse waveform by the pulse signal generator; S3, recording the starting time of the first pulse waveform by the pulse signal generator to obtain a first real marking time; S4. When the first acquisition signal reaches the EEG amplifier, the EEG amplifier performs the EEG signal acquisition operation, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the start time of the EEG amplifier performing the EEG signal acquisition operation; S5, recording, by the pulse signal generator, in the first pulse waveform, a first recording marking time corresponding to the start time of the EEG amplifier performing the EEG signal acquisition operation; Determining a target accuracy value of the marking time of the target event based on the n real marking moments and the n recorded marking moments; Wherein, the determining the target accuracy value of the marking time of the target event based on the n real marking moments and the n recorded marking moments includes: Determine the difference values corresponding to the n marking signals based on the n real marking moments and the n recorded marking moments to obtain n difference values; Determine an absolute delay based on the n differences, wherein the absolute delay is an inherent time error generated when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier; Determine a jitter delay based on the absolute delay and the n difference values, wherein the jitter delay is used to characterize a time error caused by a channel interference signal when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier; Evaluate the accuracy of the marking time of the target event based on the absolute delay and the jitter delay to obtain a target accuracy value of the marking time of the target event; The step of evaluating the accuracy of the marking time of the target event based on the absolute delay and the jitter delay to obtain a target accuracy value of the marking time of the target event includes: Obtaining a first weight corresponding to the absolute delay and a second weight corresponding to the jitter delay; Perform a weighted operation based on the absolute delay, the jitter delay, the first weight, and the second weight to obtain a first target evaluation value; If the first target evaluation value is less than or equal to a preset threshold, determining the target accuracy value according to the first target evaluation value; If the first target evaluation value is greater than the preset threshold, performing interference removal processing on each of the n marking signals to obtain n target marking signals; Determine the time difference between the recording marking time of each target marking signal in the n target marking signals and the recording marking time of the corresponding marking signal in the n marking signals to obtain n time differences; Dynamically optimizing the first target evaluation value using the n time differences to obtain a second target evaluation value; Determine the target accuracy value according to the second target evaluation value; The obtaining of the first weight corresponding to the absolute delay and the second weight corresponding to the jitter delay includes: Obtaining a first reference weight corresponding to the absolute delay and a second reference weight corresponding to the jitter delay; Acquire the connection mode between the marking trigger unit and the EEG amplifier to obtain a target connection mode, wherein the target connection mode includes a wired connection or a wireless connection; Determine the signal path length between the marking trigger unit and the EEG amplifier based on the target connection mode to obtain a target signal path length; Determining a first optimization factor corresponding to the target signal path length; Optimizing the first reference weight according to the first optimization factor to obtain the first weight; Acquire channel parameters of the channel between the marking trigger unit and the EEG amplifier to obtain target channel parameters; Determining a second optimization factor corresponding to the target channel parameter; Optimizing the second reference weight according to the second optimization factor to obtain the second weight; The step of dynamically optimizing the first target evaluation value by using the n time differences to obtain the second target evaluation value includes: Determine the maximum and minimum values of the n time differences; determining a target difference between the maximum value and the minimum value; Determine k interval ranges corresponding to the target difference according to the minimum value and the maximum value, where k is an integer greater than 1; The n time differences fall into the k interval ranges; Counting the number of time differences in the k intervals to obtain k time difference numbers; Obtaining a weight corresponding to each of the k interval ranges to obtain k weights, wherein the sum of the k weights is 1, and the weight of the interval range closer to the minimum value is smaller; Determine the quantity proportion corresponding to each interval range according to the k time difference quantities, and obtain k quantity proportions; Performing a weighted operation according to the k quantity proportions and the k weights to obtain a target deviation parameter; determining a third optimization factor corresponding to the target deviation parameter; Optimize the first target evaluation value according to the third optimization factor to obtain the second target evaluation value; The step of performing interference removal processing on each of the n marking signals to obtain n target marking signals includes: Perform feature extraction on the marking signal i to obtain a signal feature of the marking signal i, wherein the marking signal i is any one of the n marking signals; Determine an interference signal present in the marking signal i according to the signal characteristics, wherein the interference signal includes at least one of the following: communication link interference, computer program interference, and network status interference; Filtering the interference signal present in the marking signal i to obtain a target marking signal corresponding to the marking signal i; Wherein, determining the target accuracy value according to the second target evaluation value includes: Determining a reference accuracy value corresponding to the second target evaluation value; Obtain the historical accuracy values of a preset time period, and obtain x historical accuracy values, where x is a positive integer and each historical accuracy value corresponds to an accuracy detection moment; Perform fitting according to the x historical accuracy values and the corresponding accuracy detection moments to obtain a fitting straight line, wherein the horizontal axis of the fitting straight line is time and the vertical axis is the accuracy value; Obtaining a target slope of the fitted straight line; determining a target trim parameter with the target slope; The reference precision value is fine-tuned according to the target fine-tuning parameter to obtain the target precision value.
2. A device for evaluating the accuracy of event marking time, It is characterized in that Applied to an ERP hardware detection device, the ERP hardware detection device includes: a marking trigger unit, a pulse signal generator, and an EEG amplifier, and the event marking time accuracy evaluation device includes: an acquisition unit and a processing unit; The acquisition unit is used to acquire n marking signals of the target event through the marking trigger unit, where n is an integer greater than 1; The processing unit is used to determine the real marking time and the recorded marking time corresponding to each of the n marking signals according to the determination method in the following steps S1-S5, and obtain n real marking times and n recorded marking times, specifically the following steps: S1, responding to a first marking signal through the marking trigger unit, performing a marking operation, sending a first pulse generation instruction to the pulse signal generator, and sending a first acquisition signal for performing an EEG signal acquisition operation to the EEG amplifier, wherein the first marking signal is any one of the n marking signals, and the first pulse generation instruction and the first acquisition signal are sent simultaneously; S2, generating a first pulse waveform by the pulse signal generator; S3, recording the starting time of the first pulse waveform by the pulse signal generator to obtain a first real marking time; S4. When the first acquisition signal reaches the EEG amplifier, the EEG amplifier performs the EEG signal acquisition operation, and sends a first recording instruction to the pulse signal generator, wherein the first recording instruction is used to record the start time of the EEG amplifier performing the EEG signal acquisition operation; S5, recording, by the pulse signal generator, in the first pulse waveform, a first recording marking time corresponding to the start time of the EEG amplifier performing the EEG signal acquisition operation; Determining a target accuracy value of the marking time of the target event based on the n real marking moments and the n recorded marking moments; Wherein, the determining the target accuracy value of the marking time of the target event based on the n real marking moments and the n recorded marking moments includes: Determine the difference values corresponding to the n marking signals based on the n real marking moments and the n recorded marking moments to obtain n difference values; Determine an absolute delay based on the n differences, wherein the absolute delay is an inherent time error generated when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier; Determine a jitter delay based on the absolute delay and the n difference values, wherein the jitter delay is used to characterize a time error caused by a channel interference signal when the n marking signals are transmitted from the marking trigger unit to the EEG amplifier; Evaluate the accuracy of the marking time of the target event based on the absolute delay and the jitter delay to obtain a target accuracy value of the marking time of the target event; The step of evaluating the accuracy of the marking time of the target event based on the absolute delay and the jitter delay to obtain a target accuracy value of the marking time of the target event includes: Obtaining a first weight corresponding to the absolute delay and a second weight corresponding to the jitter delay; Perform a weighted operation based on the absolute delay, the jitter delay, the first weight, and the second weight to obtain a first target evaluation value; If the first target evaluation value is less than or equal to a preset threshold, determining the target accuracy value according to the first target evaluation value; If the first target evaluation value is greater than the preset threshold, performing interference removal processing on each of the n marking signals to obtain n target marking signals; Determine the time difference between the recording marking time of each target marking signal in the n target marking signals and the recording marking time of the corresponding marking signal in the n marking signals to obtain n time differences; Dynamically optimizing the first target evaluation value using the n time differences to obtain a second target evaluation value; Determine the target accuracy value according to the second target evaluation value; The obtaining of the first weight corresponding to the absolute delay and the second weight corresponding to the jitter delay includes: Obtaining a first reference weight corresponding to the absolute delay and a second reference weight corresponding to the jitter delay; Acquire the connection mode between the marking trigger unit and the EEG amplifier to obtain a target connection mode, wherein the target connection mode includes a wired connection or a wireless connection; Determine the signal path length between the marking trigger unit and the EEG amplifier based on the target connection mode to obtain a target signal path length; Determining a first optimization factor corresponding to the target signal path length; Optimizing the first reference weight according to the first optimization factor to obtain the first weight; Acquire channel parameters of the channel between the marking trigger unit and the EEG amplifier to obtain target channel parameters; Determining a second optimization factor corresponding to the target channel parameter; Optimizing the second reference weight according to the second optimization factor to obtain the second weight; The step of dynamically optimizing the first target evaluation value by using the n time differences to obtain the second target evaluation value includes: Determine the maximum and minimum values of the n time differences; determining a target difference between the maximum value and the minimum value; Determine k interval ranges corresponding to the target difference according to the minimum value and the maximum value, where k is an integer greater than 1; The n time differences fall into the k interval ranges; Counting the number of time differences in the k intervals to obtain k time difference numbers; Obtaining a weight corresponding to each of the k interval ranges to obtain k weights, wherein the sum of the k weights is 1, and the weight of the interval range closer to the minimum value is smaller; Determine the quantity proportion corresponding to each interval range according to the k time difference quantities, and obtain k quantity proportions; Performing a weighted operation according to the k quantity proportions and the k weights to obtain a target deviation parameter; determining a third optimization factor corresponding to the target deviation parameter; Optimize the first target evaluation value according to the third optimization factor to obtain the second target evaluation value; The step of performing interference removal processing on each of the n marking signals to obtain n target marking signals includes: Perform feature extraction on the marking signal i to obtain a signal feature of the marking signal i, wherein the marking signal i is any one of the n marking signals; Determine an interference signal present in the marking signal i according to the signal characteristics, wherein the interference signal includes at least one of the following: communication link interference, computer program interference, and network status interference; Filtering the interference signal present in the marking signal i to obtain a target marking signal corresponding to the marking signal i; Wherein, determining the target accuracy value according to the second target evaluation value includes: Determining a reference accuracy value corresponding to the second target evaluation value; Obtain the historical accuracy values of a preset time period, and obtain x historical accuracy values, where x is a positive integer and each historical accuracy value corresponds to an accuracy detection moment; Perform fitting according to the x historical accuracy values and the corresponding accuracy detection moments to obtain a fitting straight line, wherein the horizontal axis of the fitting straight line is time and the vertical axis is the accuracy value; Obtaining a target slope of the fitted straight line; determining a target trim parameter with the target slope; The reference precision value is fine-tuned according to the target fine-tuning parameter to obtain the target precision value.
3. An electronic device, It is characterized in that The method comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for executing the steps in the method of claim 1.
4. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to claim 1.
