Skip to main content
QUICK REVIEW

[Paper Review] Real-time Multi-Class Helmet Violation Detection Using Few-Shot Data Sampling Technique and YOLOv8

Armstrong Aboah, Bin Wang|arXiv (Cornell University)|Apr 13, 2023
Traffic and Road SafetyEngineering15 citations
TL;DR

The paper presents a real-time helmet violation detection system using a novel few-shot data sampling strategy with YOLOv8, achieving competitive mAP and real-time inference for AI City Challenge Track 5.

ABSTRACT

Traffic safety is a major global concern. Helmet usage is a key factor in preventing head injuries and fatalities caused by motorcycle accidents. However, helmet usage violations continue to be a significant problem. To identify such violations, automatic helmet detection systems have been proposed and implemented using computer vision techniques. Real-time implementation of such systems is crucial for traffic surveillance and enforcement, however, most of these systems are not real-time. This study proposes a robust real-time helmet violation detection system. The proposed system utilizes a unique data processing strategy, referred to as few-shot data sampling, to develop a robust model with fewer annotations, and a single-stage object detection model, YOLOv8 (You Only Look Once Version 8), for detecting helmet violations in real-time from video frames. Our proposed method won 7th place in the 2023 AI City Challenge, Track 5, with an mAP score of 0.5861 on experimental validation data. The experimental results demonstrate the effectiveness, efficiency, and robustness of the proposed system.

Motivation & Objective

  • Motivate the development of a robust, real-time helmet violation detection system for diverse weather and lighting conditions.
  • Reduce annotation burden by introducing a few-shot data sampling framework.
  • Evaluate YOLO family models to identify the best real-time detector for helmet violations.

Proposed method

  • Introduce a few-shot data sampling technique to select representative frames and reduce annotations.
  • Apply data augmentation to enhance training diversity and robustness to occlusion and viewpoint changes.
  • Use test time augmentation (TTA) to boost inference accuracy.
  • Compare YOLOv5, YOLOv7, and YOLOv8 to identify the best performing single-stage detector for this task.
  • Train models with 400 epochs, batch size 16, image size 832x832, on an RTX 3090.
  • Incorporate background frames and negative samples to reduce false positives.
Figure 1 : Illustration of predictions of motorists, passengers, and motorcycles in real-time. We present a method that is able to predict helmet rule violation in real-time. The different bounding box colors represent different predictive class.
Figure 1 : Illustration of predictions of motorists, passengers, and motorcycles in real-time. We present a method that is able to predict helmet rule violation in real-time. The different bounding box colors represent different predictive class.

Experimental results

Research questions

  • RQ1How effective is the few-shot data sampling approach in reducing annotation requirements while preserving detection performance?
  • RQ2Which YOLO single-stage detector (v5/v7/v8) provides the best balance of accuracy and speed for real-time helmet violation detection?
  • RQ3Does test-time augmentation improve detection performance under diverse weather and lighting conditions?

Key findings

  • The YOLOv8+TTA model achieved the highest validation mAP.05-.95 of 0.647 on the validation set.
Figure 2 : Images from different time of day and weather. a) Daylight, b) Nighttime, and c)Foggy weather.
Figure 2 : Images from different time of day and weather. a) Daylight, b) Nighttime, and c)Foggy weather.

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.