Skip to main content
Log in

FedSH: a federated learning framework for safety helmet wearing detection

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

Safety helmet wearing detection based on video surveillance is an important means of safety monitoring in many industrial scenes. The training of safety helmet wearing detection models requires large and well-labeled dataset. However, the incidence of security violations is relatively low, which results in insufficient samples for training deep detection models. Safety helmet wearing detection is a common requirement in many scenarios such as construction sites, substations, and factory workshops. Aggregating data from multiple companies for model training would improve the performance of the detection model. Traditional centralized training methods are not feasible because aggregating data in centralized locations (such as the cloud) can raise concerns about data privacy and the high cost of data communication and storage. This paper proposes FedSH, a novel cloud-edge-based federated learning framework, which learns a shared global safety helmet wearing detection model in the cloud from multiple companies at the network edges and achieves data privacy protection by keeping company data locally. In addition, this paper designs reweighting mechanisms and applies transfer learning to address class imbalance and non-IID problems in the training data, so as to obtain an accurate and personalized detection model. Extensive experiments have been conducted on real surveillance video datasets. The experimental results demonstrate that FedSH outperforms the existing widely used federated learning methods with an accuracy improvement of at least 3.4%; the reduction in accuracy is within the range of 5% compared with centralized learning methods. FedSH effectively achieves a good balance between model performance, privacy protection, and communication efficiency.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Algorithm 1
Algorithm 2
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

Data availability statement

The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

References

  1. Xiao-hui L, Xi-ning Y (2014) Skin color detection and hu moments in helmet recognition research. J East China Univ Sci Technol (Natl Sci Edn) 40(3):365–370

    Google Scholar 

  2. Yunbo L, Hua H (2015) Research on monitoring of workers’ helmet wearing at the construction site. Electron Sci Tech 28(4):69–72

    Google Scholar 

  3. Wen C-Y, Chiu S-H, Liaw J-J, Lu C-P (2003) The safety helmet detection for atm’s surveillance system via the modified hough transform. In: IEEE 37th Annual 2003 International Carnahan Conference on Security Technology, 2003. Proceedings., pp. 364–369. IEEE

  4. LIU G, LIU Y, WANG R (2020) Research on indoor hard hat wearing detection based on revised retinanet model. Journal of Zhejiang Wanli University

  5. Li S, Gao L, Yue Y (2021) Detection of helmet wearing based on improved yolo v3. In: 2021 40th Chinese Control Conference (CCC), pp. 7965–7970. IEEE

  6. Fang J, Lin X, Zhou F, Tian Y, Zhang M (2023) Safety helmet detection based on optimized yolov5. In: 2023 prognostics and health management conference (PHM), pp. 117–121.. IEEE

  7. Hayat A, Morgado-Dias F (2022) Deep learning-based automatic safety helmet detection system for construction safety. Appl. Sci 12(16):8268

    Article  Google Scholar 

  8. Wang L, Zhang X, Yang H (2023) Safety helmet wearing detection model based on improved yolo-m. IEEE Access 11:26247–26257

    Article  Google Scholar 

  9. McMahan B, Moore E, Ramage D, Hampson S, Arcas BA (2017) Communication-efficient learning of deep networks from decentralized data. In: artificial intelligence and statistics, pp. 1273–1282. PMLR

  10. Yang Q, Liu Y, Chen T, Tong Y (2019) Federated machine learning: concept and applications. ACM Trans Intell Syst Technol (TIST) 10(2):1–19

    Article  Google Scholar 

  11. Li Q, Wen Z, Wu Z, Hu S, Wang N, Li Y, Liu X, He B (2021) A survey on federated learning systems: vision, hype and reality for data privacy and protection. IEEE Tran Knowl Data Eng 35(4):3347–66

    Article  Google Scholar 

  12. He C, Shah AD, Tang Z, Sivashunmugam DFN, Bhogaraju K, Shimpi M, Shen L, Chu X, Soltanolkotabi M, Avestimehr S (2021) Fedcv: a federated learning framework for diverse computer vision tasks. arXiv preprint arXiv:2111.11066

  13. Zhao Y, Yang J, Liu M, Sun J, Gui G (2020) Federated learning based intelligent edge computing technique for video surveillance. J Commun 34(3):16–22

    Google Scholar 

  14. Wang S, Lu S, Cao B (2021) Medical image object detection algorithm for privacy-preserving federated learning. Journal of Computer-Aided Design & Computer Graphics/Jisuanji Fuzhu Sheji Yu Tuxingxue Xuebao 33(10)

  15. Liu Y, Huang A, Luo Y, Huang H, Liu Y, Chen Y, Feng L, Chen T, Yu H, Yang Q (2020) Fedvision: An online visual object detection platform powered by federated learning. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, pp. 13172–13179

  16. Lin T-Y, Goyal P, Girshick R, He K, Dollár P (2017) Focal loss for dense object detection. In: Proceedings of the IEEE International Conference on Computer Vision, pp. 2980–2988

  17. Redmon J, Farhadi A (2018) Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767

  18. Bochkovskiy A, Wang C-Y, Liao H-YM (2020) Yolov4: Optimal speed and accuracy of object detection. arXiv preprint arXiv:2004.10934

  19. Ge Z, Liu S, Wang F, Li Z, Sun J (2021) Yolox: Exceeding yolo series in 2021. arXiv preprint arXiv:2107.08430

  20. Zhang Y, Wei X-S, Zhou B, Wu J (2021) Bag of tricks for long-tailed visual recognition with deep convolutional neural networks. Proc AAAI Conf Artif Intell 35:3447–3455

    Google Scholar 

  21. Pan T, Zhao J, Wu W, Yang J (2020) Learning imbalanced datasets based on smote and gaussian distribution. Inform Sci 512:1214–1233

    Article  Google Scholar 

  22. Freund Y, Schapire RE (1995) A desicion-theoretic generalization of on-line learning and an application to boosting. In: computational learning theory: second european conference, EuroCOLT’95 Barcelona, Spain, March 13–15, 1995 Proceedings 2, pp. 23–37. Springer

  23. Caton S, Haas C (2020) Fairness in machine learning: a survey. arXiv preprint arXiv:2010.04053

  24. Mohri M, Sivek G, Suresh AT (2019) Agnostic federated learning. In: international conference on machine learning, pp. 4615–4625. PMLR

  25. Li T, Sanjabi M, Beirami A, Smith V (2019) Fair resource allocation in federated learning. arXiv preprint arXiv:1905.10497

  26. Zhao Z, Joshi G (2022) A dynamic reweighting strategy for fair federated learning. In: ICASSP 2022-2022 IEEE international conference on acoustics, speech and signal processing (ICASSP), pp. 8772–8776. IEEE

  27. Wu Q, Chen X, Zhou Z, Zhang J (2020) Fedhome: cloud-edge based personalized federated learning for in-home health monitoring. IEEE Trans Mobile Comput 21(8):2818–2832

    Article  Google Scholar 

  28. Chen Y, Qin X, Wang J, Yu C, Gao W (2020) Fed health: a federated transfer learning framework for wearable healthcare. IEEE Intell Syst 35(4):83–93

    Article  Google Scholar 

  29. Guo J, Ho IW-H, Hou Y, Li Z (2023) Fedpos: a federated transfer learning framework for csi-based wi-fi indoor positioning. IEEE Syst J 2:23

    Google Scholar 

  30. Yang H, He H, Zhang W, Cao X (2020) Fedsteg: a federated transfer learning framework for secure image steganalysis. IEEE Trans Netw Sci Eng 8(2):1084–1094

    Article  Google Scholar 

  31. Arivazhagan MG, Aggarwal V, Singh AK, Choudhary S (2019) Federated learning with personalization layers. arXiv preprint arXiv:1912.00818

  32. Oh J, Kim S, Yun S-Y (2021) Fedbabu: towards enhanced representation for federated image classification. arXiv preprint arXiv:2106.06042

  33. Smith V, Chiang C-K, Sanjabi M, Talwalkar AS (2017) Federated multi-task learning. Adv Neural Informat Process Syst 30:17

    Google Scholar 

  34. Kumaresan M, Kumar MS, Muthukumar N (2022) Analysis of mobility based covid-19 epidemic model using federated multitask learning. Math Biosci Eng 19:9983–10005

    Article  MathSciNet  Google Scholar 

  35. Li D, Wang J (2019) Fedmd: Heterogenous federated learning via model distillation. arXiv preprint arXiv:1910.03581

  36. Yu T, Bagdasaryan E, Shmatikov V (2020) Salvaging federated learning by local adaptation. arXiv preprint arXiv:2002.04758

  37. Kairouz P, McMahan HB, Avent B, Bellet A, Bennis M, Bhagoji AN, Bonawitz K, Charles Z, Cormode G, Cummings R et al (2021) Advances and open problems in federated learning. Foundat Trends Mach Learn 14(1–2):1–210

    Article  Google Scholar 

  38. Zhang H, Cisse M, Dauphin YN, Lopez-Paz D (2017) mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412

  39. DeVries T, Taylor GW (2017) Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552

  40. Li T, Sahu AK, Zaheer M, Sanjabi M, Talwalkar A, Smith V (2020) Federated optimization in heterogeneous networks. Proc Mach Learning Syst 2:429–450

    Google Scholar 

  41. Wang J, Liu Q, Liang H, Joshi G, Poor HV (2020) Tackling the objective inconsistency problem in heterogeneous federated optimization. Adv Neural Inform Process Syst 33:7611–7623

    Google Scholar 

  42. Karimireddy SP, Kale S, Mohri M, Reddi S, Stich S, Suresh AT (2020) Scaffold: stochastic controlled averaging for federated learning. Int Conf Mach Learn 21:5132–5143

    Google Scholar 

  43. Cohen G, Afshar S, Tapson J, Van Schaik A (2017) Emnist: Extending mnist to handwritten letters. In: 2017 international joint conference on neural networks (IJCNN), pp. 2921–2926. IEEE

  44. Simonyan K, Zisserman A (2014) Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556

Download references

Author information

Authors and Affiliations

Authors

Contributions

XZ and ZH conceived of and designed the experiments. XZ performed the experiments and analyzed the data. YZ collected the dataset used in this study. ZH, XZ, YZ, YZ wrote this paper together.

Corresponding author

Correspondence to Zhiqing Huang.

Ethics declarations

Conflicts of interest

The authors declare that they have no Conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Huang, Z., Zhang, X., Zhang, Y. et al. FedSH: a federated learning framework for safety helmet wearing detection. Neural Comput & Applic 36, 10699–10712 (2024). https://doi.org/10.1007/s00521-024-09632-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-024-09632-y

Keywords

Navigation