Summary of the invention
Based on this, a kind of processing of bioelectric signals method, apparatus, computer equipment and storage medium are provided, to solve to exist
The problem of pure EEG signals are unable to get in the case of single lead.
In a first aspect, the embodiment of the present application provides a kind of processing of bioelectric signals method, which comprises
Obtain bioelectrical signals to be processed;
According to the bioelectrical signals, the bioelectrical signals are handled using preset filtering method, obtain institute
State the interference electrical signal information carried in bioelectrical signals;
The corresponding interference electric signal of the interference electrical signal information is filtered out from the bioelectrical signals, obtains available biology
Electric signal.
In one of the embodiments, according to the bioelectrical signals, using preset filtering method to the biology
Electric signal is handled, before obtaining the interference electrical signal information carried in the bioelectrical signals, further includes:
According to the signal amplitude of the bioelectrical signals, determine in the bioelectrical signals with the presence or absence of the interference telecommunications
Number;
If there are the interference electric signals in the bioelectrical signals, execute according to the bioelectrical signals, using pre-
If filtering method the bioelectrical signals are handled, obtain the interference electrical signal information carried in the bioelectrical signals
The step of.
In one of the embodiments, the method also includes:
If the interference electric signal is not present in the bioelectrical signals, the bioelectrical signals can be used as described in
Bioelectrical signals.
The signal amplitude according to the bioelectrical signals in one of the embodiments, determines the biological telecommunications
It whether there is the interference electric signal in number, comprising:
Obtain the standard deviation of the signal amplitude of the bioelectrical signals;
If the signal amplitude of the bioelectrical signals is greater than or equal to twice of the standard deviation, it is determined that the bioelectricity
There are the interference electric signals in signal;
If the signal amplitude of the bioelectrical signals is less than twice of the standard deviation, it is determined that in the bioelectrical signals
There is no the interference electric signals.
The interference electrical signal information includes interference curve in one of the embodiments, described according to the bioelectricity
Signal is handled the bioelectrical signals using preset filtering method, obtains carrying in the bioelectrical signals dry
Disturb electrical signal information, comprising:
According to the bioelectrical signals, the bioelectrical signals are handled using Sa Weiciji-Gray SG filter method,
The interference curve is fitted from the bioelectrical signals.
It is corresponding that the interference electrical signal information is filtered out from the bioelectrical signals described in one of the embodiments,
Interference signal obtains available bioelectrical signals, comprising:
According to the interference curve, the interference electric signal is filtered out from the bioelectrical signals, obtains the first bioelectricity
Signal;
First bioelectrical signals are filtered using wavelet decomposition method, obtain described to use bioelectrical signals.
It is described in one of the embodiments, that first bioelectrical signals are filtered using wavelet decomposition method, it obtains
Bioelectrical signals are used to described, comprising:
First bioelectrical signals are standardized, standard biological electric signal is obtained;
The standard biological electric signal is subjected to wavelet decomposition, obtains the corresponding initial wavelet of the standard biological electric signal
Coefficient;
Soft-threshold de-noising is carried out to the initial wavelet coefficients, obtains available wavelet coefficient;
Wavelet transformation reconstruct can be carried out with wavelet coefficient by described in, the standard of obtaining can use bioelectrical signals;
The standard can be carried out to be denormalized processing with bioelectrical signals, obtain described to use bioelectrical signals.
It is described in one of the embodiments, that the initial wavelet coefficients are subjected to soft-threshold de-noising, obtain available small echo
Coefficient, comprising:
The initial wavelet coefficients that will be greater than preset coefficient threshold are set as 0, and will be less than or equal to the system
The initial wavelet coefficients of number threshold values remain unchanged, and obtain described to use wavelet coefficient.
It is described in one of the embodiments, that the standard biological electric signal is subjected to wavelet decomposition, obtain the standard
The corresponding initial wavelet coefficients of bioelectrical signals, comprising:
The standard biological electric signal is subjected to four layers of wavelet decomposition, it is corresponding initial to obtain the standard biological electric signal
Wavelet coefficient.
The SG filter method is 41 filter methods of second order in one of the embodiments,.
It is described in one of the embodiments, to obtain bioelectrical signals to be processed, comprising:
Obtain initial bioelectrical signals segment;
The initial bioelectrical signals segment is subjected to pre-filtering, obtains the bioelectrical signals to be processed.
Second aspect, the embodiment of the present application provide a kind of processing of bioelectric signals device, which can realize above-mentioned first
Any one method in the embodiment of aspect or first aspect.
The third aspect, the embodiment of the present application provide a kind of computer equipment, including memory and processor, processor by with
In one or more computer programs that execution is stored in above-mentioned memory, above-mentioned processor is executing one or more meter
When calculation machine program, so that computer equipment realizes any one method in the embodiment of above-mentioned first aspect or first aspect.
Fourth aspect, the embodiment of the present application provides a kind of computer readable storage medium, including instruction, when above-metioned instruction exists
When being run in computer equipment, so that above-mentioned computer equipment is executed as in the embodiment of above-mentioned first aspect or first aspect
Any one method.
Above-mentioned processing of bioelectric signals method, apparatus, computer equipment and storage medium, computer equipment can obtain to
The bioelectrical signals of processing, and bioelectrical signals are handled using preset filtering method, it obtains taking in bioelectrical signals
Then the interference electrical signal information of band filters out the corresponding interference electric signal of interference electrical signal information from bioelectrical signals, obtains
Bioelectrical signals can be used.Using this method, computer equipment can be handled bioelectrical signals using the method for filtering, into
And the interference electrical signal information carried in bioelectrical signals is directly obtained, there is no need to individually acquire interference electric signal all the way to come pair
The interference electric signal of bioelectrical signals is separated, can be realized only by bioelectrical signals all the way can by interference signal and
It can be separated with bioelectrical signals, obtain pure available bioelectrical signals, that is, the scheme of the application is single lead the case where
Under, pure available bioelectrical signals can be obtained.In the case where multi-lead, this method can be used per signal all the way, from
And available multichannel can use bioelectrical signals, thus the scope of application of this method is greatly expanded, so that application scenarios are more
It is abundant.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Processing of bioelectric signals method provided by the embodiments of the present application, can be adapted for computer equipment shown in FIG. 1.It should
Computer equipment includes the processor connected by system bus, memory, network interface, database, display screen and input dress
It sets.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes non-
Volatile storage medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and database.
The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The computer is set
Standby database is used to store the related data of the bioelectrical signals in following embodiments, the related data in relation to bioelectrical signals
Specific descriptions referring to the specific descriptions in following embodiments.The network interface of the computer equipment can be used for and external its
He passes through network connection communication at equipment.Optionally, which can be server, can be desktop computer, can be a
Personal digital assistant can also be other terminal devices, such as tablet computer, mobile phone etc., can also be cloud or long-range
Server, the embodiment of the present application is to the concrete form of computer equipment and without limitation.The display screen of the computer equipment can be with
It is liquid crystal display or electric ink display screen, the input unit of the computer equipment can be the touch covered on display screen
Layer, is also possible to the key being arranged on computer equipment shell, trace ball or Trackpad, can also be external keyboard, touch-control
Plate or mouse etc..Certainly, input unit and display screen can also be not belonging to a part of computer equipment, can be computer and set
Standby external equipment.
It will be understood by those skilled in the art that structure shown in Fig. 1, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
How the technical solution of the application and the technical solution of the application are solved with specific embodiment below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, embodiments herein is described.
It should be noted that the executing subject of following methods embodiment can be processing of bioelectric signals device, the device
The some or all of of above-mentioned computer equipment can be implemented as by way of software, hardware or software and hardware combining.Under
Embodiment of the method is stated to be illustrated so that executing subject is computer equipment as an example.
Fig. 2 is the flow diagram for the processing of bioelectric signals method that one embodiment provides.The present embodiment what is involved is
Computer equipment is filtered according to acquired bioelectrical signals, so that the available bioelectrical signals after being filtered is specific
Process.As shown in Figure 2, which comprises
S101, bioelectrical signals to be processed are obtained.
Specifically, the available bioelectrical signals to be processed of computer equipment, optionally, can be by from data
The data of the bioelectrical signals read in library are also possible to directly measure the biological telecommunications that target object obtains by measuring device
Number.Optionally, which can be signal caused by some position of human body, such as EEG signals.
S102, according to the bioelectrical signals, the bioelectrical signals are handled using preset filtering method, are obtained
The interference electrical signal information carried into the bioelectrical signals.
Specifically, computer equipment can be handled above-mentioned bioelectrical signals using preset filtering method, thus
Obtain interference electrical signal information entrained in the bioelectrical signals.It should be noted that the interference electrical signal information is biology
The information of interference electric signal in electric signal, for example, can for the interference frequency of electric signal, amplitude or other can characterize it is dry
Disturb at least one of the information of wave character of electric signal.For example, when above-mentioned bioelectrical signals are EEG signals, it should
Interfering electrical signal information can be the amplitude or frequency of the electro-ocular signal of blink.Optionally, above-mentioned filtering method can be to pass through
Based on the method for local multinomial least square method fitting, by the partial information of the interference electric signal detected, to estimate
Whole interference electrical signal informations is obtained, is specifically as follows, computer equipment is to the interference electric signal in above-mentioned bioelectrical signals
Information is acquired according to certain time interval, for example, its can be to carry out interference electric signal amplitude according to preset
Time interval is sampled, be then based on collected discrete amplitude information, using be based on local multinomial least square
The method of method fitting is fitted, to obtain the amplitude information at each moment, which is used as interference electrical signal information,
The signal strength or weakness of above-mentioned interference electric signal at various moments can be characterized.
S103, the corresponding interference electric signal of the interference electrical signal information is filtered out from the bioelectrical signals, obtaining can
Use bioelectrical signals.
Specifically, computer equipment can be from above-mentioned bioelectrical signals, it will be corresponding to above-mentioned interference electrical signal information
Interference electric signal filters out, to obtain clean available bioelectrical signals, wherein interference electrical signal information can characterize interference
The characteristics of signals of electric signal.It should be noted that above-mentioned available bioelectrical signals are the more pure life after filtering
Object electric signal, such as when bioelectrical signals are EEG signals, which can be for after filtering
Pure EEG signals, which can be used for the analysis of subsequent data, by the interference letter for being included
It is number less, so that it is more accurate to analyze resulting result, and convenient for identification and processing.Optionally, it can be calculating
Machine equipment will interfere electric signal to subtract from bioelectrical signals, obtain available bioelectrical signals;Either will interference electric signal from
Other filtering operations are subtracted and then carried out in bioelectrical signals, to obtain pure available bioelectrical signals.
In the present embodiment, computer equipment can obtain bioelectrical signals to be processed, and use preset filtering method
Bioelectrical signals are handled, the interference electrical signal information carried in bioelectrical signals are obtained, then from bioelectrical signals
The corresponding interference electric signal of interference electrical signal information is filtered out, available bioelectrical signals are obtained.Using this method, computer equipment energy
Enough methods using filtering handle bioelectrical signals, and then directly obtain the interference electric signal carried in bioelectrical signals
Information can there is no need to individually acquire to interfere electric signal to separate come the interference electric signal to bioelectrical signals all the way
Realization only can be separated interference signal and available bioelectrical signals by bioelectrical signals all the way, obtain pure can be used
Bioelectrical signals, that is, pure available bioelectrical signals can be obtained in the case where single lead in the scheme of the application.It is leading more
In the case where connection, this method can be used per signal all the way, can use bioelectrical signals so as to obtain multichannel, thus significantly
The scope of application of this method is extended, so that application scenarios more horn of plenty.
It in one embodiment, can be as shown in figure 3, before above-mentioned S102, the method can also include:
S201, according to the signal amplitude of the bioelectrical signals, determine in the bioelectrical signals with the presence or absence of described dry
Disturb electric signal.
Specifically, computer equipment can count the signal amplitude of each pulse in above-mentioned bioelectrical signals, and according to
The size of signal amplitude determines above-mentioned bioelectrical signals with the presence or absence of interference electric signal.For example, computer equipment can basis
The a degree of pulse of signal amplitude in above-mentioned bioelectrical signals with the presence or absence of the signal amplitude of pulse more than other pulses comes
Judge in above-mentioned bioelectrical signals with the presence or absence of interference electric signal.For example, computer equipment is to every in above-mentioned bioelectrical signals
The signal amplitude of a pulse is counted, and the average signal magnitude of all pulses is calculated, if average signal magnitude is X milli
The signal amplitude of each pulse in bioelectrical signals is compared with X millivolts, signal amplitude is surpassed by Fu Shi, computer equipment
3X millivolts of pulse is crossed to be checked, thus according to whether there is the pulse that signal amplitude is more than 3X millivolts in bioelectrical signals,
To determine in bioelectrical signals with the presence or absence of interference electric signal.If whether there is signal amplitude in bioelectrical signals is more than 3X milli
The pulse of volt, it is determined that there is interference electric signal in bioelectrical signals, if instead signal amplitude is not present in bioelectrical signals
Pulse more than 3X millivolts, it is determined that in bioelectrical signals and there is no interference electric signals.
Optionally, the embodiment that a kind of possible implementation of step S201 can be as shown in Figure 4, comprising:
S301, obtain the bioelectrical signals signal amplitude standard deviation.
Specifically, computer equipment can count the signal amplitude of each pulse in above-mentioned bioelectrical signals, and calculate
Then the standard deviation of all signal amplitudes can successively compare the signal amplitude of each pulse with above-mentioned standard difference.
If the signal amplitude of S302A, the bioelectrical signals is greater than or equal to twice of the standard deviation, it is determined that described
There are the interference electric signals in bioelectrical signals.
Specifically, if there are signal amplitudes to be greater than or equal to above-mentioned signal width in all pulses in bioelectrical signals
When twice of pulse of the standard deviation of value, it can think there is interference, and then determine in bioelectrical signals and there is interference telecommunications
Number.It is appreciated that pure bioelectrical signals, such as pure EEG signals, the amplitude fluctuations of signal itself have rule
Property, such as its signal amplitude is distributed between the standard deviation of 0.5 to 2 times of amplitude, then it was determined that when in the EEG signals
There are when the pulse that signal amplitude is more than the standard deviation of 2 times of amplitudes, not only there are the EEG signals of brain in the EEG signals,
There is likely to be others to interfere electric signal.
If the signal amplitude of S302B, the bioelectrical signals is less than twice of the standard deviation, it is determined that the bioelectricity
The interference electric signal is not present in signal.
Specifically, if the signal amplitude of the pulse in bioelectrical signals is respectively less than the two of the standard deviation of above-mentioned signal amplitude
Times, it can think that there is no interference, and then determines in bioelectrical signals and interference electric signal is not present.
In this implementation, by judging whether the signal amplitude in bioelectrical signals is greater than the standard deviation of signal amplitude
Twice, and when there are twice of the signal that signal amplitude is greater than its standard deviation, determine in bioelectrical signals there is interference electricity
Signal, it is on the contrary then think to be not present, and then interference signal, the party can be determined whether there is based on the size of each signal amplitude
Formula is easily achieved and more accurate accurate.
If executing according to the bioelectrical signals, using there are the interference electric signal in S202A, bioelectrical signals
Preset filtering method handles the bioelectrical signals, obtains the interference electric signal carried in the bioelectrical signals letter
The step of breath.
Specifically, then being executed above-mentioned when computer equipment determines in above-mentioned bioelectrical signals and there is interference electric signal
S102.Specific descriptions about S102 may refer to the description in previous embodiment, and details are not described herein again.
In one embodiment, the above method can also include:
It, can as described in using the bioelectrical signals if the interference electric signal is not present in S202B, bioelectrical signals
Use bioelectrical signals.
Specifically, when computer equipment determines in above-mentioned bioelectrical signals there is no electric signal is interfered, it may be considered that
Current bioelectrical signals are pure signal, therefore no longer do other processing, using the bioelectrical signals as can use bioelectricity
Signal is directly exported.
In the present embodiment, computer equipment determines the bioelectrical signals according to the signal amplitude of the bioelectrical signals
In whether there is the interference electric signal, in bioelectrical signals there is no interference electric signal in the case where, directly by bioelectricity
Signal, so as to avoid the processing such as invalid filtering, can greatly reduce meter as that can be exported with bioelectrical signals
Calculation amount has saved system resource, and can guarantee the integrality of bioelectrical signals to the greatest extent, so that for biology
The result of electric signal analysis is more accurate.
In one embodiment, above-mentioned interference electrical signal information may include interference curve, in above-mentioned S102 or S202A
" according to the bioelectrical signals, the bioelectrical signals is handled using preset filtering method, obtain the bioelectricity
The interference electrical signal information carried in signal " may include: according to the bioelectrical signals, using Sa Weiciji-Gray
(Savitzky-Golay, abbreviation SG) filter method handles the bioelectrical signals, is fitted from the bioelectrical signals
The interference curve out.
Specifically, computer equipment can use SG filter method, it is more than certain threshold value to amplitude in above-mentioned bioelectrical signals
Signal sampled, thus obtain part interference electrical signal information, then to the part interference electrical signal information be based on the time
It is fitted, so that fitting obtains the interference curve that can characterize above-mentioned interference electric signal at each moment, which is
Interfere electric signal in the connecting line of the signal amplitude at each moment.Optionally, above-mentioned SG filter method can be 41 points of second order
Filter method can be guaranteed the case where the sample frequency of above-mentioned bioelectrical signals is 250Hz using 41 filter methods of second order
Under, smoothly fit interference curve, there is no due to count it is very few caused by the unsuccessful situation of fitting, will not be due to point
Number leads to computationally intensive problem too much.
In the present embodiment, due to using SG filter method, it can be realized dry to characterization is fitted in bioelectrical signals
The interference curve of electric signal is disturbed, and then the interference electrical signal information carried in bioelectrical signals can be directly obtained, no longer needs to list
Solely interference electric signal separates all the way come the interference electric signal to bioelectrical signals for acquisition, can be realized only by giving birth to all the way
Object electric signal can separate interference electric signal and available bioelectrical signals, to obtain pure available biological telecommunications
Number, that is, pure available bioelectrical signals can be obtained in the case where single lead in the scheme of the application.The multi-lead the case where
Under, this method can be used per signal all the way, can use bioelectrical signals so as to obtain multichannel, thus it is greatly expanded
The scope of application, so that application scenarios more horn of plenty.
Optionally, on the basis of the above embodiments, above-mentioned S103 can also be as shown in Figure 5, comprising:
S401, according to the interference curve, the interference electric signal is filtered out from the bioelectrical signals, obtains described
One bioelectrical signals.
Specifically, computer equipment can subtract the interference electric signal that interference curve is characterized from bioelectrical signals,
Since interference curve is to interfere electric signal in the connecting line of the signal amplitude at each moment, can be the life at corresponding moment
The signal amplitude of object electric signal subtracts the signal amplitude that interference curve is characterized, to will interfere electric signal from bioelectrical signals
It filters out, has been filtered out the first bioelectrical signals of the interference electric signal that interference curve is characterized.It should be noted that pass through by
The interference electric signal that interference curve is characterized is filtered out from bioelectrical signals, and it is larger to filter out amplitude in bioelectrical signals, frequency
The lower interference electric signal of rate.
S402, first bioelectrical signals are filtered using wavelet decomposition method, obtain described to use biological telecommunications
Number.
Specifically, computer equipment can also use wavelet decomposition method, above-mentioned first bioelectrical signals are filtered, from
And the higher part interference electric signal of frequency in interference electric signal is filtered out, obtain available bioelectrical signals.It should be noted that adopting
It is filtered, the higher interference electric signal of the frequency left in the first bioelectrical signals can be filtered with wavelet decomposition method
It removes, so that obtained result is more pure.
It should be noted that the available bioelectrical signals are to filter twice according to interference curve and using wavelet decomposition method respectively
The obtained signal of wave, therefore the degree of purity of the available bioelectrical signals can be widely applicable for subsequent data analysis.
Optionally, a kind of possible implementation of this step S402 can be as shown in Figure 6, comprising:
S501, first bioelectrical signals are standardized, obtain standard biological electric signal.
Specifically, above-mentioned first bioelectrical signals are standardized optionally by computer equipment, at the standardization
Reason, which can be, executes mean variance standardization to the signal amplitude in the first bioelectrical signals, i.e., by the first bioelectrical signals
In signal amplitude subtract after its mean value divided by its standard deviation, to obtain standard biological electric signal.Optionally, above-mentioned standard
Processing can also be that normalized or extensive processing (i.e. Normalization) are allowed to fall that is, by data bi-directional scaling
Enter a small specific sections, the present embodiment is to the concrete mode of this standardization and without limitation.
S502, the standard biological electric signal is subjected to wavelet decomposition, it is corresponding just obtains the standard biological electric signal
Beginning wavelet coefficient.
Specifically, above-mentioned standard bio signal is carried out wavelet decomposition using wavelet function by computer equipment, to obtain
Its corresponding initial wavelet coefficients.Wherein, which may include initial first wavelet coefficient and initial second small
Wave system number.It should be noted that initial first wavelet coefficient can be with the higher part of frequency in signature criteria bioelectrical signals
Signal, initial second wavelet coefficient can be with the lower part signals of frequency in signature criteria bioelectrical signals.It can in the present embodiment
Increased with the number of plies by setting wavelet decomposition, realizes more efficiently filtering, so that filter effect is more preferable, it is obtained available
Bioelectrical signals are more pure;It can also be reduced by the way that the number of plies of wavelet decomposition is arranged, operand be reduced, so that operation efficiency is more
It is high.Optionally, above-mentioned initial first wavelet coefficient and initial second wavelet coefficient can be initial wavelet coefficients according to default
Frequency threshold divide it is obtained, can be by frequency be greater than frequency threshold bioelectrical signals initial wavelet system
Number be used as initial first wavelet coefficient, using frequency be less than or equal to frequency threshold bioelectrical signals initial wavelet coefficients as
Initial second wavelet coefficient.
S503, soft-threshold de-noising is carried out to the initial wavelet coefficients, obtains available wavelet coefficient.
Specifically, can may include available first wavelet coefficient and available second wavelet coefficient with wavelet coefficient, computer be set
It is standby can respectively in above-mentioned initial wavelet coefficients initial first wavelet coefficient and initial second wavelet coefficient carry out respectively it is soft
Threshold filter, such as carry out screening and value to it according to preset coefficient threshold, obtain available first wavelet coefficient and can be used
Second wavelet coefficient obtains more reasonable available wavelet coefficient to filter out obvious unreasonable wavelet coefficient.Wherein, may be used
It is the coefficient that value is reasonable, theoretically can be used in executing wavelet transformation reconstruct with wavelet coefficient.
Optionally, the initial wavelet coefficients that computer equipment can will be greater than preset coefficient threshold are set as 0, and will
Initial wavelet coefficients less than or equal to coefficient threshold remain unchanged, to get rid of the initial wavelet coefficients greater than 0, obtaining can
Use wavelet coefficient.Wherein, coefficient threshold is preset fixed value, the present embodiment to the specific size of the coefficient threshold not
It limits, can be set and be adjusted according to specific needs.
S504, wavelet transformation reconstruct can be carried out with wavelet coefficient by described in, the standard of obtaining can use bioelectrical signals.
Specifically, above-mentioned available wavelet coefficient is carried out wavelet transformation reconstruct, thus by after wavelet decomposition by computer equipment
Signal carry out signals revivification, the standard of obtaining can use bioelectrical signals.The standard can with bioelectrical signals due to be experienced it is small
What Wave Decomposition and soft-threshold de-noising and then progress wavelet transformation reconstruct reduction obtained, therefore it has filtered out do to a certain extent
Electric signal is disturbed, at this point, the standard can be more pure with bioelectrical signals, can be applied in subsequent data analysis.
S505, the standard can be carried out to be denormalized processing with bioelectrical signals, obtains described to use bioelectrical signals.
Specifically, above-mentioned available bioelectrical signals are carried out being denormalized processing by computer equipment, to obtain available life
Object electric signal.It is reciprocal process that this, which is denormalized processing and above-mentioned standardization processing,.For example, when above-mentioned standardization processing is to return
One changes processing or when extensive processing, being denormalized processing and then for anti-normalization processing or remove extensive processing (i.e. De- herein
Normalization), divided by its standard deviation after the signal amplitude in electric signal is is subtracted its mean value by above-mentioned standardization processing
When, be denormalized at this time processing can with for by standard can use bioelectrical signals multiplied by the first bioelectrical signals signal width
After the standard deviation of value, in addition the mean value of the signal amplitude of the first bioelectrical signals.
Optionally, a kind of possible implementation of the S502 in the present embodiment may include: by the standard biological electricity
Signal carries out four layers of wavelet decomposition, obtains the corresponding initial wavelet coefficients of the standard biological electric signal.Specifically, computer is set
For by the way that standard biological electric signal is carried out four layers of wavelet decomposition, that is, four layers of wavelet decomposition for being based on " dB4 " are executed, can be obtained
To initial first wavelet coefficient, which shares four layers, such as CD1, CD2, CD3 and CD4, this four layers initial
First wavelet coefficient respectively at four layers of wavelet decomposition each layer of correspondence, and initial first wavelet coefficient be detail coefficients, energy
Enough more details characterize the frequency of interference electric signal;Initial second wavelet coefficient, such as CA4 can also be obtained, it should
Second wavelet coefficient is the 4th layer of corresponding coefficient of four layers of wavelet decomposition, which is approximation coefficient.This
In embodiment, computer equipment by by above-mentioned standard bioelectrical signals carry out four layers of wavelet decomposition, thus obtain four layers just
Begin initial second wavelet coefficient of the first wavelet coefficient and the 4th layer, and further executes soft-threshold de-noising and then carry out four
The problem of layer wavelet transformation reconstruct, can be excessive caused computationally intensive to avoid the number of plies, low efficiency, can also avoid the number of plies very few
The bad problem of caused filter effect, can combine the balance between filter effect and operand.
Optionally, on the basis of above-mentioned each embodiment, above-mentioned S101 can with as shown in fig. 7, comprises:
S601, initial bioelectrical signals segment is obtained.
Specifically, the available initial bioelectrical signals segment of computer equipment, can be by obtaining from database
Take the initial bioelectrical signals segment stored in advance, be also possible to directly to measure by measuring device target object obtain it is initial
Bioelectrical signals segment.Optionally, when which can be one section caused by some position of human body
Between signal, such as EEG signals 10s (Electroencephalograph, abbreviation EEG Raw Data) signal.
S602, the initial bioelectrical signals segment is subjected to pre-filtering, obtains the bioelectrical signals.
Specifically, computer equipment can carry out pre-filtering to above-mentioned initial bioelectrical signals segment, gets rid of baseline and make an uproar
Sound and high frequency myoelectricity noise, to obtain bioelectrical signals.Optionally, above-mentioned pre-filtering can be carried out using filter, such as
Bandpass filter carries out pre-filtering to initial bioelectrical signals segment, obtains filtered bioelectrical signals.When above-mentioned initial life
When object electric signal segment is the segment of EEG signals, passband can be used to have limit for length's unit impulse response for 0.3~50Hz
(Finite Impulse Response, abbreviation FIR) bandpass filter is filtered.
In the present embodiment, computer equipment is by obtaining initial bioelectrical signals segment, and by initial bioelectrical signals piece
Duan Jinhang pre-filtering obtains bioelectrical signals to be processed, so as to get rid of baseline noise and high frequency myoelectricity noise in advance,
So that the noise signal of obtained bioelectrical signals to be processed is reduced, so that subsequent filter effect is more preferably.
For the technical solution of apparent expression the application, this sentences a specific example to the technology of the application
Scheme is illustrated.As shown in Figure 8, comprising:
S701, initial bioelectrical signals segment is obtained.
S702, the initial bioelectrical signals segment is subjected to pre-filtering, obtains bioelectrical signals to be processed.
S703, according to the signal amplitude of the bioelectrical signals, determine in the bioelectrical signals with the presence or absence of described dry
Disturb electric signal.
It is used if there are the interference electric signals in S704A, the bioelectrical signals according to the bioelectrical signals
SG filter method handles the bioelectrical signals, fits interference curve from the bioelectrical signals.Later, it executes
S705.
If the interference electric signal is not present in S704B, the bioelectrical signals, using the bioelectrical signals as can
Use bioelectrical signals.
S705, according to the interference curve, the interference electric signal is filtered out from the bioelectrical signals, it is raw to obtain first
Object electric signal.
S706, first bioelectrical signals are standardized, obtain standard biological electric signal.
S707, the standard biological electric signal is subjected to wavelet decomposition, it is corresponding just obtains the standard biological electric signal
Beginning wavelet coefficient.
S708, soft-threshold de-noising is carried out to the initial wavelet coefficients, obtains available wavelet coefficient.
S709, wavelet transformation reconstruct can be carried out with wavelet coefficient by described in, the standard of obtaining can use bioelectrical signals.
S710, the standard can be carried out to be denormalized processing with bioelectrical signals, obtains described to use bioelectrical signals.
The detailed description of step involved in the present embodiment may refer to previous embodiment, and details are not described herein again.
It should be understood that although each step in the flow chart of Fig. 2-8 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-8
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 9, providing a kind of processing of bioelectric signals device, comprising:
Module 100 is obtained, for obtaining bioelectrical signals to be processed;
Processing module 200 is used for according to the bioelectrical signals, using preset filtering method to the bioelectrical signals
It is handled, obtains the interference electrical signal information carried in the bioelectrical signals, and filter out institute from the bioelectrical signals
The corresponding interference electric signal of interference electrical signal information is stated, available bioelectrical signals are obtained.
In one embodiment, processing module 200 are particularly used in the signal amplitude according to the bioelectrical signals, really
It whether there is the interference electric signal in the fixed bioelectrical signals;When there are the interference electric signals in the bioelectrical signals
When, then it executes described according to the bioelectrical signals, the bioelectrical signals is handled using preset filtering method, are obtained
The step of interference electrical signal information carried into the bioelectrical signals.
In one embodiment, processing module 200 are particularly used in when there is no the interference telecommunications in bioelectrical signals
Number when, then the bioelectrical signals can be used into bioelectrical signals as described in.
In one embodiment, processing module 200 are particularly used in the mark for obtaining the signal amplitude of the bioelectrical signals
It is quasi- poor;When the signal amplitude of the bioelectrical signals is greater than or equal to twice of the standard deviation, it is determined that the bioelectricity
There are the interference electric signals in signal;When the signal amplitude of the bioelectrical signals is less than twice of the standard deviation, then
Determine that there is no the interference electric signals in the bioelectrical signals.
In one embodiment, processing module 200 are particularly used according to the bioelectrical signals, using Sa Weiciji-
Gray SG filter method handles the bioelectrical signals, and the interference curve is fitted from the bioelectrical signals.
In one embodiment, processing module 200 are particularly used according to the interference curve, from the biological telecommunications
The interference electric signal is filtered out in number, obtains the first bioelectrical signals;Using wavelet decomposition method to first bioelectrical signals
It is filtered, obtains described to use bioelectrical signals.
In one embodiment, processing module 200 are particularly used in first bioelectrical signals being standardized place
Reason, obtains standard biological electric signal;The standard biological electric signal is subjected to wavelet decomposition, obtains the standard biological electric signal
Corresponding initial wavelet coefficients;Soft-threshold de-noising is carried out to the initial wavelet coefficients, obtains available wavelet coefficient;It can by described in
Wavelet transformation reconstruct is carried out with wavelet coefficient, the standard of obtaining can use bioelectrical signals;To the standard can with bioelectrical signals into
Row be denormalized processing, obtain described in can use bioelectrical signals.
In one embodiment, processing module 200 are particularly used in and will be greater than the described initial small of preset coefficient threshold
Wave system number is set as 0, and the initial wavelet coefficients for being less than or equal to the coefficient threshold are remained unchanged, and obtains described
Wavelet coefficient can be used.
In one embodiment, processing module 200 are particularly used in the standard biological electric signal carrying out four layers of small echo
It decomposes, obtains the corresponding initial wavelet coefficients of the standard biological electric signal.
In one embodiment, the SG filter method is 41 filter methods of second order.
In one embodiment, module 100 is obtained, is particularly used in and obtains initial bioelectrical signals segment;It will be described first
Eozoon electric signal segment carries out pre-filtering, obtains the bioelectrical signals to be processed.
Specific restriction about processing of bioelectric signals device may refer to above for processing of bioelectric signals method
Restriction, details are not described herein.Modules in above-mentioned processing of bioelectric signals device can be fully or partially through software, hard
Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment,
It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls
Corresponding operation.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory
Computer program, the processor perform the steps of when executing computer program
Obtain bioelectrical signals to be processed;
According to the bioelectrical signals, the bioelectrical signals are handled using preset filtering method, obtain institute
State the interference electrical signal information carried in bioelectrical signals;
The corresponding interference electric signal of the interference electrical signal information is filtered out from the bioelectrical signals, obtains available biology
Electric signal.
In one embodiment, it is also performed the steps of when processor executes computer program
According to the signal amplitude of the bioelectrical signals, determine in the bioelectrical signals with the presence or absence of the interference telecommunications
Number;
If executing described according to the bioelectrical signals there are the interference electric signal in the bioelectrical signals, adopt
The bioelectrical signals are handled with preset filtering method, obtain the interference electric signal carried in the bioelectrical signals
The step of information.
In one embodiment, it is also performed the steps of when processor executes computer program
If the interference electric signal is not present in the bioelectrical signals, the bioelectrical signals can be used as described in
Bioelectrical signals.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain the standard deviation of the signal amplitude of the bioelectrical signals;
If the signal amplitude of the bioelectrical signals is greater than or equal to twice of the standard deviation, it is determined that the bioelectricity
There are the interference electric signals in signal;
If the signal amplitude of the bioelectrical signals is less than twice of the standard deviation, it is determined that in the bioelectrical signals
There is no the interference electric signals.
In one embodiment, the interference electrical signal information includes interference curve, when processor executes computer program
Also perform the steps of
According to the bioelectrical signals, the bioelectrical signals are handled using Sa Weiciji-Gray SG filter method,
The interference curve is fitted from the bioelectrical signals.
In one embodiment, it is also performed the steps of when processor executes computer program
According to the interference curve, the interference electric signal is filtered out from the bioelectrical signals, obtains the first bioelectricity
Signal;
First bioelectrical signals are filtered using wavelet decomposition method, obtain described to use bioelectrical signals.
In one embodiment, it is also performed the steps of when processor executes computer program
First bioelectrical signals are standardized, standard biological electric signal is obtained;
The standard biological electric signal is subjected to wavelet decomposition, obtains the corresponding initial wavelet of the standard biological electric signal
Coefficient;Soft-threshold de-noising is carried out to the initial wavelet coefficients, obtains available wavelet coefficient;
Wavelet transformation reconstruct can be carried out with wavelet coefficient by described in, the standard of obtaining can use bioelectrical signals;
The standard can be carried out to be denormalized processing with bioelectrical signals, obtain described to use bioelectrical signals.
In one embodiment, it is also performed the steps of when processor executes computer program
The initial wavelet coefficients that will be greater than preset coefficient threshold are set as 0, and will be less than or equal to the system
The initial wavelet coefficients of number threshold values remain unchanged, and obtain described to use wavelet coefficient.
In one embodiment, it is also performed the steps of when processor executes computer program
The standard biological electric signal is subjected to four layers of wavelet decomposition, it is corresponding initial to obtain the standard biological electric signal
Wavelet coefficient.
In one embodiment, the SG filter method is 41 filter methods of second order.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain initial bioelectrical signals segment;
The initial bioelectrical signals segment is subjected to pre-filtering, obtains the bioelectrical signals to be processed.
It is and each in the above method it should be understood that processor executes the process of computer program in the embodiment of the present application
The implementation procedure of a step is consistent, and for details, reference can be made to described above.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Obtain bioelectrical signals to be processed;
According to the bioelectrical signals, the bioelectrical signals are handled using preset filtering method, obtain institute
State the interference electrical signal information carried in bioelectrical signals;
The corresponding interference electric signal of the interference electrical signal information is filtered out from the bioelectrical signals, obtains available biology
Electric signal.
In one embodiment, it is also performed the steps of when computer program is executed by processor
According to the signal amplitude of the bioelectrical signals, determine in the bioelectrical signals with the presence or absence of the interference telecommunications
Number;
If executing described according to the bioelectrical signals there are the interference electric signal in the bioelectrical signals, adopt
The bioelectrical signals are handled with preset filtering method, obtain the interference electric signal carried in the bioelectrical signals
The step of information.
In one embodiment, it is also performed the steps of when computer program is executed by processor
If the interference electric signal is not present in the bioelectrical signals, the bioelectrical signals can be used as described in
Bioelectrical signals.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain the standard deviation of the signal amplitude of the bioelectrical signals;
If the signal amplitude of the bioelectrical signals is greater than or equal to twice of the standard deviation, it is determined that the bioelectricity
There are the interference electric signals in signal;
If the signal amplitude of the bioelectrical signals is less than twice of the standard deviation, it is determined that in the bioelectrical signals
There is no the interference electric signals.
In one embodiment, the interference electrical signal information includes interference curve, and computer program is executed by processor
When also perform the steps of
According to the bioelectrical signals, the bioelectrical signals are handled using Sa Weiciji-Gray SG filter method,
The interference curve is fitted from the bioelectrical signals.
In one embodiment, it is also performed the steps of when computer program is executed by processor
According to the interference curve, the interference electric signal is filtered out from the bioelectrical signals, obtains the first bioelectricity
Signal;
First bioelectrical signals are filtered using wavelet decomposition method, obtain described to use bioelectrical signals.
In one embodiment, it is also performed the steps of when computer program is executed by processor
First bioelectrical signals are standardized, standard biological electric signal is obtained;
The standard biological electric signal is subjected to wavelet decomposition, obtains the corresponding initial wavelet of the standard biological electric signal
Coefficient;
Soft-threshold de-noising is carried out to the initial wavelet coefficients, obtains available wavelet coefficient;;
Wavelet transformation reconstruct can be carried out with wavelet coefficient by described in, the standard of obtaining can use bioelectrical signals;
The standard can be carried out to be denormalized processing with bioelectrical signals, obtain described to use bioelectrical signals.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The initial wavelet coefficients that will be greater than preset coefficient threshold are set as 0, and will be less than or equal to the system
The initial wavelet coefficients of number threshold values remain unchanged, and obtain described to use wavelet coefficient.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The standard biological electric signal is subjected to four layers of wavelet decomposition, it is corresponding initial to obtain the standard biological electric signal
Wavelet coefficient.
In one embodiment, the SG filter method is 41 filter methods of second order.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain initial bioelectrical signals segment;
The initial bioelectrical signals segment is subjected to pre-filtering, obtains the bioelectrical signals to be processed.
It is and each in the above method it should be understood that processor executes the process of computer program in the embodiment of the present application
The implementation procedure of a step is consistent, and for details, reference can be made to described above.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.