Skip to content
Open access

A controlled ablation study of CBAM in YOLOv8 and YOLOv9 for multi class weapon detection

Aug 2026 · Discover Computing · Vol 29 · 0 citations · 33 references

TL;DR

It is highlighted that attention should be treated as an architecture-dependent design choice rather than a generic performance enhancement, providing practical insights for the development of efficient real-time detection systems.

Abstract

Recent YOLO-based object detectors provide a strong accuracy–latency trade-off for security-critical applications, yet it remains unclear whether attention mechanisms consistently improve modern architectures. This paper presents a controlled ablation study of integrating the Convolutional Block Attention Module (CBAM) into YOLOv8 and YOLOv9 for multi-class surveillance object detection. Experimental results reveal a clear architecture-dependent behavior. CBAM improves YOLOv8 performance, increasing precision from 0.7786 to 0.8060 and mAP@50 from 0.8571 to 0.8753 with modest computational overhead. In contrast, CBAM significantly degrades YOLOv9 performance, reducing mAP@50 from 0.9501 to 0.7600 and mAP@50–95 to 0.5400, while nearly doubling the model size (25.3–48.7 M parameters). These findings demonstrate that attention mechanisms are not universally beneficial; rather, their effectiveness depends on the underlying architecture. In high-capacity models such as YOLOv9, CBAM introduces redundancy that negatively impacts performance. Additional analysis, including efficiency evaluation and Grad-CAM visualization, further supports this interpretation. Overall, this study highlights that attention should be treated as an architecture-dependent design choice rather than a generic performance enhancement, providing practical insights for the development of efficient real-time detection systems.

Read PDF

Similar papers

Open access 2026

Real-Time Weapon Detection Using Enhanced YOLO12 Models and a Custom Dataset

The paper presents a customized version of the YOLOv12 model that enables better detection of small, occluded, and low-contrast weapons in video sequences while maintaining high precision and real-time inference speed. The new model integrates: 1) loss reweighting strategy that emphasizes small objects’ contributions d...

Constantin Catargiu, I. Ciocoiu · 0 citations
Open access Aug 2026

Robustness Evaluation of YOLOv8, YOLOv11, and YOLOv12 for Personal Protective Equipment Detection under Photometric Saturation Variations

Computer vision-based Personal Protective Equipment (PPE) detection has become increasingly important for improving Occupational Safety and Health (OSH) compliance through automated, real-time monitoring of workers' safety practices. Although recent studies have reported promising performance for YOLO-based object dete...

Zaid Romegar Mair · 0 citations
Open access Aug 2026

YOLO-Defender: A Lightweight CNN–Transformer Detector for Dike Crack Detection

Surface cracks are critical indicators of deterioration in flood-control infrastructure, yet automated detection from inspection imagery remains challenging due to complex backgrounds, elongated geometries, and variations in apparent scale. This study aims to develop a lightweight detector for accurate dike crack detec...

Xiu-Dong Xie, Chen-Yang Wang, Hong-Fei Huang et al. · 0 citations
Conference Aug 2026

A Lightweight YOLOv8 Network Based on Ghost Modules and SimAM for PCB Defect Detection

Automated inspection of printed circuit boards remains difficult because many surface defects occupy only small regions, occur close to one another, and exhibit weak visual differences from normal circuit patterns. This study redesigns YOLOv8n for deployment under limited computational and storage resources by integrat...

Lei Zhou, Ming-Deng Shi · 0 citations
Open access Aug 2026

REAL-TIME WEAPON AND THREAT DETECTION USING YOLOV12 WITH MULTI-SENSOR FUSION FOR ENHANCED SURVEILLANCE SYSTEMS

This study proposes an Advanced Surveillance Framework that makes use of YOLOv10, a next-generation real-time object detection algorithm that greatly outperforms conventional single-sensor approaches in precision, recall, and real-time responsiveness.

Sadiya Begum, Lubna Nausheen, Ruqiya Fatima · 0 citations
Open access Sep 2026

SDR-YOLO: Scale-Selective Detail Residual Enhanced YOLO for Visible–Thermal Object Detection

Visible–thermal object detection benefits from the complementary properties of RGB and thermal imagery, but repeated cross-modal fusion can increase model complexity, particularly in lightweight detectors. This paper proposes SDR-YOLO, a scale-selective detector designed to make better use of shallow spatial details wi...

Li-Juan Wang, Zu-Chao Bao, Bai-Chuan Rong et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.