Main Article Content


The COVID-19 pandemic has spread across the globe, hitting almost every country. To stop the spread of the COVID-19 pandemic, this article introduces face mask detection on a gate to assure the safety of Instructors and students in both class and public places. This work aims to distinguish between faces with masks and without masks. A deep learning algorithm You Only Look Once (YOLO) V5 is used for face mask detection and classification. This algorithm detects the faces with and without masks using the video frames from the surveillance camera. The model trained on over 800 video frames. The sequence of a video frame for face mask detection is fed to the model for feature acquisition. Then the model classifies the frames as faces with a mask and without a mask. We used loss functions like Generalize Intersection of Union for abjectness and classification accuracy. The datasets used to train the model are divided as 80% and 20% for training and testing, respectively. The model has provided a promising result. The result found shows accuracy and precision of 95% and 96%, respectively. Results show that the model performance is a good classifier. The successful findings indicate the suggested work's soundness.


Accuracy, Computer vision, Classification, Face recognition, Surveillance

Article Details

How to Cite
Musa, “Automatic Face Mask Detection On Gates To Combat Spread Of Covid-19”, bit-cs, vol. 3, no. 2, pp. 47-52, Jul. 2022.


  1. A. D. Miller, T. B. Murdock, and M. M. Grotewiel, "Addressing Academic Dishonesty Among the Highest Achievers," Theory Into Practice, vol. 56, pp. 121-128, 2017.
  2. Li, E. “Research on Face Detection Methods”. 4th International Conference on Signal Processing and Machine Learning, 2021.
  3. Genemo, M.D. “Suspicious activity recognition for monitoring cheating in exams”. Proc.Indian Natl. Sci. Acad. 88, 1–10 (2022).
  4. Genemo, M. D. (2022). Suspicious activity recognition for monitoring cheating in exams. Proceedings of the Indian National Science Academy, 1-10.
  5. Reddy, S., Goel, S., & Nijhawan, R. “ Real-time Face Mask Detection Using Machine Learning/ Deep Feature-Based Classifiers For Face Mask Recognition”. IEEE Bombay Section Signature Conference (IBSSC), 2021.
  6. Luh, G. “Face detection using a combination of skin color pixel detection and Viola-Jones face detector” International Conference on Machine Learning and Cybernetics, 2014.
  7. Vidal, A., Jha, S., Hassler, S., Price, T., & Busso, C. “Face detection and grimace scale prediction of white-furred mice. Machine Learning with Applications”, 8, 100312.2022.
  8. Alakkari, S., & Collins, J. J. “Eigenfaces for Face Detection” A Novel Study. 12th International Conference on Machine Learning and Applications, 2014.
  9. Jeong, H. J., Park, K. S., & Ha, Y. G. (2018, January). Image preprocessing for efficient training of YOLO deep learning networks. In 2018 IEEE International Conference on Big Data and Smart Computing (BigComp) (pp. 635-637).
  10. Garg, D., Goel, P., Pandya, S., Ganatra, A., & Kotecha, K. (2018, November). A deep learning approach for face detection using YOLO. In 2018 IEEE Punecon (pp. 1-4). IEEE.
  11. Al-Masni, M. A., Al-Antari, M. A., Park, J. M., Gi, G., Kim, T. Y., Rivera, P., ... & Kim, T. S. (2018). Simultaneous detection and classification of breast masses in digital mammograms via a deep learning YOLO-based CAD system. Computer methods and programs in biomedicine, 157, 85-94.
  12. Wu, D., Lv, S., Jiang, M., & Song, H. (2020). Using channel pruning-based YOLO v4 deep learning algorithm for the real-time and accurate detection of apple flowers in natural environments. Computers and Electronics in Agriculture, 178, 105742.
  13. George, J., Skaria, S., & Varun, V. V. (2018, February). Using a YOLO-based deep learning network for real-time detection and localization of lung nodules from low dose CT scans. In Medical Imaging 2018: Computer-Aided Diagnosis (Vol. 10575, p. 105751I). International Society for Optics and Photonics.
  14. Magalhães, S. A., Castro, L., Moreira, G., Dos Santos, F. N., Cunha, M., Dias, J., & Moreira, A. P. (2021). Evaluating the single-shot multibox detector and YOLO deep learning models for the detection of tomatoes in a greenhouse. Sensors, 21(10), 3569.
  15. Loey, M., Manogaran, G., Taha, M. H. N., & 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. Sustainable cities and society, 65, 102600.
  16. Zhuang, Zhemin, Guobao Liu, Wanli Ding, Alex Noel Joseph Raj, Shunmin Qiu, Jingfeng Guo, and Ye Yuan. "Cardiac VFM visualization and analysis based on YOLO deep learning model and modified 2D continuity equation." Computerized Medical Imaging and Graphics 82 (2020): 101732.
  17. Ardhianto, P., Subiakto, R. B. R., Lin, C. Y., Jan, Y. K., Liau, B. Y., Tsai, J. Y., ... & Lung, C. W. (2022). A Deep Learning Method for Foot Progression Angle Detection in Plantar Pressure Images. Sensors, 22(7), 2786.
  18. Pouyanfar, S., Sadiq, S., Yan, Y., Tian, H., Tao, Y., Reyes, M. P., & Iyengar, S. S. (2018). A survey on deep learning: Algorithms, techniques, and applications. ACM Computing Surveys (CSUR), 51(5), 1-36.
  19. Guo, Yanming, Yu Liu, Ard Oerlemans, Songyang Lao, Song Wu, and Michael S. Lew. "Deep learning for visual understanding: A review." Neurocomputing 187 (2016): 27-48.
  20. Zhou, Xinyi, Wei Gong, WenLong Fu, and Fengtong Du. "Application of deep learning in object detection." In 2017 IEEE/ACIS 16th International Conference on Computer and Information Science (ICIS), pp. 631-634. IEEE, 2017.
  21. Xiao, Youzi, Zhiqiang Tian, Jiachen Yu, Yinshu Zhang, Shuai Liu, Shaoyi Du, and Xuguang Lan. "A review of object detection based on deep learning." Multimedia Tools and Applications 79, no. 33 (2020): 23729-23791.
  22. Mittal, P., Singh, R., & Sharma, A. (2020). Deep learning-based object detection in low-altitude UAV datasets: A survey. Image and Vision computing, 104, 104046.
  23. Wu, X., Sahoo, D., & Hoi, S. C. (2020). Recent advances in deep learning for object detection. Neurocomputing, 396, 39-64.
  24. Srivastava, S., Narayan, S., & Mittal, S. (2021). A survey of deep learning techniques for vehicle detection from UAV images. Journal of Systems Architecture, 117, 102152.
  25. Garcia-Garcia, A., Orts-Escolano, S., Oprea, S., Villena-Martinez, V., Martinez-Gonzalez, P., & Garcia-Rodriguez, J. (2018). A survey on deep learning techniques for image and video semantic segmentation. Applied Soft Computing, 70, 41-65.
  26. Zujovic, J., Gandy, L., Friedman, S., Pardo, B., & Pappas, T. N. (2009, October). Classifying paintings by artistic genre: An analysis of features & classifiers. In 2009 IEEE International Workshop on Multimedia Signal Processing (pp. 1-5). IEEE.
  27. Kobylin, O. A., Gorokhovatskyi, V. О., Tvoroshenko, I. S., & Peredrii, O. О. (2020). The application of non-parametric statistics methods in image classifiers based on structural description components. Telecommunications and Radio Engineering, 79(10).
  28. Dredze, M., Gevaryahu, R., & Elias-Bachrach, A. (2007, August). Learning fast classifiers for image spam. In CEAS (pp. 2007-487).
  29. Kobylin, O. A., Gorokhovatskyi, V. О., Tvoroshenko, I. S., & Peredrii, O. О. (2020). The application of non-parametric statistics methods in image classifiers based on structural description components. Telecommunications and Radio Engineering, 79(10).
  30. Wenger, J., Kjellström, H., & Triebel, R. (2020, June). Non-parametric calibration for classification. In International Conference on Artificial Intelligence and Statistics (pp. 178-190). PMLR.
  31. P. F. Felzenszwalb, R. B. Girshick, D. McAllester, and D. Ramanan, “Object detection with discriminatively trained part based models," IEEE TPAMI , 2009.
  32. A. Vedaldi and A. Zisserman, “Efficient additive kernels via explicit feature maps," in CVPR, 2010.
  33. Wu, Z., Xiong, Y., Yu, S., & Lin, D. (2018). Unsupervised feature learning via non-parametric instance-level discrimination. arXiv preprint arXiv:1805.01978.
  34. Gorokhovatskyi, V. О., Tvoroshenko, I. S., & Vlasenko, N. V. (2020). Using fuzzy clustering in structural methods of image classification. Telecommunications and Radio Engineering, 79(9).
  35. Chen, R. C. (2019). Automatic License Plate Recognition via sliding-window darknet-YOLO deep learning. Image and Vision Computing, 87, 47-56.