Applied Sciences (Jul 2022)

A Computer Vision Model to Identify the Incorrect Use of Face Masks for COVID-19 Awareness

  • Fabricio Crespo,
  • Anthony Crespo,
  • Luz Marina Sierra-Martínez,
  • Diego Hernán Peluffo-Ordóñez,
  • Manuel Eugenio Morocho-Cayamcela

DOI
https://doi.org/10.3390/app12146924
Journal volume & issue
Vol. 12, no. 14
p. 6924

Abstract

Read online

Face mask detection has become a great challenge in computer vision, demanding the coalition of technology with COVID-19 awareness. Researchers have proposed deep learning models to detect the use of face masks. However, the incorrect use of a face mask can be as harmful as not wearing any protection at all. In this paper, we propose a compound convolutional neural network (CNN) architecture based on two computer vision tasks: object localization to discover faces in images/videos, followed by an image classification CNN to categorize the faces and show if someone is using a face mask correctly, incorrectly, or not at all. The first CNN is built upon RetinaFace, a model to detect faces in images, whereas the second CNN uses a ResNet-18 architecture as a classification backbone. Our model enables an accurate identification of people who are not correctly following the COVID-19 healthcare recommendations on face mask use. To enable further global use of our technology, we have released both the dataset used to train the classification model and our proposed computer vision pipeline to the public, and optimized it for embedded systems deployment.

Keywords