Lixuan Zhang, Jun Yu Li, Shuheng Zhang, Ziwen Wang
{"title":"An Improved Bayesian Loss Function for Crowd Counting","authors":"Lixuan Zhang, Jun Yu Li, Shuheng Zhang, Ziwen Wang","doi":"10.1109/ICCSI55536.2022.9970647","DOIUrl":null,"url":null,"abstract":"The annotations of all the crowd counting datasets so far are sparse binary matrices, so they cannot be used to supervise training directly. The mainstream crowd counting algorithm uses a Gaussian function to smooth each head label point, and then train their model by using it as “ground truth” density map. However, such “ground-truth” density maps are not perfect due to heavy occlusion, scale variation, background interference, etc. In this paper, we propose an improved BayesianLoss for the problems existing in the current crowd counting loss function. First of all, average distance to k-nearest neighbors is use to confirm the size of Gaussian likelihood estimation kernel for each labeled point to better distinguish the boundaries between crowds. Secondly, a new background likelihood estimation method is defined to better suppress the posterior probability of the edge background during training. In the evaluation of the mean absolute error metric, our method achieves state-of-the-art results on ShanghaiTech, UCF-CC-50and NWPU datasets. And on the largest dataset NWPU, our method outperforms the best loss-function-improving method DM-Count. At the same time, our loss function combined with other crowd counting models, such as MCNN, CAN, M-SFANet and TransCrowd, achieves better results than the original model.","PeriodicalId":421514,"journal":{"name":"2022 International Conference on Cyber-Physical Social Intelligence (ICCSI)","volume":"94 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Cyber-Physical Social Intelligence (ICCSI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCSI55536.2022.9970647","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
The annotations of all the crowd counting datasets so far are sparse binary matrices, so they cannot be used to supervise training directly. The mainstream crowd counting algorithm uses a Gaussian function to smooth each head label point, and then train their model by using it as “ground truth” density map. However, such “ground-truth” density maps are not perfect due to heavy occlusion, scale variation, background interference, etc. In this paper, we propose an improved BayesianLoss for the problems existing in the current crowd counting loss function. First of all, average distance to k-nearest neighbors is use to confirm the size of Gaussian likelihood estimation kernel for each labeled point to better distinguish the boundaries between crowds. Secondly, a new background likelihood estimation method is defined to better suppress the posterior probability of the edge background during training. In the evaluation of the mean absolute error metric, our method achieves state-of-the-art results on ShanghaiTech, UCF-CC-50and NWPU datasets. And on the largest dataset NWPU, our method outperforms the best loss-function-improving method DM-Count. At the same time, our loss function combined with other crowd counting models, such as MCNN, CAN, M-SFANet and TransCrowd, achieves better results than the original model.
到目前为止,所有人群计数数据集的注释都是稀疏的二值矩阵,因此不能直接用于监督训练。主流人群计数算法使用高斯函数平滑每个头部标签点,然后将其作为“ground truth”密度图来训练他们的模型。然而,由于严重的遮挡、比例尺变化、背景干扰等原因,这种“ground-truth”密度图并不完美。针对目前人群计数损失函数存在的问题,提出了一种改进的贝叶斯损失算法。首先,使用到k近邻的平均距离来确定每个标记点的高斯似然估计核的大小,以更好地区分人群之间的边界。其次,定义了一种新的背景似然估计方法,以更好地抑制训练过程中边缘背景的后验概率;在平均绝对误差度量的评估中,我们的方法在上海科技、ucf - cc -50和NWPU数据集上取得了最先进的结果。在最大的数据集NWPU上,我们的方法优于最好的损失函数改进方法DM-Count。同时,我们的损失函数结合其他人群计数模型,如MCNN、CAN、M-SFANet和transccrowd,取得了比原模型更好的结果。