Developing a Deep Learning Face Mask Detection Prototype in Two Days
Face masks are a critical tool for fighting the spread of COVID-19, and are proven to be most effective when face coverings are worn universally. As stores and businesses reopen, ensuring all occupants wear a face mask is essential. However, the additional resources required to monitor patrons can further strain businesses already struggling to meet other sanitation and social distancing guidelines. Deep learning solutions are capable of automatically detecting anyone in violation of face mask guidelines, saving employee time and ensuring safer environments.
DEPLOYING DEEP LEARNING
Deep learning is a form of machine learning that uses neural networks with many “deep” layers between the input and output nodes. By training a network on a large data set, a model is created that can be used to make accurate predictions based on unseen data. In this case, the network can be trained to detect not only face masks, but if a face mask is worn correctly on a person’s face.
A fully functioning deep learning system can be developed and deployed in a matter of days. Using a FLIR Firefly DL camera, FLIR engineers developed a system for detecting compliance and flagging users who may be in violation of PPE (Personal Protection Equipment) guidelines. The face mask detection dataset used 2 publicly available libraries with over 1000 images to provide examples of people with, without, and incorrectly wearing face masks in different environments. Other cameras suited for this purpose include the Blackfly S GigE- for more information about FLIR machine vision solutions, contact sales.
AN ADAPTABLE SOLUTION
Each image in the face mask dataset was annotated with bounding boxes showing object locations and class labels indicating which faces had the mask on, which did not, and if they were worn appropriately. Deep learning developers and solution integrators can easily expand this solution to cover more complex and robust use cases for deployment in the real world. For example, the neural network can be trained to detect face shields, gowns, gloves, and other PPE within high risk / high traffic environments like hospitals and airports.
Contact us today to learn more about building a deep learning solution on a budget or getting started with Firefly DL.
Note: This article was originally published on FLIR website.