The content of the invention
In consideration of it, the embodiment of the present invention is to provide a kind of cranial cavity method for detecting vibration and device, cranial cavity is shaken with realizing
Dynamic detection, improve the degree of accuracy of cranial cavity vibration detection.
First aspect, there is provided a kind of cranial cavity method for detecting vibration, methods described include:
Vibration signal to be detected is obtained, processing is filtered to the vibration signal, filtered vibration signal is entered
Row Fourier transformation, obtain the frequency domain figure picture of the vibration signal;
Obtain maximum energy value and time big energy value in the effective frequency range of cranial cavity vibration in the frequency domain figure picture;
When the maximum energy value and time big energy value meet default cranial cavity vibration condition, the vibration signal is determined
For cranial cavity vibration signal.
Further, the maximum energy value and time big energy obtained in the frequency domain figure picture in the effective frequency range of cranial cavity vibration
Value includes:
Effective frequency range of cranial cavity vibration is obtained from the frequency domain figure picture, the effectively frequency range is 50Hz-450Hz;
Obtain all energy crest values effectively in frequency range;
The maximum energy value and time big energy value in the energy crest value, and the maximum energy are obtained using bubbling method
Value and time frequency values corresponding to big energy value.
Further, the cranial cavity vibration condition includes:
Described big energy value of the maximum energy value more than twice.
Further, the maximum energy value and time big energy value meet that default cranial cavity vibration condition specifically includes:
Judge whether the maximum energy value is less than or equal to the first available energy value and is more than or equal to the second available energy
Value, the first available energy value are more than the second available energy value;
If so, then judging whether the maximum energy value is more than twice of described big energy value;
When the maximum energy value is more than twice of described big energy value, the maximum energy value and time big energy are determined
Value meets default cranial cavity vibration condition.
Further, it is determined that the vibration signal be cranial cavity vibration signal after, methods described also includes:
The maximum energy value is set to the amplitude of the cranial cavity vibration signal, by frequency corresponding to the maximum energy value
Value is set to the vibration frequency of the cranial cavity vibration signal.
Second aspect, there is provided a kind of cranial cavity vibration detection device, described device include:
Conversion module, for obtaining vibration signal to be detected, processing is filtered to the vibration signal, after filtering
Vibration signal carry out Fourier transformation, obtain the frequency domain figure picture of the vibration signal;
Acquisition module, for obtaining maximum energy value and time big energy in the frequency domain figure picture in the effective frequency range of cranial cavity vibration
Value;
Determination module, for when the maximum energy value and time big energy value meet default cranial cavity vibration condition, really
The fixed vibration signal is cranial cavity vibration signal.
Further, the acquisition module is specifically used for:
Effective frequency range of cranial cavity vibration is obtained from the frequency domain figure picture, the effectively frequency range is 50Hz-450Hz;
Obtain all energy crest values effectively in frequency range;
The maximum energy value and time big energy value in the energy crest value, and the maximum energy are obtained using bubbling method
Value and time frequency values corresponding to big energy value.
Further, the cranial cavity vibration condition includes:Described big energy value of the maximum energy value more than twice.
Further, the determination module includes:
First judging unit, the first available energy value and it is more than for judging whether the maximum energy value is less than or equal to
Or it is more than the second available energy value equal to the second available energy value, the first available energy value;
Second judging unit, for when the judged result of the first judging unit is is, judging that the maximum energy value is
No described big energy value for being more than twice, if so, determining that the maximum energy value and time big energy value meet default cranial cavity
Vibration condition.
Further, described device also includes:
Setup module, for the maximum energy value to be set to the amplitude of the cranial cavity vibration signal, by the maximum energy
Frequency values corresponding to value are set to the vibration frequency of the cranial cavity vibration signal.
Compared with prior art, the embodiment of the present invention is based on the characteristics of cranial cavity vibrates and is provided with cranial cavity vibration condition, when obtaining
When getting vibration signal to be detected, processing and Fourier transformation are filtered to the vibration signal and is believed with obtaining the vibration
Number frequency domain figure picture;Then maximum energy value and time big energy in the effective frequency range of cranial cavity vibration in the frequency domain figure picture are obtained
Value;Analyze the maximum energy value and whether time big energy value meets default cranial cavity vibration condition, if satisfied, described in then determining
Vibration signal is cranial cavity vibration signal;It is achieved thereby that the detection of cranial cavity vibration, effectively eliminates nothing caused by air interference
Effect vibration and the interference signal in the case of other, improve the degree of accuracy of cranial cavity vibration detection.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The embodiment of the present invention is based on the characteristics of cranial cavity vibrates and is provided with cranial cavity vibration condition, when getting vibration to be detected
During signal, processing and Fourier transformation are filtered to the vibration signal to obtain the frequency domain figure picture of the vibration signal;So
Maximum energy value and time big energy value in the effective frequency range of cranial cavity vibration in the frequency domain figure picture are obtained afterwards;Analyze the maximum energy
Whether value and time big energy value meet default cranial cavity vibration condition, if satisfied, then determining that the vibration signal shakes for cranial cavity
Dynamic signal;It is achieved thereby that the detection of cranial cavity vibration, effectively eliminates invalid vibration and other situations caused by air interference
Under interference signal, improve the degree of accuracy of cranial cavity vibration detection.The embodiment of the present invention additionally provides corresponding device, divides below
It is not described in detail.
Fig. 1 shows the first implementation process of cranial cavity method for detecting vibration provided in an embodiment of the present invention, for the ease of saying
It is bright, it illustrate only the part related to the embodiment of the present invention.
Refering to Fig. 1, methods described includes:
In step S101, vibration signal to be detected is obtained, processing is filtered to the vibration signal, after filtering
Vibration signal carry out Fourier transformation, obtain the frequency domain figure picture of the vibration signal.
Herein, the vibration signal to be detected is to be worn over the cranium collected with the cranial cavity vibration testing equipment in account
Chamber vibration signal, it is one group of centrifugal pump.The sample frequency of the vibration signal is 3200Hz, and sampling bit rate is 16bit.It is optional
Ground, the embodiment of the present invention determine the situation of cranial cavity vibration with every group of 256 vibration signals.Whenever get 256 it is original when
After numeric field data, processing is filtered to acquired 256 vibration signals in time domain, obtains filtered vibration signal,
Then filtered vibration signal is transformed on frequency domain using Fast Fourier Transform (FFT), obtains the frequency domain figure of the vibration signal
Picture.Wherein, add the operational pattern of imaginary part during conversion using real part, therefore 0 is mended between vibration signal adjacent two-by-two.Through in Fu
After leaf transformation, 256 frequency domain datas, i.e. 256 frequency values and its corresponding energy value are obtained, the frequency between neighboring frequency values
Difference is 3200/256=12.5Hz.Preceding 128 frequency domain datas therein and rear 128 frequency domain datas are symmetrical on frequency values,
Therefore, 128 frequency domain datas before concern of the embodiment of the present invention, are thoroughly deserved by the energy value for asking for this 128 frequency values
To the frequency domain figure picture of the vibration signal, the abscissa of the frequency domain figure picture is full range thresholding, and ordinate is energy value, and this 128
Frequency values corresponding to individual frequency domain data are respectively 0Hz, 12.5Hz, 25Hz, 37.5Hz ..., 1600Hz.
Exemplarily, Fig. 2 give the frequency domain figure provided in an embodiment of the present invention for obtaining vibration signal to be detected as
Implement schematic diagram.Refering to Fig. 2, Fig. 2 (a) represents vibration signal to be detected, i.e. cranial cavity vibration testing equipment collects
Initial data;Then the vibration signal to be detected shown in Fig. 2 (a) is handled using IIR filtrations, obtains IIR filtering time domain letters
Number, as shown in Fig. 2 (b);Fast Fourier Transform (FFT) finally is carried out to IIR filtering time-domain signals, by IIR filtering time-domain signal conversion
For frequency-region signal, as shown in Fig. 2 (c), the width of full frequency-domain of the time-domain signal after Fast Fourier Transform (FFT) is filtered for the IIR
Spend frequency response chart.Wherein, the abscissa in Fig. 2 (a) and Fig. 2 (b) is the index (i.e. sample sequence) of sampled point, and ordinate is
The range value of sampled point;Abscissa in Fig. 2 (c) is frequency values, and ordinate is energy value.
In step s 102, maximum energy value and time big energy in the effective frequency range of cranial cavity vibration in the frequency domain figure picture are obtained
Value.
Alternatively, due to usually containing very high DC component and low frequency component in signal, these components are noise,
In the frequency domain figure picture of the obtained vibration signal, energy value near 0Hz can be very big, can be by before in the frequency domain figure picture
Energy value corresponding to two frequency values (first frequency values and/or second frequency values) is modified to zero, i.e., is 0Hz by frequency values
And/or energy value is modified to zero corresponding to 12.5Hz, to remove the influence of noise.Then cranial cavity in the frequency domain figure picture is obtained to shake
Dynamic effective frequency range.Alternatively, due to the mankind cranium brain vibration frequency domain be confined to 50Hz-450Hz between, effective frequency range
Corresponding frequency range can be 50Hz-450Hz, to remove the influence of other interfering frequencies.Exemplarily, for above-mentioned Fig. 2
(c), energy value corresponding to effective frequency range 50Hz-450Hz is as shown in Figure 4.Obtain all energy crests effectively in frequency range
Value, time big energy (is designated as using the maximum (being designated as maximum energy value) in the bubbling method acquisition energy crest value and second largest value
Value), and the maximum energy value and time frequency values corresponding to big energy value.Wherein, bubbling method is prior art, herein not
Described again.
In step s 103, when the maximum energy value and time big energy value meet default cranial cavity vibration condition, really
The fixed vibration signal is cranial cavity vibration signal.
Herein, the periodicity vibrated according to discrete signal, i.e. certain frequency cycle in time-domain diagram is more, then the frequency exists
Vibrational energy in frequency domain figure is bigger, and the vibration period of interference signal is short, its vibrational energy shown in frequency domain figure with
The vibrational energy of other interference signals is more or less the same;The number of cycles of cranial cavity vibration signal is more, what it showed in frequency domain figure
Vibrational energy is relatively large.Therefore, the cranial cavity vibration condition can be arranged to the institute that the maximum energy value is more than twice
State time big energy value, the differentiation standard as cranial cavity vibration signal He other signals.When the maximum energy value is more than twice
Described big energy value, then judge the vibration signal for cranial cavity vibration signal.
As the present invention a preferred exemplary, Fig. 3 show it is provided in an embodiment of the present invention judgement maximum energy value and
Whether secondary big energy value meets the specific implementation flow of default cranial cavity vibration condition.Refering to Fig. 3, maximum energy value and time big energy
Value meets that default cranial cavity vibration condition includes:
In step S301, judge whether the maximum energy value is less than or equal to the first available energy value and is more than or waits
In the second available energy value.
When the sensor accuracy of cranial cavity vibration testing equipment is very high, air vibration once in a while, can also be examined by the detection device
Measure, so as to introduce air vibration interference.On the other hand, this example by set the first available energy value and the second available energy value come
The maximum energy value is tentatively filtered, influenceed with interference signal caused by excluding accuracy of detection.Herein, described first
Available energy value is more than the second available energy value.Exemplarily, the first available energy value can be 2000, described the
Two available energy values can be any value in 600 to 800.When the maximum energy value is less than the second available energy value,
It is invalid vibration then to judge the vibration signal to be detected, it may be possible to caused by air vibration, terminates current cranial cavity vibration detection;
Or when the maximum energy value is more than the first available energy value, then it is invalid shake to judge the vibration signal to be detected
It is dynamic, it may be possible to caused by user firmly rocks detection device, to terminate current cranial cavity vibration detection.And when the maximum energy value is less than
Or equal to the first available energy value and be more than or equal to the second available energy value, then perform step S302.
In step s 302, judge whether the maximum energy value is more than twice of described big energy value.
If so, then perform step S303;Otherwise, step S304 is performed, it is invalid to judge the vibration signal to be detected
Signal, terminate current cranial cavity vibration detection.
In step S303, determine that the maximum energy value and time big energy value meet default cranial cavity vibration condition.Can
Selection of land, it is determined that the vibration signal be cranial cavity vibration signal after, methods described also includes:
The maximum energy value is set to the amplitude of the cranial cavity vibration signal, by frequency corresponding to the maximum energy value
Value is set to the vibration frequency of the cranial cavity vibration signal.
Fig. 5 shows the second implementation process of cranial cavity method for detecting vibration provided in an embodiment of the present invention.
Refering to Fig. 5, the cranial cavity method for detecting vibration includes:
In step S501, vibration signal to be detected is obtained, processing is filtered to the vibration signal, after filtering
Vibration signal carry out Fourier transformation, obtain the frequency domain figure picture of the vibration signal.
In step S502, maximum energy value and time big energy in the effective frequency range of cranial cavity vibration in the frequency domain figure picture are obtained
Value.
In step S503, when the maximum energy value and time big energy value meet default cranial cavity vibration condition, really
The fixed vibration signal is cranial cavity vibration signal.
In step S504, the maximum energy value is set to the amplitude of the cranial cavity vibration signal, by the maximum energy
Frequency values corresponding to value are set to the vibration frequency of the cranial cavity vibration signal.
In summary, the characteristics of embodiment of the present invention is vibrated based on cranial cavity is provided with cranial cavity vibration condition, is treated when getting
During the vibration signal of detection, processing and Fourier transformation are filtered to the vibration signal to obtain the frequency of the vibration signal
Area image;Then maximum energy value and time big energy value in the effective frequency range of cranial cavity vibration in the frequency domain figure picture are obtained;Work as institute
When stating described big energy value of the maximum energy value more than twice, judge the vibration signal for cranial cavity vibration signal;So as to real
Show the detection of cranial cavity vibration, and effectively eliminate invalid vibration caused by air disturbs and the interference letter in the case of other
Number, improve the degree of accuracy of cranial cavity vibration detection.
Fig. 6 shows the composition structure of cranial cavity vibration detection device provided in an embodiment of the present invention, for convenience of description, only
The part related to the embodiment of the present invention is shown,
In embodiments of the present invention, described device is used to realize that the cranial cavity described in above-mentioned Fig. 1-Fig. 5 any embodiments shakes
Dynamic detection method, can be the unit for being built in the software unit of intelligent terminal, hardware cell or software and hardware combining.The intelligence
Energy terminal includes but is not limited to smart mobile phone, tablet personal computer, computer and other-end.
Refering to Fig. 6, described device includes:
Conversion module 61, for obtaining vibration signal to be detected, processing is filtered to the vibration signal, to filtering
Vibration signal afterwards carries out Fourier transformation, obtains the frequency domain figure picture of the vibration signal.
Acquisition module 62, vibrate maximum energy value in effective frequency range and time big for obtaining cranial cavity in the frequency domain figure picture
Energy value.
Determination module 63, for when the maximum energy value and time big energy value meet default cranial cavity vibration condition,
It is cranial cavity vibration signal to determine the vibration signal.
Further, the acquisition module 62 is specifically used for:
Effective frequency range that cranial cavity vibrates in the frequency domain figure picture is obtained, the effectively frequency range is 50Hz-450Hz;
Obtain all energy crest values effectively in frequency range;
Obtain the maximum energy value and time big energy value in the effective energy crest value using bubbling method, and it is described most
Big energy value and time frequency values corresponding to big energy value.
Alternatively, the cranial cavity vibration condition includes described big energy value of the maximum energy value more than twice.
Alternatively, the determination module 63 includes:
First judging unit 631, for judge the maximum energy value whether be less than or equal to the first available energy value and
More than or equal to the second available energy value, the first available energy value is more than the second available energy value;
Second judging unit 632, for when the judged result of the first judging unit is is, judging the maximum energy value
Whether twice of described big energy value is more than, if so, determining that the maximum energy value and time big energy value meet default cranium
Chamber vibration condition.
Alternatively, described device also includes:
Setup module 64, for the maximum energy value to be set to the amplitude of the cranial cavity vibration signal, by the maximum
Frequency values corresponding to energy value are set to the vibration frequency of the cranial cavity vibration signal.
It should be noted that the device in the embodiment of the present invention can be used for realizing whole skills in above method embodiment
Art scheme, the function of its each functional module can be implemented according to the method in above method embodiment, and it is implemented
Process can refer to the associated description in examples detailed above, and here is omitted.
The embodiment of the present invention is based on the characteristics of cranial cavity vibrates and is provided with cranial cavity vibration condition, when getting vibration to be detected
During signal, processing and Fourier transformation are filtered to the vibration signal to obtain the frequency domain figure picture of the vibration signal;So
Maximum energy value and time big energy value in the effective frequency range of cranial cavity vibration in the frequency domain figure picture are obtained afterwards;When the ceiling capacity
When value is more than twice of described big energy value, judge the vibration signal for cranial cavity vibration signal;It is achieved thereby that cranial cavity shakes
Dynamic detection, and invalid vibration and the interference signal in the case of other caused by air disturbs effectively are eliminated, improve
The degree of accuracy of cranial cavity vibration detection.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the module, unit are drawn
Point, only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can
To combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or beg for
The mutual coupling of opinion or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, device or unit
Or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.