doi: 10.17706/jsw.21.1.1-13
Fire Detection System Based on YOLOv5 with Attention Mechanism
2. School of Sciences, Southwest Petroleum University, Chengdu, Sichuan Province, 610500, China
*Corresponding author. Tel.: +86 15015987132; email: 2495599321@qq.com
Manuscript submitted September 3, 2025; accepted November 25, 2025; published January 29, 2026
Abstract—The increasing frequency of fire incidents in dense urban areas has highlighted the limitations of traditional sensor-based detection systems, such as delayed response and high false alarm rates. To address these challenges, this study proposes an enhanced fire detection algorithm based on You Only Look Once Version 5 (YOLOv5), incorporating a Squeeze-and-Excitation (SE) attention mechanism. The SE module was selected for its effective channel-wise feature recalibration capability and its minimal computational overhead, making it ideal for deployment on edge devices in real-time scenarios. Experimental results demonstrate that the proposed method achieves a precision of 0.87, recall of 0.86, and mAP@0.5 of 0.91, with a mAP@0.5:0.95 of 0.42, indicating robust performance under stricter evaluation criteria. The model maintains high computational efficiency, exhibiting strong potential for practical, real-time fire detection applications.
Keywords—YOLOv5, fire detection, Squeeze-and-Excitation (SE) attention mechanism, target detection
Cite: Ruoxi Huang, Xiasheng Lu, and Yiming Chen, " Fire Detection System Based on YOLOv5 with Attention Mechanism," Journal of Software, vol. 21, no. 1, pp. 1-13, 2026.
Copyright @ 2026 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0)
General Information
ISSN: 1796-217X (Online)
Abbreviated Title: J. Softw.
Frequency: Biannually
APC: 500USD
DOI: 10.17706/JSW
Editor-in-Chief: Prof. Antanas Verikas
Executive Editor: Ms. Cecilia Xie
Google Scholar, ProQuest,
INSPEC(IET), ULRICH's Periodicals
Directory, WorldCat, etcE-mail: jsweditorialoffice@gmail.com
-
Mar 07, 2025 News!
Vol 19, No 4 has been published with online version [Click]
-
Mar 07, 2025 News!
JSW had implemented online submission system [Click]
-
Apr 01, 2024 News!
Vol 14, No 4- Vol 14, No 12 has been indexed by IET-(Inspec) [Click]
-
Apr 01, 2024 News!
Papers published in JSW Vol 18, No 1- Vol 18, No 6 have been indexed by DBLP [Click]
-
Oct 22, 2024 News!
Vol 19, No 3 has been published with online version [Click]
