Macro Micro News Global Pulse. Local Truth.

SDIM-YOLOv5: How Lightweight AI Detects Helmet Violations at 43.5 FPS on Edge Devices

12 October 2026 · 2 min read

We compile, generate and translate using Artificial Intelligence from the below given source. Macro Micro News is responsible for its editorial publication.

Article image by Raaed A
Image by Raaed A

Global, Source:

The streets are filling up with e-bikes and scooters, bringing a new layer of complexity to urban traffic safety. Manual enforcement by police officers is often stretched thin, leaving gaps in coverage that can compromise rider security. Researchers have responded with SDIM-YOLOv5, a deep learning framework that balances high accuracy with the computational efficiency needed for real-time deployment on resource-constrained edge devices.

The architecture of SDIM-YOLOv5 introduces structural optimizations built upon the YOLOv5 foundation. The standard CSPDarknet53 backbone is replaced with SimRepCSP, a lightweight simplified reparameterized cross-stage partial module. This substitution significantly reduces model size and computational complexity while maintaining robust feature extraction capabilities. The neck network further incorporates C3_DualConv modules, which utilize dual convolution techniques to enhance multi-scale feature fusion while lowering parameter counts.

A key innovation lies in the introduction of InnerMPDIoU, a novel bounding-box regression loss function. This hybrid approach combines Minimum Point Distance IoU (MPDIoU) and InnerIoU to improve localization precision. It specifically addresses aspect ratio coupling issues inherent in traditional methods, making it particularly effective for detecting small or occluded helmet targets.

Experimental results highlight the effectiveness of this design. On a custom dataset of real-world road scenes, SDIM-YOLOv5 achieved a recall rate of 95.5% and a mean Average Precision (mAP@0.5) of 97.2%. These metrics were attained with only 5.89 million parameters and a model size of just 12.1 MB, outperforming many heavier baseline models. When deployed on an NVIDIA Jetson Nano B01 edge device, the optimized model delivered robust performance.

With TensorRT acceleration and FP16 precision at a reduced resolution of 320x320, the system achieved inference speeds of up to 43.5 FPS for video streams and 41.7 FPS for USB camera inputs. This proves its viability for live traffic monitoring in dynamic environments. The technology represents a significant step forward in intelligent transportation systems by enabling accurate, low-latency detection of helmet violations on affordable hardware.

This scalable solution supports cities aiming to enforce safety regulations effectively. The model’s ability to handle complex scenarios, including long-distance views, dense crowds, and occlusions, ensures reliable operation in diverse environmental conditions. As smart city infrastructure expands, lightweight AI models like SDIM-YOLOv5 will play a pivotal role in enhancing public safety through automated, continuous surveillance.