Fire detection in ancient architecture presents significant challenges due to complex scenes and unique structural characteristics. Traditional detection methods often demonstrate limitations when addressing the specific structural idiosyncrasies of individual ancient buildings and the overlapping occlusion prevalent in architectural complexes. This paper proposes YOLO-AR, a novel fire detection algorithm based on an improved YOLOv8 framework. By embedding the Convolutional Block Attention Module (CBAM) at the end of the backbone network, the algorithm enhances its capability to capture key features of flames and smoke. Furthermore, the Repulsion Loss function is introduced to explicitly optimize bounding box localization accuracy in occluded and dense scenarios. Experiments conducted on a self-constructed ancient architecture dataset comprising 15,847 images demonstrate that YOLO-AR outperforms mainstream comparative algorithms in terms of Precision, Recall, and mean Average Precision (mAP). Specifically, the detection precision reached 90.7%, and the recall rate improved to 89.7%. This study provides an efficient and reliable visual detection solution for early warning systems in ancient architecture, offering significant value for cultural heritage preservation.
Li et al. (Fri,) studied this question.