- Ashwin Joseph and Refinath S N
- December 8, 2020
AI-driven Face Mask and Attire Detection for the new normal
As people around the world prepare to get back to work in the new normal, workplaces are leveraging cutting-edge tech-driven solutions to ensure safety standards for all. AI-driven computer vision systems are being deployed by companies to enforce and monitor social distancing, detecting violations of face masks and safety jackets on their premises.
As governments and companies are coming to rely on AI for these critical everyday tasks, a robust system was envisioned and built by our engineering team using Ignitarium’s proprietary computer vision tech called FLK-i.
The system is built to automate the task of verification of attire in the company or factory premises, namely mask and jacket so as to give or deny access to a person. The system also validates the requisite positional characteristics, i.e., just holding a mask or wearing it improperly around the face won’t suffice to gain access. The mask has to be worn correctly by the person to gain access to restricted areas. The approach taken by the Ignitarium engineering team is detailed in subsequent sections:
- Dataset preparation
- Labelling
- Approach to solving the problem
- Person Detection Model Selection
- Classification of Detected Images
Dataset Preparation
In order to train a model, we must start with the appropriate amount of relevant data. For FLK-i attire and mask detection, we used a variety of data sources: use of open-source datasets, engagement of 3rd party data collection agencies, internal collection via colleagues, general crowd-sourcing, and the use of actual field data. Using the corpus of collected images, we create custom datasets using a combination of selective manual segregation and image processing based binning.
Labelling
Labelling is an important part of any ML-based system. The model training yields maximum accuracy only if the labels are correct. During the initial phases of model evolution, manual labeling is employed. As the model gains maturity, we use the ‘auto-label’ mode of our application framework to leverage person detection models to dump labeled images. Over a period of time, as the model started improving, the focus shifted to dumping false-positive images using updated weights to tune our models on failure cases and prevent data redundancy on those classes of images that are already correctly predicted.
Approach to solving the problem
The approach to solving the problem is to use a detection network in order to identify the presence of a human in the camera feed as well as get the coordinates of the person within the frame. Once this is done, we proceed with a Classifier for each type of attire to determine whether the attire is worn by the person detected in a proper manner.
Person Detection Model Selection
The application currently has two different methods of detecting attire: namely usage of Single Shot detectors and Pose estimators. SSD utilizes the entire image collected for detection purposes whereas pose estimation automatically identifies the face and body region of each person being tested and identifies the attire based on these regions detected within the image.
While custom implementations are used in our application, the following sections describe the general approach using well-known SSD and pose estimation architectures.
Mobilenet-SSD Model

Source: link
Single-shot detector-MobileNet (SSD) models have proven ability to detect and delineate object boundaries as well as have the ability to perform tracking. The input dimensions of the images to the model used is 224x224x3.
If the person is detected, a bounding box will be drawn in real-time over the same to confirm the person is detected. Once the same is validated, the app will proceed to the detection of attire.
Posenet Model

Source: link
PoseNet is a recent launch from Google that can be used to estimate the pose of a person in an image or video by estimating where key body joints are. We developed custom algorithms to then proceed with identifying the location and alignment of the body areas of interest namely body for jacket attire detection and head for mask detection. The input dimensions of the images to the model used is 224x224x3.
This method works by identifying Face and Body regions in the image. This is done by the AI automatically detecting different body and face features of the human body and after the required features are validated, it will proceed to the detection of attire.
The Posenet repository is available for reference here:
https://github.com/tensorflow/tfjs-models/tree/master/posenet
https://github.com/infocom-tpo/tf-openpose
Classification of Detected Images
Once the detections from either of the detection models is available it is passed through a Mobilenet architecture based classifier, employing residual layers as well as depthwise and pointwise convolution layers.
In the case of SSD, the entire crop of the region detected as a person is passed over to two classifiers – one for mask check and another for jacket attire check presence.
Application Snapshots
Here are some of the snapshots of the application:

Application startup screen
The following are sample images of the application detecting persons wearing and not wearing the prescribed jacket.

Application screenshot of a person not wearing jacket attire

Application screenshot of the person wearing jacket attire
The images below are the snapshots for the application when it detects the presence of a person and checks for mask attire.

Application screenshot of a person not wearing mask attire
Application screenshot of a person wearing mask attire
Performance
The FLK-i attire detection module is implemented on a host of hardware platforms ranging from NPX i.MX8 to the NVIDIA Jetson family. Accuracy levels achieved are 95%+ and the fps (frames per second) range from 2fps to 15fps.
Conclusion
The task of attire and mask detection was solved using customized detectors, pose estimators, and classifiers. The deep learning models were trained so as to also take into consideration the required positional factors. The resulting solution has been successfully tested and deployed in the field.

As more employees all over the world get back to their workplaces, their safety and wellbeing has become the number one priority of employers across industries. Ignitarium’s AI engineering teams have been quick in responding to the needs of companies during the pandemic and are continuously creating solutions using AI that are relevant and reliable.
226 thoughts on “AI-driven Face Mask and Attire Detection for the new normal”
acheter medicament sans ordonnance: antalgique sans ordonnance – tadalafil 20 mg sans ordonnance
acheter betamethasone sans ordonnance: cortisone sans ordonnance – ordonnance tadalafil
http://zorgpakket.com/# medicatielijst apotheek
https://tryggmed.shop/# er apoteket åpent i dag
hansker apotek [url=http://tryggmed.com/#]apotek sverige[/url] sovemaske apotek
belgische online apotheek: pillen bestellen – medicijnen kopen
medicijn bestellen apotheek: MedicijnPunt – medicijnlijst apotheek
https://snabbapoteket.com/# beställa medicin online
klorhexidin apotek [url=https://tryggmed.shop/#]Trygg Med[/url] hГҐrfiber apotek
kjГёpe medisin pГҐ nett: TryggMed – mygg klistremerker apotek
medicijnen online kopen: medicijnen zonder recept kopen – frenadol kopen in nederland
http://zorgpakket.com/# medicijnen aanvragen
https://zorgpakket.com/# online apotheek nederland zonder recept
tandblekning apotek [url=http://snabbapoteket.com/#]kolla recept apotek[/url] skänka blöjor
riklig mens vid 50 Г¤r: apotek fullmakt blankett – mens tabletter
jobbar pГҐ apotek: se recept online – l-serin apotek
https://tryggmed.com/# aptoek
alfa liponsyre apotek: Гёreskyll apotek – dГҐrlig ГҐnde apotek
skillnad bb och cc cream [url=http://snabbapoteket.com/#]e apotek[/url] köpa medicin på nätet utan recept
bestГ¤lla nГ¤ringsdryck pГҐ recept: SnabbApoteket – antigentest apotek
https://tryggmed.shop/# legevakten apotek
https://tryggmed.com/# sjampo mot flass apotek
sax pГҐ engelska: SnabbApoteket – sverige apotek
Гёrespray apotek [url=http://tryggmed.com/#]TryggMed[/url] akupunkturnГҐler apotek
pregnancy test apotek: SnabbApoteket – apotek fullmakt
https://zorgpakket.shop/# online medicatie bestellen
tandvГҐrd gravid gratis: SnabbApoteket – rabattkod apotek
apteka nl [url=https://zorgpakket.com/#]medicijn bestellen[/url] de apotheker
magnesium apotek: Гёrevoks apotek – urinveisinfeksjon apotek
http://snabbapoteket.com/# express apotek
https://tryggmed.com/# varmepose apotek
cheap cialis mexico: best mexican pharmacy online – MediMexicoRx
http://medimexicorx.com/# MediMexicoRx
viagra online pharmacy prices [url=https://expresscarerx.online/#]ExpressCareRx[/url] euro pharmacy cialis
accutane mexico buy online: legit mexico pharmacy shipping to USA – MediMexicoRx
IndiaMedsHub: mail order pharmacy india – buy medicines online in india
http://medimexicorx.com/# reputable mexican pharmacies online
reputable indian online pharmacy [url=https://indiamedshub.shop/#]Online medicine home delivery[/url] IndiaMedsHub
http://indiamedshub.com/# IndiaMedsHub
ExpressCareRx: testosterone cream online pharmacy – pharmacy price of viagra
http://indiamedshub.com/# reputable indian online pharmacy
indian pharmacy paypal [url=https://indiamedshub.com/#]pharmacy website india[/url] pharmacy website india
order from mexican pharmacy online: MediMexicoRx – order azithromycin mexico
get viagra without prescription from mexico: generic drugs mexican pharmacy – buy meds from mexican pharmacy
https://expresscarerx.online/# finpecia uk pharmacy
cheapest online pharmacy india [url=https://indiamedshub.com/#]online pharmacy india[/url] mail order pharmacy india
https://expresscarerx.online/# ExpressCareRx
online shopping pharmacy india: buy prescription drugs from india – mail order pharmacy india
http://indiamedshub.com/# reputable indian pharmacies
online shopping pharmacy india: pharmacy website india – best india pharmacy
no prescription pharmacy [url=https://expresscarerx.org/#]freds pharmacy store hours[/url] ExpressCareRx
https://medimexicorx.com/# best online pharmacies in mexico
best india pharmacy: world pharmacy india – cheapest online pharmacy india
enalapril online pharmacy: domperidone online pharmacy – ExpressCareRx
india pharmacy mail order [url=https://indiamedshub.shop/#]best india pharmacy[/url] Online medicine order
https://medimexicorx.com/# MediMexicoRx
https://medimexicorx.shop/# best online pharmacies in mexico
contrave online pharmacy: cure rx pharmacy – true rx pharmacy
MediMexicoRx: legit mexican pharmacy for hair loss pills – MediMexicoRx
MediMexicoRx [url=https://medimexicorx.com/#]MediMexicoRx[/url] order kamagra from mexican pharmacy
https://indiamedshub.shop/# IndiaMedsHub
IndiaMedsHub: IndiaMedsHub – indian pharmacy online
MediMexicoRx: MediMexicoRx – MediMexicoRx
online pharmacy uk [url=http://expresscarerx.org/#]pharmacy drug store in finland[/url] contrave online pharmacy
https://medimexicorx.shop/# MediMexicoRx
MediMexicoRx: MediMexicoRx – MediMexicoRx
modafinil mexico online: semaglutide mexico price – cheap mexican pharmacy
http://medimexicorx.com/# medication from mexico pharmacy
top 10 online pharmacy in india [url=https://indiamedshub.shop/#]online pharmacy india[/url] india pharmacy mail order
This is really interesting, You’re a very skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your site in my social networks!
IndiaMedsHub: cheapest online pharmacy india – IndiaMedsHub
http://tadalafilfromindia.com/# generic Cialis from India
Propecia for hair loss online [url=https://finasteridefromcanada.com/#]generic Finasteride without prescription[/url] generic Finasteride without prescription
buy Zoloft online: buy Zoloft online – generic sertraline
https://zoloft.company/# sertraline online
Zoloft for sale [url=https://zoloft.company/#]purchase generic Zoloft online discreetly[/url] buy Zoloft online
https://lexapro.pro/# Lexapro for depression online
lexapro prescription price: Lexapro for depression online – Lexapro for depression online
purchase generic Accutane online discreetly: purchase generic Accutane online discreetly – generic isotretinoin
https://finasteridefromcanada.shop/# Propecia for hair loss online
order cheap propecia pills [url=http://finasteridefromcanada.com/#]generic Finasteride without prescription[/url] cheap Propecia Canada
buy generic propecia without a prescription: cheap Propecia Canada – generic Finasteride without prescription
cheap Zoloft: Zoloft online pharmacy USA – cheap Zoloft
https://isotretinoinfromcanada.shop/# buy Accutane online
http://finasteridefromcanada.com/# Propecia for hair loss online
Lexapro for depression online [url=https://lexapro.pro/#]lexapro 10 mg generic[/url] where to buy generic lexapro
purchase generic Zoloft online discreetly: Zoloft Company – sertraline online
cheap Propecia Canada: Finasteride From Canada – generic Finasteride without prescription
https://isotretinoinfromcanada.shop/# isotretinoin online
sertraline online [url=https://zoloft.company/#]buy Zoloft online[/url] Zoloft for sale
USA-safe Accutane sourcing: buy Accutane online – buy Accutane online
Zoloft Company: cheap Zoloft – Zoloft for sale
https://lexapro.pro/# Lexapro for depression online
https://finasteridefromcanada.com/# cheap Propecia Canada
sertraline online [url=https://zoloft.company/#]Zoloft for sale[/url] generic sertraline
sertraline online: Zoloft for sale – cheap Zoloft
https://zoloft.company/# purchase generic Zoloft online discreetly
order isotretinoin from Canada to US: Isotretinoin From Canada – Isotretinoin From Canada
buy Cialis online cheap [url=https://tadalafilfromindia.com/#]Cialis without prescription[/url] Cialis without prescription
https://tadalafilfromindia.com/# tadalafil online no rx
Lexapro for depression online: Lexapro for depression online – Lexapro for depression online
Isotretinoin From Canada: cheap Accutane – Accutane for sale
https://zoloft.company/# sertraline online
https://finasteridefromcanada.com/# Propecia for hair loss online
order isotretinoin from Canada to US [url=http://isotretinoinfromcanada.com/#]USA-safe Accutane sourcing[/url] USA-safe Accutane sourcing
Tadalafil From India: generic tadalafil daily – generic Cialis from India
Finasteride From Canada: generic Finasteride without prescription – generic propecia tablets
https://zoloft.company/# cheap Zoloft
tadalafil online no rx [url=https://tadalafilfromindia.shop/#]Tadalafil From India[/url] generic Cialis from India
cheap Accutane: order isotretinoin from Canada to US – Accutane for sale
Lexapro for depression online: where can i purchase lexapro online – lexapro cheapest price
http://finasteridefromcanada.com/# buy propecia without rx
https://finasteridefromcanada.com/# cheap propecia prices
Lexapro for depression online: Lexapro for depression online – Lexapro for depression online
Lexapro for depression online [url=https://lexapro.pro/#]Lexapro for depression online[/url] buy lexapro from canada
Lexapro for depression online: Lexapro for depression online – lexapro drug
https://tadalafilfromindia.com/# cheap Cialis Canada
cheap Accutane: order isotretinoin from Canada to US – buy Accutane online
buy Zoloft online [url=https://zoloft.company/#]Zoloft for sale[/url] buy Zoloft online
Propecia for hair loss online: get propecia without a prescription – generic Finasteride without prescription
https://tadalafilfromindia.com/# generic Cialis from India
https://zoloft.company/# buy Zoloft online without prescription USA
isotretinoin online: order isotretinoin from Canada to US – order isotretinoin from Canada to US
cheap Propecia Canada [url=https://finasteridefromcanada.shop/#]Finasteride From Canada[/url] propecia prices
https://isotretinoinfromcanada.shop/# buy Accutane online
cheap Propecia Canada: generic Finasteride without prescription – cost cheap propecia without a prescription
lexapro cheapest price [url=https://lexapro.pro/#]Lexapro for depression online[/url] Lexapro for depression online
Finasteride From Canada: generic Finasteride without prescription – Finasteride From Canada
generic sertraline: generic sertraline – cheap Zoloft
cheap Propecia Canada [url=https://finasteridefromcanada.com/#]generic Finasteride without prescription[/url] Propecia for hair loss online
https://finasteridefromcanada.com/# Propecia for hair loss online
Lexapro for depression online: Lexapro for depression online – lexapro tablets price
Cialis without prescription: tadalafil online no rx – Tadalafil From India
Zoloft for sale [url=https://zoloft.company/#]purchase generic Zoloft online discreetly[/url] purchase generic Zoloft online discreetly
USA-safe Accutane sourcing: purchase generic Accutane online discreetly – order isotretinoin from Canada to US
Tadalafil From India: cheap Cialis Canada – Cialis without prescription
where to buy generic lexapro [url=https://lexapro.pro/#]Lexapro for depression online[/url] cheapest price for generic lexapro
https://zoloft.company/# buy Zoloft online without prescription USA
USA-safe Accutane sourcing: cheap Accutane – generic isotretinoin
sertraline online: sertraline online – Zoloft for sale
isotretinoin online: generic isotretinoin – USA-safe Accutane sourcing
http://isotretinoinfromcanada.com/# Accutane for sale
Zoloft for sale: Zoloft Company – purchase generic Zoloft online discreetly
order isotretinoin from Canada to US: buy Accutane online – generic isotretinoin
prednisone 5 mg cheapest: Relief Meds USA – prednisone 20 mg tablets coupon
buy Modafinil online USA: affordable Modafinil for cognitive enhancement – Modafinil for ADHD and narcolepsy
NeuroRelief Rx [url=http://neuroreliefrx.com/#]gabapentin 300mg capsule[/url] gabapentin 1a pharma 100 mg kapseln
order corticosteroids without prescription: prednisone 2.5 mg daily – order corticosteroids without prescription
https://neuroreliefrx.shop/# NeuroRelief Rx
order prednisone: order corticosteroids without prescription – ReliefMeds USA
ClearMeds Direct: order amoxicillin without prescription – Clear Meds Direct
affordable Modafinil for cognitive enhancement: wakefulness medication online no Rx – smart drugs online US pharmacy
peripheral edema from gabapentin [url=https://neuroreliefrx.com/#]NeuroRelief Rx[/url] NeuroRelief Rx
Relief Meds USA: buy prednisone 10mg – Relief Meds USA
order amoxicillin no prescription: low-cost antibiotics delivered in USA – Clear Meds Direct
https://wakemedsrx.shop/# WakeMeds RX
anti-inflammatory steroids online: prednisone pack – ReliefMeds USA
amoxicillin 500mg no prescription [url=https://clearmedsdirect.shop/#]antibiotic treatment online no Rx[/url] low-cost antibiotics delivered in USA
low-cost antibiotics delivered in USA: low-cost antibiotics delivered in USA – ClearMeds Direct
where can i buy cheap clomid pill: cheap clomid pills – Clomid Hub Pharmacy
ReliefMeds USA [url=https://reliefmedsusa.shop/#]prednisone 10[/url] anti-inflammatory steroids online
anti-inflammatory steroids online: prednisone tablets india – order corticosteroids without prescription
Clomid Hub: get cheap clomid without dr prescription – order clomid without rx
http://clomidhubpharmacy.com/# can you get cheap clomid without a prescription
order corticosteroids without prescription: anti-inflammatory steroids online – anti-inflammatory steroids online
NeuroRelief Rx [url=http://neuroreliefrx.com/#]300 mg gabapentin[/url] NeuroRelief Rx
gabapentin for sale: NeuroRelief Rx – NeuroRelief Rx
amoxicillin 800 mg price: amoxicillin 875 mg tablet – ClearMeds Direct
anti-inflammatory steroids online [url=https://reliefmedsusa.com/#]order corticosteroids without prescription[/url] drug prices prednisone
Relief Meds USA: order corticosteroids without prescription – order corticosteroids without prescription
ketamine gabapentin clonidine: is gabapentin scheduled – gabapentin lower extremity edema
prednisone steroids [url=http://reliefmedsusa.com/#]Relief Meds USA[/url] ReliefMeds USA
https://clomidhubpharmacy.shop/# can you buy generic clomid without a prescription
ReliefMeds USA: Relief Meds USA – Relief Meds USA
buying prednisone without prescription: Relief Meds USA – ReliefMeds USA
ReliefMeds USA: buy prednisone online paypal – ReliefMeds USA
NeuroRelief Rx [url=http://neuroreliefrx.com/#]gabapentin extended release depomed[/url] fluoxetine brand name
Clomid Hub: where buy cheap clomid no prescription – Clomid Hub Pharmacy
order corticosteroids without prescription: prednisone 4mg – ReliefMeds USA
can you take paxil and gabapentin together: gabapentin mot ibs – NeuroRelief Rx
low-cost antibiotics delivered in USA [url=https://clearmedsdirect.com/#]order amoxicillin without prescription[/url] Clear Meds Direct
https://clomidhubpharmacy.shop/# Clomid Hub Pharmacy
anti-inflammatory steroids online: anti-inflammatory steroids online – anti-inflammatory steroids online
ReliefMeds USA: prednisone without rx – ReliefMeds USA
generic amoxil 500 mg: buy amoxicillin over the counter uk – order amoxicillin without prescription
antibiotic treatment online no Rx [url=http://clearmedsdirect.com/#]antibiotic treatment online no Rx[/url] low-cost antibiotics delivered in USA
Your article helped me a lot, is there any more related content? Thanks!
NeuroRelief Rx: NeuroRelief Rx – can gabapentin cause restless leg syndrome
anti-inflammatory steroids online: order corticosteroids without prescription – anti-inflammatory steroids online
buy prednisone online without a script: prednisone without a prescription – prednisone best price
gabapentin 300 mg how to take [url=http://neuroreliefrx.com/#]NeuroRelief Rx[/url] gabapentin does it show up in drug test
how to get prednisone tablets: buy prednisone 5mg canada – prednisone 10mg tablet cost
https://neuroreliefrx.com/# NeuroRelief Rx
order corticosteroids without prescription: Relief Meds USA – ReliefMeds USA
Relief Meds USA: cheap generic prednisone – order corticosteroids without prescription
amoxicillin price without insurance [url=https://clearmedsdirect.com/#]order amoxicillin without prescription[/url] antibiotic treatment online no Rx
anti-inflammatory steroids online: order corticosteroids without prescription – Relief Meds USA
safe Provigil online delivery service: affordable Modafinil for cognitive enhancement – smart drugs online US pharmacy
prednisone 20mg tablets where to buy: Relief Meds USA – anti-inflammatory steroids online
ReliefMeds USA [url=https://reliefmedsusa.com/#]anti-inflammatory steroids online[/url] buy prednisone canada
safe canadian pharmacy: CanadRx Nexus – canadian pharmacy meds reviews
online mexico pharmacy USA: prescription drugs mexico pharmacy – MexiCare Rx Hub
http://indigenixpharm.com/# IndiGenix Pharmacy
get viagra without prescription from mexico: best mexican pharmacy online – generic drugs mexican pharmacy
IndiGenix Pharmacy [url=https://indigenixpharm.shop/#]IndiGenix Pharmacy[/url] buy medicines online in india
CanadRx Nexus: CanadRx Nexus – CanadRx Nexus
CanadRx Nexus: CanadRx Nexus – 77 canadian pharmacy
MexiCare Rx Hub: MexiCare Rx Hub – MexiCare Rx Hub
CanadRx Nexus [url=http://canadrxnexus.com/#]canadian pharmacy meds review[/url] CanadRx Nexus
mexican pharmacy for americans: MexiCare Rx Hub – MexiCare Rx Hub
india online pharmacy: indianpharmacy com – top 10 online pharmacy in india
https://indigenixpharm.shop/# mail order pharmacy india
canada pharmacy online: CanadRx Nexus – CanadRx Nexus
online pharmacy india [url=https://indigenixpharm.com/#]indianpharmacy com[/url] Online medicine home delivery
buy antibiotics over the counter in mexico: MexiCare Rx Hub – legit mexican pharmacy for hair loss pills
CanadRx Nexus: my canadian pharmacy rx – canadian pharmacy meds review
zithromax mexican pharmacy: MexiCare Rx Hub – MexiCare Rx Hub
safe place to buy semaglutide online mexico [url=https://mexicarerxhub.shop/#]MexiCare Rx Hub[/url] buy viagra from mexican pharmacy
mail order pharmacy india: IndiGenix Pharmacy – indian pharmacies safe
https://mexicarerxhub.shop/# MexiCare Rx Hub
MexiCare Rx Hub: MexiCare Rx Hub – MexiCare Rx Hub
IndiGenix Pharmacy [url=https://indigenixpharm.com/#]Online medicine home delivery[/url] Online medicine home delivery
IndiGenix Pharmacy: mail order pharmacy india – mail order pharmacy india
MexiCare Rx Hub: MexiCare Rx Hub – modafinil mexico online
MexiCare Rx Hub: MexiCare Rx Hub – buying prescription drugs in mexico
IndiGenix Pharmacy [url=http://indigenixpharm.com/#]IndiGenix Pharmacy[/url] IndiGenix Pharmacy