用视觉Transformer提升敏感图像分类准确率
Sensitive Image Classification by Vision Transformers
- 基于自注意力机制捕捉图像全局关联,减少误判
- 在多个数据集上超越传统ResNet和CNN方法
- 适合需要高精度识别敏感内容的系统开发者
针对儿童性虐待图像分类中类间相似性和类内多样性带来的挑战,本文采用视觉变换器模型,利用自注意力机制捕捉图像块间的全局上下文关系,有效避免错误关联并降低注意力图模糊性。由于直接分析敏感数据存在伦理风险,研究构建了两个数据集:一个包含正常与色情图像,另一个含三类(正常、色情及可疑)图像,均来自Reddit和Google Open Images。同时使用成人内容图像基准数据集进行评估。实验对比了多种主流视觉变换器模型与预训练ResNet模型,以及基于注意力和度量学习的CNN方法与Bumble模型。结果表明,视觉变换器在敏感图像分类任务中表现更优,展现出更强的分类与检测能力。
原文摘要 · Abstract (English)
When it comes to classifying child sexual abuse images, managing similar inter-class correlations and diverse intra-class correlations poses a significant challenge. Vision transformer models, unlike conventional deep convolutional network models, leverage a self-attention mechanism to capture global interactions among contextual local elements. This allows them to navigate through image patches effectively, avoiding incorrect correlations and reducing ambiguity in attention maps, thus proving their efficacy in computer vision tasks. Rather than directly analyzing child sexual abuse data, we constructed two datasets: one comprising clean and pornographic images and another with three classes, which additionally include images indicative of pornography, sourced from Reddit and Google Open Images data. In our experiments, we also employ an adult content image benchmark dataset. These datasets served as a basis for assessing the performance of vision transformer models in pornographic image classification. In our study, we conducted a comparative analysis between various popular vision transformer models and traditional pre-trained ResNet models. Furthermore, we compared them with established methods for sensitive image detection such as attention and metric learning based CNN and Bumble. The findings demonstrated that vision transformer networks surpassed the benchmark pre-trained models, showcasing their superior classification and detection capabilities in this task.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。