Exploring Deep Learning Methods For Face Mask Detection
Exploring Deep Learning Methods For Face Mask Detection
ISSN No:-2456-2165
Abstract:- The global epidemic COVID-19 has brought surveillance applications where people can be monitored on
about a drastic change in the lives of mankind. Health and wearing a mask for the enforcement of the rules which can be
economic systems were severely impacted by the global implemented by embedding it to mobile applications and
epidemic. The world was under strict restrictions to fight CCTV or other embedded systems.
and control the pandemic. Wearing a face mask is an
essential protective measure to prevent the dissemination Initial screen check for entry are now mandatory at places
of virus in public. The reports suggests that a large like examination halls , offices, malls with regard to the covid
population often ignore or tend to avoid wearing masks restrictions and safety measures. The entry od an individual is
amid strict rules. The project's objective is to devise a face allowed only if the person wears a mask. The work is an useful
mask detector that can determine from visual inputs if an safety precaution and efficient screening and monitoring of
individual is wearing a mask. This work also focuses on security checks at public places and gatherings.
face mask detection of a moving face and can perform real
time face mask detection. Tensor Flow, Keras, OpenCV II. RELATED WORKS
and Scikit-Learn were used to buld the detector along with
Mobilenetv2 for face mask classification SSD (Single Shot There are several studies on approaches for face mask
Multibox detector) with Resnet as the base for face which includes one stage detectors and multi stage detectors
detection. with various classifiers like fast- RCNN, Haar classifiers.
Mohammed Loey in his work [1] developed a novel deep
Keywords:- Deep Learning, Object Detection, Face learning singlr stage detector model based on YOLO-v2 with
Recognition, TensorFlow, Keras, OpenCV, SSD, Mobilenet ResNet-50 for the detection of medical face masks. For feature
extraction, the ResNet-50 deep transfer learning model laid the
I. INTRODUCTION foundation, while a component based on YOLO v2 was
developed for the detection of medical face masks. Unlike
The world is fighting against the largest pandemic never models like RCNN and faster RCNN, which require two or
seen before in the history. Millions of people have been more stages, the YOLO is an one stage detector, allowing
affected by the pandemic and the deeath rates at many parts of detections to be completed in a single step. The proposed
the word are alarmimg. Lockdowns and counter measures had model had poor probability probability or confidence scores
been taken to control the spread of the virus which had great and the confidence of the predicted results was relatively low.
impacts on the economy and people. Unlocking phases are
initiated at different regions and the lives are becoming back Zhang, Jun in his paper [2] proposed a novel detection
to normal but the precautions can never be ignored. The only framework based on the attention mechanism which explicitly
way to outlive the situations is to continue to follow all safety balanced the multiple context features named Context-
measures to control the spread of viruses. Attention R-CNN. The shortcoming of the system is that it
used more hyper parameters and had higher training and
At this phase when the number of instances of covid inference time. The context information was also used by M.
is rising daily and holding our lives in huge risk, the face mask Jiang and X. Fan in their paper [3] which proposed
detector stands out as a step towards monitoring and RetinaMask detector based on the single-stage generic
maintaining a safe and healthy environment. Although the detector named RetinalNet. The RetinaMask also attempted to
virus cannot be completely eradicated, we may take safe and extract the robust feature while taking into account the context
healthy steps to live with it. Face masks are now required to information. RetinaFaceMask combined the high-level
be worn even in locations where lockdown restrictions have semantic data using various feature maps and a feature
been lifted in order to prevent further mass propagation. In this pyramid network (FPN). The detector however had long
regard, the initiative attempted to help the security procedures training time and had complicated post processing.
and systems for detecting whether the face mask is worn by
every individual. B. Qin and D. Li [4] developed a new facemask-wearing
condition identification method by combining image super-
Wearing face mask is now a mandatory measure while resolution and classification networks (SRCNet). However,
stepping out anywhere. Strict measures were taken by the there was a lengthy training process for the system, and it had
government to enforce the rules in this regard to avoid a tendency to fail when the local face was clipped. The study
commuting the virus. A face mask detector arenow used for [5] developed a two-stage method employing hybrid machine
The faces, or a list of faces with their corresponding The model's average accuracy in predicting whether a
locations, and the list of predictions from the face mask person wearing a face masks or not on a validation dataset is
network were obtained for the purpose of face detection. The 99%. The plot in Figure 3 depicts the training loss and
confidence which was the probability associated with the accuracy. The predictions on sample images using the face
detections was extracted by looping over all the detections for mask detector is shown in Figure 4.
video and just on the detection for image. By making sure the
confidence was higher than the minimum confidence, the
weak detections were eliminated. Every detection that fell
below the confidence level was ignored.
IV. RESULTS
The evaluation metrics accuracy , precision and F1 score Fig 4: Predictions on test images
were used to evaluate the performance of face mask detector.
The classes were balanced, thus the accuracy metric is an
excellent measure to start. Precision provided a measure of the
values that the mask predicted. The classifier could discover
all positive samples using recall, and test accuracy was
determined by the f1 score. The best results in a balanced
dataset were obtained using these evaluation metrics, so that
they were chosen. The classification report for the model is as
given below in Table 1
V. CONCLUSION
REFERENCES