Face Mask Detection

[ machine-learning | academic ]

Summary

In an investigative foray into face mask detection utilizing YOLOv4, this study has successfully crafted a model with a mAP of 73.62% at an IoU threshold of 0.50. A comprehensive review of contemporary real-time object detection algorithms, including SSD and YOLO variants, established YOLOv4 as the preeminent choice in terms of speed and accuracy, even when juxtaposed with Google’s EfficientDet and Facebook’s RetinaNet/MaskRCNN.

The model demonstrated exceptional proficiency in detecting correctly worn face masks, achieving an impressive mAP of 90.08%. It also showed reasonable effectiveness in identifying partially visible faces. However, the detection of improperly worn masks, colloquially termed ‘chin diapers,’ was less robust, a limitation attributed to the limited diversity in the training dataset. The study suggests that future enhancements could include the development of a more comprehensive dataset and the integration of advanced data augmentation techniques.

Crucially, the study underscores the importance of high accuracy in identifying individuals correctly wearing masks as they are the primary focus for admission into monitored spaces. The ability of the system to flag individuals not wearing masks or wearing them incorrectly is a pivotal feature, analogous to a security officer’s role at the entrance.

Read the Full Paper

Facemask detection dataset taken from Kaggle

Image Augmentation

Fine Tuning

Training on Google Colab

Example Detections

Mask 1
Figure 1: All three classes: Mask, No Mask, Chin Diaper (incorrectly worn mask).
Mask 2
Figure 2: Person correctly wearing a facemask showing a person wearing a chin diaper.
Mask 3
Figure 3: Example Detection.
Mask 4
Figure 4: World's Largest Selfie (not mine).
Mask 5
Figure 5: Person with a literal diaper around the chin... what is the correct answer??

Read the Full Paper