A laser breakpoint tracking method using particle filter algorithm

The tracking of laser breakpoints through the particle filter algorithm solves the problem of insufficient accuracy and real-time performance in landslide monitoring, achieves accurate and stable monitoring of landslides, and issues an early warning when the displacement exceeds the threshold.

CN112288777BActive Publication Date: 2024-09-13XIAN CHANGDI AEROSPACE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011174850.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-09-13
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

Existing landslide surface deformation monitoring technology has shortcomings in accuracy, real-time performance and stability, especially under meteorological and terrain conditions, making it difficult to achieve efficient real-time warning.

Method used

The particle filter algorithm is used to track laser breakpoints. By establishing a state space model, initializing particles, similarity measurement, weight update and resampling, combined with the linear fusion of color features and edge features, stable and real-time tracking of laser breakpoints is achieved. monitor.

Benefits of technology

It achieves accurate, stable and real-time monitoring of landslides, eliminates noise, improves the smoothness and reliability of the results, and is able to issue early warnings when the breakpoint displacement exceeds the threshold.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112288777B
    Figure CN112288777B
Patent Text Reader

Abstract

The present invention provides a method for tracking laser breakpoints using a particle filter algorithm, including six steps of establishing a state space model, initializing targets and particles, similarity measurement, weight update, breakpoint state determination and resampling judgment; using a dynamic state space model to describe breakpoint monitoring, the dynamic state space model of the time-varying problem includes a state transfer model and an observation model, and determining the dynamic state space model; initializing the breakpoint target and sample particles; updating the particle weights through similarity measurement, and each particle has a different weight; based on the particle filter algorithm, obtaining the particle update weight according to the observation likelihood function of the target area feature; using particles with different weights to correct it, recursively predicting and updating the breakpoint state, and determining the state of the breakpoint. The present invention performs real-time detection of laser breakpoints in a video screen, thereby providing real-time early warning of landslides, and the tracking process is accurate, stable and real-time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention is applied to a laser breakpoint tracking technology for real-time early warning of a slope surface, and specifically relates to a laser breakpoint tracking method using a particle filter algorithm. Background Art

[0002] The commonly used technologies for monitoring landslide surface deformation are precision geodetic measurement, GPS, photography, etc. Precision geodetic measurement is to use high-precision optical and photoelectric measuring instruments, such as precision level, total station, etc., to complete the monitoring task by measuring angles and distances. Its advantage is that it can observe the absolute displacement of the slope body with high accuracy. However, its disadvantage is that it is limited by terrain conditions and meteorological conditions, with large workload, long cycle, and poor continuous observation ability. As a technical means of modern geodetic measurement, GPS can realize three-dimensional geodetic measurement, with the advantages of short observation time, all-weather real-time monitoring, no need for mutual line of sight between monitoring stations, and little influence from the outside world. The GPS landslide monitoring network is mainly composed of benchmark points and monitoring points. However, when selecting the location of the monitoring point, it is necessary to ensure that there are no TV stations, radio stations, mobile communication stations, microwave relay stations, substations, high-voltage lines, and obstacles around the measuring point. The photography method is a method of placing the camera on two different fixed points, and using a stereo coordinate meter to measure the three-dimensional coordinates of the observation points in the slope range while photographing the observation points to form a stereo image. Its advantages are easy operation, time-saving and labor-saving in the field, and the obtained image data is a real-time record of the landslide surface changes. Its disadvantages are low observation accuracy and great influence by climatic conditions (for example, rainy days, nights, etc.).

[0003] The key to real-time early warning of landslides lies in real-time detection of laser breakpoints in the video screen. Tracking the laser breakpoints is the key to the monitoring process.

[0004] It should be noted that this section is intended to provide a background or context to embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section. Summary of the invention

[0005] The present invention aims to provide a method for tracking laser breakpoints using a particle filter algorithm, thereby ensuring the accuracy, stability and real-time performance of the tracking process.

[0006] To achieve the above purpose, the present invention adopts the following technical solutions:

[0007] The laser breakpoint tracking method using a particle filter algorithm comprises the following steps:

[0008] S1: Building a state-space model

[0009] A dynamic state space model is used to describe breakpoint monitoring. The dynamic state space model of the time-varying problem includes a state transfer model and an observation model. The dynamic state space model is determined;

[0010] S2: Initialize the target and particles

[0011] Initialize the breakpoint target and sample particles;

[0012] S3: Similarity measure

[0013] The particle weights are updated through similarity measurement, and each particle has a different weight;

[0014] S4: Weight update

[0015] Based on the particle filter algorithm, the particle update weights are obtained according to the observation likelihood function of the target area characteristics;

[0016] S5: Determination of breakpoint status

[0017] Particles with different weights are used to modify the breakpoints, and the breakpoint status is recursively predicted and updated to determine the breakpoint status;

[0018] S6: Resampling judgment

[0019] The particle filter algorithm is used for resampling, which reduces the particles with smaller weights and increases the particles with larger weights, thereby correcting the posterior probability density.

[0020] Furthermore, the above step S1 includes the following steps:

[0021] S101: State Transition Model

[0022] The continuous video image frames are regarded as a continuous time series at the corresponding moments, and the state of the breakpoints is continuously updated over time, using an autoregressive model or a random walk model;

[0023] 1) Random Walk Model

[0024] The random walk model means that the position of the target at the next moment is unpredictable. The state transfer equation of the random walk model can be defined as:

[0025] x k =x k-1 +v k-1 (1)

[0026] Where: x k is the state of the target at time k; v k-1 is the process noise at time k-1;

[0027] 2) Autoregressive model

[0028] The autoregressive model establishes a regression equation to predict the target state based on the relationship between the current state and the historical state of the system. Its motion model can be defined as follows:

[0029] x k =a1x k-1 +a2x k-2 +…+a n x k-n +v k-1 (2)

[0030] Where: x k is the state of the target at time k; v k-1 is the process noise at time k-1; a1, a2, …, a n is the regression coefficient;

[0031] S102: Observation Model

[0032] An observation model is established using the features of the tracked target, and the predicted position is corrected and updated through the observation model; the features of the tracked target include color features, edge features, and texture features.

[0033] Furthermore, the above step S3 specifically includes:

[0034] Assume that the discrete probability distribution models of the reference target and the candidate target are p u and q u , then the Bhattacharyya coefficient can be calculated by the following formula:

[0035]

[0036] where p u and q u All are normalized values; the value range of ρ is 0-1;

[0037] Bhattacharyya distance calculation formula:

[0038]

[0039] Furthermore, the above step S4 specifically includes:

[0040] The observed likelihood function of the target area color feature is recorded as:

[0041]

[0042] The observed likelihood function of the edge features of the target area is recorded as:

[0043]

[0044] The particle weights based on color and edge features are:

[0045]

[0046] Among them, k represents the frame number, i represents the i-th particle;

[0047] The linear fusion method of color features and edge features is adopted, and the final weight determined by color features and edge features is:

[0048]

[0049] Normalized particle weights:

[0050]

[0051] A multiplicative fusion strategy can also be used, and the particle weights of the fusion color and edge features are:

[0052]

[0053] Then, normalize the weights:

[0054]

[0055] Furthermore, the above step S5 specifically includes:

[0056] To determine the breakpoint state, particles with different weights are used to modify it. Specifically, the following three criteria are used to determine the final state of the breakpoint:

[0057] 1) Maximum a posteriori criterion

[0058] The state represented by the particle with the largest weight among the posterior particles is taken as the final state of the breakpoint, as follows:

[0059]

[0060] 2) Overall weighting criteria

[0061] Consider the contribution of each candidate particle to the state estimation, and take the weighted sum of all particles as the final estimated state of the target;

[0062]

[0063] 3) Local weighted criteria

[0064] Taking the particle with the largest weight as the center, select M particles within a certain radius for weighting. The calculation formula is as follows, where M≤N:

[0065]

[0066] Furthermore, the above step S6 specifically includes:

[0067] The particle posterior probability density at time k is:

[0068]

[0069] The system posterior probability density after resampling is It can be expressed as:

[0070]

[0071] Among them, N i Indicates the particle x in the resampling process i The number of copies is , and after resampling, the weight of each particle is resized to

[0072] The statistical rule of the resampling algorithm is the number of effective particles, which is defined as follows:

[0073]

[0074] Where N is the number of particles, Represents the particle weight in the real state, and the calculation formula is as follows:

[0075]

[0076] in, represents the normalized weight of the particle, Indicates the degradation of particles.

[0077] Beneficial effects of the present invention:

[0078] 1) The present invention discloses a method for tracking laser breakpoints using a particle filter algorithm, which uses a linear fusion of color features and edge features to achieve stable tracking; a local weighted method is used to determine the state of the breakpoint, which not only eliminates noise but also makes the result smoother and more reliable.

[0079] 2) The present invention discloses a method for tracking laser breakpoints using a particle filter algorithm, the ultimate goal of which is to monitor landslides in real time. The particle filter algorithm is used to track laser breakpoints in real time and plot the displacement of the breakpoints. When the displacement of the breakpoints exceeds a preset threshold, a landslide warning is issued.

[0080] 3) The present invention discloses a method for tracking laser breakpoints using a particle filter algorithm, and the tracking process is accurate, stable and real-time; the particle filter algorithm has the advantages of being easy to understand, easy to implement, having few parameters and having strong algorithm robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 It is a flow chart of the present invention

[0082] Figure 2 The tracking principle diagram of the present invention;

[0083] Figure 3 is the dynamic state space model of the present invention;

[0084] Figure 4 It is a schematic diagram of the structure of the video monitoring system of the present invention.

[0085] In the figure: 1-slope; 2-rigid baffle; 3-camera; 4-GSM communication module; 5-red laser transmitter; 6-alarm; 7-computer; 8-server. DETAILED DESCRIPTION

[0086] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the present invention will be more comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The described features or characteristics may be combined in any suitable manner in one or more embodiments.

[0087] like Figure 4 The video monitoring system for landslide using red laser shown in the figure includes multiple rigid baffles 2, a camera 3 for collecting position changes of the rigid baffles 2, a GSM communication module 4 for transmitting monitoring information, a red laser transmitter 5 for emitting red laser, an alarm 6 for warning and reminder, and a computer 7 for receiving and processing data.

[0088] The rigid baffles 2 are distributed on the monitored slope 1; the red laser emitter 5 is arranged opposite to the slope 1, and the red laser emitted by the red laser emitter 5 is facing the rigid baffle 2; the camera 3 is located opposite to the slope 1 and facing the rigid baffle 2; the GSM communication module 4 is connected to the camera 3, and the GSM communication module 4 is connected to the computer 7. The system also includes alarms 6 and 8, the alarm 6 is connected to the computer 7, and the server 8 is connected to the computer 7. The GSM communication 4 and the computer 7 are connected wirelessly.

[0089] When the red laser transmitter 5 irradiates the rigid baffle 2 installed on the slope 1, the rigid baffle 2 will block the laser, resulting in breakpoints in the originally complete red laser line. According to this principle, we respectively arrange rigid baffles 2 of the same size at the points on the slope that need to be monitored, and use red lasers to irradiate the rigid baffles 2 respectively. We use a camera 3 to collect the video of each laser breakpoint on the rigid baffle 2, and send these videos to the computer 7 through the GSM communication module 4 for processing. After receiving the data, the computer 7 uses the particle filter algorithm to detect these laser breakpoints in real time, draw the movement trajectories of these breakpoints, realize real-time tracking of the laser breakpoints, and judge whether to issue a landslide warning based on the displacement size of these laser breakpoints.

[0090] The key to whether this technology can provide real-time warning for landslides lies in the real-time detection of laser breakpoints in the video. The process of tracking laser breakpoints using the particle filter algorithm is roughly divided into six steps: establishing a state space model, initializing targets and particles, similarity measurement, weight update, breakpoint state determination, and resampling judgment.

[0091] a. Establishing a state space model

[0092] The dynamic state space model is used to describe the breakpoint monitoring problem. The dynamic state space model of the time-varying problem is divided into: state transition model and observation model. The state transition model reflects the target state transition mode, and the observation model describes the target characteristics.

[0093] (1) State transition model

[0094] In video-based landslide monitoring, laser breakpoints are the targets to be tracked. Consecutive video image frames can be considered as a continuous time series of corresponding moments. The status of the breakpoints is continuously updated over time.

[0095] The main purpose of the breakpoint tracking in the present invention is to find the exact position of the laser breakpoint in each frame, so the state information of the target breakpoint is mainly the pixel coordinate position of the laser breakpoint in the video frame.

[0096] Breakpoints appear at different positions in each frame. This position state is constantly updated over time. We can regard it as a motion model. In actual scenarios, the set motion model must conform to the breakpoint motion law and be easy for computer calculation and processing. It is difficult to find a perfect model in reality. Most of them are approximated by some commonly used motion models. Commonly used models in the field of visual tracking are: autoregressive model and random walk model.

[0097] 1) Random Walk Model

[0098] The random walk model is also called random walk, which means that the position of the target at the next moment is unpredictable. It is close to Brownian motion and is the ideal mathematical state of Brownian motion. The state transition equation of the random walk model can be defined as:

[0099] x k =x k-1 +v k-1 (1)

[0100] Where: x k is the state of the target at time k; v k-1 is the process noise at time k-1.

[0101] 2) Autoregressive model

[0102] The autoregressive model establishes a regression equation to predict the target state based on the relationship between the current state and the historical state of the system. Its motion model can be defined as follows:

[0103] x k =a1x k-1 +a2x k-2 +…+a n x k-n +v k-1 (2)

[0104] Where: x k is the state of the target at time k; v k-1 is the process noise at time k-1; a1, a2, …, a n is the regression coefficient.

[0105] If the target state transition process is regarded as a random change process, then the parameters in the above formula will satisfy the constraints: a1 = 1, a i =0 (i=2, 3, ..., n). At this time, the autoregressive model is a first-order autoregressive model, and the autoregressive model degenerates into a random walk model. Therefore, the random walk model is actually a special case of the autoregressive model.

[0106] After the state transition model is established, it means that the breakpoint moves according to this motion model, that is, the propagation mode of the particle is determined. We can use this model to predict the position of the breakpoint, and then use the observation model to correct and update the predicted position.

[0107] (2) Observation model

[0108] The role of the observation model: using the observed value to correct the true posterior probability density. The breakpoint tracking problem involved in the present invention mainly refers to: extracting the image features of the area where each particle is located at time k, and then comparing it with the features of the target breakpoint (target template) to obtain a similarity measurement value, that is, the particle weight; then, the predicted state of the breakpoint is updated according to the value. The process of updating the particle weight is the process of similarity measurement. Particles that are similar to the true state of the target breakpoint are assigned larger weights, and particles that deviate greatly from the true state are assigned smaller weights.

[0109] In the field of target tracking, the most common method is to use the features of the tracked target to establish an observation model. The main tracking features include: color features, edge features, texture features, etc.

[0110] The purpose of selecting features is to distinguish them from other things. The more unique the features are, the more advantageous they are in the tracking process. Color features are the most intuitive attributes of moving objects, edge features can clearly distinguish them from the background, and texture features can reflect the details of the object. The selection of features will affect the tracking effect.

[0111] The selection of image features is particularly important for landslide monitoring in the present invention, and the quality of tracking performance is often closely related to the selection of image features. The selection of appropriate features has a great influence on the accuracy, stability and real-time performance of the algorithm.

[0112] 1) Color characteristics

[0113] Color features can most intuitively express the characteristics of the target area, and have the characteristics of good stability and insensitivity to direction. Color features can be expressed using a variety of color space models, and commonly used color spaces include RGB, YCbCr, HSV, HSL, etc. Among them, RGB, YCbCr and other spaces are related to hardware devices, and the values ​​of their corresponding channels can usually be directly obtained from the original image; HSV and HSL color spaces are user-oriented, more in line with human intuitive perception of color, and quantitatively describe three typical color components respectively. It is usually necessary to convert the target color space from device-oriented to user-oriented. In the field of computer video image processing, the commonly used colors are: RGB color space model and HSV color space model.

[0114] The main methods for representing color features include: color histogram, color moment, color aggregation vector, etc. Among them, color histogram has the advantages of simple extraction, rotation invariance, and insensitivity to local occlusion, so color histogram is a commonly used color feature representation method. This article will also use color histogram to represent color features.

[0115] 2) Edge features

[0116] Edge features reflect the contour information of an object, and also include information such as direction and step properties. If shape features are used to build an observation model, then the focus will be on image features such as corners, edges, and contours. Edge features have the excellent property of being insensitive to changes in lighting and color.

[0117] Commonly used algorithms include: corner detection operators, such as Moravec operator, Harris operator, etc.; gradient operators for angular edge features, such as Sobel operator, Laplacian operator, Canny edge detection operator, etc.; contour detection operators, such as Snake contour extraction operator, level set contour extraction operator, etc.

[0118] The present invention uses the Prewitt edge detection operator to extract the edge features of target breakpoints in video images. The Prewitt edge detection operator can not only detect and track the edge of the target well, but also effectively suppress the noise in the video image.

[0119] After extracting edge features, the target observation model is established using the edge direction histogram. Assume that the image target area is Φ(x), and the corresponding pixel point is R(Φ x ), calculate the first-order partial derivatives in the x and y directions of the pixel points respectively, and then get the horizontal gradient value R x And the vertical gradient value R y . Then the expressions of the amplitude f and direction angle of the edge gradient of the pixel are:

[0120]

[0121] The u-th edge direction histogram feature in the target area is expressed as:

[0122]

[0123] b Initialize the target and particles

[0124] After determining the spatial model, we can recursively predict and update the breakpoint state to determine the state of the breakpoint. However, before the recursive operation, we need to initialize the breakpoint target and sample particles.

[0125] Initialize the target breakpoints and sample particles:

[0126] (1) Breakpoint initialization

[0127] First, the area where the target breakpoint is located is selected. In this paper, a rectangular box where the breakpoint is located at the target is selected in the first frame by artificial designation;

[0128] Then extract the features of the breakpoints in the rectangular frame area and record them for use in the similarity measurement process; (the color features and shape features of the breakpoints can be extracted, the color histogram and shape histogram of the target breakpoints can be calculated, and the target model can be established)

[0129] After extracting the breakpoint feature information, you also need to obtain the breakpoint status information. For breakpoint tracking, its status refers to the position coordinates. In order to improve the accuracy of tracking, the length and width information of the breakpoint area is also added as part of its status information.

[0130] (2) Particle initialization

[0131] The state of each particle, as a candidate state of the breakpoint, needs to change continuously over time. The more particles there are, the richer the candidate states of the breakpoints are, and the more accurate the final breakpoint state is.

[0132] For particle initialization, it is only necessary to initialize its state information. In the starting frame, a large number of particles are scattered around the target breakpoint, which is the initialization of the particles.

[0133] The usual practice is to make the scattered particles evenly distributed in the rectangular area where the breakpoint is located, and the scale of each particle is consistent with the scale of the initialized breakpoint. At the initial moment, because each particle is considered equally important, the weight of each particle is initialized to 1 / N, where N is the number of particles.

[0134] c Similarity measure

[0135] The particle weights are updated by similarity measurement.

[0136] Regardless of the type of features used previously, after obtaining the features of the candidate target area, it is necessary to measure the similarity with the original target and establish a corresponding relationship to calculate the probability of this area being the target. For target features in numerical form, the similarity can be measured by Euclidean distance and Manhattan distance; for features described in the form of histograms, the similarity can be measured by: 2 Distance and Bhattacharyya distance are used to measure similarity. Finally, the observation likelihood function can be defined by the target probability being proportional to the similarity of the features.

[0137] Since the present invention adopts the form of histogram to represent features, Bhattacharyya distance is used for similarity measurement.

[0138] Assume that the discrete probability distribution models of the reference target and the candidate target are p u and q u, then the Bhattacharyya coefficient can be calculated by the following formula:

[0139]

[0140] where p u and q u are all normalized values; the value range of ρ is 0~1. The larger the value, the more similar the two probability models are. When ρ=1, it means that the two models match completely.

[0141] Bhattacharyya distance calculation formula:

[0142]

[0143] According to the above formula, the similarity d between the candidate target region histogram model of edge features and the original target region histogram model can be calculated respectively. edge , the similarity d between the candidate target region histogram model of color features and the original target region histogram model color .

[0144] d Weight update

[0145] In the particle filter algorithm, the Bhattacharyya distance cannot be used directly as the particle weight. Instead, the particle update weight must be obtained based on the observed likelihood function of the target area characteristics.

[0146] The observed likelihood function of the target area color feature is recorded as:

[0147]

[0148] The observed likelihood function of the edge features of the target area is recorded as:

[0149]

[0150] The particle weights based on color and edge features are:

[0151]

[0152] Among them, k represents the frame number, and i represents the i-th particle.

[0153] This paper adopts the linear fusion method of color features and edge features to achieve stable tracking. It can be seen that the final weight determined by color features and edge features is:

[0154]

[0155] Normalized particle weights:

[0156]

[0157] In addition to linear fusion, a multiplicative fusion strategy can also be used. The particle weights of the fused color and edge features are:

[0158]

[0159] Then, normalize the weights:

[0160]

[0161] eDetermination of breakpoint status

[0162] After measuring the similarity of each candidate particle based on the prior features, the importance of the particles is no longer equal, and each particle has a different weight. The closer the particle is to the actual state of the breakpoint, the greater the weight, and vice versa. The final determination of the breakpoint state is the process of correcting it using these particles with different weights. There are usually three criteria that can be used to determine the final state of the breakpoint: (1) Maximum a posteriori criterion

[0163] The state represented by the particle with the largest weight among the posterior particles is taken as the final state of the breakpoint, that is, the higher the similarity, the more it can represent the true state of the target.

[0164]

[0165] (2) Overall weighting criteria

[0166] Considering the contribution of each candidate particle to the state estimation, the size of its weight indicates the amount of contribution, and the result of the weighted sum of all particles is taken as the final estimated state of the target.

[0167]

[0168] (3) Local weighting criteria

[0169] Taking the particle with the largest weight as the center, M particles are selected within a certain radius for weighting, which is equivalent to a windowing process. The calculation formula is shown below, where M≤N, and when the equal sign is taken, it is equivalent to overall weighting.

[0170]

[0171] If the particle weights are unimodal, the maximum a posteriori criterion is more appropriate, but is greatly affected by noise; if the particle weights are multimodal, the weights of more particles are larger, and the maximum a posteriori criterion cannot accurately reflect the true state of the breakpoint, and is also significantly affected by noise. Regardless of multimodal or unimodal distribution, the weighted criterion is more appropriate due to its smoothness.

[0172] Therefore, this paper will use a local weighted approach to determine the state of the breakpoint. First, the weighted mean of all particles is calculated, and then the states of particles with weights greater than the mean are weighted summed to obtain the state of the breakpoint. This not only eliminates noise, but also makes the result smoother and more reliable.

[0173] f resampling algorithm

[0174] The resampling of the particle filter algorithm is mainly to reduce the particles with smaller weights and increase the particles with larger weights, thereby correcting the posterior probability density.

[0175] The particle posterior probability density at time k is:

[0176]

[0177] Then, the posterior probability density of the system after resampling is It can be expressed as:

[0178]

[0179] Where N i Indicates the particle x in the resampling process i The number of copies is , and after resampling, the weight of each particle is resized to

[0180] The process of particle resampling is to reselect particles to form a new particle set. If the weight is large, the particles are copied more times, and if the weight is small, the particles are copied less times.

[0181] The resampling algorithm usually includes some judgment criteria. One commonly used statistical rule is the number of effective particles, which is defined as follows:

[0182]

[0183] Where N is the number of particles, The particle weights under real conditions are generally difficult to obtain. Therefore, many literatures use approximate calculation formulas in calculations:

[0184]

[0185] in, Represents the normalized weight of the particle.

[0186] Reflects the degradation of particles. The smaller the value, the more serious the particle degradation. Suppose the threshold of the number of effective particles is N thr , the decision on whether to perform the resampling step can be made based on whether the number of valid particles at time k is less than the threshold.

[0187] The purpose of the present invention is to monitor landslides in real time. The key point is to use particle filter algorithm to track laser breakpoints in real time and draw the displacement of breakpoints. When the displacement of breakpoints exceeds a preset threshold, a landslide warning is issued.

[0188] Combining the above aspects, the simple process of the particle filter algorithm used is as follows:

[0189] Step 1: Initialization (k=0)

[0190] 1) Specify the initial state of the breakpoint, generate corresponding samples, and extract the breakpoint feature subspace.

[0191] 2) Uniformly sample the initial particle set according to the prior distribution of the system state, that is, scatter the particles evenly around the target and assign the same weight 1 / N.

[0192] Step 2: Generate N particles using the state transition model;

[0193] The process of particles propagating according to the state transition model to form a new particle set. All particles represent possible states of the breakpoint. The more particles there are, the more possible states are included. (Generate a new particle set according to the state transition model)

[0194] Step 3: Calculate the corresponding color and edge histogram models based on the observation model, and then perform similarity measurement; then, update the weights of the particles and normalize the weights;

[0195] Specifically, the video image is first converted from RGB color space to HSV space, and a color histogram model is established in the HSV space; then, the video image is converted from HSV color space to grayscale image, and the grayscale image is denoised using a filtering method; then, edge features are extracted using an edge detection algorithm, and an edge histogram model is established; the color and edge histogram models of the target breakpoint area and the candidate target breakpoint area are calculated, and the Bhattacharyya distance formula is used for similarity measurement, and the color similarity d between the target area and the candidate area can be obtained. color , edge similarity d edge ; Finally, the observation likelihood function of the color and edge features of the target area is calculated by the similarity value, and the weights of the color and edge features are calculated respectively, so as to obtain the final weight of the particle and normalize the weight;

[0196] Step 4: Estimate the target breakpoint status;

[0197] Step 5: Target template update;

[0198] Determine whether the target template needs to be updated based on information such as reconstruction error. There is no unified standard for model update. It is generally believed that the appearance of the target changes continuously, so the model is often updated once every frame. However, some people believe that the past appearance of the target is important for tracking. Continuous updates may lose past appearance information and introduce too much noise. Therefore, a combination of long-term and short-term updates is used to solve this problem.

[0199] Step 6: Determine whether to resample;

[0200] According to the effective sample size, determine whether to resample. Usually, the threshold of the effective sample size is set to two-thirds of the number of particles, that is, When the number of valid samples is less than N thr If , resampling is performed; otherwise, no resampling is performed and the process goes to step 7.

[0201] Step 7: Determine whether there is a next frame? If yes, then re-enter step 2 to loop according to the status of these particles; if not, exit.

[0202] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the appended claims.

Claims

1. A method for tracking laser breakpoints using a particle filter algorithm, characterized in that: The following steps are involved: S1: Building a state-space model A dynamic state space model is used to describe breakpoint monitoring. The dynamic state space model of the time-varying problem includes a state transfer model and an observation model. The dynamic state space model is determined; The step S1 comprises the following steps: S101: State Transition Model The continuous video image frames are regarded as a continuous time series at the corresponding moments, and the state of the breakpoints is continuously updated over time, using an autoregressive model or a random walk model; 1) Random Walk Model The random walk model means that the position of the target at the next moment is unpredictable. The state transfer equation of the random walk model can be defined as: x k =x k-1 +v k-1 (1) Where: x k is the state of the target at time k; v k-1 is the process noise at time k-1; 2) Autoregressive model The autoregressive model establishes a regression equation to predict the target state based on the relationship between the current state and the historical state of the system. Its motion model can be defined as follows: x k =a1x k-1 +a2x k-2 +…+a n x k-m +v k-1 (2) Where: x k is the state of the target at time k; v k-1 is the process noise at time k-1; a1, a2, ..., a n is the regression coefficient; S102: Observation Model An observation model is established using the features of the tracking target, and the predicted position is corrected and updated through the observation model; the features of the tracking target include color features, edge features, and texture features; S2: Initialize the target and particles Initialize the breakpoint target and sample particles; S3: Similarity measure The particle weights are updated through similarity measurement, and each particle has a different weight; The step S3 specifically comprises: Assume that the discrete probability distribution models of the reference target and the candidate target are p u and q u , then the Bhattacharyya coefficient can be calculated by the following formula: where p u and q u All are normalized values; the value range of ρ is 0-1; Bhattacharyya distance calculation formula: S4: Weight update Based on the particle filter algorithm, the particle update weights are obtained according to the observation likelihood function of the target area characteristics; The step S4 specifically comprises: The observed likelihood function of the target area color feature is recorded as: The observed likelihood function of the edge features of the target area is recorded as: The particle weights based on color and edge features are: Among them, k represents the frame number, i represents the i-th particle; The linear fusion method of color features and edge features is adopted, and the final weight determined by color features and edge features is: Normalized particle weights: A multiplicative fusion strategy can also be used, and the particle weights of the fusion color and edge features are: Then, normalize the weights: S5: Determination of breakpoint status Particles with different weights are used to modify the breakpoints, and the breakpoint status is recursively predicted and updated to determine the breakpoint status; The step S5 specifically comprises: To determine the breakpoint state, particles with different weights are used to modify it. Specifically, the following three criteria are used to determine the final state of the breakpoint: 1) Maximum a posteriori criterion The state represented by the particle with the largest weight among the posterior particles is taken as the final state of the breakpoint, as follows: 2) Overall weighting criteria Consider the contribution of each candidate particle to the state estimation, and take the weighted sum of all particles as the final estimated state of the target; 3) Local weighted criteria Taking the particle with the largest weight as the center, select M particles within a certain radius for weighting. The calculation formula is as follows, where M≤N: S6: Resampling judgment The particle filter algorithm is used for resampling, which reduces the particles with smaller weights and increases the particles with larger weights, thereby correcting the posterior probability density.

2. The method for tracking laser breakpoints using a particle filter algorithm according to claim 1, characterized in that: The step S6 specifically comprises: The particle posterior probability density at time k is: The system posterior probability density after resampling is It can be expressed as: Among them, N i Indicates the particle x in the resampling process i The number of copies is , and after resampling, the weight of each particle is resized to The statistical rule of the resampling algorithm is the number of effective particles, which is defined as follows: Where N is the number of particles, Represents the particle weight in the real state, and the calculation formula is as follows: in, represents the normalized weight of the particle, Indicates the degradation of particles.