A Post-Training Channel Pruning Method Based on Grad-CAM and Its Application in Fire Detection
This paper proposes a post-training structured channel pruning scheme leveraging Gradient-Weighted Class Activation Mapping (Grad-CAM) for few-class fire detection under limited computational resources. After standard training, category-specific gradient signals extracted from the detection heads are used to generate channel-wise class activation maps over multi-scale feature layers, and fire and smoke responses are fused to rank channel importance. A layer-level retention quota is further applied to implement structured channel pruning, followed by lightweight fine-tuning. The pipeline does not require additional sparsity-inducing training. We validate the method on a self-established fire and smoke dataset containing 9041 images, using YOLOv5s, YOLOv5m, and YOLOv5l as baseline detectors. In workflow-level comparisons, the proposed method achieved higher [email protected] than the implemented L1-based workflow at 40% and 60% pruning, but not at 80%. At 60% pruning, the pruned YOLOv5s model contained 2.158 M parameters and required 2.901 GFLOPs. These results indicate that Grad-CAM provides a useful class-aware criterion for channel importance and offers a promising model-compression strategy for resource-constrained fire detection, although physical edge-device performance remains to be evaluated.
Authors
- Wenbiao Wang (ORCID: https://orcid.org/0009-0006-6847-0174)
- Xu Zhang (ORCID: https://orcid.org/0000-0003-2342-6701)
- Qiheng Shi
- Weihao Fan
Institutions
- Dalian Maritime University (CN)
Publication Details
- Journal
- Fire
- Published
- 2026-09-01
- DOI
- https://doi.org/10.3390/fire9090370
- Primary Topic
- Fire Detection and Safety Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China