Next Article in Journal
Medical Data Storage Model Based on an Alliance Chain
Next Article in Special Issue
LSW-Net: A Learning Scattering Wavelet Network for Brain Tumor and Retinal Image Segmentation
Previous Article in Journal
A Monitoring System Based on NB-IoT and BDS/GPS Dual-Mode Positioning
Previous Article in Special Issue
Image Denoising Based on GAN with Optimization Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved YOLOv5s Algorithm for Object Detection with an Attention Mechanism

College of Computer and Information, China Three Gorges University, Yichang 443002, China
*
Author to whom correspondence should be addressed.
Electronics 2022, 11(16), 2494; https://doi.org/10.3390/electronics11162494
Submission received: 1 July 2022 / Revised: 6 August 2022 / Accepted: 9 August 2022 / Published: 10 August 2022
(This article belongs to the Special Issue Advances in Image Enhancement)

Abstract

To improve the accuracy of the You Only Look Once v5s (YOLOv5s) algorithm for object detection, this paper proposes an improved YOLOv5s algorithm, CBAM-YOLOv5s, which introduces an attention mechanism. A convolutional block attention module (CBAM) is incorporated into the YOLOv5s backbone network to improve its feature extraction ability. Furthermore, the complete intersection-over-union (CIoU) loss is used as the object bounding-box regression loss function to accelerate the speed of the regression process. Experiments are carried out on the Pascal Visual Object Classes 2007 (VOC2007) dataset and the Microsoft Common Objects in Context (COCO2014) dataset, which are widely used for object detection evaluations. On the VOC2007 dataset, the experimental results show that compared with those of the original YOLOv5s algorithm, the precision, recall and mean average precision (mAP) of the CBAM-YOLOv5s algorithm are improved by 4.52%, 1.18% and 3.09%, respectively. On the COCO2014 dataset, compared with the original YOLOv5s algorithm, the precision, recall and mAP of the CBAM-YOLOv5s algorithm are increased by 2.21%, 0.88% and 1.39%, respectively.
Keywords: object detection; YOLOv5s; attention mechanism; deep learning object detection; YOLOv5s; attention mechanism; deep learning

Share and Cite

MDPI and ACS Style

Jiang, T.; Li, C.; Yang, M.; Wang, Z. An Improved YOLOv5s Algorithm for Object Detection with an Attention Mechanism. Electronics 2022, 11, 2494. https://doi.org/10.3390/electronics11162494

AMA Style

Jiang T, Li C, Yang M, Wang Z. An Improved YOLOv5s Algorithm for Object Detection with an Attention Mechanism. Electronics. 2022; 11(16):2494. https://doi.org/10.3390/electronics11162494

Chicago/Turabian Style

Jiang, Tingyao, Cheng Li, Ming Yang, and Zilong Wang. 2022. "An Improved YOLOv5s Algorithm for Object Detection with an Attention Mechanism" Electronics 11, no. 16: 2494. https://doi.org/10.3390/electronics11162494

APA Style

Jiang, T., Li, C., Yang, M., & Wang, Z. (2022). An Improved YOLOv5s Algorithm for Object Detection with an Attention Mechanism. Electronics, 11(16), 2494. https://doi.org/10.3390/electronics11162494

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop