• Sumitra Nuanmeesri Suan Sunandha Rajabhat University
  • Lap Poomhiran Faculty of Information Technology, King Mongkut’s University of Technology North Bangkok, 10800, Thailand
  • Preedawon Kadmateekarun Department of Information Technology, Faculty of Science and Technology, Suan Sunandha, Rajabhat University, Bangkok, 10300, Thailand
Keywords: Arduino, coronavirus, ESP32-CAM, face mask, internet of things, respiratory infections, warning system


The respiratory-related diseases can spread and cause infection from patients to other people easily. The mask can help preventing or reduce the risk of spreading respiratory diseases from person to person. This research presents the development of the warning system to the people for wearing the masks by using the ESP32-CAM and IoT devices. The Haar-like feature and cascade classify training techniques are used to detect the human faces and the masks in this system. A total of 2,160 sampling images was trained for modeling the mask detection on human faces.  The result shows that the accuracy of the developed system is 91.60% for mask detection. The system evaluation in black box testing has the mean value 4.51 with a standard deviation 0.51 and a mean value 4.62 with a standard deviation 0.49 by experts and users, respectively. Moreover, the acceptance of the system has a high consensus. It could be said that the developed system can detect and classify the person who is wearing the face mask for protecting the respiratory infection at the highest level.


Download data is not yet available.


. World Health Organization. Accessed on: 17-Apr-2020. [Online]. Available : https://www.who.int/health-topics/coronavirus/

. Miller, A. M., Brueck, H., and Gal, S. All the different types of face masks, and who should wear them during the coronavirus outbreak. Last Accessed on: 20-Mar-2020. [Online]. Available: https://www.businessinsider.com/types-of-masks-used-for-coronavirus-outbreak-n95-surgical-2020-3/

. Hicham, D. Which masks actually protect against coronavirus? Last Accessed on: 4-April-2020. [Online]. Available: http://emag.medicalexpo.com/which-masks-actually-protect-against-coronavirus/.

. Viola, P. and Jones, M. J. Rapid object detection using a boosted cascade of simple features. In Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. 2001. 1–1.

. Viola, P. and Jones, M. J. Robust real-time face detection. International Journal of Computer Vision. 2004. 57(2): 137–154.

. Wang, Y. Q. An analysis of the Viola-Jones face detection algorithm. Image Processing On Line. 2014, 4: 128–148.

. Gajjar, A., Yang, X., Wu, L., Koc, H., Unwala, I., Zhang, Y., and Feng, Y. An FPGA synthesis of face detection algorithm using Haar classifier. In Proceedings of the 2018 2nd International Conference on Algorithms, Computing and Systems; 2018. 133–137.

. Wilson, P. I. and Fernandez, J. Facial feature detection using Haar classifiers. Journal of Computing Sciences in Colleges. 2006. 21(4): 127–133.

. Best Xiaomi Smartmi anti-pollution air sport face mask. Accessed on: 10-May-2020. [Online]. Available: https://www.getprice.com.au/xiaomi-smartmi-anti-pollution-air-sport-face-mask.htm

. Medical mask PNG transparent image. Accessed on: 10-May-2020. [Online]. Available: http://www.pngmart.com/image/172423/

. Pitta Mask: Mask light gray color. Accessed on: 10-May-2020. [Online]. Available: https://www.robinson.co.th/en/pitta-mask-mask-light-gray-color-total-3-pcs-pack-rbs34856185/

. Half mask medium - PAF-1010 - CleanSpace. Accessed on: 10-May-2020. [Online]. Available: https://prosafety.com/en/cleanspace-accessories/1872-cleanspace-half-mask-medium--paf-1010.html

. Download pale blue face mask transparent PNG. Accessed on: 10-May-2020. [Online]. Available: https://www.stickpng.com/img/science/face-masks/pale-blue-face-mask/

. Hepa full face masks report chinese man uses sanitary pad as face mask in. Accessed on: 10-May-2020. [Online]. Available: http://agendametal.com.br/Buy-Hepa-Full-Face-Masks.html

. Face mask with valve - betterbuys sponduct reusable & washable for kids - blue. Accessed on: 10-May-2020. [Online]. Available: https://www.takealot.com/face-mask-with-valve-betterbuys-sponduct-reusable-washable-for-k/PLID69530356/

. Fine guard comfort face mask with livinguard technology. Accessed on: 10-May-2020. [Online]. Available: https://www.thefineshop.com/products/fine-guard-n95/

. KN95 FFP2 NR respirator face mask. Accessed on: 10-May-2020. [Online]. Available: https://www.serasupplies.com/product/kn95-ffp2-respirator-face-mask-uk/

. Doctor mask PNG image - surgical face mask UK, transparent PNG. Accessed on: 10-May-2020. [Online]. Available: https://www.uokpl.rs/rsmax/hoRRxix/

. Standard cone mask with headband, blue. Accessed on: 10-May-2020. [Online]. Available: https://products.halyardhealth.com/infection-prevention/facial-respiratory-protection/masks-respirators/standard-cone-mask-with-headband-blue.html

. Fernandez, C. 12 luxury face masks over $100 people are wearing just for fashion. Accessed on: 24-Aug-2020. [Online]. Available: https://www.insider.com/where-to-buy-designer-luxury-face-masks-2020-7/

. 3M face mask N95 (KN95) respirator 9501V+ PM2.5. Accessed on: 17-Jul-2020. [Online]. Available: https://www.obszone.com/22995/3m-face-mask-n95-kn95-respirator-9501v-pm2.5.html

. Miller, K. Pregnant women don't seem to have elevated risk of severe coronavirus, experts say. Accessed on: 12-May-2020. [Online]. Available: https://www.whattoexpect.com/news/pregnancy/pregnancy-coronavirus-risk/

. Respirator mask waterproof mask NK95 mask face. Accessed on: 10-May-2020. [Online]. Available: https://kn95facemask.en.made-in-china.com/product/YdGJSnKTuthx/China-Respirator-Mask-Waterproof-Mask-Nk95-Mask-Face.html

. MAXVIVI luminous personality mask dust masks men and women couple tide black heart cotton masks MK833271. Accessed on: 10-May-2020. [Online]. Available: https://www.openchinacart.com/supermall/8980259/

. Power unit - PAF-0034 - CleanSpace. Accessed on: 10-May-2020. [Online]. Available: https://prosafety.com/en/cleanspace-engineblocks/1738-cleanspace-power-unit--paf-0034.html

. Gas respirator anti-fog mask PM2.5 respirator mask filter dust mask. Accessed on: 10-May-2020. [Online]. Available: https://www.joom.com/en/products/5c85fbbc8b2c3701011fdb4e/

. Sritrakulchai,K., Samuthsorn, P., Suethong, W., and Boonsatit, N. Investigation for face and object identification from a digital image. Engineering and Applied Science Research.2013. 40(3):385–395.

. Nuanmeesri, S. (in press). Mobile application for the purpose of marketing, product distribution and location-based logistics for elderly farmers. Applied Computing and Informatics. 2020.

. Likert, R. A technique for the measurement of attitudes. Archives of Psychology. 1932.1–55.

. Nuanmeesri, S. The augmented reality for teaching Thai students about the human heart. International Journal of Emerging Technologies in Learning. 2018. 13(6): 203–213.

. Nuanmeesri, S. and Poomhiran, L. Perspective electrical circuit simulation with virtual reality. International Journal of Online Engineering. 2019. 15(5): 28–37.

. Nuanmeesri, S. Extended study of undergraduate students’usage of mobile application for individual differentiation learning support of lecture-based general education subjects. International Journal of Interactive Mobile Technologies. 2019. 13(9): 99–112.

How to Cite
Nuanmeesri, S., Poomhiran, L., & Kadmateekarun, P. (2020). FACE MASK DETECTION AND WARNING SYSTEM FOR PREVENTING RESPIRATORY INFECTION USING THE INTERNET OF THINGS. COMPUSOFT: An International Journal of Advanced Computer Technology, 9(9), 3810-3816. Retrieved from https://ijact.in/index.php/ijact/article/view/1205