A Real-time Face Mask Detection and Social Distancing System for COVID-19 using Attention-InceptionV3 Model

Abdullah Al Asif,Farhana Chowdhury Tisha
DOI: https://doi.org/10.38032/jea.2022.01.001
2024-11-08
Abstract:One of the deadliest pandemics is now happening in the current world due to COVID-19. This contagious virus is spreading like wildfire around the whole world. To minimize the spreading of this virus, World Health Organization (WHO) has made protocols mandatory for wearing face masks and maintaining 6 feet physical distance. In this paper, we have developed a system that can detect the proper maintenance of that distance and people are properly using masks or not. We have used the customized attention-inceptionv3 model in this system for the identification of those two components. We have used two different datasets along with 10,800 images including both with and without Face Mask images. The training accuracy has been achieved 98% and validation accuracy 99.5%. The system can conduct a precision value of around 98.2% and the frame rate per second (FPS) was 25.0. So, with this system, we can identify high-risk areas with the highest possibility of the virus spreading zone. This may help authorities to take necessary steps to locate those risky areas and alert the local people to ensure proper precautions in no time.
Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The problem that this paper attempts to solve is: How to reduce the risk of virus transmission during the COVID - 19 epidemic by real - time detection of face mask - wearing and maintenance of social distance. Specifically, the author has developed a system that uses deep - learning models (especially the customized Attention - InceptionV3 model) to identify whether people are wearing masks correctly and whether they have maintained sufficient social distance. ### Main problems: 1. **Mask - wearing detection**: Ensure that the public wears masks correctly in public places. 2. **Social distance monitoring**: Ensure that people maintain sufficient physical distance (for example, 6 feet) in public to reduce the possibility of virus transmission. ### Solutions: - **Model selection**: The author selected the InceptionV3 model for pre - training and combined the attention mechanism (Attention Mechanism) to improve the detection accuracy. - **Dataset**: Two different datasets were used, containing a total of 10,800 images, including images of people wearing masks and not wearing masks. - **Performance evaluation**: The training accuracy of this system reaches 98%, the validation accuracy reaches 99.5%, and it can process 25 frames per second (FPS) of video. ### Key techniques and methods: - **InceptionV3 model**: Used for feature extraction, this model has additional layers and can complete calculations in a relatively short time. - **Attention mechanism**: Helps the model focus on the most important parts of the image, thereby improving the accuracy of detection. - **Euclidean distance calculation**: Used to measure the pixel distance between two people to determine whether the social distance regulations have been violated. ### Application scenarios: This system can be deployed in public places (such as stations, shopping malls, etc.). It can monitor the crowd in real - time through cameras, automatically identify and warn those who do not comply with safety measures, thus helping the authorities to quickly take necessary preventive measures to ensure public safety. ### Future work: The author plans to further improve the system, for example, adding the detection of double - layer masks and face shields, and detecting body temperature through thermal imaging cameras, etc., so that the system can deal with more types of infectious diseases. Through these measures, this system not only helps to control the spread of COVID - 19, but can also be applied to the prevention and control of other infectious diseases.