arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.11542cs.CVcs.LG
收藏

使用具有迁移学习和数据增强的视觉Transformer的掩模使用识别

Mask Usage Recognition using Vision Transformer with Transfer Learning and Data Augmentation

Brawijaya University(布拉维贾亚大学)

Hensel Donato Jahja, Novanto Yudistira, Sutrisno

摘要:

COVID-19疫情扰乱了社会的各个层面。口罩的使用对于通过识别使用口罩的人的图像来防止COVID-19的传播至关重要。尽管只有23.1%的人正确使用口罩,但人工神经网络(ANN)可以帮助对好口罩的使用进行分类,以帮助减缓新冠病毒的传播。然而,它需要一个大的数据集来训练一个人工神经网络,可以正确地分类口罩的使用。MaskedFace-Net是一个合适的数据集,由137016个数字图像组成,具有4个类别标签,即Mask,Mask Chin,Mask Mouth Chin和Mask Nose Mouth。掩码分类训练利用视觉Transformer(ViT)架构,采用迁移学习方法,使用ImageNet-21 k上的预训练权重,并进行随机增强。此外,20个epoch的训练超参数,学习率为0.03的随机梯度下降(SGD)优化器,批量大小为64,高斯累积分布(GeLU)激活函数和交叉熵损失函数用于应用于ViT的三种架构(即Base-16,Large-16和Huge-14)的训练。此外,与没有增强和迁移学习的比较进行。这项研究发现,最好的分类是使用ViT Huge-14的迁移学习和增强。在MaskedFace-Net数据集上使用该方法,研究在训练数据上达到了0.9601的准确率,在验证数据上达到了0.9412,在测试数据上达到了0.9534。这项研究表明,使用数据增强和迁移学习训练ViT模型可以提高掩码使用的分类,甚至比基于卷积的残差网络(ResNet)更好。

英文摘要:

The COVID-19 pandemic has disrupted various levels of society. The use of masks is essential in preventing the spread of COVID-19 by identifying an image of a person using a mask. Although only 23.1% of people use masks correctly, Artificial Neural Networks (ANN) can help classify the use of good masks to help slow the spread of the Covid-19 virus. However, it requires a large dataset to train an ANN that can classify the use of masks correctly. MaskedFace-Net is a suitable dataset consisting of 137016 digital images with 4 class labels, namely Mask, Mask Chin, Mask Mouth Chin, and Mask Nose Mouth. Mask classification training utilizes Vision Transformers (ViT) architecture with transfer learning method using pre-trained weights on ImageNet-21k, with random augmentation. In addition, the hyper-parameters of training of 20 epochs, an Stochastic Gradient Descent (SGD) optimizer with a learning rate of 0.03, a batch size of 64, a Gaussian Cumulative Distribution (GeLU) activation function, and a Cross-Entropy loss function are used to be applied on the training of three architectures of ViT, namely Base-16, Large-16, and Huge-14. Furthermore, comparisons of with and without augmentation and transfer learning are conducted. This study found that the best classification is transfer learning and augmentation using ViT Huge-14. Using this method on MaskedFace-Net dataset, the research reaches an accuracy of 0.9601 on training data, 0.9412 on validation data, and 0.9534 on test data. This research shows that training the ViT model with data augmentation and transfer learning improves classification of the mask usage, even better than convolutional-based Residual Network (ResNet).

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

↑