Bullet shooting detection method based on shock wave detection instrument
Through the multi-stage threshold detection and feature matching algorithm based on shock wave detection instrument, the misidentification problem in gun shooting detection is solved, the accuracy and robustness of detection is improved, and the accurate identification and intelligent management of gun shooting events is realized. .
Patent Information
- Application Number
- CN202411376942.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-09-29
- Filing Date
- 2024-09-30
- Publication Date
- 2024-11-29
AI Technical Summary
The existing gun-fire detection technology has errors in misidentifying gun-fire shooting events, especially due to inaccurate signals caused by other interference sources and electromagnetic interference, and lacks intelligent management, which has problems of artificial fraud and security loopholes.
Multi-stage threshold detection and related matching algorithms based on shock wave detection instruments are used to identify gun shooting events through filtering and feature parameter matching, and a historical database is established for signal feature comparison, reducing misidentification and improving detection accuracy.
Effectively suppress noise and interference, improve the reliability and accuracy of gun-bomb firing detection, reduce the rate of misjudgment, enhance the robustness of the system, and realize intelligent management of the entire process of gun-bomb firing.
Smart Images

Figure CN119043079A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of non-sensing detection of bullet shooting, and specifically relates to a bullet shooting detection method based on a shock wave detection instrument. Background Art
[0002] The civilian needs for gun and bullet shooting detection are as follows:
[0003] Shooting training and assessment: In civilian shooting training grounds and assessment institutions, it is crucial to accurately assess the shooting skills of shooters. Traditional shooting training methods often rely on manual observation and scoring, which are highly subjective and inefficient. The bullet shooting detection method based on shock wave detection instruments can provide objective and accurate shooting parameters, such as flight speed, target position, etc., to help coaches and assessors more scientifically evaluate the shooting level of shooters.
[0004] Security monitoring and protection: In the civilian field, such as airports, important facilities and other places that require high security monitoring, gunshot detection technology can be used to build a security warning system. By real-time monitoring of shock wave signals in the area, potential shooting threats can be discovered and warned in a timely manner, improving security protection capabilities.
[0005] Sports competition and entertainment: In shooting sports competitions and entertainment activities, such as shooting competitions and shooting games, the shooting detection method based on shock wave detection can provide accurate shooting results and data analysis, improve the fairness and viewing experience of the competition, and meet the needs of entertainment activities.
[0006] In the on-site test phase of gun and bullet shooting, we still rely on manual management to supervise the use of guns and bullets. The manual work is cumbersome, traceability is difficult, and there is a risk of human fraud. This is the biggest loophole in the gun and bullet management process and can easily cause major safety accidents. Based on this situation, designing a non-sensing detection and identification method for gun and bullet shooting can significantly improve the efficiency and safety of gun and bullet management.
[0007] In the shooting range, the gunfire detection terminal may mistake other irrelevant sound sources as gunfire, resulting in errors in gunfire counting, which in turn creates loopholes in gunfire safety control. In addition, electromagnetic interference generated by large electrical appliances will also affect signal output, further affecting the accuracy of counting. Therefore, it is necessary to design a false identification gunfire detection prevention mechanism for the robustness problem, so as to reduce the impact of other non-gunfire signals and improve the accurate recognition rate of gunfire detection.
[0008] At the same time, it is necessary to design a gun and bullet shooting recognition algorithm to ensure that the number of fired projectiles is automatically counted during gun and bullet testing, and counted one by one without omissions or false reports, eliminating the hidden dangers of human reporting, saving manpower and material resources, and plugging safety management loopholes, providing strong guarantees for the intelligent management of the entire process of guns and bullets.
[0009] At present, there are three main types of non-sensing detection methods for gunfire.
[0010] First: The method based on optical detection is a commonly used non-sensing detection method for bullets. Chinese patent publication number CN102538576 discloses a UV detection bullet shooting statistics system. When a firearm is fired, it instantly emits strong ultraviolet radiation and uses a "day-blind" ultraviolet detector for detection. This method solves the problem of some special environments affecting the detection of bullet shooting, but the propagation of ultraviolet light in the atmosphere is affected by many factors, and the environmental adaptability is slow and needs to be adjusted, otherwise it may affect the accuracy.
[0011] Second: Detecting gun firing based on recoil. Chinese patent publication number CN112529138A discloses a gun firing counting device based on recoil detection, which utilizes a certain degree of vibration and displacement generated by the gun during the recoil process during the shooting activity. The vibration and displacement can be detected and recorded by appropriate sensors, thereby realizing non-sensing detection of gun shooting events. This detection method makes the detection signal clear and has a high signal-to-noise ratio, and can achieve high-precision shooting detection. However, this method has strict requirements on the installation position of the sensor. At the same time, various counting results cannot be summarized, and the degree of intelligence is not high, which is not conducive to promotion and expansion.
[0012] Third: Based on the detection of gunshot sound waves, Chinese patent publication number CN2290019Y discloses a gunshot frequency test device, which uses an acoustic sensor to detect the sound wave signal generated when the bullet is fired. The test sensitivity is high, but the counting accuracy decreases when the gun is fired continuously. In addition, the design requires the test device to be installed in front of the lower part of the muzzle, which is not flexible to use. Summary of the invention
[0013] In order to solve the above technical problems, the present invention proposes a gunshot detection method based on a shock wave detection instrument. The method aims to solve the problem of misidentification of gunshots caused by other interference sources, while using multi-level threshold detection and correlation matching algorithms for gunshot identification, thereby accurately capturing shooting events.
[0014] To achieve the above object, the technical solution adopted by the present invention is:
[0015] A method for detecting bullet shooting based on a shock wave detection instrument comprises the following steps:
[0016] Step 1, collecting the projectile shock wave signal, filtering the projectile shock wave signal, and obtaining a denoised projectile shock wave signal;
[0017] Step 2: setting the amplitude threshold of the projectile shock wave signal as the recognition threshold of the abnormal signal;
[0018] Step 3, set up a dual sampling storage space based on the length of the effective projectile shock wave signal, store the collected signal to be identified in segments, mark the last point in storage space 1 as an abnormal position, and store the subsequently acquired sampling data in sampling storage space 2;
[0019] Step 4, retrieve the peak value in the projectile shock wave signal to identify the N wave and shock wave contained in the projectile shock wave signal, locate the interval of the complete shock wave and N wave signal in the projectile shock wave signal to find the peak and trough of the signal, and then find the starting point and end point of the signal according to the corresponding positions of the peak and trough;
[0020] Step 5: Establish a complete historical database containing characteristic parameters of the projectile shock wave signal as a matching template for the characteristic parameters of the shock wave signal to be identified; compare the waveform characteristics of the shock wave signal to be identified with the waveform characteristics in the database to identify whether the shock wave signal contains the characteristics of the projectile shock wave signal;
[0021] Step 6: Match the standard projectile shock wave signal waveform array with the real-time collected shock wave signal waveform array, and calculate the correlation coefficient between the two. If the coefficient reaches the set empirical threshold, the match is successful.
[0022] Furthermore, in step 1, the projectile shock wave signal is collected and filtered:
[0023] The estimation of the state variables is updated by using the best estimation value of the projectile shock wave signal at the last moment and the prediction variance used to evaluate the prediction value and the actual measurement value at the last moment;
[0024] An estimate of the one-dimensional projectile shock wave signal data that satisfies the minimum mean square error is made, and the optimal estimate of the projectile shock wave signal at the current moment is obtained. The minimum mean square error is used as the best estimation criterion, so that the filter weight coefficient converges quickly to the optimal value, and the projectile shock wave signal collected by the detector is filtered so that its output becomes the denoised projectile shock wave signal.
[0025] Further, the step 2 sets the amplitude threshold of the projectile shock wave signal to:
[0026] Th=C0*S l (k)+C1*(S h (k)-S l (k))
[0027] Among them, S l (k) is the minimum energy parameter of the historical shock wave signal at the kth moment, S h(k) is the energy parameter of the current shock wave signal at the kth moment, C0 is the minimum threshold coefficient when Th reaches the signal threshold trigger condition, and C1 is the threshold coefficient when Th reaches the signal threshold trigger condition;
[0028] The projectile shock wave signal amplitude threshold is obtained through the energy parameter, that is, the minimum average power at the kth moment in history and the average power at the current kth moment are used to replace S l (k) and S h (k) is obtained; where the minimum average power W at the kth moment in history is l (k) and the average power W at the current kth moment h (k) are:
[0029] W l (k)=min(W1(k),W2(k),...W g (k))
[0030] Among them, g represents several samples in the historical shock wave signal, W g (k) is the average power calculated for the g-th shock signal sample;
[0031]
[0032] Among them, X(k) is the shock wave signal sampling value at time k, X 2 (k) is the instantaneous power value of the shock wave signal at time k, i is the number of moments before time k at which the instantaneous power of the signal needs to be substituted into the calculation of the average power, M is the interval between the shock wave signal sampling value at time k and the shock wave signal sampling value to be calculated, and N is the number of moments at which the average power needs to be calculated.
[0033] Furthermore, the step 3 sets a dual sampling storage space based on the length of the effective projectile shock wave signal. Specifically, when the signal sampling is continuously performed, the acquired sampling data is stored in the sampling storage space 1. When the acquired data exceeds the set amplitude threshold at a certain moment, the projectile shock wave signal threshold trigger condition is reached, that is, an abnormal signal is detected to be identified, and the last point in the storage space 1 is marked as an abnormal position, and the subsequently acquired sampling data is stored in the sampling storage space 2.
[0034] Further, the step 4 locates the interval of the complete shock wave and the N-wave signal in the projectile shock wave signal to find the peak and trough of the signal;
[0035] First, the maximum value in the complete shock wave signal is retrieved. The maximum value retrieved for the first time corresponds to the maximum peak value of the waveform generated under different bullet firing speeds.
[0036] Then set a reference threshold Th_NC, skip L data points forward relative to the maximum value position of the first search, and search the signal array for the maximum value for the second time. If the maximum value retrieved this time is greater than the set reference threshold Th_NC, then the shock wave signal contains N-wave signals and shock wave signals, the maximum value retrieved for the first time corresponds to the maximum peak in the shock wave area, the maximum value retrieved for the second time corresponds to the maximum peak in the N-wave area, and the signal is a shock wave signal generated by a supersonic bullet; if skip L data points backward relative to the maximum value position of the first search, and search the signal array for the maximum value for the second time, if the maximum value retrieved this time is greater than If the reference threshold Th_NC is set, the shock wave signal includes N-wave signals and shock wave signals, the maximum value retrieved for the first time corresponds to the maximum peak in the N-wave area, the maximum value retrieved for the second time corresponds to the maximum peak in the shock wave area, and the signal is a shock wave signal generated by a supersonic bullet; if L data points are skipped forward or backward relative to the maximum value position of the first retrieval, and the maximum value retrieved from the signal array is not greater than the set reference threshold Th_NC, then the shock wave signal only includes the shock wave signal, the maximum value retrieved for the first time corresponds to the maximum peak in the shock wave area, and the signal is a shock wave signal generated when the bullet speed does not exceed the speed of sound.
[0037] Furthermore, the process of finding the starting point and the end point of the signal according to the corresponding positions of the peak and the trough in step 4 is as follows:
[0038] In sampling space 2, we search for the peaks and troughs of the N waves or shock waves. First, we search for the trough value h3, and the time point number corresponding to the trough value is n3. Then we search forward from the trough time point number to find the maximum value h2 in the signal, that is, the peak. The time point number corresponding to the peak is n2. In sampling space 2, we can search backward from the time point number corresponding to the trough to find the first sampling point value h4 greater than zero. This sampling point is the end point of the signal, and the time point number corresponding to this sampling point is n4.
[0039] In sampling space 1, search forward from the time point number corresponding to the trigger sampling point value to find the first sampling point value h1 that is less than zero. This sampling point is the starting point of the signal, and the time point number corresponding to this sampling point value is n1.
[0040] Further, the correlation coefficient calculation formula of the two is calculated in step 6 as follows:
[0041]
[0042] where x k With y k Represents the two data arrays that need to calculate the correlation, y k is the standard projectile shock wave waveform array, x kis the signal waveform array collected in real time from the outside world, n is the length of the array, and the correlation coefficient p is calculated by cyclically matching the two arrays. xy .
[0043] Compared with the prior art, the present invention has the following significant advantages:
[0044] (1) By sensing the projectile shock wave, the gunfire event can be captured in time. According to the filtering result of the projectile shock wave signal at the previous moment, the filtering parameters of the projectile shock wave signal at the current moment are automatically adjusted, and the signal is processed in real time. This processing method makes the signal filtering effect smoother and reduces the error. It can not only improve the overall test accuracy of the system, but also effectively suppress the interference of specific sound sources and other signals. At the same time, an effective mechanism for preventing misidentification of gunfire detection is established, and the robustness of the system is enhanced, which means that the system can better cope with possible noise, interference or other misjudgments, thereby improving the reliability of gunfire detection.
[0045] (2) Open up dual storage space to store the real-time collected shock wave signal data, and propose a search method for retrieving the peak location of the shock wave signal in the time domain. The method can quickly retrieve effective feature points and improve the program running speed. In addition, a method for establishing a corresponding historical feature database is proposed. The database is used to store and retrieve corresponding features for comparison and identification of gunfire events, which improves the efficiency of gunfire detection and greatly reduces the misjudgment rate. Finally, a multi-level feature parameter joint comparison method is used. This method combines the comparison of multiple parameters to make the judgment more accurate and reliable, and can effectively identify gunfire events. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart for gun shooting detection;
[0047] Figure 2 Make a block diagram for the process algorithm;
[0048] Figure 3 Traverse the graph for data storage space;
[0049] Figure 4 is the characteristic diagram of shock wave signal;
[0050] Figure 5 This is the schematic diagram of shock wave signal identification;
[0051] Figure 6 This is the shock wave signal identification process. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments:
[0053] Combination Figure 1 and Figure 2 This embodiment provides a non-sensing detection method for gunfire based on shock wave detection, which mainly includes signal acquisition and abnormal marking, feature location and extraction, multi-threshold detection and template matching, etc., which work together to achieve accurate detection of gunfire events. The main steps are as follows:
[0054] Step 1: Collect shock wave signals through the detector and then process the signals. First, the signals need to be filtered according to the detection target to reduce interference from other signals and highlight the projectile shock wave signal characteristics in the signal.
[0055] In fact, when the detector collects shock wave signals, the shock wave signals not only contain external acoustic signals and noise signals, but also contain the projectile shock wave signals collected in real time. In order to improve the matching degree of the projectile shock wave characteristics in the shock wave signal, it is necessary to filter according to the actual situation. Under normal circumstances, Kalman filtering has a better effect. It introduces observation data and uses estimated data for correction to avoid the problem of excessive error in collected data. At the same time, the estimated data is integrated with the observation data, which is equivalent to closed-loop feedback management of the former estimate. It has good real-time performance, small calculation requirements, and the overall processing effect is smoother, and it is not easy to produce errors. Therefore, the Kalman filter is selected as the filter in this design to improve the overall test accuracy of the system.
[0056] To implement software filtering using Kalman, we first need to establish a state space model of one-dimensional projectile shock wave signal data and noise, that is, to update the estimate of the state variable using the optimal estimate of the projectile shock wave signal at the previous moment and the prediction variance used to evaluate the predicted value and the actual measured value at the previous moment, and to find the predicted value and prediction variance of the projectile shock wave signal at the current moment. The calculation formula of the prediction process is as follows:
[0057]
[0058] Among them, X k - is the predicted value of the projectile shock wave signal at the current moment, X k-1 is the optimal estimate of the projectile shock wave signal at the previous moment, A is the state transfer coefficient, U k-1 is the noise value caused by the environment at the previous moment, B is the environmental noise coefficient, P k - is the prediction variance at the current moment, P k-1 is the prediction variance of the previous moment, and Q is the process noise variance.
[0059] Next, based on the prediction equation and prediction variance equation established above, an estimate of the one-dimensional projectile shock wave signal data that satisfies the minimum mean square error is made, that is, the optimal estimated value of the projectile shock wave signal at the current moment is obtained by using the actual measured value of the projectile shock wave signal at the current moment, the predicted value of the projectile shock wave signal, and the Kalman gain, and the optimal estimated variance of the projectile shock wave signal at the current moment is obtained by using the predicted variance at the current moment and the Kalman gain. The update process formula is as follows:
[0060]
[0061] Where K k is the Kalman gain, R is the measurement variance, Z k is the actual measured value of the projectile shock wave signal at the current moment, X k is the optimal estimated value of the projectile shock wave signal at the current moment, P k is the optimal estimated variance at this moment.
[0062] During the detection process, the minimum mean square error is used as the best estimation criterion to make the filter weight coefficient converge quickly to the optimum, and the projectile shock wave signal collected by the detector is filtered so that its output becomes a denoised projectile shock wave signal.
[0063] In addition, when the detection signal is observed to have many high-frequency components through spectrum transformation, the low-pass filter can be used to filter out the high-frequency components while highlighting the characteristics of the projectile shock wave signal, making it easier to identify. When the test environment has strong power frequency interference, high-pass or notch filtering methods are used to filter out low-frequency and power frequency interference. At the same time, consider using RLS algorithm, LMS algorithm, wavelet transform and other methods to filter out signal interference, which is more suitable for use in situations where environmental interference is strong and changeable.
[0064] Most filtering methods have special conditions based on adaptation, which use the results of the filter parameters obtained at the previous moment to automatically adjust the filter parameters at the current moment to adapt to the unknown or time-varying statistical characteristics of the signal and noise, thereby achieving optimal filtering.
[0065] Step 2: Calculate the energy parameters based on the shock wave signal collected by the current environment detector, and adaptively set the projectile shock wave signal amplitude threshold. When the projectile shock wave signal data collected by the detector exceeds the set amplitude threshold at a certain moment, the projectile shock wave signal threshold trigger condition is reached.
[0066] Under different environments, the characteristics and intensity of the projectile shock wave signal may change. The amplitude threshold setting should be dynamically adjusted according to real-time needs and environmental changes. That is, the signal amplitude threshold setting can be optimized and adjusted according to real-time environmental data and historical environmental data, thereby improving the flexibility and adaptability of the system, making the trigger conditions more accurate, avoiding false triggering or missed triggering, and improving the accuracy and reliability of the system.
[0067] The method of the present invention uses the parameter for evaluating the current shock wave signal energy coefficient to adaptively set the projectile shock wave signal amplitude threshold Th, and the formula is:
[0068] Th=C0*S l (k)+C1*(S h (k)-S l (k))
[0069] Among them, S l (k) is the minimum energy parameter of the historical shock wave signal at the kth moment, S h (k) is the energy parameter of the current shock wave signal at the kth moment, and C0 is the energy parameter of the current shock wave signal at the kth moment. l Substitute (k) into the formula to calculate the minimum threshold coefficient when Th reaches the signal threshold trigger condition, C1 is S h (k) and S l Substitute (k) into the formula to calculate the threshold coefficient when Th reaches the signal threshold trigger condition.
[0070] Replace S with a parameter that can assess the overall strength or energy level of the signal. l (k) and S h (k), for example, this method calculates the minimum average power W of the historical shock wave signal at the kth moment l (k), and the average power of the shock wave signal at the current moment W h (k), and put it into the S in the formula of the projectile shock wave signal amplitude threshold Th l (k) and S h (k).
[0071] The minimum average power W of the historical shock wave signal at the kth moment l (k), its calculation formula is:
[0072] W l (k)=min(W1(k),W2(k),...W g (k))
[0073] Among them, g represents several samples in the historical shock wave signal, W g (k) is the average power calculated for the g-th shock wave signal sample, and the average power is given by W hThe calculation formula of (k) is obtained.
[0074] In order to prevent the signal from being in an unstable state at time k, and bringing the unstable signal sampling value into the calculation W(k) to affect the calculation result, therefore, W h (k) is the average power value of the instantaneous power of the signal at several moments before time k, and its calculation formula is:
[0075]
[0076] Among them, X(k) is the shock wave signal sampling value at time k, X 2 (k) is the instantaneous power value of the shock wave signal at time k, i is the number of moments before time k at which the instantaneous power of the signal needs to be substituted into the calculation of the average power, M is the interval between the shock wave signal sampling value at time k and the shock wave signal sampling value to be calculated, and N is the number of moments at which the average power needs to be calculated.
[0077] The average power is used to evaluate the energy level of the shock wave signal in the current place under the steady state. When the average power increases, the amplitude threshold Th will increase accordingly; conversely, when the average power decreases, the amplitude threshold Th will decrease accordingly. Through the two coefficients C0 and C1, the weights of the minimum average power of the historical shock wave signal and the average power of the current shock wave signal for setting the signal amplitude threshold are adjusted. When it is believed that the historical minimum average power of the shock wave signal has a more important impact on the amplitude threshold Th of the projectile shock wave signal, it is necessary to make the C0 size change easier to control the size of Th; on the contrary, if it is believed that the current average power of the shock wave signal has a more important impact on the amplitude threshold Th of the projectile shock wave signal, it is necessary to make the C1 size change easier to control the size of Th. The specific parameter values of the two coefficients are adjusted according to the actual test conditions to ensure that there will be no excessive false alarm detection of gunfire events when the shock wave signal is collected, which will affect the subsequent program processing.
[0078] Step 3: Open up a double sampling storage space based on the length of the effective projectile shock wave signal, store the collected signals to be identified in segments, and mark the abnormal positions of the signals.
[0079] After the collected projectile shock wave signal reaches the trigger threshold condition, when performing signal collection, in addition to extracting the complete projectile shock wave signal, it is also necessary to mark and determine the abnormal position of the signal. First, it is necessary to open up dual sampling storage spaces 1 and 2 based on the length of the effective projectile shock wave signal. When the signal sampling is continued, the acquired sampling data is stored in the sampling storage space 1. When the collected data exceeds the set amplitude threshold at a certain moment, the projectile shock wave signal threshold trigger condition Th is reached, that is, an abnormal signal (i.e., gunshot signal) is detected to be identified, and the last point in the storage space 1 is marked as an abnormal position, and the subsequent acquired sampling data is stored in the sampling storage space 2. There are:
[0080]
[0081] Among them, value is the sampling value, *SRAM1[m], *SRAM2[n] are sampling storage space 1 and sampling storage space 2 respectively, m and n are the sizes of sampling storage space 1 and sampling storage space 2 respectively, and the length of m+n needs to be greater than the length of a complete projectile shock wave sampling data. During normal signal acquisition, the current sampling value value is obtained and the sampling value is stored in *SRAM1[m]. When the projectile shock wave signal data collected by the detector exceeds the set amplitude threshold at a certain moment, the projectile shock wave signal threshold trigger condition is reached, that is, an abnormal signal is detected to be identified, and the subsequent acquired sampling value needs to be stored in *SRAM2[n].
[0082] like Figure 3 As shown, there are 1 to m sequences of data in sampling storage space 1, and 1 to n sequences of data in sampling storage space 2. The abnormal point m is used to divide the data containing the projectile shock wave characteristic waveform. The subsequent search feature quickly locates the projectile shock wave characteristic interval according to the abnormal point. Among them, a part of the data containing the projectile shock wave characteristic waveform with a length of m-n1 is in sampling storage space 1, n1 represents the starting point of the characteristic waveform in the sampling storage space 1, and the other part of the data containing the projectile shock wave characteristic waveform with a length of n4 is in sampling storage space 2, n4 also represents the end point of the characteristic waveform in the sampling storage space 2, n2 represents the position of the peak of the characteristic waveform in the sampling storage space 2, and n3 represents the position of the trough of the characteristic waveform in the sampling storage space 2. The length of the projectile shock wave characteristic waveform data is m-n1+n4 (1≤n1≤m; 1≤n4≤m).
[0083] Step 4: For the location of the projectile shock wave signal characteristics, first retrieve the peak value in the shock wave signal to identify the N-wave and shock wave contained in the projectile shock wave signal. Then, in order to extract the corresponding waveform characteristics, it is necessary to locate the interval of the complete shock wave and N-wave signal in the projectile shock wave signal, first find the peak and trough of the signal, and then determine the starting point and end point of the signal according to the corresponding position.
[0084] By searching for the peaks in the shock wave signal to locate the special waveform interval, it is not only possible to accurately retrieve the characteristic points that can represent the projectile shock wave signal and improve the matching degree, but also to quickly retrieve the characteristic points, thereby increasing the program running speed. In order to find the corresponding features, it is necessary to retrieve the signal waveform, and the retrieval method is mainly designed according to the following two rules: 1. Because the pressure from the head to the tail of the projectile increases first and then decreases when the bullet is fired, the signal change detected by the detector also forms a waveform that first increases and then decreases. 2. Depending on the speed of the bullet, the characteristic waveform of the projectile shock wave signal detected by the detector will also be different, such as Figure 4 As shown in the figure, the projectile shock wave signal waveform will have two different characteristics. If the bullet speed exceeds the speed of sound, an N-wave signal and a shock wave signal will be generated, and the N-wave signal must be ahead of the shock wave signal; if the bullet speed does not exceed the speed of sound, only a shock wave signal will be generated. Therefore. When performing signal feature retrieval, it is first necessary to identify the N-wave area and the shock wave area in the shock wave signal.
[0085] The present invention provides a method for quickly locating the shock wave signal and the N-wave signal in the projectile shock wave signal. The method determines the array interval of the shock wave signal and the N-wave signal in the projectile shock wave by searching the peak value in the shock wave signal.
[0086] like Figure 5 Figure 6 As shown, first, it is necessary to retrieve the maximum value in the complete shock wave signal. The maximum value retrieved for the first time corresponds to the maximum peak value of the waveform generated under different bullet firing speeds (supersonic and non-supersonic). At this time, it is impossible to determine whether the maximum value is the maximum peak in the shock wave area or the maximum peak in the N-wave area. The possibilities covered by the maximum value corresponding to the true waveform peak are: 1. The bullet speed exceeds the speed of sound and the maximum value corresponds to the maximum peak in the shock wave area; 2. The bullet speed exceeds the speed of sound and the maximum value corresponds to the maximum peak in the N-wave area; 3. The bullet speed does not exceed the speed of sound and the shock wave signal only contains the shock wave signal, and the maximum value corresponds to the maximum peak in the shock wave area.
[0087] Next, a reference threshold Th_NC is set, which can also be obtained based on experience. Relative to the maximum value position of the first search, skip L data points forward (L needs to be greater than the effective data length of the N wave or shock wave, which can be obtained based on experience), and search the maximum value of the signal array for the second time. If the maximum value retrieved this time is greater than the set reference threshold Th_NC, it can be concluded that the shock wave signal contains N wave signals and shock wave signals, the maximum value of the first search corresponds to the maximum peak in the shock wave area, the maximum value of the second search corresponds to the maximum peak in the N wave area, and the signal is a shock wave signal generated by a supersonic bullet. Alternatively, relative to the maximum value position of the first search, skip L data points backward, and search the maximum value of the signal array for the second time. If the maximum value retrieved this time is greater than the set reference threshold Th_NC, it can be concluded that the shock wave signal contains N wave signals and shock wave signals, the maximum value of the first search corresponds to the maximum peak in the N wave area, the maximum value of the second search corresponds to the maximum peak in the shock wave area, and the signal is a shock wave signal generated by a supersonic bullet. Furthermore, regardless of skipping L data points forward or backward relative to the maximum value position of the first retrieval, the maximum value retrieved from the signal array is not greater than the set reference threshold Th_NC. It can be concluded that the shock wave signal only contains the shock wave signal, the maximum value retrieved for the first time corresponds to the maximum peak in the shock wave area, and the signal is a shock wave signal generated when the bullet speed does not exceed the speed of sound.
[0088] Finally, the subsequent algorithm uses the conclusions drawn in this step to extract the corresponding N-wave and shock wave signal features in the shock wave signal for identification.
[0089] The process of retrieving the shock wave signal and N-wave signal contained in the projectile shock wave is as follows:
[0090] (1) Retrieve the maximum value in the complete projectile shock wave signal data array and record the number of data points corresponding to it.
[0091] (2) Based on the time axis, according to the current number of data points, skip L data points forward and search the entire projectile shock wave data array again. Since the minimum value of the signal appears after the maximum value, finding the minimum value first can facilitate accurate positioning of the maximum value. After retrieving the minimum value, record the number of data points corresponding to it.
[0092] (3) Based on the time axis, search the array before the number of data points corresponding to the minimum value to find the maximum value.
[0093] (4) Check whether the current array maximum value exceeds the threshold value Th_NC. If so, it is determined that the speed of the bullet in this shooting reaches the speed of sound. Therefore, the collected shock wave signal contains shock wave and N-wave signals. The current maximum value corresponds to the maximum peak value of the N-wave area. The maximum value retrieved in (1) corresponds to the maximum peak value of the shock wave area. Then end this search process. Otherwise, execute (5) below.
[0094] (5) Based on the time axis, according to the current number of data points, skip L data points backward and search the entire array again. Since the minimum value of the signal appears after the maximum value, finding the minimum value first can facilitate accurate positioning of the maximum value. After retrieving the minimum value, record the number of data points corresponding to it. Based on the time axis, search the array before the number of data points corresponding to the minimum value to find the maximum value.
[0095] (6) Check whether the current array maximum value exceeds the threshold value Th_NC. If so, it is determined that the speed of the bullet in this shooting reaches the speed of sound. Therefore, the collected shock wave signal contains shock wave and N-wave signals. The current maximum value corresponds to the maximum peak value of the shock wave area. The maximum value retrieved in (1) corresponds to the maximum peak value of the N-wave area. Then end this search process. Otherwise, execute (7) below.
[0096] (7) It is determined that the speed of the bullet in this shooting does not reach the speed of sound, so the collected shock wave signal only contains the shock wave signal. The maximum value retrieved in (1) corresponds to the maximum peak value of the shock wave area, and this retrieval process ends.
[0097] After determining the peak values of the shock wave region and the N-wave region, in order to extract the corresponding waveform features, it is necessary to determine the intervals of the complete shock wave and N-wave signals. First, find the maximum and minimum values in the signal, i.e., the peaks and troughs. In the sampling stage, most of the data points containing the shock wave signal characteristics are stored in the sampling space 2, such as Figure 3As shown, in sampling space 2, the peak and trough of N waves or shock waves are searched. First, the trough value h3 is searched. The number of time points corresponding to the trough value is n3. Since the shock wave signal has a peak before the trough, it is necessary to search forward to the trough time point number to find the maximum value h2 in the signal, that is, the peak. The number of time points corresponding to this value is n2. Finally, it is necessary to find the starting zero point of the signal. The starting zero point needs to be searched forward from the time point number corresponding to the peak. At the same time, the starting zero point of the signal must be before the trigger sampling point value of the abnormal signal to be identified is detected. Therefore, generally in sampling space 1, the time point number corresponding to the trigger sampling point value can be searched forward to find the first sampling point value h1 less than zero. The time point number corresponding to this sampling point value is n1. In sampling space 2, the time point number corresponding to the trough can be searched backward to find the first sampling point value h4 greater than zero. The time point number corresponding to this sampling point is n4. Regardless of whether the projectile shock wave signal contains both N waves and shock waves, this method can be used to determine the position of the characteristic points and the range of the interval of the previous characteristic waveform in the shock wave signal. Then, based on the conclusion of whether there is a subsequent shock wave or N-wave signal obtained in the previous section, the interval and characteristic points of another characteristic waveform can be quickly located in sampling storage space 1 or sampling storage space 2.
[0098] Step 5: Extract shock wave signal features and compare multiple feature parameters. Here we propose to use technology based on signal processing and data modeling to establish a complete historical database, which needs to contain a large number of shock wave signal feature parameters. In practical applications, extract the signal waveform feature parameters to be identified and compare them with the feature parameters in the database. If the comparison is successful, proceed to the next step of template matching.
[0099] The main idea of this technology is to use the characteristic information in the signal waveform, such as slope, amplitude, etc., to extract and analyze this information, and then establish a historical database based on the obtained characteristics. In practical applications, it is only necessary to compare the waveform characteristics of the signal to be identified with the waveform characteristics in the database. This technology can be used to achieve fast and accurate recognition and classification of signals. At the same time, the historical database established by this technology can be adjusted according to the situation, and can be retrieved at any time for comparison in actual use.
[0100] In order to establish the historical database required by the present invention, it is necessary to determine the characteristic parameters of the projectile shock wave signal. Since two different characteristic waveforms are generated when the bullet is fired, namely the N wave and the shock wave generated when the speed of sound is reached and the speed of sound is not reached respectively. The characteristic parameters of the N wave and the shock wave are very different, so the database needs to include the characteristic parameters of these two waveforms. Specifically include the initial slope of the shock wave, the amplitude of the shock wave signal, the duration of the shock wave, the duration of the peak rise, the duration of the peak to the trough, the distance from the peak to the trough, the slope of the peak to the trough, the angle between the peak to the trough and the time axis, and the area enclosed by the peak to the trough and a zero point, etc. Finally, according to the actual situation, select appropriate parameters from the database as the comparison threshold conditions.
[0101] For example, from step 4, the positions and corresponding parameters of the N waves and shock waves contained in the shock wave signal can be determined, and the above-mentioned descriptive characteristic parameters of the N waves and shock waves in the shock wave signal are extracted and compared with the empirical characteristic parameter thresholds in the expert library. If the corresponding conditions are met, the next step of template matching can be carried out.
[0102] Given the sampling rate f of the system, the number of sampling time points n1, n2, n3, n4 corresponding to each characteristic point of the shock wave signal, and the product of the number of sampling time points and the sampling rate f corresponds to the real time of each characteristic point. The formula for calculating the real time of each characteristic point on the time axis is:
[0103]
[0104] The starting zero point of the shock wave signal is h1, the starting zero time is t1, the peak value of the signal is h2, the corresponding time of the peak value is t2, the trough value of the signal is h3, the corresponding time of the trough value is t3, the end point of the signal is h4, and the corresponding time of the end point of the signal is t4. j is replaced by 1 to 4 values to obtain t1, t2, t3, t4. In addition, h1, h2, h3, h4 can be obtained by step 4. Since the shock wave signal is a non-stationary fast time-varying signal, it rises rapidly in the initial stage and the waveform is steep. The calculated starting slope of the shock wave signal is compared with the set slope threshold, and the detection effect is better.
[0105] The formula for calculating the rising slope of the signal is:
[0106]
[0107] At the same time, multiple thresholds of waveform characteristics that are different from other interference signals can be set to meet the conditions, such as the duration of the shock wave t4-t1, the duration of the peak rise t2-t1, the duration from the peak to the trough t3-t2, etc. According to experience, the characteristics of the signal from the peak to the trough are more obvious, and are quite different from the waveform characteristics of other interference signals. Therefore, two typical characteristic parameters are proposed here again to greatly improve the recognition accuracy.
[0108] Distance from peak to trough:
[0109]
[0110] Slope from peak to trough:
[0111]
[0112] Step 6: Match the standard projectile shock wave signal waveform array with the real-time collected waveform array, and calculate the correlation coefficient between the two. If the coefficient reaches the set empirical threshold, the match is successful.
[0113] The method of measuring the degree of correlation between two vectors in mathematics is the Pearson product moment correlation coefficient (PPMCC), which is obtained by normalizing the covariance ratio of the two variables to the square root of their variance, that is, the product of the covariance divided by the standard deviation. The value range of the Pearson correlation coefficient is [-1,1]. If the calculation result is between 0 and 1, it means that the two signals are positively correlated. The closer to 1, the higher the degree of signal correlation; and if the calculation result is between -1 and 0, it is negatively correlated. If the correlation coefficient is 0, the two signals are considered unrelated. Calculate the correlation between the real-time collected projectile shock wave signal and the pre-set standard projectile shock wave signal. The correlation coefficient calculation formula is as follows:
[0114]
[0115] where x k With y k Represents the two data arrays that need to calculate the correlation, y k is the standard projectile shock wave waveform array, x k is the signal waveform array collected in real time from the outside world, n is the length of the array, and the correlation coefficient p is calculated by cyclically matching the two arrays. xy .
[0116] y k It is a standard projectile shock wave waveform array, that is, the historical database contains a large amount of projectile shock wave waveform data. The projectile shock wave waveform data are calculated in pairs to obtain the correlation coefficient between the two. Finally, there must be a projectile shock wave waveform data with the highest correlation with other projectile shock wave data. The projectile shock wave data is used as the standard projectile shock wave waveform array. Therefore, the standard projectile shock wave has a high correlation with the actual projectile shock wave data array. Therefore, in actual detection, once the correlation coefficient value between the two exceeds the preset threshold, it can be considered that the real-time collected signal waveform has a high degree of match with the standard projectile shock wave projectile shock wave waveform, and the signal is judged to be a projectile shock wave, and this time it is a bullet shooting.
[0117] The above description is only a preferred embodiment of the present invention and does not constitute any other form of limitation to the present invention. Any modification or equivalent change made based on the technical essence of the present invention still falls within the scope of protection required by the present invention.
Claims
1. A method for detecting bullet shooting based on a shock wave detection instrument, characterized in that: The following steps are involved: Step 1, collecting the projectile shock wave signal, filtering the projectile shock wave signal, and obtaining a denoised projectile shock wave signal; Step 2: setting the amplitude threshold of the projectile shock wave signal as the recognition threshold of the abnormal signal; Step 3, set up a dual sampling storage space based on the length of the effective projectile shock wave signal, store the collected signal to be identified in segments, mark the last point in storage space 1 as an abnormal position, and store the subsequently acquired sampling data in sampling storage space 2; Step 4, retrieve the peak value in the projectile shock wave signal to identify the N wave and shock wave contained in the projectile shock wave signal, locate the interval of the complete shock wave and N wave signal in the projectile shock wave signal to find the peak and trough of the signal, and then find the starting point and end point of the signal according to the corresponding positions of the peak and trough; Step 5: Establish a complete historical database containing characteristic parameters of the projectile shock wave signal as a matching template for the characteristic parameters of the shock wave signal to be identified; compare the waveform characteristics of the shock wave signal to be identified with the waveform characteristics in the database to identify whether the shock wave signal contains the characteristics of the projectile shock wave signal; Step 6: Match the standard projectile shock wave signal waveform array with the real-time collected shock wave signal waveform array, and calculate the correlation coefficient between the two. If the coefficient reaches the set empirical threshold, the match is successful.
2. A method for detecting bullet shooting based on a shock wave detection instrument according to claim 1, characterized in that: In the step 1, the projectile shock wave signal is collected and filtered: The estimation of the state variables is updated by using the best estimation value of the projectile shock wave signal at the last moment and the prediction variance used to evaluate the prediction value and the actual measurement value at the last moment; An estimate of the one-dimensional projectile shock wave signal data that satisfies the minimum mean square error is made, and the optimal estimate of the projectile shock wave signal at the current moment is obtained. The minimum mean square error is used as the best estimation criterion, so that the filter weight coefficient converges quickly to the optimal value, and the projectile shock wave signal collected by the detector is filtered so that its output becomes the denoised projectile shock wave signal.
3. The method for detecting bullet shooting based on a shock wave detection instrument according to claim 1, characterized in that: The step 2 sets the amplitude threshold of the projectile shock wave signal to: Th=C0*S l (k)+C1*(S h (k)-S l (k)) Among them, S l (k) is the minimum energy parameter of the historical shock wave signal at the kth moment, S h (k) is the energy parameter of the current shock wave signal at the kth moment, C0 is the minimum threshold coefficient when Th reaches the signal threshold trigger condition, and C1 is the threshold coefficient when Th reaches the signal threshold trigger condition; The projectile shock wave signal amplitude threshold is obtained through the energy parameter, that is, the minimum average power at the kth moment in history and the average power at the current kth moment are used to replace S l (k) and S h (k) is obtained; where the minimum average power W at the kth moment in history is l (k) and the average power W at the current kth moment h (k) are: IN l (k)=min(W1(k),W2(k),...W g (k)) Among them, g represents several samples in the historical shock wave signal, W g (k) is the average power calculated for the g-th shock signal sample; Among them, X(k) is the shock wave signal sampling value at time k, X 2 (k) is the instantaneous power value of the shock wave signal at time k, i is the number of moments before time k at which the instantaneous power of the signal needs to be substituted into the calculation of the average power, M is the interval between the shock wave signal sampling value at time k and the shock wave signal sampling value to be calculated, and N is the number of moments at which the average power needs to be calculated.
4. The method for detecting bullet shooting based on a shock wave detection instrument according to claim 1, characterized in that: The step 3 sets a dual sampling storage space based on the length of the effective projectile shock wave signal. Specifically, when the signal sampling is continuously performed, the acquired sampling data is stored in the sampling storage space 1. When the acquired data exceeds the set amplitude threshold at a certain moment, the projectile shock wave signal threshold trigger condition is reached, that is, an abnormal signal is detected to be identified, and the last point in the storage space 1 is marked as an abnormal position, and the subsequently acquired sampling data is stored in the sampling storage space 2.
5. The method for detecting bullet shooting based on a shock wave detection instrument according to claim 1, characterized in that: The step 4 locates the interval of the complete shock wave and the N-wave signal in the projectile shock wave signal to find the peak and trough of the signal; First, the maximum value in the complete shock wave signal is retrieved. The maximum value retrieved for the first time corresponds to the maximum peak value of the waveform generated under different bullet firing speeds. Then set a reference threshold Th_NC, skip L data points forward relative to the maximum value position of the first search, and search the signal array for the maximum value for the second time. If the maximum value retrieved this time is greater than the set reference threshold Th_NC, then the shock wave signal contains N-wave signals and shock wave signals, the maximum value retrieved for the first time corresponds to the maximum peak in the shock wave area, the maximum value retrieved for the second time corresponds to the maximum peak in the N-wave area, and the signal is a shock wave signal generated by a supersonic bullet; if skip L data points backward relative to the maximum value position of the first search, and search the signal array for the maximum value for the second time, if the maximum value retrieved this time is greater than If the reference threshold Th_NC is set, the shock wave signal includes N-wave signals and shock wave signals, the maximum value retrieved for the first time corresponds to the maximum peak in the N-wave area, the maximum value retrieved for the second time corresponds to the maximum peak in the shock wave area, and the signal is a shock wave signal generated by a supersonic bullet; if L data points are skipped forward or backward relative to the maximum value position of the first retrieval, and the maximum value retrieved from the signal array is not greater than the set reference threshold Th_NC, then the shock wave signal only includes the shock wave signal, the maximum value retrieved for the first time corresponds to the maximum peak in the shock wave area, and the signal is a shock wave signal generated when the bullet speed does not exceed the speed of sound.
6. The method for detecting bullet shooting based on a shock wave detection instrument according to claim 1, characterized in that: The process of finding the starting point and the end point of the signal according to the corresponding positions of the peak and the trough in step 4 is as follows: In sampling space 2, we search for the peaks and troughs of the N waves or shock waves. First, we search for the trough value h3, and the time point number corresponding to the trough value is n3. Then we search forward from the trough time point number to find the maximum value h2 in the signal, that is, the peak. The time point number corresponding to the peak is n2. In sampling space 2, we can search backward from the time point number corresponding to the trough to find the first sampling point value h4 greater than zero. This sampling point is the end point of the signal, and the time point number corresponding to this sampling point is n4. In sampling space 1, search forward from the time point number corresponding to the trigger sampling point value to find the first sampling point value h1 that is less than zero. This sampling point is the starting point of the signal, and the time point number corresponding to this sampling point value is n1.
7. The method for detecting bullet shooting based on a shock wave detection instrument according to claim 1, characterized in that: The calculation formula for calculating the correlation coefficient between the two in step 6 is as follows: where x k With y k Represents the two data arrays that need to calculate the correlation, y k is the standard projectile shock wave waveform array, x k is the signal waveform array collected in real time from the outside world, n is the length of the array, and the correlation coefficient p is calculated by cyclically matching the two arrays. xy .
Citation Information
Patent Citations
Bullet firing counting device based on recoil force detection
CN112529138A
Testing device for firearms firing frequency
CN2290019Y
