| Literature DB >> 33425664 |
Preeti Nagrath1, Rachna Jain1, Agam Madan1, Rohan Arora1, Piyush Kataria1, Jude Hemanth2.
Abstract
Face mask detection had seen significant progress in the domains of Image processing and Computer vision, since the rise of the Covid-19 pandemic. Many face detection models have been created using several algorithms and techniques. The proposed approach in this paper uses deep learning, TensorFlow, Keras, and OpenCV to detect face masks. This model can be used for safety purposes since it is very resource efficient to deploy. The SSDMNV2 approach uses Single Shot Multibox Detector as a face detector and MobilenetV2 architecture as a framework for the classifier, which is very lightweight and can even be used in embedded devices (like NVIDIA Jetson Nano, Raspberry pi) to perform real-time mask detection. The technique deployed in this paper gives us an accuracy score of 0.9264 and an F1 score of 0.93. The dataset provided in this paper, was collected from various sources, can be used by other researchers for further advanced models such as those of face recognition, facial landmarks, and facial part detection process.Entities:
Keywords: Bottleneck; Convolutional Neural Network; Data augmentation; Fine tuning; MobileNetV2
Year: 2020 PMID: 33425664 PMCID: PMC7775036 DOI: 10.1016/j.scs.2020.102692
Source DB: PubMed Journal: Sustain Cities Soc ISSN: 2210-6707 Impact factor: 7.587
Fig. 1Flow Diagram of the SSDMNV2 model.
Fig. 2Dataset Visualization.
Fig. 3Pipeline of using Pretrained Model.
Fig. 4Architecture of MobileNetV2.
Fig. 5Convolutional Operation.
Fig. 6Average-Pooling Operation.
Fig. 7Training accuracy curve (Without data augmentation).
Fig. 8Training loss curve (Without data augmentation).
Fig. 9Training accuracy curve.
Fig. 10Training loss curve on the train.
Fig. 11Confusion matrix.
Fig. 12Roc curve.
Classification Report.
| Precision | recall | F1 Score | support | |
|---|---|---|---|---|
| with mask | 1.00 | 0.85 | 0.93 | 1104 |
| without mask | 0.87 | 1.00 | 0.93 | 1105 |
| accuracy | 0.93 | 2209 | ||
| Macro average | 0.94 | 0.93 | 0.93 | 2209 |
| Weighted average | 0.94 | 0.93 | 0.93 | 2209 |
Fig. 13Predictions on test images.
Comparison of accuracy between different models.
| Architectures Used | Year | Accuracy (%) | Percentage Improvement |
|---|---|---|---|
| LeNet – 5 | 1998 | 84.6 | + 9.37 % |
| AlexNet | 2012 | 89.2 | + 3.73 % |
Comparison of F1 Score between different models.
| Architectures Used | Year | F1 Score | Percentage Improvement |
|---|---|---|---|
| LeNet – 5 | 1998 | 0.85 | + 9.41 % |
| AlexNet | 2012 | 0.88 | + 5.68 % |
| VGG -16 | 2014 | 0.92 | + 1.09 % |
| ResNet – 50 | 2016 | 0.91 | + 2.2 % |
Comparison of Performance between different models using FPS parameter.
| Architectures Used | Year | Average Performance (FPS) | Percentage Improvement |
|---|---|---|---|
| LeNet – 5 | 1998 | 14.55 | + 7.97 % |
| AlexNet | 2012 | 6.31 | + 148.97 % |
| VGG -16 | 2014 | 2.76 | + 469.2 % |
| ResNet – 50 | 2016 | 2.89 | + 443.6 % |