作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• •    

基于域泛化的轻量化图像分类算法

  • 发布日期:2024-04-26

Lightweight Image Classification Algorithm Based on Domain Generalization

  • Published:2024-04-26

摘要: 针对现有睡岗数据集少,现阶段分类算法泛化性差,推理速度慢等问题,构建了一份包含4708张图像的睡岗数据集,用于验证模型识别精度和泛化能力,并提出了一种基于域泛化的轻量化图像分类算法Stable_MobileNet。首先,对输入的图片填充短边,使其保持图像中的人物比例,然后再进行图像增强和随机擦除,用于扩充数据集;其次,引入高效的ECA注意力模块改进MobileNetv3_large网络;最后,使用稳定学习StableNet方法提高模型的泛化性,通过学习训练样本的权重来消除特征之间的依赖关系,这有助于模型摆脱环境的变化,更专注于人物特征。在睡岗数据集上的实验结果表明,Stable_MobileNet平均推理速度更快,识别精度可达93.56%,比MobileNetv3_large提高了2.23%;在样本分布异于训练样本分布的测试集中,该算法的识别精度提高了2.23%。

Abstract: Aiming at the problems of few Sleeping on Duty dataset, poor generalization of current classification algo-rithms, and slow inference speed. A Sleeping on Duty dataset containing 4708 images is constructed to verify the recognition accuracy and generalization ability of the model, and a lightweight image classification algo-rithm based on domain generalization, Stable_MobileNet, is proposed. Firstly, the input images are filled with short edges to keep the proportion of people in the images, and then image enhancement and random erasure are performed for expanding the dataset; Secondly, the introduction of efficient ECA module to improve the MobileNetv3_large network; Finally, the Stable learning StableNet method is used to improve the generali-zation of the model by learning the weights of the training samples to eliminate the dependency between features, which helps the model get rid of the environment and more focused on the character features. Ex-perimental results on the Sleeping on Duty dataset show that Stable_MobileNet has faster inference on average, and the recognition accuracy can reach 93.56%, which is 2.23% better than MobileNetv3_large; In the test set where the sample distribution is different from the training sample distribution, the recognition accuracy of the algorithm is improved by 2.23%.