A filtering device and method for brain wave signal
By introducing chaotic signal enhancement and entropy calculation technology into the brainwave signal processing device, the problem that existing filtering methods cannot handle brainwave signal mutations is solved, more efficient signal cleaning and filtering is achieved, and the quality and accuracy of the signal are improved. sex.
Patent Information
- Application Number
- CN201911255649.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-12-10
AI Technical Summary
Existing filtering methods cannot effectively process brain wave signals, especially signal mutation problems caused by movement or poor contact of the wearable detection sensor, resulting in low validity, reliability and accuracy of the signal.
A brainwave signal filtering device is designed, including an electrode head array, a chaotic signal circuit, a signal sampling and holding and preprocessing module, a DSP signal processor and a digital signal movable window. It filters out interference through chaotic signal enhancement and entropy calculation. , improve signal quality.
It effectively solves the problem of brain wave signal mutation caused by short-term displacement and poor contact of the wearable detection sensor, improves the validity, reliability and accuracy of the signal, and significantly improves the quality of brain wave signal research and analysis.
Smart Images

Figure CN110840452B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of brain wave processing, and in particular to a filtering device and method for brain wave signals. Background Art
[0002] Electroencephalogram (EEG) is a method of recording brain activity using electrophysiological indicators. It is the overall reflection of the electrophysiological activity of brain nerve cells in the cerebral cortex or scalp surface. The frequency variation range is between 1 and 30 times per second. It can be divided into δ (1-3Hz), θ (4-7Hz), α (8-13Hz), β (14-30Hz) and other bands as the frequency changes. It is characterized by low signal frequency, low intensity, and unstable amplitude range.
[0003] At present, the collection of brain wave signals is often achieved by attaching electrode heads to the human brain. However, in the process of collecting brain wave signals, it is easy for the tester's body to move or the electrode head to move suddenly due to unstable contact with the skin, causing the collected brain wave signal to suddenly change the frequency band, which greatly interferes with the subsequent research and analysis of brain wave signals. The currently commonly used filtering methods, such as Wiener filtering, Kalman filtering, FIR filtering and other filtering methods, do not meet the ideal requirements for the filtering effect of special signals such as brain waves, have low efficiency, and are not suitable for processing brain wave signals. Summary of the invention
[0004] The present invention aims to solve the problem that the existing filtering method is not suitable for processing special signals such as brain waves, and provides a filtering device and method for brain wave signals.
[0005] To solve the above problems, the present invention is achieved through the following technical solutions:
[0006] A brain wave signal filtering device comprises a filtering device body, which is composed of an electrode head array, a chaotic signal circuit, a signal sampling and holding and preprocessing module, a DSP signal processor and a digital signal movable window;
[0007] The electrode head array forms the input end of the acquisition and filtering device body and is connected to the human brain; the output end of the electrode head array and the chaotic signal circuit is simultaneously connected to the input end of the signal sampling, holding and preprocessing module; the output end of the signal sampling, holding and preprocessing module is connected to the input end of the DSP signal processor; the output end of the DSP signal processor forms the output end of the filtering device body;
[0008] The storage input end of the DSP signal processor is connected to the input end of the digital signal movable window, the output end of the digital signal movable window is connected to the storage output end of the DSP signal processor, and the control end of the DSP signal processor is connected to the control end of the digital signal movable window.
[0009] In the above scheme, the digital signal movable window is composed of a FIFO chip array, an analog switch array and a high-speed memory chip; the input end of the FIFO chip array forms the input end of the digital signal movable window, the output end of the FIFO chip is connected to the input end of the high-speed memory chip via the analog switch array, and the output end of the high-speed memory chip forms the output end of the digital signal movable window.
[0010] In the above solution, the number of electrode heads included in the electrode head array, the number of FIFO chips included in the FIFO chip array, and the number of analog switches included in the analog switch array are the same.
[0011] In the above scheme, the chaotic signal circuit is composed of resistors R2~R3, filter inductor L2, and filter capacitors C11~C12; after the filter capacitor C12 and the filter inductor L2 are connected in parallel, one end of the filter capacitor C12 is connected to one end of the filter capacitor C11 via the resistor R3, and the other end of the filter capacitor C11 is directly connected to the other end of the filter capacitor C11; the two ends of the resistor R2 are connected in parallel to the two ends of the filter capacitor C11; the connected ends of the resistor R2, the resistor R3 and the filter capacitor C11 form the output end of the chaotic signal circuit.
[0012] A method for filtering brain wave signals implemented by the above-mentioned filtering device comprises the following steps:
[0013] Step 1: The electrode head array collects multi-dimensional original brain wave signals and sends them to the signal sampling, holding and preprocessing module;
[0014] Step 2: The chaotic signal circuit generates a random chaotic signal, adds the chaotic signal to the multi-dimensional original brain wave signal, and sends it to the signal sampling, holding and preprocessing module;
[0015] Step 3: The signal sampling, holding and preprocessing module samples and preprocesses the multidimensional original brain wave signal with chaotic signals, filters out the chaotic signals, obtains multidimensional enhanced brain wave signals, and inputs them into the DSP signal processor;
[0016] Step 4, the DSP signal processor sends the multi-dimensional enhanced brain wave signal to the digital signal movable window; under the control of the DSP signal processor, the digital signal movable window performs window moving extraction on the multi-dimensional enhanced brain wave signal to obtain the enhanced brain wave signal of each electrode head of the electrode head array in the current window;
[0017] Step 5: The DSP signal processor calculates the probability p of the enhanced EEG signal of the nth segment of the mth electrode head in the current window appearing in the enhanced EEG signal of the nth segment of all M electrode heads in the current window according to the enhanced EEG signal of each electrode head of the electrode head array in the current window extracted by the digital signal movable window. mn ;in:
[0018]
[0019] Step 6: DSP signal processor calculates the probability p mn , calculate the comprehensive entropy value of the enhanced EEG signal of all M electrode heads in the electrode head array in the current window in:
[0020]
[0021] Step 7: DSP signal processor calculates the comprehensive entropy value Calculate the effective comprehensive entropy value Then the effective comprehensive entropy and judgment threshold For comparison: When the effective comprehensive entropy Greater than the judgment threshold When , the enhanced EEG signals of all the electrode heads of the electrode head array in the current window are discarded; otherwise, the enhanced EEG signals of all the electrode heads of the electrode head array in the current window are retained and filtered as the final EEG signal output; wherein:
[0022]
[0023] The above-mentioned W[m][n] digital signal movable window is the nth segment enhanced brain wave signal of the mth FIFO chip; m=1, 2, 3...M, M represents the number of FIFO chips in the FIFO chip array, that is, the number of electrode heads in the electrode head array; n=1, 2, 3...N, N represents the movable window length of the FIFO chip in the FIFO chip array; τ represents the gain coefficient.
[0024] Compared with the prior art, the present invention better solves the problem of EEG (brain wave) signal mutation caused by short-term displacement of wearable detection sensors during human movement and poor contact, improves the effectiveness, reliability and accuracy of the signal, and has high practical value and innovation. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 The figure is a schematic diagram of a filtering device for brain wave signals.
[0026] Figure 2The present invention is a flow chart of a method for filtering brain wave signals. DETAILED DESCRIPTION
[0027] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific examples.
[0028] See also Figure 1 , a collection and filtering device for collecting brain waves, consists of an electrode head array, a chaotic signal circuit, a signal sampling and holding and preprocessing module, a DSP signal processor, a FIFO chip array, an analog switch array and a high-speed storage chip.
[0029] The number of electrode heads included in the electrode head array, the number of FIFO chips included in the FIFO chip array, and the number of analog switches included in the analog switch array are the same. In a preferred embodiment of the present invention, the number of FIFO chips included in the FIFO chip array and the number of analog switches included in the analog switch array are both 9.
[0030] The chaotic signal circuit is a Cai's circuit structure composed of resistors R2-R3, filter inductor L2, and filter capacitors C11-C12. After the filter capacitor C12 and the filter inductor L2 are connected in parallel, one end of the filter capacitor C12 is connected to one end of the filter capacitor C11 via the resistor R3, and the other end of the filter capacitor C11 is directly connected to the other end of the filter capacitor C11. The two ends of the resistor R2 are connected in parallel to the two ends of the filter capacitor C11. The connected ends of the resistor R2, the resistor R3 and the filter capacitor C11 form the output end of the chaotic signal circuit.
[0031] The FIFO chip array, the analog switch array and the high-speed memory chip constitute a movable window for digital signals. Under the control of the DSP signal processor, each dimensional brain wave signal is stored in a FIFO chip, that is, the multi-dimensional brain wave signal is split into multiple signals and respectively transmitted to the corresponding number of FIFO chips. The DSP signal processor can control the on-off of the analog switch array according to the entropy value of the signal sequence in each FIFO chip. Since the analog switches in the analog switch array correspond to the FIFO chips of the FIFO chip array one by one, the effective data can be selected and transmitted to the high-speed memory chip by controlling the on-off of the analog switch array for being retrieved by the DSP signal processor.
[0032] The electrode head array forms the input end of the acquisition and filtering device and is connected to the human brain; the output end of the electrode head array and the chaotic signal circuit is simultaneously connected to the input end of the signal sampling, holding and preprocessing module, and the output end of the signal sampling, holding and preprocessing module is connected to the input end of the DSP signal processor; the output end of the DSP signal processor forms the output end of the acquisition and filtering device. The storage input end of the DSP signal processor is connected to the input end of the FIFO chip, and the output end of the FIFO chip is connected to the input end of the high-speed storage chip via the analog switch array, and the output end of the high-speed storage chip is connected to the storage output end of the DSP signal processor. The control end of the DSP signal processor is connected to the control end of the analog switch array.
[0033] The electrode head array is attached to the human brain and collects multi-dimensional original brain wave signals. A random chaotic signal is generated by a chaotic signal circuit, and the chaotic signal is added to the multi-dimensional original brain wave signal. According to the random resonance theory, after the weak multi-dimensional original brain wave signal is added with an appropriate random signal, the weak signal will be strengthened, and the strengthened multi-dimensional original brain wave signal carrying the random chaotic signal is sent to the signal sampling, holding and preprocessing module. In the signal sampling, holding and preprocessing module, a bandpass filter is used to filter the added random signal, leaving the enhanced brain wave signal, and the enhanced brain wave signal is sent to the DSP signal processor through a high-speed serial communication bus. The DSP signal processor transmits the brain wave signal to the digital signal movable window through the high-speed serial communication bus; the digital signal movable window performs mobile processing on the brain wave signal and then transmits it to the DSP signal processor. The DSP signal processor calculates the signal entropy value, and cleans and filters the brain wave signal according to the calculated signal entropy value, and then outputs the multi-dimensional brain wave signal.
[0034] See also Figure 2 A method for filtering brain wave signals implemented by the above device specifically comprises the following steps:
[0035] Step 1: The electrode head array collects the original multi-dimensional brain wave signal and sends it to the signal sampling, holding and preprocessing module;
[0036] Step 2: The chaotic signal circuit generates a random chaotic signal, adds the chaotic signal to the original multi-dimensional brain wave signal, and sends it to the signal sampling, holding and preprocessing module;
[0037] Step 3: The signal sampling, holding and preprocessing module samples and preprocesses the original multidimensional brain wave signal with chaotic signals at the hardware level, filters out the chaotic signals, obtains enhanced multidimensional brain wave signals, and inputs them into the DSP signal processor using a high-speed serial communication bus;
[0038] Step 4, the DSP signal processor sends the multi-dimensional enhanced brain wave signal to the digital signal movable window; under the control of the DSP signal processor, the digital signal movable window performs window moving extraction on the multi-dimensional enhanced brain wave signal to obtain the enhanced brain wave signal of each electrode head of the electrode head array within the window of length N.
[0039] The DSP signal processor controls the on and off of the analog switches in the analog switch array in real time, so that the enhanced brain wave signals in the corresponding FIFO chips in the FIFO chip array are stored in the high-speed storage chip. Because the M×N two-dimensional array W[M][N] is movable in a first-in-first-out manner for the digital signal sequence, we call it the digital signal movable window W[M][N]. Using the FIFO chip array, an M×N two-dimensional array W[M][N] is created, which is a buffer with a first-in-first-out (FIFO) structure. In the two-dimensional array W[M][N], W[m][n] is an element. M represents the number of FIFO chips in the FIFO chip array. Each FIFO chip in the FIFO chip array is used to store the real-time enhanced brain wave signals of an electrode head in the electrode head array. M also represents the total number of electrode heads. m is the row number of the array, representing the mth FIFO chip, m=1, 2, 3...M. N represents the length of the movable window of the FIFO chip, n is the column number of the array, representing the sampling point number of the enhanced brain wave signal in the movable window of the FIFO chip, n = 1, 2, 3...N. Let the real-time digital signal of the mth electrode head at the zth moment (initial moment, in this embodiment, let z = 0) be x mz , load the digital signal sequence after time z into the two-dimensional array W[M][N], that is, x m(z+n) Load into the W[m][n] element of the two-dimensional array W[M][N].
[0040] Step 5, the DSP signal processor uses the digital signal movable window to extract the enhanced brain wave signals of each electrode head of the electrode head array in the window of length N, and the movable window includes many segments of enhanced brain wave signals. The probability p of the enhanced brain wave signal of the nth segment of the mth electrode head in the window appearing in the enhanced brain wave signals of the nth segment of all M electrode heads in the window is calculated. mn :
[0041]
[0042] At this time, the uncertainty probability f(P mn ):
[0043]
[0044] Step 6: Perform comprehensive calculation on the digital signals of all electrode heads in the window to obtain the comprehensive entropy values of all electrode heads at the current moment;
[0045] Step 6.1: Calculate the entropy value E of the nth segment of the EEG signal of all M electrode heads n :
[0046]
[0047] Step 6.2: Calculate the information entropy redundancy D of the nth segment of the EEG signal of all M electrode heads n :
[0048] D n =1-E n
[0049] Step 6.3: Calculate the weight G of the nth signal of all M electrode heads in all N brain wave signals n :
[0050]
[0051] In particular, 0≤W n ≤1 and
[0052] Step 6.4: Calculate the comprehensive entropy value of the Nth segment of the EEG signal of all M electrode heads
[0053]
[0054] Step 7: Add the above steps After multiplying by a coefficient τ, the effective comprehensive entropy value is calculated by the activation function Sigmoid function
[0055]
[0056] Step 5.8: Output the signal entropy algorithm module Send it to the signal cleaning module and perform the following processing: Set a judgment threshold when The value is greater than ζ This means that the signal contained in the window is contaminated and should be discarded; otherwise, the signal contained in the window is judged to be valid and can be sent to the MIMO digital filter module and output.
[0057] As time goes by, steps 1 to 5 are repeated to process the collected brain wave signals to improve the accuracy of the collection and analysis of the brain wave signals.
[0058] It should be noted that although the embodiments of the present invention described above are illustrative, they are not intended to limit the present invention, and therefore the present invention is not limited to the above specific embodiments. Without departing from the principles of the present invention, any other embodiments obtained by those skilled in the art under the guidance of the present invention are deemed to be within the protection of the present invention.
Claims
1. A brain wave signal filtering device, comprising a filtering device body, characterized in that: It is composed of an electrode head array, a chaotic signal circuit, a signal sampling, holding and preprocessing module, a DSP signal processor and a digital signal movable window; the electrode head array forms the input end of the acquisition and filtering device body and is connected to the human brain; the output ends of the electrode head array and the chaotic signal circuit are simultaneously connected to the input end of the signal sampling, holding and preprocessing module; the output end of the signal sampling, holding and preprocessing module is connected to the input end of the DSP signal processor; the output end of the DSP signal processor forms the output end of the filtering device body; the storage input end of the DSP signal processor is connected to the input end of the digital signal movable window, the output end of the digital signal movable window is connected to the storage output end of the DSP signal processor, and the control end of the DSP signal processor is connected to the control end of the digital signal movable window; The filtering method implemented by the filtering device comprises the following steps: Step 1: The electrode head array collects multi-dimensional original brain wave signals and sends them to the signal sampling, holding and preprocessing module; Step 2: The chaotic signal circuit generates a random chaotic signal, adds the chaotic signal to the multi-dimensional original brain wave signal, and sends it to the signal sampling, holding and preprocessing module; Step 3: The signal sampling, holding and preprocessing module samples and preprocesses the multidimensional original brain wave signal with chaotic signals, filters out the chaotic signals, obtains multidimensional enhanced brain wave signals, and inputs them into the DSP signal processor; Step 4, the DSP signal processor sends the multi-dimensional enhanced brain wave signal to the digital signal movable window; under the control of the DSP signal processor, the digital signal movable window performs window moving extraction on the multi-dimensional enhanced brain wave signal to obtain the enhanced brain wave signal of each electrode head of the electrode head array in the current window; Step 5: The DSP signal processor calculates the probability p of the enhanced EEG signal of the nth segment of the mth electrode head in the current window appearing in the enhanced EEG signal of the nth segment of all M electrode heads in the current window according to the enhanced EEG signal of each electrode head of the electrode head array in the current window extracted by the digital signal movable window. mn ; in: Step 6: DSP signal processor calculates the probability p mn , calculate the comprehensive entropy value of the enhanced EEG signal of all M electrode heads in the electrode head array in the current window in: Step 7: DSP signal processor calculates the comprehensive entropy value Calculate the effective comprehensive entropy value Then the effective comprehensive entropy and judgment threshold For comparison: When the effective comprehensive entropy Greater than the judgment threshold When , the enhanced EEG signals of all the electrode heads of the electrode head array in the current window are discarded; otherwise, the enhanced EEG signals of all the electrode heads of the electrode head array in the current window are retained and filtered as the final EEG signal output; wherein: The above W[m][n] digital signal movable window is the nth segment enhanced brain wave signal of the mth FIFO chip; m=1, 2, 3...M, M represents the number of FIFO chips in the FIFO chip array, that is, the number of electrode heads in the electrode head array; n=1, 2, 3...N, N represents the movable window length of the FIFO chip in the FIFO chip array; τ represents the gain coefficient.
2. The brain wave signal filtering device according to claim 1, characterized in that: The digital signal movable window is composed of a FIFO chip array, an analog switch array and a high-speed memory chip; the input end of the FIFO chip array forms the input end of the digital signal movable window, the output end of the FIFO chip is connected to the input end of the high-speed memory chip via the analog switch array, and the output end of the high-speed memory chip forms the output end of the digital signal movable window.
3. The brain wave signal filtering device according to claim 2, characterized in that: The number of electrode heads included in the electrode head array, the number of FIFO chips included in the FIFO chip array, and the number of analog switches included in the analog switch array are the same.
4. The brain wave signal filtering device according to claim 1, characterized in that: The chaotic signal circuit is composed of resistors R2~R3, a filter inductor L2, and filter capacitors C11~C12; after the filter capacitor C12 and the filter inductor L2 are connected in parallel, one end of the filter capacitor C12 is connected to one end of the filter capacitor C11 via the resistor R3, and the other end of the filter capacitor C11 is directly connected to the other end of the filter capacitor C11; the two ends of the resistor R2 are connected in parallel to the two ends of the filter capacitor C11; the connected ends of the resistor R2, the resistor R3 and the filter capacitor C11 form the output end of the chaotic signal circuit.
