phat 21(25): e4

Research Article

An Efficient Face Mask Detector with PyTorch and Deep Learning

Download45 downloads
  • @ARTICLE{10.4108/eai.8-1-2021.167843,
        author={CMAK. Zeelan Basha and B.N. Lakshmi Pravallika and E. Bharani Shankar},
        title={An Efficient Face Mask Detector with PyTorch and Deep Learning},
        journal={EAI Endorsed Transactions on Pervasive Health and Technology},
        volume={7},
        number={25},
        publisher={EAI},
        journal_a={PHAT},
        year={2021},
        month={1},
        keywords={COVID-19, face mask, resnet, pytorch, RMFRD},
        doi={10.4108/eai.8-1-2021.167843}
    }
    
  • CMAK. Zeelan Basha
    B.N. Lakshmi Pravallika
    E. Bharani Shankar
    Year: 2021
    An Efficient Face Mask Detector with PyTorch and Deep Learning
    PHAT
    EAI
    DOI: 10.4108/eai.8-1-2021.167843
CMAK. Zeelan Basha1,*, B.N. Lakshmi Pravallika2, E. Bharani Shankar2
  • 1: Assistant Professor, Koneru Lakshmaiah Educational Foundation, Guntur, Andhra Pradesh, India
  • 2: Student, Koneru Lakshmaiah Educational Foundation, Guntur, Andhra Pradesh, India
*Contact email: Cmak.zeelan@gmail.com

Abstract

INTRODUCTION: The outbreak ofacoronavirus disease in 2019 (COVID-19) has created a global health epidemic that has had a major effect on the way we view our environment and our daily lives. The Covid-19 affected numbers are rising at a tremendous pace. Because of that, many countries face an economic catastrophe, recession, and much more. One thing we should do is to separate ourselves from society, remain at home, and detach ourselves from the outside world. But that's no longer a choice, people need to earn to survive, and nobody can remain indefinitely within their homes. As a precaution, people should wear masks while keeping social distance, but some ignore such things and walk around.

OBJECTIVES: To develop aFace Mask Detector with OpenCV, PyTorch, and Deep Learning that helps to detect whether or not a person wears a mask.

METHODS: A Neural Network model called ResNet is trained on the dataset. Furthermore, this work makes use of the inbuilt Face Detector after training. Finally, we predict whether or not a person is wearing a mask along with the percentage of the face covered or uncovered.

RESULTS: The validation results have been proposed to be 97% accurate when compared to applying different algorithms.

CONCLUSION: This Face Mask Detection System was found to be apt for detecting whether or not people wear masks in public places which contribute to their health and also to the health of their contacts in this COVID-19 pandemic.