Mask detection system at the entry of a room

Erik Herdiyanto, Abdul Fadlil


This study focuses on automatic mask detection tools that can open doors in a room to minimize violations of health protocols, one of which is the use of masks during the pandemic. The method used in this study is the CNN classification method. Where the CNN calcification method has several stages in it, including pre-processing, training, and testing. In the pre-processing, all image data used will be labeled using Labeling.axe. The training process at CNN uses TensorFlow framework version 1.15. In the testing process, the test and data testing will be carried out in real-time by entering new images and models that are made and then a classification process is carried out on objects caught by the camera, classified images are marked with boxes and names of data classes. This data class is divided into two, namely data on wearing masks and without masks. The results of the test were carried out by entering 200 facial image data. The system can correctly detect as much as 190 times from 200 data tested with an Accuracy rate of 95%. Based on the test results, it shows that the resulting model is good and suitable for the classification process of recognizing mask detection images. However, to produce a better model requires data with more variety and a larger amount of data.


Mask Detection; CNN; TensorFlow; Raspberry pi

Full Text:



J. Wang et al., “Prevention and control of COVID-19 in nursing homes, orphanages, and prisons,” Environmental Pollution, vol. 266, p. 115161, 2020.

C. Eisenmann, C. Nobis, V. Kolarova, B. Lenz and C. Winkler, “Transport mode use during the COVID-19 lockdown period in Germany: The car became more important, public transport lost ground,” Transport policy, vol. 103, pp. 60-67, 2021.

C. J. Kähler and R. Hain, “Fundamental protective mechanisms of face masks against droplet infections,” Journal of aerosol science, vol. 148, p. 105617, 2020.

G. Z. Karimova and V. P. Goby, “The adaptation of anthropomorphism and archetypes for marketing artificial intelligence,” Journal of Consumer Marketing, vol. 38, no. 2, pp. 229-238, 2021.

D. Goularas and S. Kamis, "Evaluation of Deep Learning Techniques in Sentiment Analysis from Twitter Data," 2019 International Conference on Deep Learning and Machine Learning in Emerging Applications (Deep-ML), Istanbul, Turkey, 2019, pp. 12-17, doi: 10.1109/Deep-ML.2019.00011.

J. Yang, C. Wang, B. Jiang, H. Song and Q. Meng, "Visual Perception Enabled Industry Intelligence: State of the Art, Challenges and Prospects," in IEEE Transactions on Industrial Informatics, vol. 17, no. 3, pp. 2204-2219, March 2021, doi: 10.1109/TII.2020.2998818.

L. Chen, P. Bentley, K. Mori, K. Misawa, M. Fujiwara and D. Rueckert, “Self-supervised learning for medical image analysis using image context restoration,” Medical image analysis, vol. 58, p. 101539, 2019.

T. Hu, C. Liang, G. Min, K. Li and C. Xiao, “Generating video animation from single still image in social media based on intelligent computing,” Journal of Visual Communication and Image Representation, vol. 71, p. 102812, 2020.

W. Wang, X. Wu, X. Yuan and Z. Gao, "An Experiment-Based Review of Low-Light Image Enhancement Methods," in IEEE Access, vol. 8, pp. 87884-87917, 2020, doi: 10.1109/ACCESS.2020.2992749.

O. T. Tawose, B. Li, L. Yang, F. Yan and D. Zhao, "Topological Modeling and Parallelization of Multidimensional Data on Microelectrode Arrays," 2022 IEEE International Parallel and Distributed Processing Symposium (IPDPS), Lyon, France, 2022, pp. 795-805, doi: 10.1109/IPDPS53621.2022.00082.

P. Wang, E. Fan and P. Wang, “Comparative analysis of image classification algorithms based on traditional machine learning and deep learning,” Pattern Recognition Letters, vol. 141, 61-67, 2021.

K. Amasyali anad N. El-Gohary, “Machine learning for occupant-behavior-sensitive cooling energy consumption prediction in office buildings,” Renewable and Sustainable Energy Reviews, vol. 142, p. 110714, 2021.

M. A. Iqbal Hussain, B. Khan, Z. Wang and S. Ding, “Woven fabric pattern recognition and classification based on deep convolutional neural networks,” Electronics, vol. 9, no. 6, p. 1048, 2020.

Y. Liu, H. Pu and D. W. Sun, “Efficient extraction of deep image features using convolutional neural network (CNN) for applications in detecting and analysing complex food matrices,” Trends in Food Science & Technology, vol. 113, pp. 193-204, 2021.

A. Agrawal and N. Mittal, “Using CNN for facial expression recognition: a study of the effects of kernel size and number of filters on accuracy,” The Visual Computer, vol. 36, no. 2, pp. 405-412, 2020.

X. Bai, X. Zhou, F. Zhang, L. Wang, R. Xue and F. Zhou, "Robust Pol-ISAR Target Recognition Based on ST-MC-DCNN," in IEEE Transactions on Geoscience and Remote Sensing, vol. 57, no. 12, pp. 9912-9927, Dec. 2019, doi: 10.1109/TGRS.2019.2930112.

R. S. Latha et al., "Automatic Detection of Tea Leaf Diseases using Deep Convolution Neural Network," 2021 International Conference on Computer Communication and Informatics (ICCCI), Coimbatore, India, 2021, pp. 1-6, doi: 10.1109/ICCCI50826.2021.9402225.

P. Elechi, “Facial Recognition Based Smart Door Lock System,” FUPRE Journal of Scientific and Industrial Research (FJSIR), vol. 6, no. 2, pp. 95-105, 2022.

B. S. Chowdary, V. N. Subhadra and S. Kavitha, "Age and Gender Detection to Detect the Manipulated Images using CNN," 2023 5th International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India, 2023, pp. 1187-1192, doi: 10.1109/ICSSIT55814.2023.10060905.

I. Neforawati and D. Arnaldy, "Message Digest 5 (MD-5) Decryption Application using Python-Based Dictionary Attack Technique," 2021 4th International Conference of Computer and Informatics Engineering (IC2IE), Depok, Indonesia, 2021, pp. 424-428, doi: 10.1109/IC2IE53219.2021.9649020.



  • There are currently no refbacks.

Copyright (c) 2023 Erik Herdiyanto, Abdul Fadlil

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Signal and Image Processing Letters

ISSN Online: 2714-6677 | Print: 2714-6669
Published by Association for Scientific Computing Electrical and Engineering (ASCEE)
Website :
Email 1 :
Email 2 :


View My Stats