Skip to main content
Log in

Motorcyclist helmet detection in single images: a dual-detection framework with multi-head self-attention

  • Application of soft computing
  • Published:
Soft Computing Aims and scope Submit manuscript

Abstract

This paper focuses on the problem of motorcyclist helmet detection in single images. Although some previous works have been developed to deal with this problem, yet most of them are designed for videos and not suitable for single-image helmet detection. In view of this, in this paper, we propose a novel dual-detection framework for single-image motorcyclist helmet detection with multi-head self-attention. Particularly, two types of detectors are first trained, namely the rider detector and the head-shoulder detector, which are jointly leveraged in the dual-detection scheme. To take advantage of the contextual relevance information, the multi-head self-attention mechanism is incorporated, where multiple self-attention layers are integrated to capture the complex relationships among the input features so as to further enhance the detection accuracy. A new benchmark dataset, termed the SCAU helmet detection on motorcyclists (SCAU-HDM) dataset, is presented, which consists of 8000 training images and 2000 test images. Extensive experiments on the benchmark dataset demonstrate the effectiveness of the proposed framework. The code is available at https://github.com/LiChunHong2020/SCAUHDM.

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
Fig. 4
Fig. 5

Similar content being viewed by others

Data availability

The trained model’s weights and the test set of the SCAU-HDM dataset are available at https://pan.baidu.com/s/1bWGec9Or_EUGPXDdIKMuJg (extracting passward: 4udr).

Notes

  1. https://www.kaggle.com/brendan45774/bike-helmets-detection.

References

Download references

Funding

This work was supported by the National Natural Science Foundation of China (61976097 & 62276277), the Natural Science Foundation of Guangdong Province (2021A1515012203), and the Science and Technology Program of Guangzhou, China (202201010314).

Author information

Authors and Affiliations

Authors

Contributions

CHL involved in conceptualization, methodology, and writing—original draft. DH involved in conceptualization and writing—review , editing. GYZ involved in methodology and data annotations. JC involved in optimization and validation.

Corresponding author

Correspondence to Dong Huang.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Ethical approval

This article does not contain any studies with human participants or animals performed by any of the authors.

Consent to participate

Informed consent to participate was obtained from all individual participants included in the study.

Consent for publication

Informed consent for publication was obtained from all individual participants included in the study.

Informed consent

The code is available at https://github.com/LiChunHong2020/SCAUHDM.

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

Li, CH., Huang, D., Zhang, GY. et al. Motorcyclist helmet detection in single images: a dual-detection framework with multi-head self-attention. Soft Comput 28, 4321–4333 (2024). https://doi.org/10.1007/s00500-023-08723-7

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00500-023-08723-7

Keywords

Navigation