Summary of the invention
Given this, the embodiment of the present invention is to provide a kind of cranial cavity method for detecting vibration and device, to realize the detection to cranial cavity vibration, improves the accuracy of cranial cavity vibration detection.
First aspect, provide a kind of cranial cavity method for detecting vibration, described method comprises:
Obtain vibration signal to be detected, filtering process is carried out to described vibration signal, Fourier transform is carried out to filtered vibration signal, obtain the frequency domain figure picture of described vibration signal;
Obtain cranial cavity in described frequency domain figure picture and vibrate maximum energy value in effective frequency range and time macro-energy value;
When described maximum energy value and time macro-energy value meet default cranial cavity vibration condition, determine that described vibration signal is cranial cavity vibration signal.
Further, the maximum energy value that in described acquisition described frequency domain figure picture, cranial cavity vibrates in effective frequency range comprises with time macro-energy value:
From described frequency domain figure picture, obtain effective frequency range of cranial cavity vibration, described effective frequency range is 50Hz-450Hz;
Obtain all energy wave peak values in described effective frequency range;
Bubbling method is adopted to obtain maximum energy value in described energy wave peak value and time macro-energy value, and described maximum energy value and frequency values corresponding to time macro-energy value.
Further, described cranial cavity vibration condition comprises:
Described maximum energy value is greater than described macro-energy value of twice.
Further, described maximum energy value and time macro-energy value meet default cranial cavity vibration condition and specifically comprise:
Judge whether described 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, described first available energy value is greater than described second available energy value;
If so, then judge whether described maximum energy value is greater than described macro-energy value of twice;
When described maximum energy value is greater than described macro-energy value of twice, determine that described maximum energy value and time macro-energy value meet default cranial cavity vibration condition.
Further, after determining that described vibration signal is cranial cavity vibration signal, described method also comprises:
Described maximum energy value is set to the amplitude of described cranial cavity vibration signal, frequency values corresponding for described maximum energy value is set to the vibration frequency of described cranial cavity vibration signal.
Second aspect, provide a kind of cranial cavity vibration detection device, described device comprises:
Conversion module, for obtaining vibration signal to be detected, carrying out filtering process to described vibration signal, carrying out Fourier transform to filtered vibration signal, obtains the frequency domain figure picture of described vibration signal;
Acquisition module, vibrates maximum energy value in effective frequency range and time macro-energy value for obtaining cranial cavity in described frequency domain figure picture;
Determination module, for when described maximum energy value and time macro-energy value meet default cranial cavity vibration condition, determines that described vibration signal is cranial cavity vibration signal.
Further, described acquisition module specifically for:
From described frequency domain figure picture, obtain effective frequency range of cranial cavity vibration, described effective frequency range is 50Hz-450Hz;
Obtain all energy wave peak values in described effective frequency range;
Bubbling method is adopted to obtain maximum energy value in described energy wave peak value and time macro-energy value, and described maximum energy value and frequency values corresponding to time macro-energy value.
Further, described cranial cavity vibration condition comprises: described maximum energy value is greater than described macro-energy value of twice.
Further, described determination module comprises:
First judging unit, for judging whether described 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, described first available energy value is greater than described second available energy value;
Second judging unit, for when the judged result of the first judging unit is for being, judges whether described maximum energy value is greater than described macro-energy value of twice, if so, determines that described maximum energy value and time macro-energy value meet default cranial cavity vibration condition.
Further, described device also comprises:
Module being set, for described maximum energy value being set to the amplitude of described cranial cavity vibration signal, frequency values corresponding for described maximum energy value being set to the vibration frequency of described cranial cavity vibration signal.
Compared with prior art, the embodiment of the present invention is provided with cranial cavity vibration condition based on the feature that cranial cavity vibrates, and when getting vibration signal to be detected, carries out filtering process and Fourier transform to obtain the frequency domain figure picture of described vibration signal to described vibration signal; Then obtain cranial cavity in described frequency domain figure picture and vibrate maximum energy value in effective frequency range and time macro-energy value; Analyze described maximum energy value and the whether satisfied cranial cavity vibration condition preset of time macro-energy value, if meet, then determine that described vibration signal is cranial cavity vibration signal; Thus achieve the detection of cranial cavity vibration, effectively eliminate air and disturb the invalid vibration and the undesired signal in other situations that cause, improve the accuracy of cranial cavity vibration detection.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention is provided with cranial cavity vibration condition based on the feature that cranial cavity vibrates, and when getting vibration signal to be detected, carries out filtering process and Fourier transform to obtain the frequency domain figure picture of described vibration signal to described vibration signal; Then obtain cranial cavity in described frequency domain figure picture and vibrate maximum energy value in effective frequency range and time macro-energy value; Analyze described maximum energy value and the whether satisfied cranial cavity vibration condition preset of time macro-energy value, if meet, then determine that described vibration signal is cranial cavity vibration signal; Thus achieve the detection of cranial cavity vibration, effectively eliminate air and disturb the invalid vibration and the undesired signal in other situations that cause, improve the accuracy of cranial cavity vibration detection.The embodiment of the present invention additionally provides corresponding device, is described in detail respectively below.
Fig. 1 shows the first realization flow of the cranial cavity method for detecting vibration that the embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
Consult Fig. 1, described method comprises:
In step S101, obtain vibration signal to be detected, filtering process is carried out to described vibration signal, Fourier transform is carried out to filtered vibration signal, obtain the frequency domain figure picture of described vibration signal.
Here, described vibration signal to be detected is be worn over the cranial cavity vibration signal collected with the cranial cavity vibration testing equipment in account, is one group of discrete value.The sample frequency of described vibration signal is 3200Hz, and sampling bit rate is 16bit.Alternatively, the embodiment of the present invention is often to organize 256 vibration signals to determine the situation that cranial cavity vibrates.After getting 256 original time-domain data, filtering process is carried out to obtained in time domain 256 vibration signals, obtain filtered vibration signal, then adopt Fast Fourier Transform (FFT) to transform on frequency domain by filtered vibration signal, obtain the frequency domain figure picture of described vibration signal.Wherein, adopt real part to add the operational pattern of imaginary part during conversion, therefore between vibration signal adjacent between two, mend 0.After Fourier transform, obtain 256 frequency domain datas, i.e. the energy value of 256 frequency values and correspondence thereof, the frequency-splitting between neighboring frequency values is 3200/256=12.5Hz.Front 128 frequency domain datas wherein and rear 128 frequency domain datas are about frequency values symmetry, therefore, the embodiment of the present invention pays close attention to front 128 frequency domain datas, by asking for the frequency domain figure picture thoroughly deserving described vibration signal of the energy value of these 128 frequency values, the horizontal ordinate of described frequency domain figure picture is full range thresholding, ordinate is energy value, and the frequency values that these 128 frequency domain datas are corresponding is respectively 0Hz, 12.5Hz, 25Hz, 37.5Hz ..., 1600Hz.
Exemplarily, Fig. 2 gives the specific implementation schematic diagram of the frequency domain figure picture of acquisition that the embodiment of the present invention provides vibration signal to be detected.Consult Fig. 2, Fig. 2 (a) represents vibration signal to be detected, i.e. the raw data that collects of cranial cavity vibration testing equipment; Then adopt IIR to filter process to the vibration signal to be detected shown in Fig. 2 (a), obtain IIR filtering time-domain signal, as shown in Fig. 2 (b); Finally Fast Fourier Transform (FFT) is carried out to IIR filtering time-domain signal, IIR filtering time-domain signal is transformed to frequency-region signal, as shown in Fig. 2 (c), be the amplitude-frequency response figure of the full frequency-domain of described IIR filtering time-domain signal after Fast Fourier Transform (FFT).Wherein, the horizontal ordinate 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; Horizontal ordinate in Fig. 2 (c) is frequency values, and ordinate is energy value.
In step s 102, obtain cranial cavity in described frequency domain figure picture and vibrate maximum energy value in effective frequency range and time macro-energy value.
Alternatively, owing 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 described vibration signal obtained, energy value near 0Hz can be very large, the energy value that the first two frequency values (first frequency values and/or second frequency values) in described frequency domain figure picture is corresponding can be modified to zero, be that the energy value that 0Hz and/or 12.5Hz is corresponding is modified to zero by frequency values, to remove the impact of noise.Then effective frequency range of cranial cavity vibration in described frequency domain figure picture is obtained.Alternatively, because the cranium brain vibration frequency domain of the mankind is confined between 50Hz-450Hz, frequency range corresponding to described effective frequency range can be 50Hz-450Hz, to remove the impact of other interfering frequencies.Exemplarily, for above-mentioned Fig. 2 (c), energy value corresponding to effective frequency range 50Hz-450Hz as shown in Figure 4.Obtain all energy wave peak values in described effective frequency range, bubbling method is adopted to obtain maximal value (being designated as maximum energy value) in described energy wave peak value and second largest value (being designated as time macro-energy value), and described maximum energy value and frequency values corresponding to secondary macro-energy value.Wherein, bubbling method is prior art, no longer carries out describing herein.
In step s 103, when described maximum energy value and time macro-energy value meet default cranial cavity vibration condition, determine that described vibration signal is cranial cavity vibration signal.
Here, according to the periodicity of discrete signal vibration, namely certain frequency cycle in time-domain diagram is more, then the vibrational energy of this frequency in frequency domain figure is larger, and the vibration period of undesired signal is short, the vibrational energy of its vibrational energy shown in frequency domain figure and other undesired signals is more or less the same; The number of cycles of cranial cavity vibration signal is many, and its vibrational energy shown in frequency domain figure is relatively large.Therefore, described cranial cavity vibration condition can be set to described the macro-energy value that described maximum energy value is greater than twice, as the differentiation standard of cranial cavity vibration signal with other signals.When described maximum energy value is greater than described macro-energy value of twice, then judge that described vibration signal is as cranial cavity vibration signal.
As a preferred exemplary of the present invention, Fig. 3 shows the specific implementation flow process judging maximum energy value and the whether satisfied cranial cavity vibration condition preset of time macro-energy value that the embodiment of the present invention provides.Consult Fig. 3, maximum energy value and time macro-energy value meet default cranial cavity vibration condition and comprise:
In step S301, judge whether described 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.
When the sensor accuracy of cranial cavity vibration testing equipment is very high, air vibration once in a while, also can be detected by this checkout equipment, thus introduces air vibration interference.To this, this example by arranging the first available energy value and the second available energy value tentatively filters described maximum energy value, to get rid of the undesired signal impact that accuracy of detection causes.Here, described first available energy value is greater than described second available energy value.Exemplarily, described first available energy value can be 2000, and described second available energy value can be the arbitrary value in 600 to 800.When described maximum energy value is less than described second available energy value, then judging that described vibration signal to be detected is as invalid vibration, may be caused by air vibration, terminates current cranial cavity vibration detection; Or when described maximum energy value is greater than described first available energy value, then judges that described vibration signal to be detected is as invalid vibration, may be that user firmly rocks caused by checkout equipment, terminate current cranial cavity vibration detection.And when described 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, then perform step S302.
In step s 302, judge whether described maximum energy value is greater than described macro-energy value of twice.
If so, then step S303 is performed; Otherwise, perform step S304, judge that described vibration signal to be detected is as invalid signals, terminates current cranial cavity vibration detection.
In step S303, determine that described maximum energy value and time macro-energy value meet default cranial cavity vibration condition.Alternatively, after determining that described vibration signal is cranial cavity vibration signal, described method also comprises:
Described maximum energy value is set to the amplitude of described cranial cavity vibration signal, frequency values corresponding for described maximum energy value is set to the vibration frequency of described cranial cavity vibration signal.
Fig. 5 shows the second realization flow of the cranial cavity method for detecting vibration that the embodiment of the present invention provides.
Consult Fig. 5, described cranial cavity method for detecting vibration comprises:
In step S501, obtain vibration signal to be detected, filtering process is carried out to described vibration signal, Fourier transform is carried out to filtered vibration signal, obtain the frequency domain figure picture of described vibration signal.
In step S502, obtain cranial cavity in described frequency domain figure picture and vibrate maximum energy value in effective frequency range and time macro-energy value.
In step S503, when described maximum energy value and time macro-energy value meet default cranial cavity vibration condition, determine that described vibration signal is cranial cavity vibration signal.
In step S504, described maximum energy value is set to the amplitude of described cranial cavity vibration signal, frequency values corresponding for described maximum energy value is set to the vibration frequency of described cranial cavity vibration signal.
In sum, the embodiment of the present invention is provided with cranial cavity vibration condition based on the feature that cranial cavity vibrates, and when getting vibration signal to be detected, carries out filtering process and Fourier transform to obtain the frequency domain figure picture of described vibration signal to described vibration signal; Then obtain cranial cavity in described frequency domain figure picture and vibrate maximum energy value in effective frequency range and time macro-energy value; When described maximum energy value is greater than described macro-energy value of twice, judge that described vibration signal is as cranial cavity vibration signal; Thus achieve the detection of cranial cavity vibration, and effectively eliminate air disturb the invalid vibration that causes and other situations under undesired signal, improve the accuracy of cranial cavity vibration detection.
Fig. 6 shows the composition structure of the cranial cavity vibration detection device that the embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention,
In embodiments of the present invention, described device, for realizing the cranial cavity method for detecting vibration described in above-mentioned Fig. 1-Fig. 5 any embodiment, can be the unit being built in the software unit of intelligent terminal, hardware cell or software and hardware combining.Described intelligent terminal includes but not limited to smart mobile phone, panel computer, computing machine and other-end.
Consult Fig. 6, described device comprises:
Conversion module 61, for obtaining vibration signal to be detected, carrying out filtering process to described vibration signal, carrying out Fourier transform to filtered vibration signal, obtains the frequency domain figure picture of described vibration signal.
Acquisition module 62, vibrates maximum energy value in effective frequency range and time macro-energy value for obtaining cranial cavity in described frequency domain figure picture.
Determination module 63, for when described maximum energy value and time macro-energy value meet default cranial cavity vibration condition, determines that described vibration signal is cranial cavity vibration signal.
Further, described acquisition module 62 specifically for:
Obtain effective frequency range of cranial cavity vibration in described frequency domain figure picture, described effective frequency range is 50Hz-450Hz;
Obtain all energy wave peak values in described effective frequency range;
Bubbling method is adopted to obtain maximum energy value in described effective energy crest value and time macro-energy value, and described maximum energy value and frequency values corresponding to time macro-energy value.
Alternatively, described cranial cavity vibration condition comprises described the macro-energy value that described maximum energy value is greater than twice.
Alternatively, described determination module 63 comprises:
First judging unit 631, for judging whether described 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, described first available energy value is greater than described second available energy value;
Second judging unit 632, for when the judged result of the first judging unit is for being, judges whether described maximum energy value is greater than described macro-energy value of twice, if so, determines that described maximum energy value and time macro-energy value meet default cranial cavity vibration condition.
Alternatively, described device also comprises:
Module 64 being set, for described maximum energy value being set to the amplitude of described cranial cavity vibration signal, frequency values corresponding for described maximum energy value being set to the vibration frequency of described cranial cavity vibration signal.
It should be noted that, device in the embodiment of the present invention may be used for the whole technical schemes realized in said method embodiment, the function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process can refer to the associated description in above-mentioned example, repeats no more herein.
The embodiment of the present invention is provided with cranial cavity vibration condition based on the feature that cranial cavity vibrates, and when getting vibration signal to be detected, carries out filtering process and Fourier transform to obtain the frequency domain figure picture of described vibration signal to described vibration signal; Then obtain cranial cavity in described frequency domain figure picture and vibrate maximum energy value in effective frequency range and time macro-energy value; When described maximum energy value is greater than described macro-energy value of twice, judge that described vibration signal is as cranial cavity vibration signal; Thus achieve the detection of cranial cavity vibration, and effectively eliminate air disturb the invalid vibration that causes and other situations under undesired signal, improve the accuracy of cranial cavity vibration detection.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module, unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.