journal article·2022-07-08Open access

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

Applied Sciences· Volume 12· Issue 14

Abstract

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.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Face recognition and analysis · COVID-19 diagnosis using AI · Generative Adversarial Networks and Image Synthesis

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Mathematical and Computational Sciences, Yachay Tech University, Urcuquí 100119, Ecuador

Deep Learning for Autonomous Vehicles, Robotics, and Computer Vision (DeepARC Research), Urcuquí 100115, Ecuador

Information Technology R&D Research Group—GTI, University of Cauca, Popayán 190003, Colombia

SDAS Researh Group, Ben Guerir 43150, Morocco

Modeling, Simulation and Data Analysis (MSDA) Research Program, Mohammed VI Polytechnic University, Benguerir 43150, Morocco

Faculty of Engineering, Corporación Universitaria Autónoma de Nariño, Pasto 520001, Colombia

Funding

University of Cauca

References (49)

Show source-provided references
1. Velavan, T.P., and Meyer, C.G. (2020). The COVID-19 epidemic. Trop. Med. Int. Health, 25.10.1111/tmi.13383 ↗
2. Yuki, K., Fujiogi, M., and Koutsogiannaki, S. (2020). COVID-19 pathophysiology: A review. Clin. Immunol., 215.10.1016/j.clim.2020.108427 ↗
3. Elachola, H., Ebrahim, S.H., and Gozzer, E. (2020). COVID-19: Facemask use prevalence in international airports in Asia, Europe and the Americas, March 2020. Travel Med. Infect. Dis., 35.10.1016/j.tmaid.2020.101637 ↗
4. Lee, B.Y. (2022, April 12). How Israel Ended Outdoor Face Mask Mandates with the Help of Covid-19 Vaccines. Available online: https://www.forbes.com/sites/brucelee/2021/04/20/how-israel-ended-outdoor-face-mask-mandates-with-the-help-of-covid-19-vaccines/?sh=63598b46680e.
5. Rational use of face masks in the COVID-19 pandemic10.1016/S2213-2600(20)30134-X ↗
6. Howard, J., Huang, A., Li, Z., Tufekci, Z., Zdimal, V., van der Westhuizen, H.M., von Delft, A., Price, A., Fridman, L., and Tang, L.H. (2021). An evidence review of face masks against COVID-19. Proc. Natl. Acad. Sci. USA, 118.10.1073/pnas.2014564118 ↗
7. To mask or not to mask: Modeling the potential for face mask use by the general public to curtail the COVID-19 pandemic
8. Loey, M., Manogaran, G., Taha, M.H.N., and Khalifa, N.E.M. (2021). Fighting against COVID-19: A novel deep learning model based on YOLO-v2 with ResNet-50 for medical face mask detection. Sustain. Cities Soc., 65.10.1016/j.scs.2020.102600 ↗
9. Deep Learning Approaches Based on Transformer Architectures for Image Captioning Tasks10.1109/ACCESS.2022.3161428 ↗
10. Salgado Guerrero, J.P., Chicaiza Espinosa, J., Cerrada Lozada, M., and Berrezueta-Guzman, S. (2021). Hyperparameter Tuning over an Attention Model for Image Captioning, Proceedings of the Information and Communication Technologies, Ann Arbor, MI, USA, 3–6 June 2021, Springer International Publishing.10.1007/978-3-030-89941-7 ↗
11. Pattern recognition of soldier uniforms with dilated convolutions and a modified encoder-decoder neural network architecture10.1080/08839514.2021.1902124 ↗
12. Moreno-Revelo, M.Y., Guachi-Guachi, L., Gómez-Mendoza, J.B., Revelo-Fuelagán, J., and Peluffo-Ordóñez, D.H. (2021). Enhanced Convolutional-Neural-Network Architecture for Crop Classification. Appl. Sci., 11.10.3390/app11094292 ↗
13. Kirillov, A., He, K., Girshick, R., Rother, C., and Dollár, P. (2019, January 16–20). Panoptic Segmentation. Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00963 ↗
14. Loey, M., Manogaran, G., Taha, M.H.N., and Khalifa, N.E.M. (2021). A hybrid deep transfer learning model with machine learning methods for face mask detection in the era of the COVID-19 pandemic. Measurement, 167.10.1016/j.measurement.2020.108288 ↗
15. Qin, B., and Li, D. (2020). Identifying Facemask-Wearing Condition Using Image Super-Resolution with Classification Network to Prevent COVID-19. Sensors, 20.10.21203/rs.3.rs-28668/v1 ↗
16. Comparison of Current Deep Convolutional Neural Networks for the Segmentation of Breast Masses in Mammograms10.1109/ACCESS.2021.3127862 ↗
17. Batagelj, B., Peer, P., Štruc, V., and Dobrišek, S. (2021). How to Correctly Detect Face-Masks for COVID-19 from Visual Information?. Appl. Sci., 11.10.3390/app11052070 ↗
18. Loop Hit (2022, June 01). Medical Mask Dataset: Humans in the Loop. Available online: https://humansintheloop.org/medical-mask-dataset.
19. Yang, S., Luo, P., Loy, C.C., and Tang, X. (2016, January 27–30). Wider face: A face detection benchmark. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.596 ↗
20. Jain, V., and Learned-Miller, E. (2010). Fddb: A Benchmark for Face Detection in Unconstrained Settings, UMass. UMass Amherst Technical Report.
21. Zhu, X., and Ramanan, D. (2012, January 16–21). Face detection, pose estimation, and landmark localization in the wild. Proceedings of the 2012 IEEE Conference on Computer Vision and Pattern Recognition, Providence, RI, USA.
22. Jain, A.K., Klare, B., and Park, U. (2011, January 21–23). Face recognition: Some challenges in forensics. Proceedings of the 2011 IEEE International Conference on Automatic Face Gesture Recognition (FG), Santa Barbara, CA, USA.10.1109/FG.2011.5771338 ↗
23. Jain, A.K., Klare, B., and Park, U. (2012). Face Matching and Retrieval in Forensics Applications. IEEE MultiMedia, 19.10.1109/MMUL.2012.4 ↗
24. Zeng, J., Zeng, J., and Qiu, X. (2017, January 27–29). Deep learning based forensic face verification in videos. Proceedings of the 2017 International Conference on Progress in Informatics and Computing (PIC), Nanjing, China.10.1109/PIC.2017.8359518 ↗
25. Ge, S., Li, J., Ye, Q., and Luo, Z. (2017, January 21–26). Detecting masked faces in the wild with lle-cnns. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.53 ↗
26. Cabani, A., Hammoudi, K., Benhabiles, H., and Melkemi, M. (2021). MaskedFace-Net–A dataset of correctly/incorrectly masked face images in the context of COVID-19. Smart Health, 19.10.1016/j.smhl.2020.100144 ↗
27. Wang, Z., Wang, G., Huang, B., Xiong, Z., Hong, Q., Wu, H., Yi, P., Jiang, K., Wang, N., and Pei, Y. (2020). Masked face recognition dataset and application. arXiv.
28. MOXA: A deep learning based unmanned approach for real-time monitoring of people wearing medical masks10.1007/s41403-020-00157-z ↗
29. Viola, P., and Jones, M. (2001, January 8–14). Rapid object detection using a boosted cascade of simple features. Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition—CVPR, Kauai, HI, USA.
30. Li, H., Lin, Z., Shen, X., Brandt, J., and Hua, G. (2015, January 7–12). A convolutional neural network cascade for face detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7299170 ↗
31. Farfade, S.S., Saberian, M.J., and Li, L.J. (2015, January 23–26). Multi-view face detection using deep convolutional neural networks. Proceedings of the 5th ACM on International Conference on Multimedia Retrieval, Shanghai, China.10.1145/2671188.2749408 ↗
32. Face detection using deep learning: An improved faster RCNN approach10.1016/j.neucom.2018.03.030 ↗
33. Refineface: Refinement neural network for high performance face detection10.1109/TPAMI.2020.2997456 ↗
34. Face detection algorithm based on improved TinyYOLOv3 and attention mechanism10.1016/j.comcom.2021.10.023 ↗
35. Li, Y. (2022). Face Detection Algorithm Based on Double-Channel CNN with Occlusion Perceptron. Comput. Intell. Neurosci., 2022.10.1155/2022/3705581 ↗
36. Wu, P., Li, H., Zeng, N., and Li, F. (2022). FMD-Yolo: An efficient face mask detection method for COVID-19 prevention and control in public. Image Vis. Comput., 117.10.1016/j.imavis.2021.104341 ↗
37. A novel detection framework about conditions of wearing face mask for helping control the spread of covid-1910.1109/ACCESS.2021.3066538 ↗
38. Lin, H., Tse, R., Tang, S.K., Chen, Y., Ke, W., and Pau, G. (2021, January 9–12). Near-realtime face mask wearing recognition based on deep learning. Proceedings of the 2021 IEEE 18th Annual Consumer Communications & Networking Conference (CCNC), Las Vegas, NV, USA.10.1109/CCNC49032.2021.9369493 ↗
39. Xiong, Y., Zhu, K., Lin, D., and Tang, X. (2015, January 7–12). Recognize complex events from static images by fusing deep channels. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.
40. Deng, J., Guo, J., Zhou, Y., Yu, J., Kotsia, I., and Zafeiriou, S. (2019). Retinaface: Single-stage dense face localisation in the wild. arXiv.10.1109/CVPR42600.2020.00525 ↗
41. Imagenet classification with deep convolutional neural networks
42. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
43. Zhang, H., Wu, C., Zhang, Z., Zhu, Y., Lin, H., Zhang, Z., Sun, Y., He, T., Mueller, J., and Manmatha, R. (2020). Resnest: Split-attention networks. arXiv.
44. Machine Learning to Improve Multi-Hop Searching and Extended Wireless Reachability in V2X10.1109/LCOMM.2020.2982887 ↗
45. Adaptive subgradient methods for online learning and stochastic optimization
46. Kingma, D.P., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv.
47. A stochastic approximation method10.1214/aoms/1177729586 ↗
48. Ruder, S. (2016). An overview of gradient descent optimization algorithms. arXiv.
49. Oumina, A., El Makhfi, N., and Hamdi, M. (2020, January 2–3). Control the covid-19 pandemic: Face mask detection using transfer learning. Proceedings of the 2020 IEEE 2nd International Conference on Electronics, Control, Optimization and Computer Science (ICECOCS), Kenitra, Morocco.10.1109/ICECOCS50124.2020.9314511 ↗