A method and system for extracting concentration based on brain wave signals

By processing brainwave signals through blind source separation and wavelet packet transform technology, it solves the problem of ignoring interference signals and definitions in the existing technology, achieves high-precision and highly adaptable brainwave concentration extraction, and can accurately express the subject's attention. .

CN115067943BActive Publication Date: 2024-08-23SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210677690.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2024-08-23
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

The existing technology ignores interference signal processing and concentration definition in brainwave signal extraction, resulting in low recognition accuracy, poor adaptability, slow conversion speed, and inability to effectively reflect the subject's attention characteristics.

Method used

Blind source separation and wavelet packet transform technology are used to eliminate eye movement interference signals, decompose and reconstruct brain wave signals, and calculate the energy spectrum characteristics of α, β, and θ brain waves to extract concentration.

Benefits of technology

The recognition accuracy and adaptability are improved, and the real-time performance is strong. It can accurately express the subject's concentration degree and reflect the subject's attention characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115067943B
    Figure CN115067943B
Patent Text Reader

Abstract

The present invention discloses a method and system for extracting concentration based on brain wave signals. The method comprises the steps of: collecting original brain wave signals, blindly separating the original brain wave signals, eliminating eye movement interference signals, and retaining only the real brain wave signals in the original brain wave signals; decomposing the real brain wave signals using wavelet packet transform and storing them in a decomposition tree; taking out the signals from the decomposition tree and reconstructing them to obtain three types of brain waves, α, β, and θ; and calculating the concentration of the human brain according to the energy spectrum characteristics of the three types of brain waves, α, β, and θ. Compared with the prior art, the present invention has the characteristics of strong real-time performance, high accuracy, low computational complexity, and strong robustness. The present invention eliminates the influence of eye movement interference, and adopts a reasonable definition for concentration, thereby improving recognition accuracy, good adaptability, and concentration can well reflect the attention characteristics of the subject.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of brain wave signal processing, and in particular relates to a method and system for extracting concentration based on brain wave signals. Background Art

[0002] With the development of neuromedicine, sensor technology and signal processing technology, brain-computer technology has gradually emerged in China. As an important direction of brain science and brain-like intelligence research, brain-computer technology is mainly used in medicine, education and other fields. As one of the important information of brain wave signals, human brain concentration is of great significance to the application of brain-computer technology by achieving efficient and accurate extraction. General brain wave signals have the characteristics of strong background noise and weak signal amplitude, so it is difficult to extract effective information from such non-stationary signals.

[0003] At present, the existing brainwave concentration extraction methods use algorithms to decompose and reconstruct after brainwave collection, or use convolutional neural networks to learn to extract concentration. However, these methods for extracting brainwave concentration often ignore the processing of interference signals in brainwave signals and ignore the reasonable definition of concentration, resulting in low recognition accuracy, poor adaptability, slow conversion speed, and insufficient concentration to reflect the attention characteristics of the subject. Therefore, it is necessary to make corresponding improvements to the concentration extraction of brainwave signals. Summary of the invention

[0004] In order to overcome one or more defects and shortcomings of the prior art, the first purpose of the present invention is to provide a concentration extraction method based on brain wave signals, and the second purpose of the present invention is to provide a concentration extraction system based on brain wave signals to extract concentration that can accurately express the degree of concentration of the subject.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions.

[0006] A method for extracting concentration based on brain wave signals comprises the following steps:

[0007] Collect the original brain wave signals, perform blind source separation on the original brain wave signals, eliminate the eye movement interference signals, and only retain the real brain wave signals in the original brain wave signals;

[0008] The real brain wave signal is decomposed using wavelet packet transform and then stored in the decomposition tree;

[0009] The signal is taken out from the decomposition tree and reconstructed to obtain three types of brain waves: α, β, and θ;

[0010] The concentration of the human brain is calculated based on the energy spectrum characteristics of the three brain waves: α, β, and θ.

[0011] Preferably, the process of performing blind source separation on the original brain wave signal and eliminating the eye movement interference signal includes:

[0012] The original brain wave signal is divided into two items: the real brain wave signal and the eye movement interference signal;

[0013] Sliding window decomposition is used to calculate the complexity of the original brain wave signal;

[0014] The eye movement interference signal judgment conditions are set according to the complexity, and the signals that meet the judgment conditions are eliminated to retain the real brain wave signals.

[0015] Furthermore, the original brain wave signal is divided into the real brain wave signal and the eye movement interference signal using the ICA algorithm, as shown in the following formula:

[0016]

[0017] Among them, the original brain wave signal of the subject is x(t), and the real brain wave signal is x EEG (t), the eye movement interference signal is x EOG (t), a i is the transfer coefficient of the ith signal in the signal decomposition process, s i (t) is the source function, Γ EEG , Γ EOG are the index set of the real brain wave signal and the index set of the eye movement interference signal, respectively. t is the time when the TGAM sensor collects the original brain wave signal.

[0018] The computational complexity is as follows:

[0019]

[0020] Among them, φ is the complexity of the original brain wave signal in the window, l is the total length of the original brain wave signal in the window, n is the number of sampling points of the original brain wave signal in the window, and the window is of fixed length.

[0021] Furthermore, the determination condition of the eye movement interference signal is:

[0022] For all source functions s1(t), s2(t), ..., s N (t), and its corresponding signal complexity is φ1, φ2, …, φ N , if and only if (φ (k+1) -φ (k) )<(φ (k) -φ (k-1) ), the source functions s1(t), s2(t), ..., s k (t) belongs to the eye movement interference signal x EOG (t), where N represents the original brain wave signal source function s i(t), k represents the source function s i (t) is the number of eye movement interference signals, k ... The smallest integer.

[0023] Further, the process of wavelet packet transform is as follows:

[0024] Real brainwave signal x EEG (t) can be decomposed into the following formula:

[0025]

[0026] in, is the time domain signal in each sub-band after reconstructing the wavelet packet decomposition coefficients, and j is the set decomposition level;

[0027] Construct a wavelet packet for the time domain signal. Assume that the scale function is Φ(t) and the wavelet function is Ψ(t). The two-scale relationship between the scale function Φ(t) and the wavelet function Ψ(t) is as follows:

[0028]

[0029] Among them, h k is a low-pass filter, g k is a high-pass filter, At this time, x is the input signal of the filter, k is the translation variable, n is the series of the wavelet packet function, w(t) is the set of wavelet packet functions, when n = 0, w0(t) = φ(t), w1(t) = ψ(t), and the recursive calculation is performed according to the following recursive relationship:

[0030]

[0031] The wavelet basis function is set to Dobesi wavelet, the maximum decomposition level is 9, and the high-frequency sub-band and low-frequency sub-band in the time domain signal are decomposed separately. The decomposition formula is as follows:

[0032]

[0033] in, are the wavelet packet decomposition coefficients, h (2l-k) , g (2l-k) They are low-pass filter group and high-pass filter group respectively.

[0034] Furthermore, the formulas for reconstructing the three brain waves of α, β, and θ are as follows:

[0035]

[0036] Among them, the decomposition nodes are determined in the decomposition tree according to the frequency ranges of the three brain waves α, β and θ, and the corresponding filter banks and wavelet packet decomposition coefficients are obtained from the decomposition nodes.

[0037] Furthermore, the process of calculating the degree of concentration is as follows: calculating the average energy and energy proportion of the frequency band signals corresponding to the three brain waves α, β, and θ, and calculating the degree of concentration based on the energy proportion.

[0038] Furthermore, the process of calculating the average energy and energy proportion of the frequency band signals corresponding to the three brain waves α, β, and θ is as follows:

[0039] Assume that the three brain waves of α, β, and θ after transformation are i (i = α, β, θ), and the brain wave voltage value at the corresponding frequency f is The maximum frequency of the band is The minimum frequency is The average energy in the frequency band is E i , then the average energy of the three brain waves α, β, and θ is E α 、E β 、E θ The calculation formula is as follows:

[0040]

[0041] Among them, i=θ:

[0042] i=α:

[0043] i=β:

[0044] E sum is the total average energy corresponding to the coverage range of the three brain wave frequency bands α, β, and θ, which is calculated as follows:

[0045] E sum =E α +E β +E θ

[0046] Calculate the energy proportion G of the three brain waves α, β, and θ in the total average energy α , G β , G θ , which is calculated as follows:

[0047]

[0048] Furthermore, let the concentration be R, and the weight coefficients of the three brain waves α, β, and θ be k respectively. i (i=1, 2, 3), the concentration index R is as follows:

[0049]

[0050] A concentration extraction system based on brain wave signals, used to execute any of the aforementioned concentration extraction methods based on brain wave signals, comprising a brain wave acquisition module, an eye movement interference removal module, a signal decomposition module, a signal reconstruction module, and a concentration extraction module;

[0051] The brain wave acquisition module is used to collect original brain wave signals, and the brain wave acquisition module inputs the original brain wave signals to the eye movement interference removal module;

[0052] The eye movement interference removal module is used to eliminate the eye movement interference signals in the original brain wave signal, so as to retain the real brain wave signal;

[0053] The signal decomposition module is used to decompose the real brain wave signal using wavelet packet transform;

[0054] The signal reconstruction module is used to reconstruct the signal decomposed by wavelet packet transform into three types of brain waves: α, β, and θ;

[0055] The concentration calculation module is used to calculate the concentration according to the energy spectrum characteristics of α, β, and θ brain waves.

[0056] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0057] Compared with the complex algorithms in the prior art, the method of the present invention has the characteristics of strong real-time performance, high accuracy, low computational complexity and strong robustness. The present invention eliminates the influence of eye movement interference and adopts a reasonable definition of concentration, thereby improving recognition accuracy and good adaptability. The concentration can well reflect the attention characteristics of the subject. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A general flow chart of a method for extracting concentration based on brain wave signals according to the present invention;

[0059] Figure 2 For use Figure 1 The original brain wave signals and four kinds of brain wave signal waveforms of the tested subjects collected by the method;

[0060] Figure 3 For use Figure 1 The method collects the brain wave signals and the waveform of concentration of the tested subjects when their attention is distracted;

[0061] Figure 4 For use Figure 1 The method collects the brain wave signals and the waveform of concentration of the tested subjects when they are concentrating;

[0062] Figure 5This is a structural block diagram of a concentration extraction system based on brain wave signals according to the present invention. DETAILED DESCRIPTION

[0063] 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 thereof. 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.

[0064] Example 1

[0065] In this embodiment, a method for extracting concentration based on brain wave signals is preferably a TGAM sensor, an electrode and an ear clip launched by NeuroSky. When the subject wears it, the electrode is placed close to the center of the forehead, and the ear clip is clamped on the earlobe. The brain wave signal is obtained by connecting the dry contact points and converted into a digital signal. The TGAM sensor launched by NeuroSky has the characteristics of anti-interference and low power consumption, but due to the limitations of the device settings, the acquired brain wave data needs to be converted to international standard units. The conversion formula is as follows:

[0066] Voltage = rawdata * (1.8 / 4096)

[0067] Among them, Voltage is the voltage of the brain wave signal, and rawdata is the matrix space of the signal collected by the TGAM sensor.

[0068] like Figures 1 to 4 As shown, a method for extracting concentration based on brain wave signals in this embodiment includes the following steps in sequence:

[0069] S1, using the TGAM sensor to obtain the data of the subject's raw brain wave signal within a period of time, and then sending the data to a computer to perform subsequent steps for processing;

[0070] S2. Perform blind source separation on the original brain wave signal to eliminate the eye movement interference signal. The specific process is as follows:

[0071] S21. Set the real brain wave signal to x EEG (t), the eye movement interference signal is x EOG (t), use the ICA algorithm to perform independent component analysis on the original brain wave signal x(t), and decompose the original brain wave signal x(t) into the real brain wave signal x EEG (t) and eye movement interference signal x EOG (t) The decomposition of the original brain wave signal x(t) is as follows:

[0072]

[0073] Among them, the original brain wave signal of the subject is x(t), and the real brain wave signal is x EEG (t), the eye movement interference signal is x EOG (t), assuming that the transfer coefficient of the i-th signal in the signal decomposition process is a i , the source function is s i (t),Γ EEG , Γ EOG are the index sets of real brain wave signals and eye movement interference signals, respectively, and t is the time when the TGAM sensor collects the original brain wave signal;

[0074] S22, decomposing the original brain wave signal by sliding window and then calculating the complexity of the original brain wave signal; setting a fixed-size window, assuming that the complexity of the signal in the window is φ, the total length of the signal is l, and the number of signal sampling points in the window is n, the complexity φ of the signal in each window is calculated according to the following formula:

[0075]

[0076] S23, set eye movement interference signal x EOG (t) is the judgment condition, and then all the eye movement interference signals x that meet the judgment condition in the original brain wave signal x(t) are EOG (t) is removed to obtain the real brain wave signal x EEG (t);

[0077] For all source functions s1(t), s2(t), ..., s N (t), and its corresponding signal complexity is φ1, φ2, …, φ N , if and only if (φ (k+1) -φ (k) )<(φ (k) -φ (k-1) ), the source functions s1(t), s2(t), ..., s k (t) belongs to the eye movement interference signal x EOG (t), where N represents the number of source functions of the original brain wave signal, k represents the number of source functions belonging to the eye movement interference signal, and k is the number of source functions that satisfy The smallest integer of ;

[0078] S3, removing the eye movement interference signal x in step S2 EOG (t), the real brain wave signal x is transformed using wavelet packet transform EEG (t) Perform signal decomposition and convert the decomposed real brain wave signal x EEG (t) is stored in the decomposition tree; the wavelet packet transform process is as follows:

[0079] The real brain wave signal x EEG (t) is decomposed into:

[0080]

[0081] in, is the time domain signal in each sub-band after reconstruction by wavelet packet decomposition coefficients, j is the specified decomposition level; construct a wavelet packet for the time domain signal, set the scale function to Φ(t), the wavelet function to Ψ(t), the two-scale relationship between the scale function Φ(t) and the wavelet function to Ψ(t) is as follows:

[0082]

[0083] Among them, h k is a low-pass filter, g k is a high-pass filter, At this time, x is the input signal of the high-pass filter or low-pass filter, k is the translation variable, n represents the index of the decomposition node, which is an integer increasing from 0; w(t) is set to be the wavelet packet function set, when n = 0, w0(t) = φ(t), w1(t) = ψ(t), and the recursive calculation is performed according to the following recursive relationship:

[0084]

[0085] The wavelet basis function is set to Daubechies (DB10), the maximum decomposition level is 9, and the high-frequency subband and low-frequency subband in the time domain signal are decomposed separately. The decomposition formula is as follows:

[0086]

[0087] in, are the wavelet packet decomposition coefficients, h (2l-k) , g (2l-k) They are low-pass filter group and high-pass filter group respectively;

[0088] S4, according to the frequency range of different types of brain waves, the real brain wave signal x in step S3 is obtained. EEG(t) is used to reconstruct the signal in the decomposition tree to obtain four brain waves of α, β, θ, and δ; the frequency characteristics of the four brain waves of α, β, θ, and δ show that the frequency range of α waves is [7.808, 13.176] Hz, the frequency range of β waves is [13.908, 30.012] Hz, the frequency range of θ waves is [3.904, 7.076] Hz, and the frequency range of δ waves is [0.488, 2.928] Hz; when the present embodiment is tested, the minimum number of decomposition nodes corresponding to the decomposition tree obtained in step S3 is (31, 53) for the α brain wave, (56, 122) for the β brain wave, (15, 28) for the θ brain wave, and (2, 11) for the δ brain wave. n is the index of the decomposition node, and the four brain wave reconstruction methods are specifically as follows:

[0089]

[0090] S5. According to the frequency band characteristics of the three brain waves α, β, and θ, after reconstructing the brain waves in step S4, the average energy and energy proportion of the frequency band signals corresponding to the three brain waves α, β, and θ are calculated; the specific calculation process is as follows:

[0091] The voltage value of the brain wave signal after the transformation of brain wave i (i = α, β, θ) in the corresponding frequency f is set to The maximum frequency of the band is The minimum frequency is The average energy in the frequency band is E i , then the average energy of the three brain waves α, β, and θ is E α 、E β 、E θ The calculation formula is as follows:

[0092]

[0093] Among them, i=θ:

[0094] i=α:

[0095] i=β:

[0096] E sum is the total average energy corresponding to the coverage range of the three brain wave frequency bands α, β, and θ, which is calculated as follows:

[0097] E sum =E α +E β +E θ

[0098] Calculate the energy proportion G of the three brain waves α, β, and θ in the total average energyα , G β , G θ , which is calculated as follows:

[0099]

[0100] S6. According to the characteristics of brain wave energy spectrum, weight coefficients are set, using the energy proportion of α, β, and θ brain waves in the total average energy G. α , G β , G θ Calculate the concentration of the human brain; the specific process is as follows:

[0101] When people are concentrating, the energy value of β brain waves is significantly higher than that of α and θ brain waves. Therefore, the extracted concentration is set as R, and the weight coefficients of α, β, and θ brain waves are k respectively. i (i=1, 2, 3), combining the three brain wave energy values, the index for evaluating concentration R is as follows:

[0102]

[0103] In the specific test process of this embodiment, when k1=k3=1 and k2=0.5, the obtained concentration evaluation value shows a more obvious change with the mental state of the test subject. The energy spectrum of the brain wave signal and the extracted concentration R of the test subject in the two mental states of distraction and concentration are analyzed respectively for comparative experiments: First, the subject wears the TGAM sensor and ear clip; the TGAM sensor obtains the original brain wave data; Figure 2 As shown in the figure, after the original brain wave is decomposed and reconstructed, four types of brain wave signals are obtained; observing the signal waveform in the image, the frequency of the β wave is the highest, while the frequency of the δ wave is the lowest; Figure 3 and Figure 4 As shown in Table 1, under different mental states of the test subjects, their brain wave signals and concentration R are recorded respectively:

[0104] Distraction Focus Alpha wave energy (J) (0.000~0.002) (0.000~0.075) Beta wave energy (J) (0.004~0.010) (0.004~0.030) Theta wave energy (J) (0.000~0.010) (0.000~0.004) Delta wave energy (J) (0.000~0.002) (0.000~0.040) Concentration value Around 55 Around 80

[0105] Table 1

[0106] Comparing the experimental results, when the test subject is distracted, the energy of α wave, β wave, and δ wave is small, and the energy of θ wave is large, and when the test subject is focused, the extracted concentration R is significantly greater than the concentration R extracted when the attention is distracted. The test results of this embodiment prove that the definition of concentration in step S6 can be used as an effective basis for distinguishing human attention.

[0107] Compared with the prior art, the concentration extraction method based on brain wave signals in this embodiment has the following beneficial effects:

[0108] Compared with the existing method of extracting concentration from brain wave signals, this embodiment uses wearable devices to provide a complete and effective solution for extracting human brain concentration. Compared with the complex algorithms of concentration extraction in the prior art, this embodiment has the characteristics of strong real-time performance, high accuracy, low computational complexity, and strong robustness. This embodiment eliminates the influence of eye movement interference, decomposes and reconstructs brain wave signals, performs energy spectrum analysis, etc., and adopts a reasonable definition of concentration, which improves recognition accuracy and good adaptability. The final extracted concentration is sufficient to reflect the attention characteristics of the subject and can be applied to biomedicine, education and other fields.

[0109] Example 2

[0110] like Figure 5 As shown, a concentration extraction system based on brain wave signals in this embodiment includes a brain wave acquisition module, an eye movement interference removal module, a signal decomposition module, a signal reconstruction module, and a concentration extraction module.

[0111] The brain wave acquisition module specifically includes a TGAM sensor, an ear clip, and Bluetooth, and the ear clip and Bluetooth are electrically connected to the TGAM sensor respectively.

[0112] The eye movement interference removal module, signal decomposition module, signal reconstruction module, and concentration calculation module are specifically integrated into a storage medium in the same computer in the form of a computer program, and the computer processor calls the computer program in the storage medium to execute each module. The brain wave acquisition module transmits the original brain wave signal to the computer via Bluetooth, and the input original brain wave signal first enters the eye movement interference removal module.

[0113] The eye movement interference removal module is used to eliminate the eye movement interference signals in the original brain wave signals, thereby retaining the real brain wave signals.

[0114] The signal decomposition module is used to decompose the real brain wave signal using wavelet packet transform.

[0115] The signal reconstruction module is used to reconstruct the signal decomposed by wavelet packet transform into four types of brain waves: α, β, θ, and δ.

[0116] The concentration calculation module is used to calculate the concentration according to the energy spectrum characteristics of α, β, and θ brain waves.

[0117] Compared with the prior art, this embodiment has the following beneficial effects:

[0118] Wearable devices are used to provide a complete and effective solution for extracting human brain concentration. The influence of eye movement interference is eliminated, brain wave signals are decomposed and reconstructed, energy spectrum analysis is performed, and a reasonable definition of concentration is adopted to improve recognition accuracy and adaptability. The final extracted concentration is sufficient to reflect the attention characteristics of the subjects and can be applied to biomedicine, education and other fields.

[0119] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A method for extracting concentration based on brain wave signals, characterized in that: The steps include: Collect the original brain wave signals, perform blind source separation on the original brain wave signals, eliminate the eye movement interference signals, and only retain the real brain wave signals in the original brain wave signals; The real brain wave signal is decomposed using wavelet packet transform and then stored in the decomposition tree; The signal is taken out from the decomposition tree and reconstructed to obtain three types of brain waves: α, β, and θ; Calculate the concentration of the human brain based on the energy spectrum characteristics of the three brain waves α, β, and θ; The process of calculating the degree of concentration is as follows: calculating the average energy and energy proportion of the frequency band signals corresponding to the three brain waves α, β, and θ, and calculating the degree of concentration based on the energy proportion; The process of calculating the average energy and energy proportion of the frequency band signals corresponding to the three brain waves α, β, and θ is as follows: Assume that the three brain waves after transformation are i=α, β, θ, and the voltage value of the brain wave at the corresponding frequency f is The maximum frequency of the band is The minimum frequency is The average energy in the frequency band is E i , then the average energy of the three brain waves α, β, and θ is E α 、E β 、E θ The calculation formula is as follows: Wherein, i=θ: i=α: i=β: E sum is the total average energy corresponding to the coverage range of the three brain wave frequency bands α, β, and θ, which is calculated as follows: AND sum =And α +E β +E θ Calculate the energy proportion G of the three brain waves α, β, and θ in the total average energy α , G β , G θ , which is calculated as follows: Assume that the concentration is R, and the weight coefficients of the three brain waves α, β, and θ are k respectively. i , i = 1, 2, 3, the concentration index R is as follows:

2. The method for extracting concentration based on brain wave signals according to claim 1, characterized in that: The process of blind source separation of the original brain wave signal and elimination of eye movement interference signals includes: The original brain wave signal is divided into two items: the real brain wave signal and the eye movement interference signal; Sliding window decomposition is used to calculate the complexity of the original brain wave signal; The eye movement interference signal judgment conditions are set according to the complexity, and the signals that meet the judgment conditions are eliminated to retain the real brain wave signals.

3. The method for extracting concentration based on brain wave signals according to claim 2, characterized in that: The original brain wave signal is divided into real brain wave signal and eye movement interference signal using ICA algorithm, as shown in the following formula: Among them, the original brain wave signal of the subject is x(t), and the real brain wave signal is x EEG (t), the eye movement interference signal is x EOG (t), a i is the transfer coefficient of the ith signal in the signal decomposition process, s i (t) is the source function, Γ EEG , Γ EOG are the index set of the real brain wave signal and the index set of the eye movement interference signal, respectively. t is the time when the TGAM sensor collects the original brain wave signal. The computational complexity is as follows: Among them, φ is the complexity of the original brain wave signal in the window, l is the total length of the original brain wave signal in the window, n is the number of sampling points of the original brain wave signal in the window, and the window is of fixed length.

4. The method for extracting concentration based on brain wave signals according to claim 3, characterized in that: The judgment conditions of eye movement interference signal are: For all source functions s1(t), s2(t), ..., s N (t), and its corresponding signal complexity is φ1, φ2, …, φ N , if and only if (φ (k+1) -φ (k) )<(φ (k) -φ (k-1) ), the source functions s1(t), s2(t), ..., s k (t) belongs to the eye movement interference signal x EOG (t), where N represents the original brain wave signal source function s i (t), k represents the source function s i (t) is the number of eye movement interference signals, k ... The smallest integer.

5. The method for extracting concentration based on brain wave signals according to claim 4, characterized in that: The process of wavelet packet transform is as follows: Real brainwave signal x EEG (t) can be decomposed into the following formula: Among them, f0(t), f1(t), ..., is the time domain signal in each sub-band after reconstructing the wavelet packet decomposition coefficients, and j is the set decomposition level; Construct a wavelet packet for the time domain signal. Assume that the scale function is Φ(t) and the wavelet function is Ψ(t). The two-scale relationship between the scale function Φ(t) and the wavelet function Ψ(t) is as follows: Among them, h k is a low-pass filter, g k is a high-pass filter, At this time, x is the input signal of the filter, k is the translation variable, n is the series of the wavelet packet function, w(t) is the set of wavelet packet functions, when n = 0, w0(t) = φ(t), w1(t) = ψ(t), and the recursive calculation is performed according to the following recursive relationship: The wavelet basis function is set to Dobesi wavelet, the maximum decomposition level is 9, and the high-frequency sub-band and low-frequency sub-band in the time domain signal are decomposed separately. The decomposition formula is as follows: in, are the wavelet packet decomposition coefficients, h (2l-k) , g (2l-k) They are low-pass filter group and high-pass filter group respectively.

6. The method for extracting concentration based on brain wave signals according to claim 5, characterized in that: The formula for reconstructing the three brain waves of α, β, and θ is as follows: Among them, the decomposition nodes are determined in the decomposition tree according to the frequency ranges of the three brain waves α, β and θ, and the corresponding filter banks and wavelet packet decomposition coefficients are obtained from the decomposition nodes.

7. A concentration extraction system based on brain wave signals, used to execute the concentration extraction method based on brain wave signals according to any one of claims 1 to 6, characterized in that: It includes brain wave acquisition module, eye movement interference removal module, signal decomposition module, signal reconstruction module and concentration extraction module; The brain wave acquisition module is used to collect original brain wave signals, and the brain wave acquisition module inputs the original brain wave signals to the eye movement interference removal module; The eye movement interference removal module is used to eliminate the eye movement interference signals in the original brain wave signal, so as to retain the real brain wave signal; The signal decomposition module is used to decompose the real brain wave signal using wavelet packet transform; The signal reconstruction module is used to reconstruct the signal decomposed by wavelet packet transform into three types of brain waves: α, β, and θ; The concentration calculation module is used to calculate the concentration according to the energy spectrum characteristics of α, β, and θ brain waves.