{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T01:41:48Z","timestamp":1760060508788,"version":"build-2065373602"},"reference-count":41,"publisher":"MDPI AG","issue":"9","license":[{"start":{"date-parts":[[2025,8,31]],"date-time":"2025-08-31T00:00:00Z","timestamp":1756598400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computers"],"abstract":"<jats:p>Epidemics caused by respiratory infections have become a global and systemic threat since humankind has become highly connected via modern transportation systems. Any new pathogen with human-to-human transmission capabilities has the potential to cause public health disasters and severe disruptions of social and economic activities. During the COVID-19 pandemic, we learned that proper mask-wearing in closed, restricted areas was one of the measures that worked to mitigate the spread of respiratory infections while allowing for continuing economic activity. Previous research approached this issue by designing hardware\u2013software systems that determine whether individuals in the surveilled restricted area are using a mask; however, most such solutions are centralized, thus requiring massive computational resources, which makes them hard to scale up. To address such issues, this paper proposes a novel decentralized, federated learning (FL) solution to mask-wearing detection that instantiates our lightweight version of the MobileNetV2 model. The FL solution also ensures individual privacy, given that images remain at the local, device level. Importantly, we obtained a mask-wearing training accuracy of 98% (i.e., similar to centralized machine learning solutions) after only eight rounds of communication with 25 clients. We rigorously proved the reliability and robustness of our approach after repeated K-fold cross-validation.<\/jats:p>","DOI":"10.3390\/computers14090360","type":"journal-article","created":{"date-parts":[[2025,9,2]],"date-time":"2025-09-02T08:23:38Z","timestamp":1756801418000},"page":"360","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Real-Time Face Mask Detection Using Federated Learning"],"prefix":"10.3390","volume":"14","author":[{"ORCID":"https:\/\/orcid.org\/0009-0001-2186-1307","authenticated-orcid":false,"given":"Tudor-Mihai","family":"David","sequence":"first","affiliation":[{"name":"Computer and Information Technology Department, Politehnica University of Timisoara, 300223 Timisoara, Romania"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7607-9240","authenticated-orcid":false,"given":"Mihai","family":"Udrescu","sequence":"additional","affiliation":[{"name":"Computer and Information Technology Department, Politehnica University of Timisoara, 300223 Timisoara, Romania"}]}],"member":"1968","published-online":{"date-parts":[[2025,8,31]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"101682","DOI":"10.1016\/j.frl.2020.101682","article-title":"Systemic risk: The impact of COVID-19","volume":"36","author":"Rizwan","year":"2020","journal-title":"Financ. Res. Lett."},{"key":"ref_2","unstructured":"Topirceanu, A., Udrescu, M., and Marculescu, R. (2020). Centralized and decentralized isolation strategies and their impact on the COVID-19 pandemic dynamics. arXiv."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Hurtado, S., Marculescu, R., and Drake, J. (2022, January 10\u201313). Quarantine in Motion: A Graph Learning Framework to Reduce Disease Transmission Without Lockdown. Proceedings of the 2022 IEEE\/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM), Istanbul, Turkey.","DOI":"10.1109\/ASONAM55673.2022.10068686"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Horstmeyer, L., Kuehn, C., and Thurner, S. (2022). Balancing quarantine and self-distancing measures in adaptive epidemic networks. Bull. Math. Biol., 84.","DOI":"10.1007\/s11538-022-01033-3"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"100013","DOI":"10.1016\/j.ijnsa.2020.100013","article-title":"A rapid review of the use of face mask in preventing the spread of COVID-19","volume":"3","author":"Salifu","year":"2021","journal-title":"Int. J. Nurs. Stud. Adv."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Damette, O., and Huynh, T.L.D. (2023). Face mask is an efficient tool to fight the COVID-19 pandemic and some factors increase the probability of its adoption. Sci. Rep., 13.","DOI":"10.1038\/s41598-023-34776-7"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"e2123355119","DOI":"10.1073\/pnas.2123355119","article-title":"Understanding the coevolution of mask wearing and epidemics: A network perspective","volume":"119","author":"Qiu","year":"2022","journal-title":"Proc. Natl. Acad. Sci. USA"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"434","DOI":"10.1016\/S2213-2600(20)30134-X","article-title":"Rational use of face masks in the COVID-19 pandemic","volume":"8","author":"Feng","year":"2020","journal-title":"Lancet Respir. Med."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Upton, E., and Halfacree, G. (2016). Raspberry Pi User Guide, John Wiley & Sons.","DOI":"10.1002\/9781119415572"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"181998","DOI":"10.1109\/ACCESS.2020.3028694","article-title":"Facial Anthropometric Measurements and Photographs\u2014An Interdisciplinary Study","volume":"8","author":"Dhaliwal","year":"2020","journal-title":"IEEE Access"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"496","DOI":"10.1134\/S1054661820030141","article-title":"Digital facial anthropometry: Application and implementation","volume":"30","author":"Kukharev","year":"2020","journal-title":"Pattern Recognit. Image Anal."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"11084","DOI":"10.1109\/JSEN.2021.3061178","article-title":"Face mask assistant: Detection of face mask service stage based on mobile phone","volume":"21","author":"Chen","year":"2021","journal-title":"IEEE Sens. J."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"311","DOI":"10.1007\/s11633-020-1274-8","article-title":"Advances in deep learning methods for visual tracking: Literature review and fundamentals","volume":"18","author":"Zhang","year":"2021","journal-title":"Int. J. Autom. Comput."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"106775","DOI":"10.1016\/j.knosys.2021.106775","article-title":"A survey on federated learning","volume":"216","author":"Zhang","year":"2021","journal-title":"Knowl.-Based Syst."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Lameh, S.F., Noble, W., Amannejad, Y., and Afshar, A. (2020, January 19\u201322). Analysis of federated learning as a distributed solution for learning on edge devices. Proceedings of the 2020 International Conference on Intelligent Data Science Technologies and Applications (IDSTA), Valencia, Spain.","DOI":"10.1109\/IDSTA50958.2020.9264060"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1561\/2200000083","article-title":"Advances and Open Problems in Federated Learning","volume":"14","author":"Kairouz","year":"2021","journal-title":"Found. Trends\u00ae Mach. Learn."},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Sen, J., Waghela, H., and Rakshit, S. (2024). Privacy in Federated Learning. arXiv.","DOI":"10.5772\/intechopen.1006677"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"323","DOI":"10.1109\/TAI.2021.3139058","article-title":"A survey on masked facial detection methods and datasets for fighting against COVID-19","volume":"3","author":"Wang","year":"2021","journal-title":"IEEE Trans. Artif. Intell."},{"key":"ref_19","unstructured":"Viola, P., and Jones, M. (2001, January 8\u201314). Rapid object detection using a boosted cascade of simple features. Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. CVPR 2001, Kauai, HI, USA."},{"key":"ref_20","unstructured":"Petrovi\u0107, N., and Koci\u0107, \u0110. (2020, January 28\u201329). IoT-based system for COVID-19 indoor safety monitoring. Proceedings of the IcETRAN, Belgrade, Serbia."},{"key":"ref_21","unstructured":"Dewantara, B.S.B., and Rhamadhaningrum, D.T. (2020, January 29\u201330). Detecting multi-pose masked face using adaptive boosting and cascade classifier. Proceedings of the 2020 International Electronics Symposium (IES), Surabaya, Indonesia."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Dey, S.K., Howlader, A., and Deb, C. (2020, January 17\u201318). MobileNet mask: A multi-phase face mask detection model to prevent person-to-person transmission of SARS-CoV-2. Proceedings of the International Conference on Trends in Computational and Cognitive Engineering: Proceedings of TCCE 2020, Dhaka, Bangladesh.","DOI":"10.1007\/978-981-33-4673-4_49"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Asghar, M.Z., Albogamy, F.R., Al-Rakhami, M.S., Asghar, J., Rahmat, M.K., Alam, M.M., Lajis, A., and Nasir, H.M. (2022). Facial mask detection using depthwise separable convolutional neural network model during COVID-19 pandemic. Front. Public Health, 10.","DOI":"10.3389\/fpubh.2022.855254"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Zereen, A.N., Corraya, S., Dailey, M.N., and Ekpanyapong, M. (2020, January 17\u201318). Two-stage facial mask detection model for indoor environments. Proceedings of the International Conference on Trends in Computational and Cognitive Engineering: Proceedings of TCCE 2020, Dhaka, Bangladesh.","DOI":"10.1007\/978-981-33-4673-4_48"},{"key":"ref_25","unstructured":"Rudraraju, S.R., Suryadevara, N.K., and Negi, A. (2020, January 6\u20139). Face mask detection at the fog computing gateway. Proceedings of the 2020 15th Conference on Computer Science and Information Systems (FedCSIS), Sofia, Bulgaria."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Lin, H., Tse, R., Tang, S.K., Chen, Y., Ke, W., and Pau, G. (2021, January 9\u201312). Near-realtime face mask wearing recognition based on deep learning. Proceedings of the 2021 IEEE 18th Annual Consumer Communications & Networking Conference (CCNC), Las Vegas, NV, USA.","DOI":"10.1109\/CCNC49032.2021.9369493"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Cao, Z., Simon, T., Wei, S.E., and Sheikh, Y. (2017, January 21\u201326). Realtime multi-person 2d pose estimation using part affinity fields. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.","DOI":"10.1109\/CVPR.2017.143"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Qin, B., and Li, D. (2020). Identifying facemask-wearing condition using image super-resolution with classification network to prevent COVID-19. Sensors, 20.","DOI":"10.21203\/rs.3.rs-28668\/v1"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Mustakim, N., Hossain, N., Rahman, M.M., Islam, N., Sayem, Z.H., and Mamun, M.A.Z. (2019, January 3\u20135). Face Recognition System Based on Raspberry Pi Platform. Proceedings of the 2019 1st International Conference on Advances in Science, Engineering and Robotics Technology (ICASERT), Dhaka, Bangladesh.","DOI":"10.1109\/ICASERT.2019.8934485"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Phan, T.V., Sultana, S., Nguyen, T.G., and Bauschert, T. (2020, January 19\u201321). Q-TRANSFER: A Novel Framework for Efficient Deep Transfer Learning in Networking. Proceedings of the 2020 International Conference on Artificial Intelligence in Information and Communication (ICAIIC), Fukuoka, Japan.","DOI":"10.1109\/ICAIIC48513.2020.9065240"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Patel, R., and Chaware, A. (2020, January 5\u20137). Transfer Learning with Fine-Tuned MobileNetV2 for Diabetic Retinopathy. Proceedings of the 2020 International Conference for Emerging Technology (INCET), Belgaum, India.","DOI":"10.1109\/INCET49848.2020.9154014"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Dong, K., Zhou, C., Ruan, Y., and Li, Y. (2020, January 18\u201320). MobileNetV2 Model for Image Classification. Proceedings of the 2020 2nd International Conference on Information Technology and Computer Application (ITCA), Guangzhou, China.","DOI":"10.1109\/ITCA52113.2020.00106"},{"key":"ref_33","unstructured":"Ridnik, T., Ben-Baruch, E., Noy, A., and Zelnik-Manor, L. (2021). Imagenet-21k pretraining for the masses. arXiv."},{"key":"ref_34","unstructured":"McMahan, B., Moore, E., Ramage, D., Hampson, S., and Arcas, B.A.y. (2017, January 20\u201322). Communication-efficient learning of deep networks from decentralized data. Proceedings of the Artificial Intelligence and Statistics, PMLR, Fort Lauderdale, FL, USA."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"675","DOI":"10.1007\/s10994-021-05970-3","article-title":"SPEED: Secure, PrivatE, and efficient deep learning","volume":"110","author":"Pinot","year":"2021","journal-title":"Mach. Learn."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"10354","DOI":"10.1007\/s11227-020-03251-9","article-title":"Secure decentralized peer-to-peer training of deep neural networks based on distributed ledger technology","volume":"76","author":"Fadaeddini","year":"2020","journal-title":"J. Supercomput."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"209191","DOI":"10.1109\/ACCESS.2020.3038287","article-title":"EdgeFed: Optimized federated learning based on edge computing","volume":"8","author":"Ye","year":"2020","journal-title":"IEEE Access"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Zhang, X., and Xu, S. (2020, January 10\u201312). Research on Image Processing Technology of Computer Vision Algorithm. Proceedings of the 2020 International Conference on Computer Vision, Image and Deep Learning (CVIDL), Chongqing, China.","DOI":"10.1109\/CVIDL51233.2020.00030"},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"7068349","DOI":"10.1155\/2018\/7068349","article-title":"Deep learning for computer vision: A brief review","volume":"2018","author":"Voulodimos","year":"2018","journal-title":"Comput. Intell. Neurosci."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Khan, M., Chakraborty, S., Astya, R., and Khepra, S. (2019, January 18\u201319). Face detection and recognition using OpenCV. Proceedings of the 2019 International Conference on Computing, Communication, and Intelligent Systems (ICCCIS), Greater Noida, India.","DOI":"10.1109\/ICCCIS48478.2019.8974493"},{"key":"ref_41","unstructured":"Jangra, A. (2023, February 16). Face Mask Detection 12K Images Dataset. Available online: https:\/\/www.kaggle.com\/datasets\/ashishjangra27\/face-mask-12k-images-dataset?resource=download."}],"container-title":["Computers"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-431X\/14\/9\/360\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T18:36:28Z","timestamp":1760034988000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-431X\/14\/9\/360"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,8,31]]},"references-count":41,"journal-issue":{"issue":"9","published-online":{"date-parts":[[2025,9]]}},"alternative-id":["computers14090360"],"URL":"https:\/\/doi.org\/10.3390\/computers14090360","relation":{},"ISSN":["2073-431X"],"issn-type":[{"type":"electronic","value":"2073-431X"}],"subject":[],"published":{"date-parts":[[2025,8,31]]}}}