Summary of the invention
In order to overcome the shortcomings of existing epilepsy sample brain electro-detection digital circuit, the present invention provides a kind of new based on simulation
The epilepsy sample brain power detection circuit of technology.The present invention has low computation complexity and can be fully hard under the premise of meeting detection accuracy
The characteristics of part is realized, can be measured in real time EEG under conditions of low-power consumption, and it is wearable, just to be suitable for miniaturization, low power consuming
Take the application demand of formula electronic product.
The technical solution adopted by the present invention to solve the technical problems is: filtering including analog wavelet filter 1, analog wavelet
Wave device 2, delay circuit 1, delay circuit 2, full-wave rectifier 1, full-wave rectifier 2, switching circuit 1, switching circuit 2, comparator
1, comparator 2 and subtracter.
In above-mentioned epilepsy sample brain power detection circuit, the detection process is as follows:
Step 1: EEG signals carry out scale a respectively1=0.015, a2=0.1 continuous wavelet transform, after taking absolute value
Obtain the wavelet coefficient absolute value of corresponding scale | W1| and | W2|。
Step 2: given threshold T1And T2, when meeting following two condition simultaneously, EEG signals detected
For epilepsy sample signal:
(1)a1Wavelet coefficient absolute value when=0.015 | W1| it is greater than predetermined threshold T1, it may be assumed that | W1|>T1。
(2)a1=0.015 and a2The difference of the wavelet coefficient absolute value of=0.1 two scale is greater than predetermined threshold T2, it may be assumed that | W1
|-|W2|>T2。
In above-mentioned epilepsy sample brain power detection circuit, the input terminal of the analog wavelet filter 1 and analog wavelet filter 2
It is connected with input EEG signals, the input terminal as epilepsy sample brain power detection circuit;
The input terminal of subtracter is accessed to after the concatenation of analog wavelet filter 1 full-wave rectifier 1 through switching circuit 1;
The input terminal of subtracter is accessed to after the concatenation full-wave rectifier 2 of analog wavelet filter 2 through delay circuit 1.Analog wavelet filtering
Device 1 realizes scale a1=0.015 wavelet transformation, analog wavelet filter 2 realize scale a2=0.1 wavelet transformation.
The comparator 1 is by the output of full-wave rectifier 1 and predetermined threshold T1It is compared, the output control of comparator 1
Switching circuit 1;Comparator 2 is by the output of subtracter and predetermined threshold T2It is compared, the output control switch circuit of comparator 2
2。
The output of full-wave rectifier 2 is postponed τ by the delay circuit 11The input terminal of subtracter is accessed afterwards, wherein τ1=
0.06s;Delay circuit 2 will input EEG signals and postpone τ2Switching circuit 2 is accessed afterwards, wherein τ2=0.4s.
The output end of the switching circuit 2 is the output end of epilepsy sample brain power detection circuit.
5, in above-mentioned epilepsy sample brain electric-examination method of determining and calculating, the biography of the analog wavelet filter 1 and analog wavelet filter 2
Delivery function H1(s) and H2(s) it is respectively:
Wherein, H1(s) realize EEG signals in scale a1=0.015 continuous wavelet transform, H2(s) EEG signals are realized
In scale a2=0.1 continuous wavelet transform, the type of wavelet transformation are the transformation of Mexico's hat wavelet.
The technical effects of the invention are that: the invention proposes a kind of epilepsy sample brain power detection circuits, compare existing brain electricity
Signal detecting method, the present invention reduce computation complexity while guaranteeing detection accuracy, and can be fully hard by analog circuit
Part realizes have many advantages, such as that EEG detection accuracy is high, design process is simple, be suitable for low-voltage, low-power consumption large-scale integrated, can answer
For processing of biomedical signals fields such as epilepsy sample brain electro-detections.
The present invention is further illustrated with reference to the accompanying drawings and examples.
Specific embodiment
The present embodiment provides a kind of epilepsy sample brain power detection circuits as shown in Figure 1, including analog wavelet filter 1, simulation
Wavelet filter 2, delay circuit 1, delay circuit 2, full-wave rectifier 1, full-wave rectifier 2, switching circuit 1, switching circuit 2,
Comparator 1, comparator 2 and subtracter.
The impulse response of analog wavelet filter 1 is Mexico's hat wavelet function, and corresponding wavelet transform dimension is
a1=0.015.Wherein, the transmission function of analog filter 1 is obtained by approximate algorithm, design procedure are as follows:
1, the rational approximations fraction of the mother wavelet function of Mexico's hat wavelet is obtained by approximate algorithm;
2, it by removing method for normalizing, goes the wavelets approximation function that the first step obtains to be normalized to scale 0.015, be passed
Delivery function is
The impulse response of analog wavelet filter 2 is Mexico's hat wavelet function, and corresponding wavelet transform dimension is
a2=0.1.Wherein, the transmission function of analog filter 2 is obtained by approximate algorithm, design procedure are as follows:
1, the rational approximations fraction of the mother wavelet function of Mexico's hat wavelet is obtained by approximate algorithm;
2, it by removing method for normalizing, goes the wavelets approximation function that the first step obtains to be normalized to scale 0.1, be transmitted
Function is
Input EEG signals can respectively obtain scale a by above-mentioned two analog wavelet filter1=0.015 and scale a2
=0.1 wavelet coefficient, can circuit structure as shown in Figure 2 realize.
In the circuit structure of analog wavelet filter shown in Fig. 2 (a), g1~g6And C1~C6Realize point of transmission function
Mother, ga1~ga6Realize that the molecule of transmission function, output voltage pass through feedback network and g1~g6Inverting input terminal be connected.If small
The general type of wave filter transmission function are as follows:
The topological relation of (a) according to fig. 2 can obtain the relational expression of each circuit parameter in Fig. 2 (a):
τ1=B1,τ2=B2/B1,τ2=B3/B2,τ3=B3/B2,τ4=B4/B3,τ5=B5/B4,τ6=B6/B5,
τj=Cj/gj, j=1,2...6
It, can be by g in order to facilitate circuit design1~g6Mutual conductance be set as identical value, utilize each parameters relationship of above formula
Solve the other parameters in Fig. 2 (a).
Therefore, according to H1(s) and H2(s) coefficient of denominator and molecule in utilizes the relational expression of above-mentioned Fig. 2 (a) circuit parameter
Scale a can be solved respectively1=0.015 and a2=0.1 wavelet filter circuit parameter.
Operation transconductance amplifier g in Fig. 2 (a)1~g6、ga1~ga6It can be realized by Fig. 2 (b), wherein transistor M1And M2For
Input difference pair, breadth length ratio having the same are used to input voltage VIN1And VIN2It is converted into electric current;Transistor M3、M4And crystal
Pipe M5、M6Two current mirroring circuits are constituted, and breadth length ratio is identical two-by-two.It, can be real when all transistors all work in weak inversion regime
Existing transconductance value is gmOperation transconductance amplifier, and
Wherein n is subthreshold value slope factor, UTFor thermal voltage, and UT=kT/q.
To realize the operation to take absolute value to wavelet coefficient, using as shown in Figure 3 based on the complete of grid cross-coupling connection
Wave rectifier handles wavelet coefficient.The transistor of two Main Branches is all cross-coupling connection type in circuit.At half week
In phase, electric current flows through M2、M3, and in another half cycle, electric current flows through M1、M4, the combination of four metal-oxide-semiconductors make input all-wave it is whole
The voltage of stream device is exported with same direction, realizes the effect to take absolute value to signal.
Fig. 4 (a) is switching capacity delay cell, and Fig. 4 (b) is clock waveform.Transistor M1Connect input voltage, transistor
M4Connect output voltage, transistor M1And M4Breadth length ratio having the same;Transistor M2And M3Composition current mirroring circuit, and the two
Breadth length ratio is identical.Switch S1It is realized by single NMOS transistor, switch S2The transmission gate being made of NMOS and PMOS transistor is real
It is existing.In phaseSwitch S1Closure, input voltage are sampled;In phaseSwitch S2NMOS transistor conducting, PMOS is brilliant
The shutdown of body pipe.For a complete clock, delay time caused by delay cell shown in Fig. 4 is τ=2T (1-D)
Wherein D is duty ratio, and T is the clock cycle, and adjusting T can be changed delay time T.For example, setting duty ratio D is
50%, frequency f=50Hz, the delay time that can obtain delay cell is 20ms, when can be realized any by cascaded delay
Between delay.Two delay circuits of the present invention are delayed 0.06s and 0.4s respectively, can by 3 delay cells of cascade and
20 delay cells are cascaded to realize.
Fig. 5 is a subtracter, wherein M1~M3Realize bias current;M4And M5For input difference pair, it is used to that electricity will be inputted
Press VIN1And VIN2It is converted into electric current;M8And M9Current mirror is formed, difference current is converted into M10On Single-end output electric current;Difference
To M6And M7Realize output voltage, i.e.,
VOUT=VIN1-VIN1
Subtracter is by scale a1=0.015 wavelet coefficient absolute value | W1| with scale a2=0.1 wavelet coefficient absolute value
|W2| subtract each other, by with predetermined threshold T2Comparison complete epilepsy sample brain electricity detection.
Fig. 6 is voltage comparator, wherein transistor M1~M6Difference preamplifier is constituted, input voltage is amplified,
Improve the sensitivity of comparator, disconnecting switch noise simultaneously.Transistor M7~M11Latch cicuit is constituted, is the core of comparator,
The size of two input signals can be compared.Transistor M13~M20Output buffer is constituted, is mainly put including self biased differential
Big device and phase inverter.Voltage comparator 1 is by scale a1=0.015 wavelet coefficient absolute value | W1| with predetermined threshold T1Compared
Compared with, can primarily determine epilepsy sample waveform occur time;Voltage comparator 2 is by subtracter treated signal and predetermined threshold T2
Compare, realizes the interference in removal EEG signals, reduce the false detection rate of epilepsy sample brain power detection circuit, increase detection accuracy.
The above is only a preferred embodiment of the present invention, the specific embodiment is merely used to help understand the present invention
Core concept.It should be pointed out that for those skilled in the art, without departing from the principle of the present invention,
Can be with several improvements and modifications are made to the present invention, these improvement and modification also belong to the protection model of the claims in the present invention
It encloses.