Deep Learning-Based Biomimetic Identification Method for Mask Wearing Standardization
Abstract
1. Introduction
2. Materials and Methods
2.1. Improvement of YOLOv5s Network Architecture
2.1.1. YOLOv5s Network Architecture
2.1.2. Improvement of Backbone Architecture
2.1.3. Inserted Design of SE Module in Backbone Network
2.1.4. Improvement of Fusion Feature Layer
2.2. Acquisition and Preprocess of Image Data
2.2.1. Image Data Acquisition Methods
2.2.2. Preprocessing of Images
2.3. Network Training
2.3.1. Training Platform
2.3.2. Training Results
2.4. Test and Evaluation of Model
2.4.1. Evaluation Indicators of Target Object Detection Performance
2.4.2. Evaluation Indicators of Mask Wearing Normalization Detection
3. Results and Discussion
3.1. Results and Analysis of Mask Wearing Normalization Detection
3.2. Comparison of Detection Results Utilizing Different Object Detection Models
3.3. Comparison of the Proposed Model with Other Improved YOLOv5 for Object Detection
3.4. Comparative Discussion on Performance of the Model Proposed in the Study
4. Conclusions
- (1)
- Aiming at the problem that most existing mask detection algorithms only detect whether people are wearing a mask and cannot detect the situation of ‘non-normalized wearing’, a mask wearing normalization detection algorithm based on improved YOLOv5s was proposed, which achieved mask wearing normalization detection for different persons in complex backgrounds. This study can provide technical support for the development of intelligent medical detection systems and ensuring the safety and health of people in the post-pandemic era.
- (2)
- The BottleneckCSP module was improved to a BottleneckCSP-MASK module, achieving lightweight improvement of the backbone network for the detection model. An SE module was inserted to the proposed improved backbone network, and the bonding fusion layer of the model was improved for better extracting the features of mask and nose targets.
- (3)
- The experimental results indicated that, for different people and complex backgrounds, the improved YOLOv5s-MASK model could effectively recognize the behaviors of people, including not wearing a mask, normalized wearing, and wearing a mask non-normalized. The overall detection accuracy was 99.3%, with an average detection speed of 0.014 s/pic.
- (4)
- Contrasted with original YOLOv5s, v5m, and v5l models, the detection results for the two types of target objects in the test set indicated that the mAP of the designed YOLOv5s-MASK network increased by 0.5%, 0.49%, and 0.52%, respectively, and the size of the proposed model compressed to 90% of the original v5s model.
5. Future Work
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Wang, C.; Wang, H.; Han, Q.; Zhang, Z.; Kong, D.; Zou, X. Strawberry Detection and Ripeness Classification Using YOLOv8+ Model and Image Processing Method. Agriculture 2024, 14, 751. [Google Scholar] [CrossRef]
- Liu, M.; Cui, M.; Wei, W.; Xu, X.; Sun, C.; Li, F.; Song, Z.; Lu, Y.; Zhang, J.; Tian, F.; et al. Sorting of Mountage Cocoons Based on MobileSAM and Target Detection. Agriculture 2024, 14, 599. [Google Scholar] [CrossRef]
- Lian, X.; Li, Y.; Wang, X.; Shi, L.; Xue, C. Research on Identification and Location of Mining Landslide in Mining Area Based on Improved YOLO Algorithm. Drones 2024, 8, 150. [Google Scholar] [CrossRef]
- He, C.; Wan, F.; Ma, G.; Mou, X.; Zhang, K.; Wu, X.; Huang, X. Analysis of the Impact of Different Improvement Methods Based on YOLOV8 for Weed Detection. Agriculture 2024, 14, 674. [Google Scholar] [CrossRef]
- Lu, S.; Chen, W.; Zhang, X.; Karkee, M. Canopy-attention-YOLOv4-based immature/mature apple fruit detection on dense-foliage tree architectures for early crop load estimation. Comput. Electron. Agric. 2022, 193, 106696. [Google Scholar] [CrossRef]
- Yan, B.; Fan, P.; Lei, X.; Liu, Z.; Yang, F. A Real-Time Apple Targets Detection Method for Picking Robot Based on Improved YOLOv5. Remote Sens. 2021, 13, 1619. [Google Scholar] [CrossRef]
- Qin, B.; Dongxiao, L.I. Identifying Facemask-wearing Condition Using Image Super-Resolution with Classification Network to Prevent COVID-19. Sensors 2020, 20, 5236. [Google Scholar] [CrossRef]
- Yadav, S. Deep Learning based Safe Social Distancing and Face Mask Detection in Public Areas for COVID-19 Safety Guidelines Adherence. Int. J. Res. Appl. Sci. Eng. Technol. 2020, 8, 1368–1375. [Google Scholar] [CrossRef]
- Nagrath, P.; Jain, R.; Madan, A.; Arora, R.; Kataria, P.; Hemanth, J. SSDMNV2: A real time DNN-based face mask detection system using single shot multibox detector and MobileNetV2. Sustain. Cities Soc. 2021, 66, 102692. [Google Scholar] [CrossRef]
- Loey, M.; Manogaran, G.; Taha, M.H.N.; Khalifa, N.E.M. Fighting against COVID-19: A novel deep learning model based on YOLO-v2 with ResNet-50 for medical face mask detection. Sustain. Cities Soc. 2021, 65, 102600. [Google Scholar] [CrossRef]
- Loey, M.; Manogaran, G.; Taha, M.H.N.; Khalifa, N.E.M. A hybrid deep transfer learning model with machine learning methods for face mask detection in the era of the COVID-19 pandemic. Meas. J. Int. Meas. Confed. 2021, 167, 108288. [Google Scholar] [CrossRef] [PubMed]
- Tomás, J.; Rego, A.; Viciano-Tudela, S.; Lloret, J. Incorrect Facemask-Wearing Detection Using Convolutional Neural Networks with Transfer Learning. Healthcare 2021, 9, 1050. [Google Scholar] [CrossRef]
- Militante, S.V.; Dionisio, N.V. Real-Time Facemask Recognition with Alarm System using Deep Learning. In Proceedings of the 2020 11th IEEE Control and System Graduate Research Colloquium (ICSGRC), Shah Alam, Malaysia, 8 August 2020. [Google Scholar] [CrossRef]
- Sheikh, B.u.h.; Zafar, A. RRFMDS: Rapid Real-Time Face Mask Detection System for Effective COVID-19 Monitoring. SN Comput. Sci. 2023, 4, 288. [Google Scholar] [CrossRef] [PubMed]
- Su, X.; Gao, M.; Ren, J.; Li, Y.; Dong, M.; Liu, X. Face mask detection and classification via deep transfer learning. Multimed. Tools Appl. 2022, 81, 4475–4494. [Google Scholar] [CrossRef]
- Teboulbi, S.; Messaoud, S.; Hajjaji, M.A.; Mtibaa, A. Real-Time Implementation of AI-Based Face Mask Detection and Social Distancing Measuring System for COVID-19 Prevention. Sci. Program. 2021, 2021, 8340779. [Google Scholar] [CrossRef]
- Wang, B.; Zhao, Y.; Chen, C.L.P. Hybrid Transfer Learning and Broad Learning System for Wearing Mask Detection in the COVID-19 Era. IEEE Trans. Instrum. Meas. 2021, 70, 1–12. [Google Scholar] [CrossRef]
- Yu, J.; Zhang, X.; Wu, T.; Pan, H.; Zhang, W. A Face Detection and Standardized Mask-Wearing Recognition Algorithm. Sensors 2023, 23, 4612. [Google Scholar] [CrossRef]
- Zhao, Y. Real-Time Face Mask Detection Method Based on YOLOv3. Electronics 2021, 10, 837. [Google Scholar] [CrossRef]
- Ultralytics. Yolov5. Available online: https://github.com/ultralytics/yolov5 (accessed on 18 May 2020).
- Hu, G.; Wu, J.; Bao, W.; Zeng, W. Detection of ectropis oblique in complex background images using improved YOLOv5. Trans. CSAE 2021, 37, 191–198. [Google Scholar] [CrossRef]
- Kang, H.; Chen, C. Fruit Detection and Segmentation for Apple Harvesting Using Visual Sensor in Orchards. Sensors 2019, 19, 4599. [Google Scholar] [CrossRef]
- Yao, J.; Qi, J.M.; Zhang, J.; Shao, H.M.; Yang, J.; Li, X. A Real-Time Detection Algorithm for Kiwifruit Defects Based on YOLOv5. Electronics 2021, 10, 1711. [Google Scholar] [CrossRef]
- Kang, H.; Chen, C. Fruit detection, segmentation and 3D visualisation of environments in apple orchards. Comput. Electron. Agric. 2020, 171, 105302. [Google Scholar] [CrossRef]
- Chen, Y.; Li, Y.; Zheng, W.; Wan, X. Transformer fusion-based scale-aware attention network for multispectral victim detection. Complex Intell. Syst. 2024, 10, 6619–6632. [Google Scholar] [CrossRef]
- Jung, H.; Choi, G. Improved YOLOv5: Efficient Object Detection Using Drone Images under Various Conditions. Appl. Sci. 2022, 12, 7255. [Google Scholar] [CrossRef]
- Zhang, J.; Zhang, J.; Zhou, K.; Zhang, Y.; Chen, H.; Yan, X. An Improved YOLOv5-Based Underwater Object-Detection Framework. Sensors 2023, 23, 3693. [Google Scholar] [CrossRef]
- Adnane, C.; Karim, H.; Halim, B.; Mahmoud, M. MaskedFace-Net—A dataset of correctly/incorrectly masked face images in the context of COVID-19. Smart Health 2021, 19, 100144. [Google Scholar] [CrossRef]
- Kerkech, M.; Hafiane, A.; Canals, R. VddNet: Vine disease detection network based on multispectral images and depth map. Remote Sens. 2020, 12, 3305. [Google Scholar] [CrossRef]
- Abdulridha, J.; Ampatzidis, Y.; Qureshi, J.; Roberts, P. Laboratory and UAV-Based identification and classification of tomato yellow leaf curl, bacterial spot, and target spot diseases in tomato utilizing hyperspectral imaging and machine learning. Remote Sens. 2020, 12, 2732. [Google Scholar] [CrossRef]
- Zhang, T.; Zhang, X. High-Speed ship detection in SAR images based on a grid convolutional neural network. Remote Sens. 2019, 11, 1206. [Google Scholar] [CrossRef]
- Peteinatos, G.; Reichel, P.; Karouta, J.; Andujar, D.; Gerhards, R. Weed Identification in Maize, Sunflower, and Potatoes with the Aid of Convolutional Neural Networks. Remote Sens. 2020, 12, 4185. [Google Scholar] [CrossRef]
Detection Networks | Accuracy (%) | Year | Whether They Detect Mask Wearing Normalization | Reference |
---|---|---|---|---|
SCRNet | 98.7 | 2020 | N | [7] |
SSD + MobileNetV2 | 91.7 | 2020 | N | [8] |
ResNet-50 + YOLOv2 | 81 | 2021 | N | [10] |
SSDMNV2 | 92 | 2021 | N | [9] |
VGG-16 | 96 | 2020 | N | [13] |
MobileNetV2 | 97.81 | 2023 | Y | [14] |
ResNet50 + SVM | 99.64 | 2021 | N | [11] |
Improved YOLOv3 | 99.5 | 2021 | Y | [19] |
Transfer learning + Efficient-Yolov3 | 96.03 | 2022 | N | [15] |
VGG-19 | 99 | 2021 | N | [16] |
VGG16 | 84 | 2021 | Y | [12] |
YOLOv4 | 73.8 | 2023 | Y | [18] |
MobileNetV2 | 92.64 | 2021 | N | [9] |
Fast RCNN + InceptionV2 | 91.1 | 2021 | Y | [17] |
Model | Depth | Width | Layer | Parameters |
---|---|---|---|---|
YOLOv5s | 0.33 | 0.50 | 191 | 7.26 × 106 |
YOLOv5m | 0.67 | 0.75 | 263 | 2.15 × 107 |
YOLOv5l | 1.0 | 1.0 | 335 | 4.78 × 107 |
YOLOv5x | 1.33 | 1.25 | 407 | 8.90 × 107 |
Image Data Set | Training Set | Test Set | |
---|---|---|---|
Mask Wearing Styles | |||
Normalized wearing | 452 | 50 | |
Non-normalized wearing | 466 | 50 | |
No mask | 548 | 50 |
Class | Number | Precision (%) | Recall (%) | mAP (%) |
---|---|---|---|---|
Total | 201 | 98 | 99 | 99 |
Nose | 101 | 98 | 98 | 98.5 |
Mask | 100 | 98 | 100 | 99.5 |
Class | Number | Correctly Detected Number | Pmask (%) |
---|---|---|---|
Total | 150 | 149 | 99.3 |
Normalized wearing | 51 | 51 | 100 |
Non-normalized wearing | 49 | 49 | 100 |
No mask | 50 | 49 | 98 |
Target Detection Networks | mAP (%) |
---|---|
YOLOv5s | 98.49 |
YOLOv5s + SE | 98.56 |
YOLOv5s + BottleneckCSP-MASK | 98.62 |
YOLOv5s + BottleneckCSP-MASK + SE | 98.99 |
Target Detection Networks | mAP (%) | Average Detecting Time (s/pic) | Number of Parameters | Size of Models (MB) |
---|---|---|---|---|
YOLOv5s | 98.49 | 0.013 (76.9 fps) | 7.3 × 106 | 14.0 |
YOLOv5m | 98.50 | 0.071 (14 fps) | 2.2 × 107 | 41.3 |
YOLOv5l | 98.47 | 0.076 (13 fps) | 4.8 × 107 | 90.8 |
YOLOv5s-MASK | 98.99 | 0.014 (71 fps) | 6.5 × 106 | 12.6 |
Detection Networks | Accuracy (%) | Model Size (MB) | Average Detecting Time (s/pic) | Year | Reference |
---|---|---|---|---|---|
MobileNetV2 | 97.81 | 11 | 0.14 (7 fps) | 2023 | [14] |
Improved YOLOv3 | 99.5 | — | 0.064 (16 fps) | 2021 | [19] |
VGG16 | 84 | 528 | — | 2021 | [12] |
YOLOv4 | 73.8 | — | >0.02 (<50 fps) | 2023 | [18] |
Fast RCNN + InceptionV2 | 91.1 | — | 0.073 (14 fps) | 2021 | [17] |
Ours (YOLOv5s-MASK) | 99.3 | 12.6 | 0.014 (71 fps) | 2024 | — |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Yan, B.; Li, X.; Yan, W. Deep Learning-Based Biomimetic Identification Method for Mask Wearing Standardization. Biomimetics 2024, 9, 563. https://doi.org/10.3390/biomimetics9090563
Yan B, Li X, Yan W. Deep Learning-Based Biomimetic Identification Method for Mask Wearing Standardization. Biomimetics. 2024; 9(9):563. https://doi.org/10.3390/biomimetics9090563
Chicago/Turabian StyleYan, Bin, Xiameng Li, and Wenhui Yan. 2024. "Deep Learning-Based Biomimetic Identification Method for Mask Wearing Standardization" Biomimetics 9, no. 9: 563. https://doi.org/10.3390/biomimetics9090563
APA StyleYan, B., Li, X., & Yan, W. (2024). Deep Learning-Based Biomimetic Identification Method for Mask Wearing Standardization. Biomimetics, 9(9), 563. https://doi.org/10.3390/biomimetics9090563