Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022;81(11):14999-15015.
doi: 10.1007/s11042-022-12166-x. Epub 2022 Feb 25.

A real time face mask detection system using convolutional neural network

Affiliations

A real time face mask detection system using convolutional neural network

Hiten Goyal et al. Multimed Tools Appl. 2022.

Abstract

In current times, after the rapid expansion and spread of the COVID-19 outbreak globally, people have experienced severe disruption to their daily lives. One idea to manage the outbreak is to enforce people wear a face mask in public places. Therefore, automated and efficient face detection methods are essential for such enforcement. In this paper, a face mask detection model for static and real time videos has been presented which classifies the images as "with mask" and "without mask". The model is trained and evaluated using the Kaggle data-set. The gathered data-set comprises approximately about 4,000 pictures and attained a performance accuracy rate of 98%. The proposed model is computationally efficient and precise as compared to DenseNet-121, MobileNet-V2, VGG-19, and Inception-V3. This work can be utilized as a digitized scanning tool in schools, hospitals, banks, and airports, and many other public or commercial locations.

Keywords: COVID-19; Convolutional neural network (CNN); Deep learning; OpenCV; Real-time face mask detection.

PubMed Disclaimer

Conflict of interest statement

Conflict of InterestsHiten Goyal, Karanveer Sidana, Charanjeet Singh, Abhilasha Jain and Swati Jindal declare that they have no conflict of interest.

Figures

Fig. 1
Fig. 1
Preview of Face mask Dataset
Fig. 2
Fig. 2
The Proposed Architecture
Fig. 3
Fig. 3
Adam: Precision vs Recall
Fig. 4
Fig. 4
SGD: Precision vs Recall
Fig. 5
Fig. 5
Diagram showing implemented Face Mask Model
Fig. 6
Fig. 6
Accuracy test results during Model Training
Fig. 7
Fig. 7
Loss test results during Model Training
Fig. 8
Fig. 8
ROC Curve Plot
Fig. 9
Fig. 9
Different model comparison w.r.t accuracy, size and training speed
Fig. 10
Fig. 10
Predictions on Test Images

References

    1. Chen D, Hua G, Wen F, Sun J (2016) Supervised transformer network for efficient face detection. In: European conference on computer vision. Springer, pp 122–138. 10.1007/978-3-319-46454-1_8
    1. Chen Y, Menghan Hu, Hua C, Zhai G, Zhang J, Li Q, Yang SX. Face mask assistant: detection of face mask service stage based on mobile phone. IEEE Sensors J. 2021;21(9):11084–11093. doi: 10.1109/JSEN.2021.3061178. - DOI - PMC - PubMed
    1. Cruz AP, Jaiswal J (2021) Text-to-image classification using attngan with densenet architecture. In: Proceedings of international conference on innovations in software architecture and computational systems. Springer, pp 1–17
    1. Ejaz MS, Islam MR, Sifatullah M, Sarker A (2019) Implementation of principal component analysis on masked and non-masked face recognition. In: 2019 1St international conference on advances in science, engineering and robotics technology (ICASERT). IEEE, pp 1–5. 10.1109/ICASERT.2019.8934543
    1. He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 770–778. 10.1109/CVPR.2016.90

LinkOut - more resources