A SSVEP detection method, device and SSVEP brain-computer interface
The DC voltage signal of the EEG signal is extracted through differential amplification and lock-in amplification technology, and combined with AD sampling and eigenvector matching degree calculation, it solves the problem of large calculation amount of SSVEP brain-computer interface on a micro-miniature platform and achieves high-precision detection. It also simplifies the calculation process and promotes its application and commercialization.
Patent Information
- Application Number
- CN202411079927.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-07
AI Technical Summary
The existing SSVEP brain-computer interface has a large amount of calculations in the signal processing process and is difficult to complete on a micro-miniaturized, low-power embedded computing platform, which limits its promotion and application and requires all calculations to be completed outside the computer.
Using differential amplification and lock-in amplification technology, the DC voltage signal of the EEG signal is extracted through a lock-in amplifier and a proportional amplifier with a phase difference of 90 degrees, combined with AD sampling and eigenvector matching calculation, to achieve high-precision measurement of SSVEP frequency and phase , simplifying the calculation process and integrating it in low-power devices.
It improves the signal-to-noise ratio and detection accuracy, simplifies the calculation process, enables SSVEP detection to be implemented in low-power, portable devices, and promotes the widespread application and commercialization of SSVEP brain-computer interfaces.
Smart Images

Figure CN118592979B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of SSVEP detection technology, and in particular to a SSVEP detection method, device and SSVEP brain-computer interface. Background Art
[0002] Brain-computer interface technology is a technology that uses computer technology to collect and analyze human EEG signals to estimate human intentions and realize direct brain control of external devices. Steady-state visual evoked potential brain-computer interface, also known as SSVEP (Steady-State Visual Evoked Potential, SSVEP), is a highly reliable and easy-to-implement brain-computer interface. Its basic principle is that when a user is given a periodic visual stimulus, such as a flashing LED light, a significant frequency component with the same stimulus can be detected in the user's occipital EEG signal. Not only that, the phase of the corresponding frequency component signal and the phase of the visual stimulus also have a stable relationship, that is, the phase delay between them has a stable phase difference. Based on this principle, researchers further expand the number of SSVEP options by combining different stimulation frequencies and different phases. During signal processing, the algorithm not only extracts the frequency in the EEG signal but also extracts the phase information to identify a specific frequency and a specific phase, thereby locating the specific visual target that the subject is concerned about, thereby realizing human-computer interaction. The signal processing process of SSVEP brain-computer interface is: first, the signal is preprocessed by filtering, denoising, and removing artifacts, and then the frequency components and phases of the EEG signal are analyzed using methods such as fast Fourier transform, canonical correlation analysis, and deep learning to estimate the person's choice.
[0003] In the SSVEP brain-computer interface, signal preprocessing and SSVEP detection algorithms involve floating-point operations, matrix eigenvalue calculations, deep learning reasoning and other calculations, which are difficult to complete on a miniaturized, low-power embedded computing platform. Currently, the industry collects EEG signals and transmits them to a computer via wired or wireless means, and then completes all calculations on the computer. This method determines that the SSVEP brain-computer interface must be used in conjunction with a computer, which limits the promotion and application of the SSVEP brain-computer interface. Summary of the invention
[0004] Based on this, it is necessary to provide a SSVEP detection method, device and SSVEP brain-computer interface to address the above-mentioned technical problems.
[0005] A SSVEP detection method, the method comprising:
[0006] constructing an element sequence according to a non-visual stimulus and N visual stimuli with a frequency of f, and constructing a random sequence according to the element sequence; the number of each element in the random sequence is n;
[0007] Obtaining the original EEG signal corresponding to each element in the random sequence, differentially amplifying the original EEG signal, outputting a first amplified signal, respectively inputting the first amplified signal into a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees, performing phase-locked amplification, and then performing low-pass filtering and proportional amplification in sequence, and outputting a first DC voltage signal and a second DC voltage signal; the reference signals of the first phase-locked amplifier and the second phase-locked amplifier are respectively obtained through two PWM waves with a phase difference of 90 degrees and a frequency of f;
[0008] Performing AD sampling on the first DC voltage signal and the second DC voltage signal respectively, extracting the phase feature vector of the SSVEP in the EEG signal according to the sampling results, and obtaining the corresponding reference feature vector according to the phase feature vector set of each element;
[0009] During online detection, the original EEG signal to be detected is obtained, the phase feature vector of the original EEG signal to be detected is extracted, and the matching degree between the phase feature vector and each reference feature vector is calculated, and the SSVEP detection result of the original EEG signal to be detected is output according to the matching degree.
[0010] In one embodiment, it also includes: obtaining a first phase difference and a second phase difference according to the first DC voltage signal and the second DC voltage signal; obtaining a total response amplitude of a target frequency according to a difference between the first phase difference and the second phase difference; respectively calculating the proportion of the first phase difference and the second phase difference in the total response amplitude of the target frequency to obtain a first phase difference distribution and a second phase difference distribution; obtaining a phase characteristic vector of SSVEP in the EEG signal according to the total response amplitude of the target frequency, the first phase difference distribution, the second phase difference distribution and the element number corresponding to the current element.
[0011] In one of the embodiments, the method further includes: calculating the geometric center of the n eigenvectors corresponding to each element to obtain a corresponding reference eigenvector.
[0012] In one of the embodiments, the phase difference between the N visual stimuli with a frequency of f is 90 / (N-1) degrees.
[0013] A SSVEP detection device, comprising:
[0014] A random sequence construction module, used to construct an element sequence according to non-visual stimuli and N visual stimuli with a frequency of f, and to construct a random sequence according to the element sequence; the number of each element in the random sequence is n;
[0015] A frequency-selective amplification module, used for acquiring the original EEG signal corresponding to each element in the random sequence, differentially amplifying the original EEG signal, outputting a first amplified signal, respectively inputting the first amplified signal into a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees, performing phase-locked amplification, and then performing low-pass filtering and proportional amplification in sequence, and outputting a first DC voltage signal and a second DC voltage signal; the reference signals of the first phase-locked amplifier and the second phase-locked amplifier are respectively obtained through two PWM waves with a phase difference of 90 degrees and a frequency of f;
[0016] A feature acquisition module, used to perform AD sampling on the first DC voltage signal and the second DC voltage signal respectively, extract the phase feature vector of SSVEP in the EEG signal according to the sampling results, and obtain the corresponding reference feature vector according to the phase feature vector set of each element;
[0017] The result output module is used to obtain the original EEG signal to be detected during online detection, extract the phase feature vector of the original EEG signal to be detected, calculate the matching degree between the phase feature vector and each reference feature vector, and output the SSVEP detection result of the original EEG signal to be detected according to the matching degree.
[0018] A SSVEP brain-computer interface, the brain-computer interface comprising an instrumentation amplifier, a frequency-selective amplification unit, and a signal processing unit;
[0019] The instrument amplifier comprises a first EEG electrode and a second EEG electrode, and is used to differentially amplify the original EEG signal and output a first amplified signal to the frequency-selective amplification unit;
[0020] The frequency-selective amplification unit includes a first branch and a second branch, each branch includes a phase-locked amplifier, a low-pass filter and a proportional amplifier, which are respectively used to perform phase-locked amplification, low-pass filtering and proportional amplification on the first amplified signal in sequence, and output a first DC voltage signal and a second DC voltage signal; the phases of the phase-locked amplifiers of different branches differ by 90 degrees, and the respective reference signals are obtained by two PWM waves output by the signal processing unit, which have a phase difference of 90 degrees and a frequency of the target frequency;
[0021] The signal processing unit is used to perform AD sampling on the first DC voltage signal and the second DC voltage signal, and extract the phase feature vector of SSVEP in the EEG signal according to the sampling result.
[0022] In one of the embodiments, it is also used to obtain a first phase difference and a second phase difference according to the first DC voltage signal and the second DC voltage signal; obtain a total response amplitude of a target frequency according to the difference between the first phase difference and the second phase difference; respectively calculate the proportion of the first phase difference and the second phase difference in the total response amplitude of the target frequency to obtain a first phase difference distribution and a second phase difference distribution; obtain a phase characteristic vector of SSVEP in the EEG signal according to the total response amplitude of the target frequency, the first phase difference distribution, the second phase difference distribution and the element number corresponding to the current element.
[0023] In one of the embodiments, the SSVEP brain-computer interface is also used to perform online detection on the original EEG signal to be detected. During online detection, the signal processing unit is also used to calculate the matching degree between the phase eigenvector of the original EEG signal to be detected and each reference eigenvector, and output the SSVEP detection result of the original EEG signal to be detected based on the matching degree.
[0024] In one of the embodiments, the signal processing unit includes MCU, DSP, FPGA or ARM.
[0025] The above-mentioned SSVEP detection method, device and SSVEP brain-computer interface obtain a first amplified signal by differentially amplifying the original EEG signal, and use a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees to phase-lock the first amplified signal, and then filter and proportionally amplify it in sequence to output a corresponding DC voltage signal. The phase-locked amplifier can extract and amplify weak target signals from strong background noise signals, greatly improve the signal-to-noise ratio, and effectively improve the detection accuracy of target frequency components. At the same time, the phase-locked characteristics of the phase-locked amplifier are used to comprehensively use two phase-orthogonal phase-locked amplifiers to extract the phase distribution feature vector of the original EEG signal, so as to improve the accuracy of phase detection of the target signal in the original EEG signal. A random sequence is constructed based on non-stimulation items and stimulation items in the element sequence, and the cluster center of each type of element is obtained by a clustering method to provide an accurate reference feature vector. During online detection, the matching degree between the phase feature vector of the original EEG signal to be detected and each reference feature vector is calculated, and the SSVEP detection result of the original EEG signal to be detected is output according to the matching degree calculation result. The embodiment of the present invention achieves high-precision measurement of SSVEP frequency and phase in the original EEG signal through hardware means; feature vector calculation, result prediction, etc. only require simple calculations, which can improve the detection accuracy of SSVEP in EEG signals on the one hand, and simplify the calculation process on the other hand, so that the method can be integrated in a low-power, portable device. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1Schematic diagram of the process of SSVEP detection method in one embodiment;
[0027] Figure 2 is a structural block diagram of an SSVEP detection device in one embodiment;
[0028] Figure 3 This is a structural block diagram of the SSVEP brain-computer interface in one embodiment. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0030] In one embodiment, Figure 1 As shown, a SSVEP detection method is provided, comprising the following steps:
[0031] Step 102, constructing an element sequence according to the non-visual stimulus and N visual stimuli with a frequency of f, and constructing a random sequence according to the element sequence.
[0032] The element sequence is {0,1,2,3…,N}. The non-zero elements in the element sequence represent 1-N for visual stimulation, and 0 for non-visual stimulation. The number of each element in the random sequence is n. By repeating each element in the element sequence n times and randomly sorting them, an n×(N+1) random sequence is formed.
[0033] Each element in the random sequence is used to provide the user with a target to focus on. The present invention repeats each element and shuffles the order in order to accurately reflect the subject's natural reaction to a single element, ensure the reliability and diversity of the data, and enable each element to be fully detected at different time points, thereby providing a reliable feature reference value for the original EEG signal to be detected and improving the detection accuracy.
[0034] Step 104, obtain the original EEG signal corresponding to each element in the random sequence, perform differential amplification on the original EEG signal, output a first amplified signal, input the first amplified signal into a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees, respectively, perform low-pass filtering and proportional amplification in sequence after phase-locked amplification, and output a first DC voltage signal and a second DC voltage signal.
[0035] Elements are sequentially extracted from the random sequence. For the current element value m, the subject is guided to focus on the visual stimulus numbered m according to the element value. When m is zero, the subject does not focus on any visual stimulus, thereby obtaining the original EEG signal corresponding to each element. The method of the present invention uses the designed SSVEP brain-computer interface to realize feature extraction of the input original EEG signal, such as Figure 3 The SSVEP brain-computer interface structural block diagram shown in the figure uses a phase-locked amplifier with two reference signals that differ by 90° to implement an orthogonal phase-locked amplifier, which can eliminate its phase sensitivity problem and ensure normal detection of the target frequency component.
[0036] The reference signals of the first lock-in amplifier and the second lock-in amplifier are obtained by two PWM waves with a phase difference of 90 degrees and a frequency of the target frequency f, respectively. Figure 3 As shown, the signal processing unit outputs the corresponding PWM wave to the lock-in amplifier according to the target frequency f. The magnitude of the output values of the two lock-in amplifiers reflects the phase difference between the target frequency component and the corresponding reference signal.
[0037] Step 106, AD sampling is performed on the first DC voltage signal and the second DC voltage signal respectively, the phase feature vector of the SSVEP in the EEG signal is extracted according to the sampling results, and the corresponding reference feature vector is obtained according to the phase feature vector set of each element.
[0038] After the output values of the two-way phase-locked amplifiers are sampled by AD, the phase distribution of the SSVEP in the EEG signal is extracted according to the phase difference between the target frequency component and the corresponding reference signal to obtain the phase eigenvector. The phase eigenvector corresponding to each type of element is recorded to form a phase eigenvector set, and its center point is calculated to obtain the center point of the eigenvalue distribution corresponding to each type of element, that is, the reference eigenvector.
[0039] Step 108, during online detection, obtain the original EEG signal to be detected, extract the phase feature vector of the original EEG signal to be detected, and calculate the matching degree between the phase feature vector and each reference feature vector, and output the SSVEP detection result of the original EEG signal to be detected according to the matching degree.
[0040] The Euclidean distance d between the phase feature vector obtained by sampling the original EEG signal to be detected and the N reference feature vectors is calculated. The reference feature vector number corresponding to the minimum Euclidean distance is the element number that the user is looking at, and SSVEP detection is completed.
[0041] In the above SSVEP detection method, the first amplified signal is obtained by differentially amplifying the original EEG signal, and the first amplified signal is phase-locked and amplified by a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees, and then filtered and proportionally amplified in sequence to output a corresponding DC voltage signal. The phase-locked amplifier can extract and amplify weak target signals from strong background noise signals, greatly improve the signal-to-noise ratio, and effectively improve the detection accuracy of target frequency components. At the same time, the phase-locked characteristics of the phase-locked amplifier are used to comprehensively use two phase-orthogonal phase-locked amplifiers to extract the phase eigenvector of the original EEG signal, so as to improve the accuracy of phase detection of the target signal in the original EEG signal. A random sequence is constructed based on non-stimulation items and stimulation items in the element sequence, and multiple groups of samples are collected to provide accurate reference eigenvectors by calculating the geometric centers of the eigenvectors of multiple groups of samples. During online detection, the matching degree between the phase eigenvector of the original EEG signal to be detected and each reference eigenvector is calculated, and the SSVEP detection result of the original EEG signal to be detected is output according to the matching degree calculation result. The embodiment of the present invention achieves high-precision measurement of SSVEP frequency and phase in the original EEG signal through hardware means; feature vector calculation, result prediction, etc. only require simple calculations, which can improve the detection accuracy of SSVEP in EEG signals on the one hand, and simplify the calculation process on the other hand, so that the method can be integrated in a low-power, portable device.
[0042] In one embodiment, extracting the phase characteristic vector of SSVEP in the EEG signal according to the sampling results includes: obtaining the first phase difference and the second phase difference according to the first DC voltage signal and the second DC voltage signal; obtaining the total response amplitude of the target frequency according to the difference between the first phase difference and the second phase difference; respectively calculating the proportion of the first phase difference and the second phase difference in the total response amplitude of the target frequency to obtain the first phase difference distribution and the second phase difference distribution; obtaining the phase characteristic vector of SSVEP in the EEG signal according to the total response amplitude of the target frequency, the first phase difference distribution, the second phase difference distribution and the element number corresponding to the current element.
[0043] In this embodiment, the phase-locked amplifier is an amplifier that only screens and amplifies signals of a specific frequency, and the frequency is determined by the frequency of the reference signal. The reference signal frequency of the phase-locked amplifier is f, and the amplifier only amplifies the signal with a frequency of f in the signal. The output signal becomes a DC signal after passing through a low-pass filter. The DC signal enters the proportional amplifier again for secondary amplification to obtain a proportionally amplified DC signal. The amplitude of the DC signal reflects the amplitude of the signal with a frequency of f in the EEG signal. Since the phase-locked amplifier has strict requirements on the phase of the target signal, for target signals with the same frequency but different phases, when their phases are different, their output values are different, that is, when the phase of a signal with a frequency of f and the phase of the reference signal are 0°, the output value of the phase-locked amplifier is the maximum, and when the phase difference is 90°, the output value of the phase-locked amplifier is zero.
[0044] like Figure 3 As shown, the present invention uses two lock-in amplifiers, the reference signals of which have the same frequency and the same frequency as the visual stimulus, and the phase difference is 90°. The reference signal phase of the first lock-in amplifier is 0°, and the reference signal phase of the second lock-in amplifier is 90°, forming an orthogonal reference signal. The lock-in amplifiers with orthogonal reference signals constitute an orthogonal lock-in amplifier, and the outputs of the first lock-in amplifier and the second lock-in amplifier are and , we can know that it has the following characteristics:
[0045] ① When there is a periodic signal with an amplitude of 1 and a frequency of f (the frequency f is the reference signal frequency of the orthogonal lock-in amplifier) at the input end of the orthogonal lock-in amplifier, no matter what the phase of the input signal is, the output of the orthogonal lock-in amplifier is , is always 1×G, where G is the gain of the lock-in amplifier, which is a fixed value.
[0046] ② The phase of the input signal can be determined by the output values of the first lock-in amplifier and the second lock-in amplifier. The closer it is to 1×G, the closer the phase of the input signal is to 0 degrees, and the same is true for the output of the second phase-locked amplifier. In order to further eliminate the error, the first phase difference distribution is used and the second phase difference distribution To characterize the phase distribution of the input signal.
[0047] The output values of the two lock-in amplifiers after low-pass filtering , The difference It reflects the total amplitude of the frequency component f in the signal. , The proportion of the size of the total difference , It reflects the phase difference between the target frequency and the reference signal. After the output values of the two phase-locked amplifiers are sampled by AD, three characteristic values are calculated: , , , the eigenvector is obtained based on the above three eigenvalues and element numbers. The method of the present invention makes full use of the characteristics of the SSVEP signal characteristics in phase distribution, and only needs two phase-locked amplifiers to detect the phase characteristics of the collected signal. The original EEG signal digitization and complex numerical calculation process are replaced by analog circuits, and the accurate detection of SSVEP signals is achieved without relying on high-performance computing platforms and signal processing algorithms.
[0048] In one embodiment, obtaining the corresponding reference eigenvector according to the phase eigenvector set of each element includes: calculating the geometric center of n eigenvectors corresponding to each element to obtain the corresponding reference eigenvector.
[0049] In this embodiment, the geometric center of the n eigenvectors recorded for each element in the element sequence is calculated to obtain the center point of the eigenvalue distribution corresponding to each type of stimulus, that is, the geometric center , where m represents the element number corresponding to the eigenvalue center. Through this step, N+1 eigenvalue geometric centers are obtained.
[0050] In one embodiment, the phases of N visual stimuli with frequency f differ by 90 / (N-1) degrees.
[0051] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0052] In one embodiment, Figure 2 As shown, a SSVEP detection device is provided, comprising:
[0053] A random sequence construction module 202 is used to construct an element sequence according to non-visual stimuli and N visual stimuli with a frequency of f, and to construct a random sequence according to the element sequence; the number of each element in the random sequence is n;
[0054] The frequency-selective amplification module 204 is used to obtain the original EEG signal corresponding to each element in the random sequence, differentially amplify the original EEG signal, output a first amplified signal, input the first amplified signal into a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees, perform phase-locked amplification, and then perform low-pass filtering and proportional amplification in sequence to output a first DC voltage signal and a second DC voltage signal; the reference signals of the first phase-locked amplifier and the second phase-locked amplifier are respectively obtained through two PWM waves with a phase difference of 90 degrees and a frequency of f;
[0055] The feature acquisition module 206 is used to perform AD sampling on the first DC voltage signal and the second DC voltage signal respectively, extract the phase feature vector of the SSVEP in the EEG signal according to the sampling results, and obtain the corresponding reference feature vector according to the phase feature vector set of each element;
[0056] The result output module 208 is used to obtain the original EEG signal to be detected during online detection, extract the phase feature vector of the original EEG signal to be detected, calculate the matching degree between the phase feature vector and each reference feature vector, and output the SSVEP detection result of the original EEG signal to be detected according to the matching degree.
[0057] In one of the embodiments, it also includes: obtaining a first phase difference and a second phase difference according to the first DC voltage signal and the second DC voltage signal; obtaining a total response amplitude of the target frequency according to the difference between the first phase difference and the second phase difference; respectively calculating the proportion of the first phase difference and the second phase difference in the total response amplitude of the target frequency to obtain a first phase difference distribution and a second phase difference distribution; obtaining a phase characteristic vector of SSVEP in the EEG signal according to the total response amplitude of the target frequency, the first phase difference distribution, the second phase difference distribution and the element number corresponding to the current element.
[0058] In one of the embodiments, the method further includes: calculating the geometric center of the n eigenvectors corresponding to each element to obtain a corresponding reference eigenvector.
[0059] In one of the embodiments, the phase difference between N visual stimuli with a frequency of f is 90 / (N-1) degrees.
[0060] For the specific definition of the SSVEP detection device, please refer to the definition of the SSVEP detection method above, which will not be repeated here. Each module in the above-mentioned SSVEP detection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0061] In one embodiment, Figure 3 As shown, a SSVEP brain-computer interface is provided, the brain-computer interface includes an instrumentation amplifier, a frequency-selective amplification unit, and a signal processing unit;
[0062] The instrument amplifier includes a first EEG electrode and a second EEG electrode, and is used to differentially amplify the original EEG signal and output a first amplified signal to the frequency-selective amplification unit;
[0063] The frequency-selective amplification unit includes a first branch and a second branch, each branch includes a phase-locked amplifier, a low-pass filter and a proportional amplifier, which are respectively used to perform phase-locked amplification, low-pass filtering and proportional amplification on the first amplified signal in sequence, and output a first DC voltage signal and a second DC voltage signal; the phases of the phase-locked amplifiers of different branches differ by 90 degrees, and their respective reference signals are obtained through two PWM waves output by the signal processing unit, which have a phase difference of 90 degrees and a frequency of the target frequency;
[0064] The signal processing unit is used to perform AD sampling on the first DC voltage signal and the second DC voltage signal, and extract the phase feature vector of SSVEP in the electroencephalogram signal according to the sampling result.
[0065] In one of the embodiments, it is also used to obtain a first phase difference and a second phase difference based on a first DC voltage signal and a second DC voltage signal; obtain a total response amplitude of a target frequency based on a difference between the first phase difference and the second phase difference; respectively calculate the proportion of the first phase difference and the second phase difference in the total response amplitude of the target frequency to obtain a first phase difference distribution and a second phase difference distribution; obtain a phase characteristic vector of SSVEP in the EEG signal based on the total response amplitude of the target frequency, the first phase difference distribution, the second phase difference distribution and the element number corresponding to the current element.
[0066] In one of the embodiments, the SSVEP brain-computer interface is also used to perform online detection on the original EEG signal to be detected. During online detection, the signal processing unit is also used to calculate the matching degree between the phase eigenvector of the original EEG signal to be detected and each reference eigenvector, and output the SSVEP detection result of the original EEG signal to be detected based on the matching degree.
[0067] In one embodiment, the signal processing unit includes MCU, DSP, FPGA or ARM.
[0068] The SSVEP brain-computer interface proposed in the present invention can integrate signal acquisition and signal processing into a circuit board, and directly output the recognized category of SSVEP, which solves the problem that the signal acquisition and signal analysis parts of the existing brain-computer interface are separated, and the signal analysis relies on computers, resulting in the inability to be portable and commercialized. It realizes the integration of sensing and computing. The SSVEP brain-computer interface of the present invention can improve user experience, greatly enhance the response speed and accuracy of the system, increase the portability and ease of use of the device, thereby promoting the widespread application and commercialization of the SSVEP brain-computer interface.
[0069] 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.
[0070] The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A SSVEP detection method, characterized in that: The method comprises: constructing an element sequence according to a non-visual stimulus and N visual stimuli with a frequency of f, and constructing a random sequence according to the element sequence; the number of each element in the random sequence is n; Obtaining the original EEG signal corresponding to each element in the random sequence, differentially amplifying the original EEG signal, outputting a first amplified signal, respectively inputting the first amplified signal into a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees, performing phase-locked amplification, and then performing low-pass filtering and proportional amplification in sequence, and outputting a first DC voltage signal and a second DC voltage signal; the reference signals of the first phase-locked amplifier and the second phase-locked amplifier are respectively obtained through two PWM waves with a phase difference of 90 degrees and a frequency of f; Performing AD sampling on the first DC voltage signal and the second DC voltage signal respectively, extracting the phase feature vector of the SSVEP in the EEG signal according to the sampling results, and obtaining the corresponding reference feature vector according to the phase feature vector set of each element; During online detection, the original EEG signal to be detected is obtained, the phase feature vector of the original EEG signal to be detected is extracted, and the matching degree between the phase feature vector and each reference feature vector is calculated, and the SSVEP detection result of the original EEG signal to be detected is output according to the matching degree.
2. The method according to claim 1, characterized in that The step of extracting the phase feature vector of SSVEP in the EEG signal according to the sampling result includes: Obtaining a first phase difference and a second phase difference according to the first DC voltage signal and the second DC voltage signal; Obtaining a target frequency total response amplitude according to a difference between the first phase difference and the second phase difference; Respectively calculating the proportion of the first phase difference and the second phase difference in the total response amplitude of the target frequency to obtain a first phase difference distribution and a second phase difference distribution; A phase feature vector of the SSVEP in the electroencephalogram signal is obtained according to the target frequency total response amplitude, the first phase difference distribution, the second phase difference distribution, and the element number corresponding to the current element.
3. The method according to claim 1, characterized in that The corresponding reference eigenvectors obtained according to the phase eigenvector set of each element include: Calculate the geometric center of the n eigenvectors corresponding to each element to obtain the corresponding reference eigenvector.
4. The method according to claim 1, characterized in that: The phase difference between the N visual stimuli with frequency f is 90 / (N-1) degrees.
5. A SSVEP detection device, characterized in that: The device comprises: A random sequence construction module, used to construct an element sequence according to non-visual stimuli and N visual stimuli with a frequency of f, and to construct a random sequence according to the element sequence; the number of each element in the random sequence is n; A frequency-selective amplification module, used for acquiring the original EEG signal corresponding to each element in the random sequence, differentially amplifying the original EEG signal, outputting a first amplified signal, respectively inputting the first amplified signal into a first phase-locked amplifier and a second phase-locked amplifier with a phase difference of 90 degrees, performing phase-locked amplification, and then performing low-pass filtering and proportional amplification in sequence, and outputting a first DC voltage signal and a second DC voltage signal; the reference signals of the first phase-locked amplifier and the second phase-locked amplifier are respectively obtained through two PWM waves with a phase difference of 90 degrees and a frequency of f; A feature acquisition module, used to perform AD sampling on the first DC voltage signal and the second DC voltage signal respectively, extract the phase feature vector of SSVEP in the EEG signal according to the sampling results, and obtain the corresponding reference feature vector according to the phase feature vector set of each element; The result output module is used to obtain the original EEG signal to be detected during online detection, extract the phase feature vector of the original EEG signal to be detected, calculate the matching degree between the phase feature vector and each reference feature vector, and output the SSVEP detection result of the original EEG signal to be detected according to the matching degree.
6. A SSVEP brain-computer interface applied to the SSVEP detection method of claim 1, characterized in that: The brain-computer interface includes an instrumentation amplifier, a frequency-selective amplification unit, and a signal processing unit; The instrument amplifier comprises a first EEG electrode and a second EEG electrode, and is used to differentially amplify the original EEG signal and output a first amplified signal to the frequency-selective amplification unit; The frequency-selective amplification unit includes a first branch and a second branch, each branch includes a phase-locked amplifier, a low-pass filter and a proportional amplifier, which are respectively used to perform phase-locked amplification, low-pass filtering and proportional amplification on the first amplified signal in sequence, and output a first DC voltage signal and a second DC voltage signal; the phases of the phase-locked amplifiers of different branches differ by 90 degrees, and the respective reference signals are obtained by two PWM waves output by the signal processing unit, which have a phase difference of 90 degrees and a frequency of the target frequency; The signal processing unit is used to perform AD sampling on the first DC voltage signal and the second DC voltage signal, and extract the phase feature vector of SSVEP in the EEG signal according to the sampling result.
7. The SSVEP brain-computer interface according to claim 6, characterized in that: The step of extracting the phase feature vector of SSVEP in the EEG signal according to the sampling result includes: Obtaining a first phase difference and a second phase difference according to the first DC voltage signal and the second DC voltage signal; Obtaining a target frequency total response amplitude according to a difference between the first phase difference and the second phase difference; Respectively calculating the proportion of the first phase difference and the second phase difference in the total response amplitude of the target frequency to obtain a first phase difference distribution and a second phase difference distribution; A phase feature vector of the SSVEP in the electroencephalogram signal is obtained according to the target frequency total response amplitude, the first phase difference distribution, the second phase difference distribution, and the element number corresponding to the current element.
8. The SSVEP brain-computer interface according to claim 6, characterized in that: The SSVEP brain-computer interface is also used to perform online detection on the original EEG signal to be detected. During online detection, the signal processing unit is also used to calculate the matching degree between the phase eigenvector of the original EEG signal to be detected and each reference eigenvector, and output the SSVEP detection result of the original EEG signal to be detected according to the matching degree.
9. The SSVEP brain-computer interface according to claim 6, characterized in that: The signal processing unit includes MCU, DSP, FPGA or ARM.
Citation Information
Patent Citations
Motor imagery rehabilitation system for dyskinesia nerve diseases and design method
CN114431828A
Brain-controlled sonar system and method based on marine organism brain-computer interface
CN117420556A
Apparatus and method for analysis of brain wave using ssvep
KR101720766B1
Brain-body actuated system
US5474082A
