Attention-Guided Face Mask Classification Using YOLOv8 with CBAM on MaskedFace-Net Dataset

Authors

  • Sadia Yaseen Department of Computer Science, Virtual University, Pakistan
  • Nimra Bukhari Department of Computer Science, National College of Business Administration and Economics, Rahim Yar khan, 64200, Pakistan
  • Hafiz Muhammad Anwar Shahzada Department of Computer Science, Khawaja Fareed University of Engineering & Information Technology, Rahim Yar Khan, Punjab, Pakistan
  • Imran Ali Mudassar Department of Computer Science, National College of Business Administration and Economics, Rahim Yar khan, 64200, Pakistan
  • Shabir Hussain Institute of Biopharmaceutical and Health Engineering, Shenzhen International Graduate School, Tsinghua University, Shenzhen 518055, China

DOI:

https://doi.org/10.57041/axs8ff48

Keywords:

YOLOv8, MaskedFace-Net, CBAM, Deep Learning, COVID-19 Mask, Face Mask Classification, Public Safety AI

Abstract

The COVID-19 pandemic has highlighted the critical role of face mask classification in safeguarding public health. While existing computer vision approaches primarily focus on binary mask detection, limited attention has been given to fine-grained multi-class face mask classification, which is more representative of real-world scenarios. In this work, we propose a robust and efficient YOLOv8-CBAM based deep learning framework for classifying three mask-wearing conditions: with mask, without mask, and incorrectly worn mask. Experiments on the MaskedFace-Net dataset demonstrate that the proposed YOLOv8-CBAM model achieves a macro F1-score of 99.71%, with ablation and comparative studies confirming the effectiveness of attention mechanisms, enabling accurate real-time face mask classification for surveillance and edge applications.

Downloads

Published

2025-12-30

Issue

Section

Articles

How to Cite

Attention-Guided Face Mask Classification Using YOLOv8 with CBAM on MaskedFace-Net Dataset. (2025). Pakistan Journal of Scientific Research, 5(02), 26-33. https://doi.org/10.57041/axs8ff48

Most read articles by the same author(s)