• P-ISSN 0974-6846 E-ISSN 0974-5645

Indian Journal of Science and Technology


Indian Journal of Science and Technology

Year: 2021, Volume: 14, Issue: 38, Pages: 2899-2915

Original Article

COVID-19 Face Mask Detection using Deep Convolutional Neural Networks & Computer Vision

Received Date:01 June 2021, Accepted Date:15 September 2021, Published Date:15 November 2021


Objectives: To propose a model which could classify in real-time if an individual is wearing a face mask or not wearing a face mask. A lightweight system that could be easily deployed and assist in surveillance. Methods/Statisticalanalysis: Analysis of the proposed model shows a limited number of research studies with regards to facial localizations. Several state-of-the-art methods were taken into considerations out of which the CNN architectural approach is analyzed in this study. Taking into consideration the use-case of deployments and structuring, a new Keras-based model is proposed that surpasses the achievement results of MobileNet-V2 and VGG-16 standard architectures. Effective facial localization is tackled with the MTCNN approach. Findings: The system has achieved a confidence score of 0.9914, an average weighted F1-score of 0.98, a precision value of 0.99. The proposed model has been compared with standard architectures of VGG16 and MobileNetV2 with regard to the accuracy, support values, precision, recall, and F1-score metrics. The proposed model performs better w.r.t traditional architectures. The average latency involved in prediction is 0.034 seconds making the average FPS 30 Frames per second. The compact architecture makes the model best for deployment in real-time scenarios. The system incorporates the concept of image localization with Multi-Task Cascaded Convolutional Neural Network (MTCNN) architecture. The analysis shows MTCNN is performing much better than Haar-Cascade in real-time facial prediction scenarios. Novelty/Applications: This compact architecture with minimal layers is easily deployable in edge devices. It can be used for mass screening at public places like railway stops, bus stops, streets, malls, entrances, schools, and many service-oriented business verticals requiring users to access the services as long as the mask has been worn correctly.

Keywords: COVID19; Deep learning; Computer Vision; Mask Detection; Deep Convolutional Neural Network; Image Localization


  1. Leung NH, Chu DK, Shiu EY, Chan KH, Mcdevitt JJ, Hau BJ, et al. Respiratory virus shedding in exhaled breath and efficacy of face masks. Nature Medicine. 2020;26:676–680. Available from: https://doi.org/10.1038/s41591-020-0843-2
  2. Yadav S. Deep Learning based Safe Social Distancing and Face Mask Detection in Public Areas for COVID-19 Safety Guidelines Adherence. International Journal for Research in Applied Science and Engineering Technology. 2020;8(7):1368–1375. Available from: https://dx.doi.org/10.22214/ijraset.2020.30560
  3. Rahman MM, Manik MMH, Islam MM, Mahmud S, Kim JH. An Automated System to Limit COVID-19 Using Facial Mask Detection in Smart City Network. 2020 IEEE International IOT, Electronics and Mechatronics Conference (IEMTRONICS). 2020.
  4. Vinitha V. COVID-19 Facemask Detection with Deep Learning and Computer Vision. International Research Journal of Engineering and Technology. 2020;7(8). Available from: https://www.irjet.net/archives/V7/i8/IRJET-V7I8530.pdf
  5. Sethi S, Kathuria M, Kaushik T. Face mask detection using deep learning: An approach to reduce risk of Coronavirus spread. Journal of Biomedical Informatics. 2021;120:103848. Available from: https://dx.doi.org/10.1016/j.jbi.2021.103848
  6. Singh S, Ahuja U, Kumar M, Kumar K, Sachdeva M. Face mask detection using YOLOv3 and faster R-CNN models: COVID-19 environment. Multimedia Tools and Applications. 2021;80(13):19753–19768. Available from: https://dx.doi.org/10.1007/s11042-021-10711-8
  7. Suganthalakshmi R, Hafeeza A, Abinaya P, Devi A. Covid-19 Facemask Detection with Deep Learning and Computer Vision. International Journal of Engineering Research & Technology(IJERT) ICRADL - 2021. 2021;9(5).
  8. Batagelj B, Peer P, Štruc V, Dobrišek S. How to Correctly Detect Face-Masks for COVID-19 from Visual Information? Applied Sciences. 2021;11(5):2070. Available from: https://dx.doi.org/10.3390/app11052070
  9. Tammina S. Transfer learning using VGG-16 with Deep Convolutional Neural Network for Classifying Images. International Journal of Scientific and Research Publications. 2019;9(10):143–150. Available from: http://www.ijsrp.org/research-paper-1019.php?rp=P949194
  10. Deng J, Dong W, Socher R, Li LJ, Li K, Fei-Fei L. ImageNet: A large-scale hierarchical image database. 2009 IEEE Conference on Computer Vision and Pattern Recognition. 2009. Available from: https://ieeexplore.ieee.org/document/5206848
  11. Rawat W, Wang Z. Deep Convolutional Neural Networks for Image Classification: A Comprehensive Review. Neural Computation. 2017;29(9):2352–2449. Available from: https://dx.doi.org/10.1162/neco_a_00990
  12. Scarpa G, Gargiulo M, Mazza A, Gaetano R. A CNN-Based Fusion Method for Feature Extraction from Sentinel Data. Remote Sensing. 2018;10(2):236. Available from: https://www.mdpi.com/2072-4292/10/2/236
  13. Kuo PH, Huang CJ. An Electricity Price Forecasting Model by Hybrid Structured Deep Neural Networks. Sustainability. 2018;10(4):1280. doi: 10.3390/su10041280
  14. Simonyan K, Zisserman A. Very Deep Convolutional Networks for Large-Scale Image Recognition. Computer Science. 2014. Available from: https://arxiv.org/abs/1409.1556


© 2021 Ghadekar et al. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Published By Indian Society for Education and Environment (iSee)


Subscribe now for latest articles and news.