当前位置:网站首页>Consideration on how the covariance of Kalman filter affects the tracking effect of deepsort
Consideration on how the covariance of Kalman filter affects the tracking effect of deepsort
2022-07-27 07:06:00 【Delin enbao】
One 、 Preface
We know deepsort The idea of Kalman filter is used in the implementation of , Used to predict the trajectory of motion , That is, tracking objects in real time .





From the five formulas of Kalman filter , It involves three covariance matrices , Namely P,Q,R.
So how do the values of these three covariances affect the tracking effect ?
Two 、 Covariance matrix analysis of Kalman filter
According to the principle of implementation , covariance P、Q、R It's a two-dimensional matrix .
- Variance is quantity ⼀ The degree of dispersion of the group data , In probability theory, variance is used to measure random variables and their mathematical expectations ( mean value ) Between .
- covariance (Covariance) In probability theory and statistics, it is used to measure the total error of two variables .
So covariance P Used to represent the predicted state vector and the real expected value mean Deviation between . So covariance P The bigger it is , It shows that there is a large deviation between the predicted result and the real value , That is, the reliability of the estimated value is low ; The smaller the covariance , It shows that the predicted result is close to the real value , That is, the reliability of the estimated value is high . stay deepsort In the implementation of , Here's the picture , covariance P How to set the initial value of .
For the covariance matrix Q, This parameter is used to represent the error between the state transition matrix and the actual process , As a matrix for simulating external influences . However, it is often difficult to find an accurate and feasible assignment method for the initial value setting of the matrix . So in order to better solve this problem , I did a series of experiments , it turns out to be the case that , If in the scene of pedestrian movement , Such as roadside pedestrians , Walking in one direction , Then if the speed deviation is kept small , So the covariance matrix Q The value of can be given very small , But if the scene in the hospital , Such as waiting outside the door , Then patients usually move back and forth , Stop now and then , Sometimes accelerate your movement , Then in this scenario , Assign values according to the previous uniform velocity model , The effect not beautiful . We can attribute this non-uniform state to covariance Q To correct .
Because covariance Q It is used to deal with the deviation between reality and reality , Covariance Q Set the internal initial value of to a larger initial value , To a certain extent, it can reduce the occurrence of loss , Set the value as shown in the figure below , The initial covariance of the speed weight is increased 
covariance R Discussion and Q similar .
Last , If you want to reduce the loss of tracking at a low frame rate , The focus is on covariance Q Adjustment . On the whole , Reflected in Kalman gain K On ,P The smaller it is K The smaller it is , In the revised estimate , The proportion of observation value is small , The optimal modified estimate tends to the estimated value , On the contrary, it tends to measure . therefore , Increase the covariance difference between speed weight and speed , Make the speed closer to the measured value .
that , because Q And P It's a linear relationship , that Q Adjustment of , Can affect K Value , Achieve the adjustment effect .
3、 ... and 、 summary
Kalman filter function is still very powerful , Although it is a linear prediction system . stay deepsort In the implementation of , If the tracking effect is not good , To a large extent, it can be solved by adjusting relevant parameters in Kalman filter , Others, such as cascade matching 、iou Matching and other implementation principles , It's still perfect , Because when I try to improve the matching method , The original version is the best to change !
边栏推荐
- CdS quantum dots modified DNA | CDs DNA QDs | near infrared CdS quantum dots coupled DNA specification information
- Express framework
- 程序、进程、线程、协程以及单线程、多线程基本概念
- Shell programming specifications and variables
- DNA research experiment application | cyclodextrin modified nucleic acid cd-rna/dna | cyclodextrin nucleic acid probe / quantum dot nucleic acid probe
- 银行业客户体验管理现状与优化策略分析
- Keras OCR instance test
- Analysis of pix2pix principle
- Mysql database
- Li Hongyi 2020 deep learning and human language processing dlhlp core resolution-p21
猜你喜欢

Future, futuretask and completable future are often asked in interviews

基于SSM图书借阅管理系统

Auto encoder (AE), denoising auto encoder (DAE), variable auto encoder (VAE) differences

银行业客户体验管理现状与优化策略分析

Summary of APP launch in vivo application market

DNA research experiment application | cyclodextrin modified nucleic acid cd-rna/dna | cyclodextrin nucleic acid probe / quantum dot nucleic acid probe

Peptide nucleic acid oligomer containing azobenzene monomer (nh2-tnt4, n-pnas) Qiyue biological customization

EasyCVR设备管理列表页面搜索时,分页数据不显示的问题修复

如何让最小 API 绑定查询字符串中的数组

Introduction to the official functions of easyrecovery14 data recovery software
随机推荐
EasyRecovery14数据恢复软件官方功能简介
【12】 Understand the circuit: from telegraph to gate circuit, how can we "send messages from thousands of miles"?
Shell common commands - memos
DNA偶联PbSe量子点|近红外硒化铅PbSe量子点修饰脱氧核糖核酸DNA|PbSe-DNA QDs
Add virtual network card and configure OP route in win10
O2O电商线上线下一体化模式分析
如何删除或替换EasyPlayer流媒体播放器的loading样式?
Where to connect with user-defined functions leads to slow queries
Dsgan degenerate network
硫化镉CdS量子点修饰脱氧核糖核酸DNA|CdS-DNA QDs|近红外CdS量子点偶联DNA规格信息
Norms of vectors and matrices
Livox Slam (with lio+ closed loop detection optimization)
Pytorch uses data_ Prefetcher improves data reading speed
[unity URP] the code obtains the universalrendererdata of the current URP configuration and dynamically adds the rendererfeature
基于SSM实现的校园新闻发布管理系统
Error in running code: libboost_ filesystem.so.1.58.0: cannot open shared object file: No such file or directory
强网杯2021 pwn 赛题解析——babypwn
NAT (network address translation)
Fix the problem that the paging data is not displayed when searching the easycvr device management list page
肽核酸PNA-多肽PNA-TPP|Glt-Ala-Ala-Pro-Leu-pNA|Suc-Ala-Pro-pNA|Suc-AAPL-pNA|Suc-AAPM-pNA