Abstract
With the escalating frequency of urban and forest fires driven by climate change, the development of intelligent and robust fire detection systems has become imperative for ensuring public safety and ecological protection. This paper presents a comprehensive multi-module fire detection framework based on visual computing, encompassing image enhancement and lightweight object detection. To address data scarcity and to enhance generalization, a projected generative adversarial network (Projected GAN) is employed to synthesize diverse and realistic fire scenarios under varying environmental conditions. For the detection module, an improved YOLOv8n architecture is proposed by integrating BiFormer Attention, Agent Attention, and CCC (Compact Channel Compression) modules, which collectively enhance detection accuracy and robustness under low visibility and dynamic disturbance conditions. Extensive experiments on both synthetic and real-world fire datasets demonstrated notable improvements in image restoration quality (achieving a PSNR up to 34.67 dB and an SSIM up to 0.968) and detection performance (mAP reaching 0.858), significantly outperforming the baseline. The proposed system offers a reliable and deployable solution for real-time fire monitoring and early warning in complex visual environments.