Title: Improving the accuracy of drowning detection based on improved YOLOv5

Authors: Kaikai Wang; Ruiliang Yang; Libin Yang

Addresses: School of Mechanical Engineering, Tiangong University, Tianjin, Xiqing, China ' School of Aeronautics and Astronautics, Tiangong University, Tianjin, Xiqing, China ' School of Mechanical Engineering, Tiangong University, Tianjin, Xiqing, China

Abstract: Drowning stands as a primary cause of unintentional deaths globally. This paper presents an improved YOLOv5 algorithm tailored for drowning detection, aiming to effectively mitigate drowning incidents. The improved YOLOv5 incorporates the Ghost-CBAM-C3 (GCC) module, which comprises Ghost-bottleneck modules and the CBAM module, and the learning rate decay of Cosine Annealing. To gauge the algorithm's efficacy, four self-made data sets were curated utilising a DJI mini3pro drone over both swimming pools and natural water bodies. Experimental findings underscore the heightened performance of the improved YOLOv5 over the original YOLOv5s. This enhancement manifests in a precision boost from 92.8 to 97.1%, and the values for mean average precision (mAP@0.5), weights and the Frames-Per-Second (FPS) are 93.2, 14.1 and 23.70, respectively, affirming its applicability in real-time scenarios. Furthermore, results indicate superior performance of the swimming pool data set compared to those from natural water bodies.

Keywords: drowning detection; improved YOLOv5; self-made data sets; CBAM; safety; drone; labelImg software; k-means; SPPF; Ghost module.

DOI: 10.1504/IJRS.2025.149321

International Journal of Reliability and Safety, 2025 Vol.19 No.4, pp.339 - 355

Received: 20 Apr 2024
Accepted: 05 Nov 2024

Published online: 24 Oct 2025 *

Full-text access for editors Full-text access for subscribers Purchase this article Comment on this article