Skip to main content
QUICK REVIEW

[Paper Review] Hard hat wearing detection based on head keypoint localization

Bartosz Wójcik, Mateusz Żarski|arXiv (Cornell University)|Jun 21, 2021
Occupational Health and Safety ResearchHealth Professions5 citations
TL;DR

This paper proposes a novel deep learning approach for hard hat wearing detection by combining object detection, head keypoint localization, and rule-based reasoning. The method achieves 67.5% mean average precision (mAP) and 64.1% AP for hard hat non-wearers—outperforming prior methods based on bounding box relationships or direct classification—demonstrating superior detection of safety non-compliance.

ABSTRACT

In recent years, a lot of attention is paid to deep learning methods in the context of vision-based construction site safety systems, especially regarding personal protective equipment. However, despite all this attention, there is still no reliable way to establish the relationship between workers and their hard hats. To answer this problem a combination of deep learning, object detection and head keypoint localization, with simple rule-based reasoning is proposed in this article. In tests, this solution surpassed the previous methods based on the relative bounding box position of different instances, as well as direct detection of hard hat wearers and non-wearers. The results show that the conjunction of novel deep learning methods with humanly-interpretable rule-based systems can result in a solution that is both reliable and can successfully mimic manual, on-site supervision. This work is the next step in the development of fully autonomous construction site safety systems and shows that there is still room for improvement in this area.

Motivation & Objective

  • Address the critical need for reliable detection of construction workers not wearing hard hats, a major cause of fatal head injuries.
  • Overcome limitations of existing methods that rely on relative bounding box positioning or direct classification, which suffer from high inter-class similarity and poor generalization.
  • Develop a system that combines deep learning with human-interpretable rules to improve detection of safety violations.
  • Ensure the solution is robust to small-scale instances and partial occlusions, common in real-world construction site imagery.
  • Provide a publicly available codebase and dataset to enable reproducibility and benchmarking in construction site safety research.

Proposed method

  • Train a single-stage object detection model (RetinaNet) to simultaneously detect workers and hard hats in images.
  • Train a separate keypoint detection head to localize the human head with high precision, even at small scales or under partial occlusion.
  • Apply a rule-based reasoning engine that checks whether a detected hard hat is spatially aligned with a person’s head keypoint.
  • Use geometric constraints (e.g., IoU, spatial proximity) between head keypoint and hard hat bounding box to infer correct wearer relationships.
  • Reject false positives where hard hats are detected far from any head keypoint, reducing misclassification of non-wearers.
  • Leverage the simplicity of rule-based logic to make decisions interpretable and auditable, avoiding complex decision trees.

Experimental results

Research questions

  • RQ1Can combining head keypoint localization with object detection improve the accuracy of hard hat non-wearer detection compared to traditional bounding box-based methods?
  • RQ2Does the integration of rule-based reasoning with deep learning models enhance the detection of safety non-compliance in construction sites?
  • RQ3How does the proposed method perform on small-scale instances and under partial occlusion, common challenges in real-world construction imagery?
  • RQ4To what extent does the method reduce misclassification due to high inter-class similarity between hard hat wearers and non-wearers?
  • RQ5Can a simple, human-interpretable rule system outperform complex end-to-end models in safety-critical detection tasks?

Key findings

  • The proposed method achieved a mean average precision (mAP) of 67.5% on the MS COCO-style evaluation protocol, surpassing the 66.4% and 66.3% mAP of baseline methods based on relative bounding box positioning and direct classification.
  • The method achieved 64.1% AP for hard hat non-wearers—significantly higher than the 63.0% and 60.3% of the two baseline approaches—demonstrating superior detection of safety violations.
  • The model successfully localized head keypoints even in small-scale instances and cases where the head was not fully visible, indicating robustness to scale and occlusion.
  • Despite small-scale detection challenges, the method maintained better performance than baselines, suggesting that keypoint localization contributes meaningfully to accurate relationship inference.
  • The rule-based reasoning engine effectively reduced false positives by rejecting hard hats not spatially aligned with head keypoints, improving reliability.
  • The authors emphasize that the method’s interpretability and public availability (code at barwojcik/hard_hats) support reproducibility and future benchmarking in construction site safety research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.