Eye movement judgment and confirmation method and system based on error correlation potential, medium and product
By combining eye movement and electroencephalogram data, errors in eye movement instructions are detected in real time, which solves the reliability and accuracy problems of existing eye movement control technology and improves the stability of the system and user experience.
Patent Information
- Application Number
- CN202410781097.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
AI Technical Summary
Existing eye movement control technology has poor reliability and accuracy, cannot achieve adaptive adjustment, and lacks feedback correction for eye movement instructions, resulting in the control system outputting incorrect instructions and making it difficult to put into practical applications.
By acquiring eye movement data and EEG data at the same moment, using the detection model for recognition and detection, determining the eye movement instructions based on the detection results, and detecting errors in the instructions in real time through the EEG data. If there are errors, re-collect the data. Improve the safety and reliability of eye movement control technology.
It improves the safety and reliability of eye movement control technology, captures user intentions more accurately by combining eye movement and EEG data, and enhances system stability and user experience.
Smart Images

Figure CN118609196A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of eye movement control technology, and in particular to an eye movement identification and confirmation method, system, medium and product based on error-related potentials. Background Art
[0002] Eye movement commands are commands that monitor the user's eye movements to obtain user intent or control the system. Eye movement commands can be used to improve human-computer interaction systems and user interface design, and can be applied to rehabilitation assistive technologies and barrier-free facilities, as well as medical diagnosis, psychology, and neuroscience research. The parameters required for eye movement commands include eye position parameters, gaze position, line of sight movement speed, gaze duration, blinking frequency, etc.
[0003] Error-related potentials are a neurophysiological index for studying error processing in cognitive processes by recording event-related potentials generated by the brain during a certain cognitive task. When an individual makes an error in performing a task, the brain will produce a specific potential response, which can be measured and analyzed by electroencephalography or other neuroimaging techniques. Error-related potentials are usually divided into two main types: error-related negativity (ERN) and error positivity (Pe). ERN usually appears within about 100 milliseconds after an individual realizes that he has made an error and is a negative potential. It is mainly observed in the prefrontal region (especially the anterior cingulate cortex) and is related to the individual's error monitoring and error processing. The amplitude of ERN is usually related to the severity of the error, that is, when the error is more significant or rarer, the amplitude of ERN is larger. Pe appears after ERN, usually between 200 milliseconds and 400 milliseconds after the error occurs, and is a positive potential. Pe is mainly observed in the central and parietal regions and is related to the perception of errors and subsequent error adjustment. The study of error-related potentials is of great significance for understanding the mechanisms of error processing and error adjustment in cognitive tasks.
[0004] Eye movement control technology is a new type of human-computer interaction technology that directly uses eye information to control actuators. However, due to the difficulty in distinguishing eye movement commands, there are individual differences, environmental interference, data noise, individual control ability of the eyeball, and the natural movement of the eyeball. The eye movement commands of existing eye control technologies have poor reliability and accuracy, cannot achieve adaptive adjustment, and do not have feedback correction for eye movement commands. It is very likely to output wrong commands to the control system, causing it to execute wrong responses, making it difficult for current eye control devices to be put into practical use. Summary of the invention
[0005] The purpose of the present invention is to provide an eye movement identification and confirmation method, system, medium and product based on error-related potentials, which can improve the safety and reliability of eye movement control technology.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] An eye movement discrimination and confirmation method based on error-related potentials comprises:
[0008] Acquire eye movement data and electroencephalogram data at the same time; the eye movement data is the first data or the second data; the first data includes human eyes and irises; the second data includes human eyes; the electroencephalogram data includes multiple electroencephalogram data;
[0009] The eye movement data is input into the detection model to perform recognition detection on the eye movement data to obtain a detection result; the detection result is a first detection result or a second detection result; the first detection result includes a human eye detection frame, an upper left corner coordinate system of an iris detection frame, and an upper right corner coordinate system of an iris detection frame; the second detection result includes a human eye detection frame; the detection model is constructed based on a YOLOv7 model;
[0010] determining an eye movement instruction based on the detection result;
[0011] The eye movement command is judged by the electroencephalogram data to obtain a judgment result.
[0012] A computer system includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned eye movement identification and confirmation method based on error-related potentials.
[0013] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned eye movement identification and confirmation method based on error-related potentials.
[0014] A computer program product includes a computer program, which, when executed by a processor, implements the above-mentioned eye movement identification and confirmation method based on error-related potentials.
[0015] The present invention discloses an eye movement identification and confirmation method, system, medium and product based on error-related potentials. The method comprises the following steps: firstly, eye movement data and electroencephalogram data at the same moment are acquired; and a detection model is used to identify and detect the eye movement data; an eye movement instruction is determined based on the detection result; and finally, the eye movement instruction is identified through electroencephalogram data. If it is determined that there is no error in the eye movement instruction, the instruction is executed; if it is determined that there is an error in the eye movement instruction, the eye movement data and electroencephalogram data at the same moment are collected again. The present invention detects the eye movement instruction obtained based on the eye movement data in real time through electroencephalogram data, so as to improve the safety and reliability of the eye movement control technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic flow chart of an eye movement identification and confirmation method based on error-related potentials provided in Example 1 of the present invention;
[0018] Figure 2 A schematic diagram of a computer system provided for Embodiment 2 of the present invention;
[0019] Figure 3 This is a schematic diagram of the center position of the iris detection frame provided in Example 1 of the present invention.
[0020] Explanation of symbols:
[0021] User—0, eye movement data collector—1, EEG collector—2, main control machine—3, feedback device—4, actuator—5, upper edge of eye detection box—6, lower edge of eye detection box—7, right side of eye detection box—8, left side of eye detection box—9, center position of iris detection box—10. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] The purpose of the present invention is to provide an eye movement identification and confirmation method, system, medium and product based on error-related potentials, aiming to improve the safety and reliability of eye movement control technology.
[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] Example 1
[0026] like Figure 1 As shown, in this embodiment, an eye movement identification and confirmation method based on error-related potentials includes:
[0027] Step 101: Acquire eye movement data and electroencephalogram data at the same time. The eye movement data is first data or second data; the first data includes human eyes and irises; the second data includes human eyes; and the electroencephalogram data includes multiple electroencephalogram data.
[0028] Step 102: Input the eye movement data into the detection model to perform recognition detection on the eye movement data to obtain a detection result. The detection result is a first detection result or a second detection result; the first detection result includes a human eye detection frame, an upper left corner coordinate system of an iris detection frame, and an upper right corner coordinate system of an iris detection frame; the second detection result includes a human eye detection frame; the detection model is constructed based on the YOLOv7 model.
[0029] YOLOv7 mainly consists of three key parts: backbone network, SPP structure and detection head. First, the backbone network usually adopts CSPDarknet53 or YoloPAN, which is responsible for extracting features from the input image and building an efficient feature extractor. Then, the SPP (Spatial Pyramid Pooling) structure is introduced to fuse features at multiple scales. Finally, the detection head consists of multiple convolutional layers, which is responsible for mapping the feature map to the result of target detection and completing the target detection task by predicting the position of the bounding box and the target category. The entire structure is optimized through end-to-end training, thereby achieving the real-time performance of the target detection algorithm while maintaining high accuracy.
[0030] In the YOLOv7 algorithm, detected objects are represented as boxes that contain pixel coordinate information of the detected objects. These coordinates are given in the output of the YOLOv7 model in the form of an array. Each detected object corresponds to a detection box, and each box consists of four coordinate values: (x min ,y min ,x max ,x max ), which represent the horizontal coordinate of the upper left corner, the vertical coordinate of the upper left corner, the horizontal coordinate of the lower right corner, and the vertical coordinate of the lower right corner, respectively.
[0031] Step 103: Determine eye movement instructions based on the detection results.
[0032] If the detection result is the second detection result, the eye movement instruction is determined to be the first instruction.
[0033] If the detection result is the first detection result, the center position of the iris detection frame is determined based on the upper left corner coordinate system of the iris detection frame and the upper right corner coordinate system of the iris detection frame.
[0034] The center position of the iris detection frame can be calculated using the following formula using the obtained coordinate system of the upper left corner of the iris detection frame and the coordinate system of the upper right corner of the iris detection frame.
[0035]
[0036] The above formula can be used to calculate the center position of the iris detection frame, which is marked as 10, and the four sides of the human eye detection frame are marked as 6, 7, 8 and 9 respectively. Figure 3 shown.
[0037] like Figure 3 As shown in the figure, the human eye is looking to the left at this time, and D4 is much larger than D3. When the human eye looks to the left or right, it can be distinguished very accurately. However, through actual judgment, it is found that when the human eye looks up or down, although the vertical distance from the center of the iris detection frame to the upper and lower sides of the human eye detection frame is very different, the vertical distance from the center of the iris detection frame to the left and right sides of the human eye detection frame is also different.
[0038] The eye movement instruction is determined based on the positional relationship between the center position of the iris detection frame and the eye detection frame.
[0039] Determine whether the positional relationship between the center position of the iris detection frame and the eye detection frame satisfies the first judgment condition; the first judgment condition is D2≥aD1; D1 represents the distance between the center position of the iris detection frame and the upper edge of the eye detection frame; D2 represents the distance between the center position of the iris detection frame and the lower edge of the eye detection frame; a represents the first threshold; b represents the second threshold. The values of a and b can be adjusted according to actual conditions.
[0040] Considering that everyone's eyes are different in size and are far from the camera, no threshold is set here, but the eye movement is judged by the ratio. When the human eye looks left and right, the vertical distance from the center of the iris detection frame to the left and right sides of the eye detection frame is very different, so setting the value of b to 2 is the best. When the human eye looks up and down, the vertical distance from the center of the iris detection frame to the upper and lower sides of the eye detection frame is very different, but the difference is smaller than when the human eye looks left and right, so setting the value of a to 1.7 is the best.
[0041] If the first determination condition is met, the eye movement instruction is determined to be the second instruction.
[0042] If the first judgment condition is not met, it is determined whether the positional relationship between the center position of the iris detection frame and the eye detection frame meets the second judgment condition; the second judgment condition is D1≥aD2.
[0043] If the second determination condition is met, the eye movement instruction is determined to be the third instruction.
[0044] If the second discrimination condition is not satisfied, then determine whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the third discrimination condition; the third discrimination condition is D4≥bD3, D2<aD1 or D1<aD2; D3 represents the distance between the center position of the iris detection frame and the right side of the human eye detection frame; D4 represents the distance between the center position of the iris detection frame and the left side of the human eye detection frame.
[0045] If the third discrimination condition is satisfied, then determine that the eye movement instruction is the fourth instruction.
[0046] If the third discrimination condition is not satisfied, then determine whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the fourth discrimination condition; the fourth discrimination condition is D3≥bD4, D2<aD1 or D1<aD2.
[0047] If the fourth discrimination condition is satisfied, then determine that the eye movement instruction is the fifth instruction.
[0048] If the fourth discrimination condition is not satisfied, then determine whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the fifth discrimination condition; the fifth discrimination condition is D2<aD1, D1<aD2, D4<bD3 or D3<bD4.
[0049] If the fifth discrimination condition is satisfied, then determine that the eye movement instruction is the sixth instruction.
[0050] If the fifth discrimination condition is not satisfied, then return to step 101.
[0051] Step 104: Discriminate the eye movement instruction through the electroencephalogram data to obtain a discrimination result.
[0052] Preprocess the electroencephalogram data to obtain the preprocessed electroencephalogram data X = {x1, x2, …, x i , …, x N}.
[0053] The preprocessing method is as follows:
[0054] 1. Amplifier amplification: Amplify the error-related potential signal to enhance the signal strength.
[0055] 2. Laplacian spatial filtering: Use Laplacian spatial filtering technology to enhance the local features of the signal.
[0056] 3. DC component removal: Remove the DC component in the signal to ensure that the signal center is near zero.
[0057] 4. Band-pass filtering: Use a fourth-order Butterworth filter to remove high-frequency noise and highlight the frequency range of the error-related potential.
[0058] 5. Data downsampling: Reduce the sampling rate of data to reduce computational complexity and improve computational efficiency.
[0059] 6. Split data: Split the processed data into segments of fixed length for subsequent analysis.
[0060] 7. Common-mean reference spatial filtering: Use common-mean reference technology to remove the interference of common brain activities in surrounding channels.
[0061] 8. Independent component analysis: Independent component analysis (ICA) is used to remove electrooculographic artifact components related to blinking and eye movements.
[0062] Perform linear mapping on each EEG data in the preprocessed EEG data to obtain the query vector, key vector and value vector of each EEG data:
[0063] Q i =x i W Q .
[0064] K i =x i W K .
[0065] V i =x i W V .
[0066] Calculate the attention score of each EEG data based on its query vector, key vector, and value vector:
[0067]
[0068] The attention scores of each EEG data are concatenated, and the final output of each EEG data is obtained through linear mapping and activation function:
[0069] output i =ReLU(Concat(Attention(Q i ,K i ,V i ))).
[0070] The final output of each EEG data is averaged and pooled to obtain the time domain feature representation:
[0071]
[0072] Time domain feature extraction is performed on the data vector of each channel of each EEG data in the preprocessed EEG data to obtain a time domain feature vector of the data vector of each channel of each EEG data in the preprocessed EEG data.
[0073] Based on the time domain feature vector of each channel of each EEG data in the preprocessed EEG data, the frequency domain feature vector of each channel of each EEG data in the preprocessed EEG data is obtained:
[0074] x freq,ic =|DFT(x time,ic )| 2 .
[0075] The calculation formula of DFT is:
[0076]
[0077] The frequency domain feature vectors of the data vectors of each channel of each EEG data in the preprocessed EEG data are connected to obtain the frequency domain feature representation of each EEG data in the preprocessed EEG data:
[0078] Fre Feature i =[x freq,i1 ,x freq,i2 ,…,x freq,ic ].
[0079] The time domain feature representation is concatenated with the frequency domain feature representation of each EEG data in the preprocessed EEG data to obtain the concatenation result of each EEG data in the preprocessed EEG data:
[0080] Final Features i =[Time Feature,Fre Featurei ] ].
[0081] Use the fully connected layer to classify the splicing results of each EEG data in the preprocessed EEG data and use the splicing results with high confidence as the final result:
[0082] Prob(err i )=softmax(Final Features i W C ).
[0083] The final result characterizes the error-related potential.
[0084] The eye movement instruction is judged by the error-related potential to obtain a judgment result.
[0085] If the error-related potential is greater than or equal to the preset potential threshold, it indicates that there is an error in the eye movement instruction, and the judgment result is to return to step 101.
[0086] If the error-related potential is less than the preset potential threshold, it indicates that there is no error in the eye movement instruction. The judgment result is to execute the eye movement instruction, and in the process of executing the eye movement instruction, the electroencephalogram data during the execution process is obtained in real time, and the eye movement instruction is controlled based on the electroencephalogram data during the execution process.
[0087] Among them, x i represents the C channels of the ith EEG data in the preprocessed EEG data; Q i K represents the query vector of the i-th EEG data in the preprocessed EEG data; i V represents the key vector of the i-th EEG data in the preprocessed EEG data; i W represents the value vector of the i-th EEG data in the preprocessed EEG data; Q , W K , W V and W C Both represent weight matrices; represents the scaling factor; d k Indicates the dimension of Key; Attention(Q i ,K i ,V i ) represents the attention score of the i-th EEG data in the preprocessed EEG data; represents the transposition of the key vector of the i-th EEG data in the preprocessed EEG data; output i represents the final output of the i-th EEG data in the preprocessed EEG data; ReLU represents the activation function; Concat represents the linear mapping; Time Features represents the time domain feature representation; x time,ic represents the time domain feature vector of the data vector of the cth channel of the ith EEG data in the preprocessed EEG data; freq,ic Fre Feature represents the frequency domain feature vector of the cth channel of the i-th EEG data in the preprocessed EEG data; i Represents the frequency domain feature representation of the i-th EEG data in the preprocessed EEG data; FinalFeatures i represents the concatenation result of the ith EEG data in the preprocessed EEG data; Prob(err i ) indicates the final result.
[0088] Beneficial effects of the present invention:
[0089] The advantage of combining error-related potentials with eye movement command discrimination is that it improves the accuracy and reliability of eye movement commands. Traditional eye movement command technology mainly relies on the recognition of eye movement patterns, but after the introduction of error-related potentials, it can combine information from brain activity to more accurately judge the user's intentions and commands. Since error-related potentials reflect the brain's monitoring and regulation of error responses, they play a complementary and enhancing role in eye movement command recognition. The advantage of this combined technology is that it can more accurately capture the user's intentions, provide feedback on the actuator's decision, and improve the system's stability and user experience.
[0090] Example 2
[0091] A computer system includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the eye movement discrimination and confirmation method based on error-related potentials in embodiment 1.
[0092] like Figure 2 As shown, the main control machine 3 issues an instruction, and the feedback device 4 prompts the collection to start. The eye movement data collector 1 starts to collect eye movement data, and the EEG collector 2 starts to collect electroencephalogram data. The main control machine 3 analyzes the data of the eye movement data collector 1 and the EEG collector 2. If the error-related potential collected during the time of the eye movement data collector 1 and the corresponding time of the EEG collector 2 exceeds the threshold, the main control machine 3 sends a re-collection instruction to the feedback device 4, and the feedback device 4 prompts the user 0 to re-collect; if the error-related potential collected during the time of the eye movement data collector 1 and the corresponding time of the EEG collector 2 does not exceed the threshold, the eye movement instruction is sent to the feedback device 4. When the user 0 is observing, the data collected by the EEG collector 2 is analyzed by the main control machine 3. If the error-related potential does not exceed the threshold, the main control machine 3 transmits the eye movement instruction to the actuator 5. If the error-related potential exceeds the threshold, the main control machine 3 sends a re-collection instruction to the feedback device, and the feedback device 4 prompts the user 0 to re-collect.
[0093] The main control machine 3 is a computer, the eye movement data collector 1 is a high-definition camera, the EEG collector 2 is a 10-20 lead EEG data collector, and the feedback device is a 144HZ display.
[0094] Example 3
[0095] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the eye movement identification and confirmation method based on error-related potentials in embodiment 1.
[0096] Example 4
[0097] A computer program product includes a computer program, which, when executed by a processor, implements the eye movement discrimination and confirmation method based on error-related potentials in embodiment 1.
[0098] Example 5
[0099] A computer device, which may be a database. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the eye movement discrimination confirmation method based on error-related potentials in Example 1 is implemented.
[0100] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.
[0101] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a data processing logic of a programmable logic device, etc., but are not limited thereto.
[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0103] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for distinguishing and confirming eye movements based on error-related potentials, characterized in that: The method includes: Obtaining eye movement data and electroencephalogram data at the same moment; the eye movement data is the first data or the second data; the first data includes the human eye and the iris; the second data includes the human eye; the electroencephalogram data includes multiple electroencephalogram data; Inputting the eye movement data into a detection model to perform identification and detection on the eye movement data, and obtaining a detection result; the detection result is the first detection result or the second detection result; the first detection result includes a human eye detection frame, the coordinate system of the upper left corner of the iris detection frame, and the coordinate system of the upper right corner of the iris detection frame; the second detection result includes a human eye detection frame; the detection model is constructed based on the YOLOv7 model; Determining an eye movement instruction based on the detection result; Discriminating the eye movement instruction through the electroencephalogram data to obtain a discrimination result.
2. The eye movement identification and confirmation method based on error-related potentials according to claim 1, characterized in that: Determining an eye movement instruction based on the detection result specifically includes: If the detection result is the second detection result, then determining that the eye movement instruction is the first instruction; If the detection result is the first detection result, then determining the center position of the iris detection frame based on the coordinate system of the upper left corner of the iris detection frame and the coordinate system of the upper right corner of the iris detection frame; Determining an eye movement instruction based on the positional relationship between the center position of the iris detection frame and the human eye detection frame.
3. The eye movement identification and confirmation method based on error-related potentials according to claim 2, characterized in that: Determining an eye movement instruction based on the positional relationship between the center position of the iris detection frame and the human eye detection frame specifically includes: Judging whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the first discrimination condition; the first discrimination condition is D2≥aD1; D1 represents the distance between the center position of the iris detection frame and the upper edge of the human eye detection frame; D2 represents the distance between the center position of the iris detection frame and the lower edge of the human eye detection frame; a represents the first threshold; b represents the second threshold; If the first discrimination condition is satisfied, then determining that the eye movement instruction is the second instruction; If the first discrimination condition is not satisfied, then judging whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the second discrimination condition; the second discrimination condition is D1≥aD2; If the second discrimination condition is satisfied, then determining that the eye movement instruction is the third instruction; If the second discrimination condition is not satisfied, then judging whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the third discrimination condition; the third discrimination condition is D4≥bD3, D2<aD1 or D1<aD2; D3 represents the distance between the center position of the iris detection frame and the right edge of the human eye detection frame; D4 represents the distance between the center position of the iris detection frame and the left edge of the human eye detection frame; If the third discrimination condition is satisfied, then determining that the eye movement instruction is the fourth instruction; If the third discrimination condition is not satisfied, then judging whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the fourth discrimination condition; the fourth discrimination condition is D3≥bD4, D2<aD1 or D1<aD2; If the fourth discrimination condition is satisfied, then determining that the eye movement instruction is the fifth instruction; If the fourth discrimination condition is not satisfied, then judging whether the positional relationship between the center position of the iris detection frame and the human eye detection frame satisfies the fifth discrimination condition; the fifth discrimination condition is D2<aD1, D1<aD2, D4<bD3 or D3<bD4; If the fifth judgment condition is met, the eye movement instruction is determined to be the sixth instruction; If the fifth judgment condition is not met, the process returns to the step of obtaining the eye movement data and the electroencephalogram data at the same time.
4. The eye movement identification and confirmation method based on error-related potentials according to claim 1, characterized in that: The eye movement command is judged by the electroencephalogram data to obtain a judgment result, which specifically includes: The EEG data is preprocessed to obtain the preprocessed EEG data X = {x1, x2, ..., x i ,…,x N }; Perform linear mapping on each EEG data in the preprocessed EEG data to obtain the query vector, key vector and value vector of each EEG data: Q i =x i W Q ; K i =x i W K ; V i =x i W V ; Calculate the attention score of each EEG data based on its query vector, key vector, and value vector: The attention scores of each EEG data are concatenated, and the final output of each EEG data is obtained through linear mapping and activation function: output i =ReLU(Concat(Attention(Q i ,K i ,V i ))); The final output of each EEG data is averaged and pooled to obtain the time domain feature representation: Performing time domain feature extraction on the data vector of each channel of each EEG data in the preprocessed EEG data to obtain a time domain feature vector of the data vector of each channel of each EEG data in the preprocessed EEG data; Based on the time domain feature vector of each channel of each EEG data in the preprocessed EEG data, the frequency domain feature vector of each channel of each EEG data in the preprocessed EEG data is obtained: The frequency domain feature vectors of the data vectors of each channel of each EEG data in the preprocessed EEG data are connected to obtain the frequency domain feature representation of each EEG data in the preprocessed EEG data: Fre Feature i =[x freq,i1 ,[x freq,i2 ,…,x freq,ic ]; The time domain feature representation is concatenated with the frequency domain feature representation of each EEG data in the preprocessed EEG data to obtain the concatenation result of each EEG data in the preprocessed EEG data: Final Features i =[Time Feature,Fre Feature i ]; Use the fully connected layer to classify the splicing results of each EEG data in the preprocessed EEG data and use the splicing results with high confidence as the final result: Prob(err i )=softmax(Final Features i W C ); The final result represents the error-related potential; The eye movement instruction is judged by using the error-related potential to obtain a judgment result; Among them, x i represents the i-th EEG data in the preprocessed EEG data; Q i K represents the query vector of the i-th EEG data in the preprocessed EEG data; i V represents the key vector of the i-th EEG data in the preprocessed EEG data; i W represents the value vector of the i-th EEG data in the preprocessed EEG data; Q , W K , W V and W C Both represent weight matrices; represents the scaling factor; d k Indicates the dimension of Key; Attention(Q i ,K i ,V i ) represents the attention score of the i-th EEG data in the preprocessed EEG data; represents the transposition of the key vector of the i-th EEG data in the preprocessed EEG data; output i represents the final output of the i-th EEG data in the preprocessed EEG data; ReLU represents the activation function; Concat represents the linear mapping; Time Features represents the time domain feature representation; x time,ic represents the time domain feature vector of the cth channel of the ith EEG data in the preprocessed EEG data; freq,ic Fre Feature represents the frequency domain feature vector of the cth channel of the ith EEG data in the preprocessed EEG data; i Final Features i represents the concatenation result of the ith EEG data in the preprocessed EEG data; Prob(err i ) indicates the final result.
5. The eye movement identification and confirmation method based on error-related potentials according to claim 4, characterized in that: The eye movement command is judged by the error-related potential to obtain a judgment result, which specifically includes: If the error-related potential is greater than or equal to the preset potential threshold, it indicates that there is an error in the eye movement instruction, and the judgment result is returning to the step of obtaining the eye movement data and the electroencephalogram data at the same time; If the error-related potential is less than the preset potential threshold, it indicates that there is no error in the eye movement instruction. The judgment result is to execute the eye movement instruction, and in the process of executing the eye movement instruction, the electroencephalogram data during the execution process is obtained in real time, and the eye movement instruction is controlled based on the electroencephalogram data during the execution process.
6. A computer system comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the eye movement discrimination and confirmation method based on error-related potentials as described in any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the eye movement identification and confirmation method based on error-related potentials described in any one of claims 1 to 5 is implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the eye movement identification and confirmation method based on error-related potentials described in any one of claims 1 to 5 is implemented.
