Open Access iconOpen Access



Automatic Real-Time Medical Mask Detection Using Deep Learning to Fight COVID-19

Mohammad Khalid Imam Rahmani1, Fahmina Taranum2, Reshma Nikhat3, Md. Rashid Farooqi3, Mohammed Arshad Khan4,*

1 College of Computing and Informatics, Saudi Electronic University, Riyadh, Saudi Arabia
2 Computer Science and Engineering Department, Muffakham Jah College of Engineering and Technology, Osmania University, Hyderabad, Telangana, India
3 Department of Commerce and Business Management, Maulana Azad National Urdu University, Hyderabad, Telangana, India
4 Department of Accountancy, College of Administrative and Financial Sciences, Saudi Electronic University, Riyad, Saudi Arabia

* Corresponding Author: Mohammed Arshad Khan. Email: email

Computer Systems Science and Engineering 2022, 42(3), 1181-1198.


The COVID-19 pandemic is a virus that has disastrous effects on human lives globally; still spreading like wildfire causing huge losses to humanity and economies. There is a need to follow few constraints like social distancing norms, personal hygiene, and masking up to effectively control the virus spread. The proposal is to detect the face frame and confirm the faces are properly covered with masks. By applying the concepts of Deep learning, the results obtained for mask detection are found to be effective. The system is trained using 4500 images to accurately judge and justify its accuracy. The aim is to develop an algorithm to automatically detect a mask, but the approach does not facilitate the percentage of improper usage. Accuracy levels are as low as 50% if the mask is improperly covered and an alert is raised for improper placement. It can be used at traffic places and social gatherings for the prevention of virus transmission. It works by first locating the region of interest by creating a frame boundary, then facial points are picked up to detect and concentrate on specific features. The training on the input images is performed using different epochs until the artificial face mask detection dataset is created. The system is implemented using TensorFlow with OpenCV and Python using a Jupyter Notebook simulation environment. The training dataset used is collected from a set of diverse open-source datasets with filtered images available at Kaggle Medical Mask Dataset by Mikolaj Witkowski, Kera, and Prajna Bhandary. To simulate MobilNetV2 classifier is used to load and pre-process the image dataset for building a fully connected head. The objective is to assess the accuracy of the identification, measuring the efficiency and effectiveness of algorithms for precision, recall, and F1 score.


Cite This Article

APA Style
Rahmani, M.K.I., Taranum, F., Nikhat, R., Farooqi, M.R., Khan, M.A. (2022). Automatic real-time medical mask detection using deep learning to fight COVID-19. Computer Systems Science and Engineering, 42(3), 1181-1198.
Vancouver Style
Rahmani MKI, Taranum F, Nikhat R, Farooqi MR, Khan MA. Automatic real-time medical mask detection using deep learning to fight COVID-19. Comput Syst Sci Eng. 2022;42(3):1181-1198
IEEE Style
M.K.I. Rahmani, F. Taranum, R. Nikhat, M.R. Farooqi, and M.A. Khan "Automatic Real-Time Medical Mask Detection Using Deep Learning to Fight COVID-19," Comput. Syst. Sci. Eng., vol. 42, no. 3, pp. 1181-1198. 2022.

cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 1710


  • 845


  • 0


Share Link