A kind of effective vibration data intercept method counted based on wave character
Technical field
The invention belongs to effectively vibration data intercepts technical field, more particularly to a kind of counted based on wave character
Effective vibration data intercept method.
Background technology
MZ optical fiber perimeter intrusion detections instrument is based on Mach-Zehnder principle of interferences, is shaken using the optical fiber cable detection external world
Illegal invasion is moved and differentiates, electromagnetism interference is strong, be capable of achieving the long range real-time monitoring to the caused vibration of circumference invasion and fixed
Position.Used as the key technology of perimeter security system, the real-time and precise positioning of invasion is the main research of perimeter detection early warning system
One of direction.And in actual applications, signal Real-time Collection enters system, if all carried out to all input signals a series of
Computing, system cannot necessarily meet the demand of real-time;Meanwhile, garbage signal is incorporated in the middle of computing, by the accurate of system
Degree produces deleterious effect.Therefore it is necessary to detect to the vibration fragment in input signal, effectively vibration letter is only processed
Number, so as to mitigate pressure of the system on time complexity, the real-time of strengthening system improves the positioning precision of system.It is existing
Vibration signal intercept algorithm mainly using short-time energy method and short-time zero-crossing rate method, both algorithms all have algorithm and answer
Miscellaneous, operation efficiency is low, and real-time is not high and is vulnerable to the interference of noise, the defect such as reliability is not strong, it is difficult to meet MZ optical fiber week
Real-time monitoring and high reliability of boundary's intrusion detection instrument etc. are required.
Therefore, prior art existing defects, need to improve.
The content of the invention
The technical problem to be solved is for the deficiencies in the prior art, there is provided a kind of to be counted based on wave character
Effective vibration data intercept method.
Technical scheme is as follows:
A kind of effective vibration data intercept method counted based on wave character, wherein, comprise the following steps:
Step 101:Obtain replicate data DC [N] of original vibration data D [N];
Step 102:Analysis DC [N], calculates the Wave crest and wave trough in DC [N];
Step 103:Will be all in DC [N] neither the value of the crest again point of non-trough is set to 0;
Step 104:The value of point of all Wave crest and wave trough point absolute values in DC less than filtering threshold TW is set to into 0;
Step 105:It is M continuous fragment by DC point, the data length of each fragment is L=N/M;
Step 106:DC [1] is calculated to having an absolute value in DC [M] each fragment and DCS [1]~DCS [M];
Step 107:Find maximum DCSMAX in DCS [1]~DCS [M];
Step 108:Whether DCSMAX is judged more than peak threshold TM, if DCSMAX is not less than TM, into step
109, otherwise into step 113;
Step 109:Calculate the crest location PS of left side half and the crest location PE of right side half of DCS [1]~DCS [M];
Step 110:Judge that PD=PE-PS, whether not less than data length threshold value TL, if PD is not less than TL, enters step
Rapid 111, otherwise into step 113;
Step 111:D [(PS-1) * L]~D [PE*L] is taken as effective vibration data;
Step 112:Submit effective vibration data to, go to step 114;
Step 113:Without effective vibration data, step 114 is gone to;
Step 114:Calculating terminates.
The described effective vibration data intercept method counted based on wave character, wherein in the step 101:It is original to shake
Dynamic data D [N] length N is 2 integral number power, if integral number power of the D data lengths less than 2, using the polishing of data 0.
The described effective vibration data intercept method counted based on wave character, wherein, in the step 102, calculate
During DC [N] medium wave peak trough, the continuous data more than 0 are just considered wave crest portions in one piece of data, and its maximum is this hop count
According to crest;The continuous data less than 0 are just considered wave trough portion in one piece of data, and its minimum of a value is the trough of this segment data.
The described effective vibration data intercept method counted based on wave character, wherein, in the step 105, by DC
It is divided into M continuous fragment, the data length of each fragment is L=N/M, and N, M are 2 integral number power.
The described effective vibration data intercept method counted based on wave character, wherein, the data of each fragment
Length is L=N/M, the value of M be less than N 2 integral number power, representative value is 32,64,128 or 256.
A kind of described effective vibration data intercept method counted based on wave character, wherein, in the step 106,
The value of i-th element DCS [i] (1≤i < M) should be in DCS [1]~DCS [M]
A kind of described effective vibration data intercept method counted based on wave character, wherein, in the step 109,
The finding method of half crest location PS positions of left side is as follows:Centered on the PDCSMAX of DCSMAX positions, DCS is successively read
The value of [PDCSMAX-1]~DCS [1], first value less than DCSMAX/2 is then PSL, PS=PSL+1;In the step 109
The finding method of the crest location PE of right side half of DCS is as follows:Centered on the PDCSMAX of DCSMAX positions, DCS is successively read
The value of [PDCSMAX+1]~DCS [M], first value less than DCSMAX/2 is then PER, PE=PER+1.
Using such scheme, based on the wave character of vibration signal, carried out by the wave character to gathered data
Statistics, realizes filtering and intercepting to vibration signal to noise peak, effectively avoids the interference of garbage signal, reduces fortune
The rate of false alarm of number of times and system is calculated, algorithm operation quantity is little, real-time is high, reliability is high, false alarm rate is low.
Description of the drawings
Fig. 1 is the structural representation of the present invention.
Specific embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As shown in figure 1, the present invention provides a kind of effective vibration data intercept method counted based on wave character, wherein,
Comprise the following steps:
Step 101:Obtain replicate data DC [N] of original vibration data D [N];
Step 102:Analysis DC [N], calculates the Wave crest and wave trough in DC [N];
Step 103:Will be all in DC [N] neither the value of the crest again point of non-trough is set to 0;
Step 104:The value of point of all Wave crest and wave trough point absolute values in DC less than filtering threshold TW is set to into 0;
Step 105:It is M continuous fragment by DC point, the data length of each fragment is L=N/M;
Step 106:DC [1] is calculated to having an absolute value in DC [M] each fragment and DCS [1]~DCS [M];
Step 107:Find maximum DCSMAX in DCS [1]~DCS [M];
Step 108:Whether DCSMAX is judged more than peak threshold TM, if DCSMAX is not less than TM, into step
109, otherwise into step 113;
Step 109:Calculate the crest location PS of left side half and the crest location PE of right side half of DCS [1]~DCS [M];
Step 110:Judge that PD=PE-PS, whether not less than data length threshold value TL, if PD is not less than TL, enters step
Rapid 111, otherwise into step 113;
Step 111:D [(PS-1) * L]~D [PE*L] is taken as effective vibration data;
Step 112:Submit effective vibration data to, go to step 114;
Step 113:Without effective vibration data, step 114 is gone to;
Step 114:Calculating terminates.
In the step 101:Original vibration data D [N] length N is 2 integral number power, if D data lengths are less than 2
Integral number power, using the polishing of data 0.
In the step 102, when calculating DC [N] medium wave peak trough, the continuous data more than 0 are just considered in one piece of data
Wave crest portions, its maximum is the crest of this segment data;The continuous data less than 0 are just considered wave trough portion in one piece of data,
Its minimum of a value is the trough of this segment data.
It is M continuous fragment by DC point in the step 105, the data length of each fragment is L=N/M, and N, M are 2
Integral number power.
The data length of each fragment is L=N/M, the value of M be less than N 2 integral number power, representative value is 32,
64th, 128 or 256.
In the step 106, the value of i-th element DCS [i] (1≤i < M) should be in DCS [1]~DCS [M]
In the step 109, the finding method of the crest location PS positions of left side half is as follows:With DCSMAX positions
Centered on PDCSMAX, the value of DCS [PDCSMAX-1]~DCS [1] is successively read, first value less than DCSMAX/2 is then
PSL, PS=PSL+1;The finding method of the crest location PE of right side half of DCS is as follows in the step 109:It is in place with DCSMAX institutes
Centered on putting PDCSMAX, the value of DCS [PDCSMAX+1]~DCS [M] is successively read, first value less than DCSMAX/2 is then
PER, PE=PER+1.
Using technical scheme, based on the wave character of vibration signal, by the waveform to gathered data
Feature is counted, and realizes filtering and intercepting to vibration signal to noise peak, effectively avoids the interference of garbage signal,
The rate of false alarm of operation times and system is reduced, algorithm operation quantity is little, real-time is high, reliability is high, false alarm rate is low.
It should be appreciated that for those of ordinary skills, can according to the above description be improved or be converted,
And all these modifications and variations should all belong to the protection domain of claims of the present invention.