[Filter Tracking] Based on probability hypothesis density combined with extended Kalman filter PHD-EKF to achieve multi-objective state estimation with matlab code…

?About the author: A Matlab simulation developer who loves scientific research. He cultivates his mind and improves his technology simultaneously.

For code acquisition, paper reproduction and scientific research simulation cooperation, please send a private message.

Personal homepage: Matlab Research Studio

Personal credo: Investigate things to gain knowledge.

For more complete Matlab code and simulation customization content, click

Intelligent optimization algorithm Neural network prediction Radar communication Wireless sensor Power system

Signal processing Image processing Path planning Cellular automaton Drone

Content introduction

In the field of target tracking, multi-target state estimation algorithm is a key technology, which can accurately estimate the status of multiple targets in complex environments. The Extended Kalman Filter (EKF) based on Probabilistic Hypothesis Density (PHD) is a commonly used multi-objective state estimation algorithm. This article will introduce the implementation process of the PHD-EKF algorithm.

First, we need to clarify the background and goals of the problem. In multi-target tracking, our goal is to estimate the state of the target, including position, velocity, acceleration, etc., based on a series of observation data. The goal of the PHD-EKF algorithm is to estimate multiple target states by modeling the probability density of the target.

The process of the PHD-EKF algorithm can be divided into the following steps:

  1. Initialization: First, we need to estimate the initial state of the target. This can be initialized by using some prior knowledge or historical data.
  2. Prediction: In each time step, we first perform a prediction step, which is to predict the new state of the target based on its dynamic model and previous state estimates. This step can be implemented using extended Kalman filtering.
  3. Measurement update: After the prediction step, we need to update the state estimate of the target based on the observation data. This step can be achieved using probabilistic hypothesis density, where we decompose the probability density function of the target into a series of Gaussian distributions.
  4. Target extraction: After the measurement update, we need to extract the estimated state of the target from its probability density function. This can be achieved by calculating the expectation and covariance of the Gaussian distribution.
  5. Data association: After target extraction, we need to associate the observation data with the estimated state of the target to determine the target corresponding to each observation data.
  6. Remove redundant targets: After data association, we may have some redundant target estimates. These redundant targets can be removed through some criteria to improve the accuracy of estimation.
  7. Resampling: Finally, we need to resample the probability density of the target to maintain the consistency of the probability density.

Through the above steps, we can achieve accurate estimation of multiple target states. However, it should be noted that the PHD-EKF algorithm may face computational complexity problems when processing a large number of targets. Therefore, in practical applications, we need to choose appropriate algorithms and optimization methods according to specific situations.

To sum up, the multi-target state estimation algorithm (PHD-EKF) based on probability hypothesis density combined with extended Kalman filter is an effective target tracking method. By modeling and updating the target’s probability density, we can achieve accurate estimates of multiple target states. However, in practical applications, it is necessary to pay attention to the computational complexity of the algorithm and select the appropriate algorithm and optimization method according to the specific situation. I hope that readers of this article can understand the implementation process of the PHD-EKF algorithm and play a role in practical applications.

Part of the code

function X= gen_newstate_fn(model,Xd,V)

%nonlinear state space equation (CT model)

if ~isnumeric(V)
    if strcmp(V,'noise')
        V= model.B*randn(size(model.B,2),size(Xd,2));
    elseif strcmp(V,'noiseless')
        V= zeros(size(model.B,1),size(Xd,2));
    end
end

if isempty(Xd)
    X= [];
else %modify below here for user specified transition model
    X= zeros(size(Xd));
    %-- short hand
    L= size(Xd,2);
    T= model.T;
    omega= Xd(5,:);
    tol= 1e-10;
    %-- pre calcs
    sin_omega_T= sin(omega*T);
    cos_omega_T= cos(omega*T);
    a= T*ones(1,L); b= zeros(1,L);
    idx= find( abs(omega) > tol );
    a(idx)= sin_omega_T(idx)./omega(idx);
    b(idx)= (1-cos_omega_T(idx))./omega(idx);
    %-- x/y pos/vel
    X(1,:)= Xd(1,:) + a.*Xd(2,:)- b.*Xd(4,:);
    X(2,:)= cos_omega_T.*Xd(2,:)- sin_omega_T.*Xd(4,:);
    X(3,:)= b.*Xd(2,:) + Xd(3,:) + a.*Xd(4,:);
    X(4,:)= sin_omega_T.*Xd(2,:) + cos_omega_T.*Xd(4,:);
    %-- turn rate
    X(5,:)= Xd(5,:);
    %-- add scaled noise
    X= X + model.B2*V;
end

Running results

[Filter tracking] Based on probability hypothesis density combined with extended Kalman filter PHD-EKF to achieve multi-objective state estimation attached matlab code_path planning

[Filter tracking] Based on probability hypothesis density combined with extended Kalman filter PHD-EKF to achieve multi-objective state estimation attached matlab code_drone_02

[Filter tracking] Based on probability hypothesis density combined with extended Kalman filter PHD-EKF to achieve multi-objective state estimation attached matlab code_drone_03

References

[1] Qi Bin, Liang Guolong, Zhang Boyu, et al. A multi-target tracking method based on adaptive extended Kalman probability hypothesis density filter: CN202011097165.7[P].CN112328959A[2023-10-30].

[2] Qi Bin, Liang Guolong, Zhang Boyu, et al. A multi-target tracking method based on adaptive extended Kalman probability hypothesis density filter: 202011097165[P][2023-10-30].

Some theories are quoted from online literature. If there is any infringement, please contact the blogger to delete it
Follow me to receive massive matlab e-books and mathematical modeling materials

Private message complete code, paper reproduction, journal cooperation, paper tutoring and scientific research simulation customization

1 Improvement and application of various intelligent optimization algorithms
Production scheduling, economic scheduling, assembly line scheduling, charging optimization, workshop scheduling, departure optimization, reservoir scheduling, three-dimensional packing, logistics location selection, cargo space optimization, bus scheduling optimization, charging pile layout optimization, workshop layout optimization, Container ship stowage optimization, water pump combination optimization, medical resource allocation optimization, facility layout optimization, visible area base station and drone site selection optimization
2 Machine learning and deep learning
Convolutional neural network (CNN), LSTM, support vector machine (SVM), least squares support vector machine (LSSVM), extreme learning machine (ELM), kernel extreme learning machine (KELM), BP, RBF, width Learning, DBN, RF, RBF, DELM, XGBOOST, TCN realize wind power prediction, photovoltaic prediction, battery life prediction, radiation source identification, traffic flow prediction, load prediction, stock price prediction, PM2.5 concentration prediction, battery health status prediction, water body Optical parameter inversion, NLOS signal identification, accurate subway parking prediction, transformer fault diagnosis
2. Image processing
Image recognition, image segmentation, image detection, image hiding, image registration, image splicing, image fusion, image enhancement, image compressed sensing
3 Path planning
Traveling salesman problem (TSP), vehicle routing problem (VRP, MVRP, CVRP, VRPTW, etc.), UAV three-dimensional path planning, UAV collaboration, UAV formation, robot path planning, raster map path planning , multimodal transportation problems, vehicle collaborative UAV path planning, antenna linear array distribution optimization, workshop layout optimization
4 UAV application
UAV path planning, UAV control, UAV formation, UAV collaboration, UAV task allocation, and online optimization of UAV safe communication trajectories
5 Wireless sensor positioning and layout
Sensor deployment optimization, communication protocol optimization, routing optimization, target positioning optimization, Dv-Hop positioning optimization, Leach protocol optimization, WSN coverage optimization, multicast optimization, RSSI positioning optimization
6 Signal processing
Signal recognition, signal encryption, signal denoising, signal enhancement, radar signal processing, signal watermark embedding and extraction, EMG signal, EEG signal, signal timing optimization
7 Power system aspects
Microgrid optimization, reactive power optimization, distribution network reconstruction, energy storage configuration
8 Cellular Automata
Traffic flow, crowd evacuation, virus spread, crystal growth
9 Radar
Kalman filter tracking, track correlation, track fusion