arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.16665cs.CV
收藏

CSPCL:基于类别语义先验对比学习的Deformable DETR违禁物品检测器

CSPCL: Category Semantic Prior Contrastive Learning for Deformable DETR-Based Prohibited Item Detectors

College of Information Science and Engineering, Northeastern University(信息科学与工程学院,东北大学);State Key Laboratory of Synthetical Automation for Process Industries, Northeastern University(过程工业综合自动化国家重点实验室,东北大学)

Mingyuan Li, Tong Jia, Hao Wang, Bowen Ma, Hui Lu, Shiyi Guo, Da Cai, Dongyue Chen

AI总结:

针对X射线图像违禁物品检测中前景-背景特征耦合导致通用检测器性能差的问题,提出类别语义先验对比学习机制,通过特定对比损失增强模型对前景特征的敏感性,在多个数据集上显著提升性能且不增加推理复杂度。

摘要:

基于X射线图像的违禁物品检测是最有效的安全检查方法之一。然而,X射线图像特有的重叠现象导致前景-背景特征耦合,使得为自然图像设计的通用检测器性能不佳。为了解决这一问题,我们提出了一种类别语义先验对比学习(CSPCL)机制,该机制将分类器感知的类原型与内容查询对齐,以纠正和补充负责分类的缺失语义信息,从而增强模型对前景特征的敏感性。为了实现这种对齐,我们设计了一种特定的对比损失,即CSP损失,它包括类内截断吸引(ITA)损失和类间自适应排斥(IAR)损失,并且优于经典的对比损失。具体而言,ITA损失利用类原型吸引类内内容查询,并通过梯度截断函数保留必要的类内多样性;IAR损失利用类原型自适应排斥类间内容查询,排斥强度通过原型-原型相似性进行缩放,从而提高类间可区分性,尤其是在相似类别之间。CSPCL具有通用性,可以轻松集成到基于Deformable DETR的模型中。在PIXray、OPIXray、PIDray和CLCXray数据集上的大量实验表明,CSPCL在不增加推理复杂度的情况下显著提升了各种最先进模型的性能。代码公开于https://github.com/Limingyuan001/CSPCL。

英文摘要:

Prohibited item detection based on X-ray images is one of the most effective security inspection methods. However, the foreground-background feature coupling caused by the overlapping phenomenon specific to X-ray images makes general detectors designed for natural images perform poorly. To address this issue, we propose a Category Semantic Prior Contrastive Learning (CSPCL) mechanism, which aligns the class prototypes perceived by the classifier with the content queries to correct and supplement the missing semantic information responsible for classification, thereby enhancing the model sensitivity to foreground features. To achieve this alignment, we design a specific contrastive loss, CSP loss, which comprises the Intra-Class Truncated Attraction (ITA) loss and the Inter-Class Adaptive Repulsion (IAR) loss, and outperforms classic contrastive losses. Specifically, the ITA loss leverages class prototypes to attract intra-class content queries and preserves essential intra-class diversity via a gradient truncation function. The IAR loss employs class prototypes to adaptively repel inter-class content queries, with the repulsion strength scaled by prototype-prototype similarity, thereby improving inter-class discriminability, especially among similar categories. CSPCL is general and can be easily integrated into Deformable DETR-based models. Extensive experiments on the PIXray, OPIXray, PIDray, and CLCXray datasets demonstrate that CSPCL significantly enhances the performance of various state-of-the-art models without increasing inference complexity. The code is publicly available at https://github.com/Limingyuan001/CSPCL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑