Next Article in Journal
Almost Global Stabilization of Curvature-Nullifiable Mechanical Systems via Pure Mechanical Feedback
Next Article in Special Issue
UAV-Based Forest Fire Early Warning and Intervention Simulation System with High-Accuracy Hybrid AI Model
Previous Article in Journal
Experimental Evaluation of Impact Loading of RFID Tags Embedded in a Pipe Conveyor Belt and Design of an Optimal Antenna Configuration
Previous Article in Special Issue
The Decomposition Mechanism of C4F7N–Ag Gas Mixture Under High Temperature Arc
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ESCFM-YOLO: Lightweight Dual-Stream Architecture for Real-Time Small-Scale Fire Smoke Detection on Edge Devices

1
Department of AI Convergence Engineering, Gyeongsang National University, Jinju 52828, Republic of Korea
2
Department of Computer Science and Engineering, Gyeongsang National University, Jinju 52828, Republic of Korea
3
The Research Institute of Natural Science, Gyeongsang National University, Jinju 52828, Republic of Korea
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2026, 16(2), 778; https://doi.org/10.3390/app16020778
Submission received: 3 November 2025 / Revised: 23 December 2025 / Accepted: 6 January 2026 / Published: 12 January 2026

Abstract

Early detection of small-scale fires is crucial for minimizing damage and enabling rapid emergency response. While recent deep learning-based fire detection systems have achieved high accuracy, they still face three key challenges: (1) limited deployability in resource-constrained edge environments due to high computational costs, (2) performance degradation caused by feature interference when jointly learning flame and smoke features in a single backbone, and (3) low sensitivity to small flames and thin smoke in the initial stages. To address these issues, we propose a lightweight dual-stream fire detection architecture based on YOLOv5n, which learns flame and smoke features separately to improve both accuracy and efficiency under strict edge constraints. The proposed method integrates two specialized attention modules: ESCFM++, which enhances spatial and channel discrimination for sharp boundaries and local flame structures (flame), and ESCFM-RS, which captures low-contrast, diffuse smoke patterns through depthwise convolutions and residual scaling (smoke). On the D-Fire dataset, the flame detector achieved 74.5% mAP@50 with only 1.89 M parameters, while the smoke detector achieved 89.2% mAP@50. When deployed on an NVIDIA Jetson Xavier NX (NVIDIA Corporation, Santa Clara, CA, USA)., the system achieved 59.7 FPS (single-stream) and 28.3 FPS (dual-tream) with GPU utilization below 90% and power consumption under 17 W. Under identical on-device conditions, it outperforms YOLOv9t and YOLOv12n by 36–62% in FPS and 0.7–2.0% in detection accuracy. We further validate deployment via outdoor day/night long-range live-stream tests on Jetson using our flame detector, showing reliable capture of small, distant flames that appear as tiny cues on the screen, particularly in challenging daytime scenes. These results demonstrate overall that modality-specific stream specialization and ESCFM attention reduce feature interference while improving detection accuracy and computational efficiency for real-time edge-device fire monitoring.

1. Introduction

Fire is among the most destructive hazards in human history, causing substantial loss of life and property. Its severity arises from rapid spread: indoor fires can escalate quickly due to complex building layouts and high occupant density, whereas outdoor fires propagate over large areas under the influence of wind and terrain [1,2]. Fire growth typically follows an exponential pattern, with a critical intervention window of approximately 3–5 min after ignition [3]. Beyond this window, conventional suppression methods become less effective, underscoring the necessity of early detection systems [4].
Existing fire detection systems fall into two broad categories, each with distinct limitations. Sensor-based systems exhibit (i) detection delays because smoke or heat must first reach ceiling-mounted sensors [5], (ii) a lack of visual confirmation of the fire’s location and extent [6], and (iii) high false-alarm rates in dusty or steam-filled environments [7]. Traditional pixel-based algorithms are (i) highly susceptible to false alarms caused by lighting changes, sunlight reflections, steam or water vapor [8], and (ii) limited in spatial-context understanding, often failing to distinguish early-stage fire cues from visually similar yet harmless patterns [9,10]. These limitations have motivated the development of vision-based fire detection systems that can identify fires at their earliest stages through direct visual observation.
Recent advances in deep learning, particularly within the YOLO (You Only Look Once) family [11], have produced high-performance detectors from YOLOv3 [12] to the latest YOLOv12 [13]. Successive generations introduced key architectural innovations that improved both accuracy and efficiency: CSPDarknet in YOLOv4 [14], E-ELAN and RepConv in YOLOv7 [15], GELAN in YOLOv9 [16], a CNN-and-attention hybrid backbone in YOLOv11 [17], and enhanced multipath feature fusion in YOLOv12 [13]. Among lightweight variants, YOLOv5n [18] is one of the most compact models (approximately 1.9 M parameters) while maintaining competitive accuracy. It also supports ONNX and TensorRT export, facilitating deployment on resource-constrained edge platforms such as the NVIDIA Jetson Xavier NX. In this study, we adopt YOLOv5n as our baseline because it satisfies the requirements of efficiency, compatibility with edge devices, and strong small-object detection needed for early flame and smoke detection in constrained environments.
Applying generic object detectors to fire detection presents unique challenges. First, flames and smoke differ fundamentally in appearance: flames are bright, compact, and bounded by sharp high-frequency textures, whereas smoke is diffuse, semitransparent, and characterized by gradual intensity transitions [19,20]. Second, detecting both modalities within a single network creates a multimodal learning challenge, since the model must encode distinct spatial, textural, and opacity-related features at the same time, often leading to suboptimal representations and reduced accuracy [21]. Third, deployment on resource-limited edge devices requires architectures that maintain accuracy while meeting strict constraints on computation, memory, and power [22,23,24]. Local processing also provides low latency, robustness to unstable networks, and compliance with privacy regulations in sensitive locations such as homes and hospitals [25,26]. Edge computing avoids high-bandwidth streaming by processing video at the source, enabling scalable, location-aware fire surveillance even over low-speed networks [18,27]. However, platforms such as the Jetson Xavier NX, with less than 16 GB of unified memory and low-power CPUs [15], require careful balancing of model complexity and real-time performance. Prior work shows that aggressive simplification may increase throughput but often harms accuracy [28], whereas excessive pruning significantly degrades detection [29].
Previous studies have followed two main strategies. The first strategy enhances unified detectors through backbone replacement, attention integration, or decoupled prediction heads [19,21]. Examples include YOLOFM [30], YOLO-HF [31], and DCGC-YOLO [32]. Although these designs improve accuracy in some cases, a single network must still learn conflicting flame and smoke patterns, which can lead to unstable convergence and reduced generalization. The second strategy develops lightweight detectors, such as YOLOv5n [18], YOLOv7-tiny, and YOLOv8n, or enhanced variants like YOLOFM [30], EFA-YOLO [33], and Enhanced YOLOv7-Tiny [34], to achieve real-time performance on edge devices. However, these models often degrade noticeably when detecting small, low-contrast, or early-stage fire cues in cluttered environments. Segmentation-based approaches, including DeepSmoke [35] and Lightweight Smoke Segmentation [36], offer improved boundary localization but impose prohibitive computational costs for edge deployment.
These observations motivate a lightweight yet modular detection architecture that combines real-time efficiency, heterogeneous flame and smoke feature learning, and high sensitivity to small objects. To meet this need, we propose a dual-stream architecture that decouples flame and smoke detection into specialized branches, each tailored to its visual characteristics. We introduce two lightweight attention modules: Efficient Spatial Channel Fusion Module (ESCFM)++, optimized for small-scale flames with sharp boundaries and high-frequency textures; and Efficient Spatial Channel Fusion Module (ESCFM)-RS, designed to enhance sensitivity to diffuse, low-contrast smoke patterns. Integrated into a YOLOv5n backbone, these modules enable specialized feature learning without sacrificing computational efficiency. By separating feature extraction for flames and smoke, the approach reduces cross-modality interference while maintaining high inference speed. Extensive experiments show that the proposed method consistently outperforms state-of-the-art alternatives in both accuracy and efficiency, sustaining real-time performance on resource-constrained edge devices.
The main contributions of this work are
(i)
Dual-stream fire detector: a lightweight architecture that separates flame/smoke representation learning to mitigate feature interference versus unified models.
(ii)
Task-specific attention: ESCFM++ (flames) enhances spatial/channel selectivity for compact, high-frequency structures; ESCFM-RS (smoke) strengthens sensitivity to diffuse, low-contrast textures with depthwise convolutions and residual scaling.
(iii)
Edge-validated efficiency and robustness: ONNX/TensorRT deployment on Jetson Xavier NX with real-time throughput, validated through outdoor daytime/nighttime long-range live-stream tests that demonstrate reliable detection of small, early-stage flame cues under challenging illumination.

2. Related Work

Over the past decade, vision-based fire detection has advanced markedly. Early approaches in the mid-2000s relied on handcrafted image processing. Çelik et al. [37] introduced a Gaussian color model in RGB space, whereas Töreyin et al. [38] combined color thresholding with motion analysis to improve temporal coherence. Although promising for real-time processing, these rule-based methods often exhibited high false-positive rates under complex lighting and visually similar distractors, and they lacked standardized evaluation protocols, which limited their generalizability.
With the rise in deep learning, CNN-based methods significantly improved detection accuracy and practical deployability. Li and Zhao [39] compared VGG, ResNet, and Inception backbones within YOLO and Faster R-CNN frameworks, highlighting trade-offs between accuracy and computational cost. Jadon et al. [40] proposed FireNet, a MobileNetV2-based classifier with FireBlock and squeeze-and-excitation, achieving over 30 FPS on a Jetson Nano with only 1.26 M parameters. Nevertheless, handling low-contrast smoke and meeting strict edge constraints (latency, memory, and power) remain challenging, particularly when flame and smoke must be detected simultaneously under real-world nuisance factors.

2.1. Core Technical Challenges in Fire Detection (Feature/Gradient Interference)

A key challenge in integrated fire perception is that flames and smoke exhibit opposing visual statistics. Flames often appear as high-luminance regions with sharp boundaries and localized high-frequency textures, whereas smoke is low-contrast, diffuse, and gradually varying. This modality gap is reflected in the literature, where flame-centric detectors and smoke-centric detectors are often studied with different architectural emphases, including attention mechanisms such as CBAM [41], or modality-specific designs [10,33,34,35,36,42]. When both classes are learned jointly in a single backbone, unified detectors can suffer from representation interference and reduced sensitivity to weak early cues, motivating decoupled designs over purely unified learning in integrated settings [43,44,45,46,47,48,49]. This issue becomes more critical in early-warning scenarios, where cues are weak (tiny flames, thin smoke) and easily confused with distractors such as steam, fog, dust, or illumination changes.

2.2. Single-Stream Approaches (Flame-Centric and Smoke-Centric)

2.2.1. Single-Stream Approaches (Flame-Centric)

Flame-only models typically enhance sharp boundaries and high-frequency cues via attention or multi-scale refinements. Pan et al. [33] augmented YOLOv5s with an Efficient Feature Attention module, raising mAP@50 from 87.1% to 92.1% while sustaining >110 FPS. Lv et al. [10] combined CBAM [41] and Ghost modules, reducing parameters (7.2 M → 4.9 M) and boosting mAP@50 (86.7% → 92.3%) with speed gains (106 FPS → 118 FPS). Wu et al. [34] enhanced YOLOv7-Tiny with channel/spatial attention and dynamic upsampling, improving mAP@50 from 83.1% to 88.4% and precision/recall to 86.7%/84.6% at ≥150 FPS.
Strengths: strong flame accuracy and high throughput with modest architectural changes. Limitations: Despite their strong flame accuracy, many flame-centric single-stream variants remain deployment-unfriendly for edge devices because they often rely on heavier backbones (e.g., YOLOv5s) or additional attention and multi-scale components that increase memory traffic and latency. Moreover, these models ignore smoke, which is frequently the earliest warning cue, and are rarely benchmarked on tiny flames (<30 px) or evaluated with deployment-faithful end-to-end metrics (e.g., sustained FPS, memory footprint, and power) on embedded platforms.

2.2.2. Single-Stream Approaches (Smoke-Centric)

Smoke-only approaches often rely on segmentation-based localization or YOLO variants tuned for smoke/fog robustness. DeepSmoke [35] couples a ResNet-50 encoder with a multi-scale fusion decoder, achieving ≈80% mIoU, 85% precision, and 80% recall on 7 k outdoor images, outperforming U-Net and SegNet by 10–15 percentage points in mIoU. MobileNetV2-Seg [36] delivers 76.2% mIoU at 41.5 FPS with only 1.13 M parameters. For detection-based pipelines, Wang et al. [29] modified YOLOv5 with a multi-objective loss for fog robustness, raising mAP@50 from 63% to 72% and recall from 67% to 75%. He et al. [42] tailored YOLOv11x for forest-fire smoke, achieving 94.9% precision, 85.0% recall, and 90.1% mAP@50.
Strengths: improved sensitivity to diffuse smoke patterns and effective smoke localization. Limitations: These smoke-centric single-stream methods typically focus only on smoke and thus provide limited support for integrated early warning that also requires flame confirmation. In addition, segmentation-based pipelines are often computationally heavy (e.g., encoder–decoder with multi-scale decoders), making them less suitable for resource-constrained edge deployment. Even detection-based variants that report strong accuracy frequently rely on larger backbones (e.g., YOLOv11x) and do not explicitly incorporate smoke-specific architectural modules tailored to diffuse, low-contrast smoke statistics; consequently, robustness to confounders such as steam or mist and deployment-faithful end-to-end feasibility (sustained FPS, memory, and power under streaming) are still underexplored.

2.3. Joint Learning vs. Dual-Stream: Integrated Approaches

Integrated flame–smoke models can be grouped into three categories.
(i)
Single-stream YOLOv5 baseline (shared backbone): Ahn et al. [43] adopted an off-the-shelf YOLOv5 detector trained as a two-class model (flame and smoke). Their main contribution lies in constructing the dataset and deploying the unmodified YOLOv5 via ONNX/TensorRT for real-time inference, rather than designing separate flame/smoke streams or modifying the network architecture. Pros: simple integration and single-engine deployment. Cons: the shared backbone does not explicitly mitigate interference between flame and smoke representations, which can degrade early-stage sensitivity.
(ii)
Detection and classification cascades: Pincott et al. [44] combined YOLOv7/YOLOv8 with EfficientNet-B0 to classify flame, smoke, or background (97% accuracy), while Kim and Ruy [8] used an RGB + IR CNN for shipboard monitoring (94.1% accuracy). Pros: improves reliability via secondary verification or additional modalities. Cons: introduces latency and heavier computation, which can be unfavorable for real-time edge constraints.
(iii)
Unified YOLO detectors with generic enhancements: Examples include YOLOv5s with CBAM + GhostConv+BiFPN [45], YOLOv5n with FocalNext+QAHARep-FPN [30], DCGC-YOLO [32] and YOLOGX on YOLOv8 [46], as well as attention/fusion modules such as MLCA [47], AFPN [48], and YOLO-SAD [49]. Pros: strong benchmark gains within a single model. Cons: unified networks may still suffer from feature interference; robustness to dust, steam, and tiny early cues (<30 px) remains limited.
Overall, unified networks often suffer from feature interference, whereas parallel or cascaded systems introduce latency and heavy computation. This trade-off motivates an integrated yet lightweight solution that explicitly decouples flame and smoke learning.

2.4. Attention and Efficiency Mechanisms for Edge Deployment

For edge deployment, detectors must balance speed and accuracy. Prior work improves efficiency through: (i) lightweight backbones and attention, (ii) custom neck/head designs, (iii) temporal aggregation or segmentation-lite approaches, and (iv) quantization or distillation. Lv et al. [10] and Pan et al. [33] improved mAP@50 to >92% while sustaining > 110 FPS with Ghost + CBAM or EFA. Geng et al. [30] used FocalNext+QAHARep-FPN to raise mAP@50 from 95.3% to 97.5%, and He et al. [32] achieved similar gains with DCGCBlock and IoU anchors. Zhao [22] applied time-slicing aggregation (91.8% precision, 90.7% mAP@50) at 14.7 MB; MobileNetV2-Seg [36] achieved 76.2% mIoU at 41.5 FPS. EdgeFireSmoke++ [24] reached 91.2% mAP@50 with 2.9 M parameters at 42.7 FPS on a Jetson Nano.
Despite these optimizations, accuracy–size trade-offs persist, comprehensive end-to-end latency and power evaluations are rare, and many methods remain coupled to specific hardware stacks (e.g., TensorRT). Moreover, improving efficiency alone does not resolve the interference problem when flame and smoke are jointly learned in a shared backbone.

2.5. Research Gap and Positioning of This Work

Synthesizing prior work reveals three persistent gaps: (i) feature interference in unified models degrades accuracy when flames and smoke are learned jointly; (ii) low sensitivity to small cues (e.g., <30 px flames or thin smoke) hampers early detection; and (iii) incomplete edge validation, since most studies report only peak FPS/GPU behavior without end-to-end evaluation.
To address these issues, we propose a dual-stream YOLOv5n architecture that (a) employs dedicated flame and smoke streams to mitigate feature interference, (b) uses small-fire data mining (<15% flame area) to emphasize early-stage cues, (c) integrates specialized lightweight attention using ESCFM++ (flame) and ESCFM-RS (smoke) modules to improve detection of small cues, and (d) provides an edge-ready FP32 TensorRT implementation on the NVIDIA Jetson Xavier NX that sustains real-time throughput with negligible accuracy loss.

3. Proposed Method

This section presents a dual-stream detection framework for accurate and real-time perception of small-scale flames and smoke on edge devices. Unlike unified two-class detectors that learn both modalities within a shared representation, our framework explicitly decouples flame and smoke learning, deployment, and inference. This design choice is motivated by (i) modality-specific visual statistics that can cause representation interference in unified models and (ii) the need for deployment-faithful real-time evaluation on resource-constrained edge hardware.

3.1. Design Rationale and Contributions

Design Objective 1: Mitigate interference via dual-stream learning. Flame and smoke cues differ significantly: flames exhibit sharp edges and localized high-frequency textures, while smoke is diffuse and low-contrast. In a shared backbone, optimizing for one modality can weaken the other, especially under early-stage conditions (tiny flames and thin smoke). We therefore train and deploy two modality-specialized detectors to reduce negative coupling and preserve weak cues.
Design Objective 2: Use task-specific attention tailored to each modality. Rather than attaching a single generic attention module to a unified model, we design two lightweight attention variants: ESCFM++ for flames and ESCFM-RS for smoke. The two modules share a common placement strategy (before multi-scale heads P3–P5) but differ in fusion style to better match each modality’s signal structure (localized strong activations for flames vs. distributed weak patterns for smoke).
Design Objective 3: Ensure edge-ready, deployment-faithful real-time inference. Since the main claim is real-time edge applicability, we include the full conversion and runtime pipeline (ONNX → TensorRT FP32 → DeepStream) in the method description. This avoids reporting accuracy in isolation and aligns evaluation with the actual deployment setting.
The main contributions are summarized as follows:
(N1) A dual-stream YOLOv5n framework that explicitly decouples flame and smoke learning to reduce interference while remaining lightweight.
(N2) Two task-specific lightweight attention modules (ESCFM++ for flames, ESCFM-RS for smoke) are inserted at P3–P5 to enhance early-stage cues.
(N3) An edge-ready deployment pipeline with TensorRT/DeepStream enabling real-time dual-stream inference on Jetson Xavier NX.

3.2. Overall Pipeline and System Overview

Figure 1 illustrates the overall edge-oriented workflow comprising five stages: preprocessing, dual-stream training, model conversion, edge deployment, and real-time inference.
(i)
Preprocessing (early-stage emphasis): We load the D-Fire dataset and retain frames where flame or smoke occupies ≤ 15% of the image area to emphasize early-stage cues. The data are then separated into flame and smoke subsets for modality-specific training.
(ii)
Dual-stream training (decoupled optimization): Two YOLOv5n detectors are trained independently: the flame stream integrates three ESCFM++ blocks, and the smoke stream integrates three ESCFM-RS blocks. In both cases, blocks are inserted before the P3–P5 detection heads while keeping the backbone and neck unchanged (see Figure 2).
(iii)
Model conversion (deployment alignment): Trained models are exported to ONNX in FP32 precision and converted to TensorRT FP32 engines with layer fusion and kernel auto-tuning to preserve accuracy.
(iv)
Edge deployment (runtime integration): The TensorRT engines are deployed on NVIDIA Jetson Xavier NX using DeepStream for low-latency streaming inference.
(v)
Real-time inference (parallel dual-stream execution): A single camera stream is preprocessed once (resize/normalize) and fed into two parallel engines. Outputs are fused at the system level to support early warning alerts for small flames and thin smoke.
Figure 2. Architecture of the proposed ESCFM enhanced YOLOv5n. ESCFM++ (flame) and ESCFM-RS (smoke) are inserted at multiple scales (P3–P5) immediately before the heads to specialize each modality.
Figure 2. Architecture of the proposed ESCFM enhanced YOLOv5n. ESCFM++ (flame) and ESCFM-RS (smoke) are inserted at multiple scales (P3–P5) immediately before the heads to specialize each modality.
Applsci 16 00778 g002

3.3. Dual YOLOv5n Architecture with Specialized Attention Modules

Figure 2 shows the overall architecture. The backbone follows the standard YOLOv5n design with CBS, C3, and SPPF blocks. The neck uses a PANet/FPN structure to fuse multi-scale features at P3 (small), P4 (medium), and P5 (large). To enhance early-stage cues without increasing backbone complexity, we insert ESCFM blocks immediately before each detection head at P3–P5. The placement is identical in both streams; only the module type differs by modality (ESCFM++ for flame, ESCFM-RS for smoke).

3.4. ESCFM++ Module for Flame Detection

ESCFM++ is a lightweight multi-branch attention mechanism designed for flame cues that are sparse and localized. As shown in Figure 3, it consists of parallel average-pooling and max-pooling branches followed by lightweight transformations. The refined features are fused through additive residual aggregation, which preserves weak but meaningful signals while emphasizing sharp flame edges and ignition points.
Mathematical formulation of ESCFM++. Let the input feature map be X R C × H × W . The ESCFM++ module computes the output Y through three stages:
Average pooling attention
F avg = σ W 3 R e L U W 2 W 1 A v g P o o l X ,
Max pooling attention
  F max = σ W 3 R e L U W 2 R e L U W 1 M a x P o o l X ,
Additive residual fusion
Y = X + F avg + F max   .
Equation (1) captures global semantic context by applying average pooling across spatial dimensions. The pooled vector is transformed through a stack of convolutional layers with ReLU activations, and the final output is passed through the sigmoid function σ , producing a smooth attention map that emphasizes semantically meaningful regions, particularly useful for blurry or weakly textured flames.
In contrast, Equation (2) highlights sparse but highly activated flame features by replacing average pooling with max pooling. This path captures sharp edges and ignition points, reinforcing strong local variations in the flame region, while applying the same transformation pipeline to maintain parameter sharing and consistency across branches.
Finally, Equation (3) adds both refined attention maps to the original input X via a residual connection. This fusion preserves the original spatial and contextual information while amplifying attention-enhanced cues. Unlike multiplicative attention (e.g., SE or CBAM), the additive design ensures that weak but meaningful features are not suppressed.

3.5. ESCFM-RS Module for Smoke Detection

ESCFM-RS targets diffuse and low-contrast smoke patterns. As shown in Figure 4, it adopts residual spatial attention with lightweight convolutions to maintain spatial sensitivity. Unlike ESCFM++, ESCFM-RS applies the fused attention map multiplicatively and adds a residual path, which is effective for enhancing distributed weak smoke signals while keeping computation minimal.
Mathematical formulation of ESCFM-RS. Let the input feature map be X R C × H × W . The ESCFM-RS module produces output Y in three steps:
Average pooling attention
F avg = σ W 2 ReLU DW W 1 AvgPool X
Max pooling attention
F max = σ W 2 ReLU DW W 1 MaxPool X
Residual emphasis with multiplicative attention
Y = X + X σ F avg + F max
Equation (4) extracts smooth, diffuse smoke textures via average pooling, whereas Equation (5) captures sharply activated smoke cues through max pooling. Finally, Equation (6) fuses the two attention maps, multiplies them with the input features, and adds a residual connection. This combination reinforces both strong and weak smoke signals while maintaining computational efficiency.

3.6. Dual Inference Strategy for Edge Deployment

Figure 5 illustrates the deployment-faithful dual-stream inference pipeline. A single camera stream is preprocessed once (resize to 416 × 416 and normalization) and then routed to two parallel engines: YOLOv5n+ESCFM++ for flames and YOLOv5n+ESCFM-RS for smoke. For real-scenario evaluation, we capture outdoor video streams using a consumer-grade camera (webcam) under daytime and nighttime conditions, including long-range views where flames appear as tiny cues on the screen. Both detectors are exported to ONNX (FP32) and compiled into TensorRT FP32 engines (with layer fusion and kernel auto-tuning), and are executed within a DeepStream pipeline on Jetson Xavier NX. The two outputs are synchronized and can be optionally fused to trigger early-warning alerts. End-to-end throughput/latency and detection performance under this outdoor real-scenario setup are reported in Section 4.7 to validate real-time applicability.

4. Experimental Results

This section presents a comprehensive evaluation of the proposed models and modules, including deployment on an edge device. The experimental results are organized into seven parts: (1) Experimental Environment and Dataset Preparation (Section 4.1), (2) Performance Evaluation Metrics (Section 4.2), (3) Comparison with Existing YOLO Models (Section 4.3), (4) Comparison with Related Models (Section 4.4), (5) Ablation Study for Model Optimization (Section 4.5), (6) Edge Computing Performance on Jetson Xavier NX (Section 4.6), and (7) Real-World Outdoor Live-Stream Case Study (Section 4.7).

4.1. Experimental Environment and Dataset Preparation

Experiments were conducted on a high-performance workstation, and the D-Fire dataset was preprocessed to emphasize early-stage fire cues. Table 1, Table 2, Table 3 and Table 4 summarize the training environment, augmentation settings, and final dataset composition.
Hardware and software. Table 1 summarizes the training environment and hyperparameters used in this study. Training was performed on an NVIDIA GeForce RTX 4080 GPU (16 GB VRAM; NVIDIA Corporation, Santa Clara, CA, USA) with an Intel Core i9 13900 K CPU and 64 GB RAM. The software stack comprised Windows 11, PyTorch 2.1.0, CUDA 12.1, and cuDNN 8.9. YOLOv5n (Nano) was trained with an initial learning rate of 0.01, weight decay of 0.0005, and momentum of 0.937. A three-epoch warm-up is used, with momentum set to 0.8 and the bias learning rate to 0.1, to stabilize convergence.
Data augmentation. Standard YOLO augmentations (Table 2) were applied: HSV hue/saturation/value shifts of ±1.5%/±70%/±40%; Mosaic to combine four images; horizontal flip (50%); translation (±10%); rotation (±10°); and scaling (up to ±50%). MixUp and CutMix were disabled to keep experiments consistent.
Dataset preparation. Table 3 summarizes the original D-Fire dataset, which contains four categories: fire only (1164 images), smoke only (5867), fire + smoke (4658), and none. For the flame-related data, we first merged the “fire only” and “fire+smoke” categories into a single pool of 5822 flame-containing frames. We then applied a filtering step that removes frames in which the flame bounding-box area exceeds 15% of the image, so that the remaining samples emphasize smaller or earlier-stage flames. After this filtering, 5136 images are retained.
We next reorganized and resplit the data for training and evaluation; the final splits are summarized in Table 4. Dataset composition after preprocessing (used in experiments) is as follows: the flame-containing set comprises 5136 images (4161 training (train), 975 validation (val)), the smoke-only set comprises 4183 images (3385 train, 798 val), and the unified fire+smoke set also comprises 5136 images (4161 train, 975 val). Note that the “flame only” and “fire+smoke” columns in Table 4 correspond to two different annotation configurations applied to the same 5136 flame-containing frames: in the former, only flame bounding boxes are used, whereas in the latter both flame and smoke labels are retained. This filtering and reorganization consolidate all flame-containing frames and remove large (>15%) flame regions, thereby increasing the diversity and representativeness of smaller flame patterns used for training, which is beneficial for early-fire detection.
As visualized in Figure 6, the fire-only category increased from 1164 to 5136 images, whereas the smoke-only only decreased from 5867 to 4183. This filtering step substantially increased the proportion of small flame samples, improving suitability for early-stage fire detection.

4.2. Performance Evaluation Metrics

This study evaluates the proposed detection models using three primary metrics: precision, recall, and mean average precision at an IoU threshold of 0.5 (mAP@50). These metrics quantify the relationship between detected objects and ground truth annotations, providing a comprehensive measure of detection accuracy, coverage, and overall effectiveness.
Let TP denote true positives (correct detections), FP false positives (incorrect detections), and FN false negatives (missed objects). Let N be the number of classes and A P i the average precision for the i-th class. The metrics are defined as follows.
Precision measures the proportion of correct detections among all predictions Equation (7); a higher value indicates fewer false positives and thus greater reliability:
Precision = TP TP + FP .
Recall measures the proportion of ground truth objects that are correctly detected Equation (8); a higher value implies fewer false negatives and better coverage:
Recall = TP TP + FN .
mAP@50 is the mean average precision computed at an intersection over union (IoU) threshold of 0.5 Equation (9); it aggregates per class AP over all classes:
mAP @ 50 = 1 N i = 1 N A P i ,   at   IoU = 0.5 .

4.3. Comparison with Existing YOLO Models

This section compares the proposed YOLOv5n-based detectors, enhanced with ESCFM++ and ESCFM-RS for flame only and smoke only detection, respectively, against standard YOLO architectures from YOLOv3 tiny to YOLOv12nv. Performance is evaluated using precision, recall, mAP@50, and model size (parameters, M).
To ensure a fair comparison, all models were trained under identical experimental settings: the same data augmentation pipeline, CIoU loss, SiLU activation, non-maximum suppression configuration, and training hyperparameters. Each YOLO variant was trained separately on flame-only and smoke-only datasets to assess class-specific detection capability. This isolated training strategy avoids cross-class feature interference and highlights each model’s inherent ability to capture class-specific visual cues.
The results (Table 5) show that the YOLOv5n-based models consistently achieve an excellent tradeoff between accuracy and efficiency. Despite its compact size of only 1.8 M parameters, the baseline YOLOv5n attains 73.8% mAP@50 for flame detection and 88.0% mAP@50 for smoke detection, outperforming larger models such as YOLOv6n (86.5% mAP@50, 4.7 M) and YOLOv7 tiny (87.8% mAP@50, 7.0 M) in terms of parameter efficiency.
For flame detection, integrating the ESCFM++ module raises mAP@50 from 73.8% to 74.5%, with slight gains in both precision (73.0% → 74.1%) and recall (70.2% → 70.4%), while maintaining the smallest model size (1.89 M parameters). This demonstrates the module’s effectiveness in enhancing small-scale flame cues without sacrificing compactness.
For smoke detection, the proposed ESCFM-RS module achieves the highest mAP@50 (89.2%) among all models, surpassing strong baselines such as YOLOv9t (89.0%) and YOLOv12n (87.7%), while retaining an equally lightweight footprint (1.89 M parameters). This confirms that the residual spatial attention design effectively captures thin and dispersed smoke patterns.
Overall, the dual ESCFM design provides task-specific optimization: ESCFM++ is best suited for flame detection, and ESCFM-RS for smoke detection. Both variants preserve real-time deployability thanks to their minimal model size.
Table 6 shows the results of joint flame and smoke detection experiments. YOLOv5n achieved 79.6% precision, 74.5% recall, and 78.8% mAP@50 with only 1.8 M parameters, providing a strong lightweight baseline. The proposed YOLOv5n + ESCFM++ recorded 80.0% precision, 72.2% recall, and 78.7% mAP@50 with 1.89 M parameters, maintaining baseline level accuracy while preserving compactness. The proposed YOLOv5n + ESCFM-RS achieved the best overall performance with 81.4% precision, 74.6% recall, and 80.2% mAP@50, outperforming larger models such as YOLOv7 tiny (80.2%, 7.0 M) and YOLOv9t (79.5%, 2.0 M).
Compared to the single class training results (Table 5), both ESCFM variants showed a marginal reduction in flame detection (≈0.3%) and a more pronounced drop in smoke detection (up to 9.0%), indicating that smoke detection is more sensitive to feature interference under joint training. Table 7 presents the class-wise performance of the proposed flame and smoke models. For flame detection, ESCFM++ and ESCFM-RS achieved 73.1% and 74.4% mAP@50, respectively, with precision values of 72.3% and 73.6% and recall values of 67.0% and 68.0%. For smoke detection, ESCFM++ reached 84.3% mAP@50 (precision 86.4%, recall 66.5%), while ESCFM-RS achieved the best performance with 85.6% mAP@50 (precision 87.2%, recall 67.9%).
Compared to the single class baselines, flame detection decreased only marginally (~0.3%), whereas smoke detection dropped significantly (~9.0%). These results confirm that flame detection is relatively resilient to inter-class interference, whereas smoke detection is more vulnerable due to its diffuse, low-contrast visual patterns. The spatial refinement in ESCFM-RS alleviates part of this degradation but does not fully close the gap with specialized smoke-only models. To further illustrate the performance differences, Figure 7 shows sample detection results for the proposed models trained on (a) flame-only and (b) smoke-only datasets.

4.4. Comparison with Related Models

We compare the proposed ESCFM++ and ESCFM-RS against a broad set of state-of-the-art detectors spanning classical two-stage frameworks and modern lightweight one-stage designs. The baselines include: (i) two-stage detectors (Faster R-CNN [51], EfficientDet [52]); (ii) transformer-based RT-DETRv2 [53]; (iii) YOLO-based flame/smoke detectors (YOLOFM [30], YOLO-SAD [49]); and (iv) YOLOv5n variants augmented with attention modules (SKNet [54], CBAM [41], Self Attention [55]). All models are evaluated on flame-only and smoke-only datasets using precision, recall, mAP@50, and model size (M).
Table 8 highlights consistent family-level trends. For flame-only detection, YOLO- based variants yield strong results, with precision 72–75% and recall 68–71%. Among them, YOLO-SAD and the proposed YOLOv5n + ESCFM++ attain the highest mAP@50 (74.5%). By comparison, RT-DETRv2 reaches a comparable mAP@50 (74.2%) but suffers from lower precision (40.2%) and recall (58.8%), indicating difficulty modeling small, irregular flame structures. Conventional detectors such as Faster R-CNN and EfficientDet D0 lag behind at 71.7% and 64.4% mAP@50, respectively.
For smoke-only detection, YOLO-based models again dominate, typically exceeding 86% precision and 81% recall. The proposed YOLOv5n + ESCFM-RS achieves the best precision (89.4%) and mAP@50 (89.2%), demonstrating robustness to thin and dispersed smoke. RT-DETRv2 attains a competitive mAP@50 (88.7%) but exhibits poor precision (58.9%), suggesting unstable confidence calibration; EfficientDet D0 similarly shows relatively low precision (53.5%) despite moderate recall (66.7%).
Overall, lightweight YOLO-based detectors with attention mechanisms, particularly ESCFM++ and ESCFM-RS, offer the most favorable accuracy-efficiency trade-off, outperforming transformer-based and two-stage alternatives on both flame and smoke detection tasks.

4.5. Ablation Study for Model Optimization

This study quantifies how post-processing strategies, IoU-based loss functions, and activation functions influence the performance of the proposed framework. The baseline ESCFM adopts a dual-branch design with adaptive max/average pooling, 1 × 1 convolutions, ReLU, and element-wise fusion with a residual path. It is inserted immediately before the three detection heads (P3–P5) of YOLOv5n without modifying the backbone.
We evaluate two groups of ablations under identical dataset splits and training/inference settings: (i) post-processing methods (NMS vs. Soft NMS) combined with IoU losses (GIoU, DIoU, CIoU), summarized in Table 9 and (ii) activation functions (SiLU/Swish, Mish, Hard Swish, GELU, Leaky ReLU, ReLU), reported in Table 10. All experiments were conducted separately on flame-only and smoke-only datasets.
For the flame dataset, pairing NMS with GIoU produced the highest mAP@50 under ESCFM (73.8%) and outperformed Soft NMS + GIoU (73.2%). With DIoU and CIoU losses, NMS also remained slightly higher (73.4% vs. 73.1%; 73.5% vs. 73.2%). On the baseline MSA YOLOv5n, however, Soft NMS achieved comparable or better results under certain losses (e.g., DIoU: 73.3% vs. 72.3%), indicating that the optimal post-processing choice depends on both the loss function and the underlying architecture.
For the smoke dataset, ESCFM combined with NMS + GIoU achieved the best mAP@50 (88.6%), compared to Soft NMS + GIoU (87.7%). For DIoU and CIoU, Soft NMS provided marginal improvements (87.8%/87.7% vs. 87.0%/87.0%). Conversely, on the MSA YOLOv5n baseline, NMS consistently outperformed Soft NMS across all IoU variants (88.1%/88.0%/88.1% vs. 87.6%/87.6%/87.6%).
Overall, the post-processing and loss result in Table 9 show that GIoU combined with NMS emerged as the most stable and reliable configuration across datasets and is therefore adopted as the default.
Regarding activation functions (Table 10), SiLU consistently yielded the strongest results with ESCFM (73.8% for flames; 88.6% for smoke). Mish improved precision on flames (75.1%) but typically reduced recall (68.0%), resulting in a lower overall mAP@50 than SiLU (73.2%). Hard Swish, Leaky ReLU, and GELU followed closely behind, generally trailing SiLU by about one point in mAP@50, while standard ReLU remained suboptimal under the same protocol. Unless otherwise specified, subsequent experiments and deployment analyses therefore use NMS + GIoU + SiLU as the default configuration, as this combination maximized mAP@50 on both flame and smoke datasets with ESCFM.

4.6. Edge Computing Performance

We evaluate the real-time deployability of the proposed dual-stream architecture on an embedded edge platform using the NVIDIA Jetson Xavier NX (20 W, six-core mode). All compared models, including YOLOv5n, YOLOv9t, YOLOv11, YOLOv12n, YOLOFM, YOLO-SAD, and the proposed flame and smoke specific detectors, were converted to TensorRT (FP32) to ensure identical inference settings.
The evaluation procedure was as follows:
(i)
Compare parameter sizes before and after TensorRT optimization.
(ii)
Benchmark dual stream inference throughput and latency.
(iii)
Analyze single-stream performance for flame-only and smoke-only models.
(iv)
Perform statistical significance testing to validate mAP@50 improvements.
(v)
Visualize qualitative detection results in real-world scenarios.
We report frames per second (FPS), GPU utilization, RAM usage, and power consumption across all configurations. Statistical analysis indicates that the proposed models consistently surpass the YOLOv5n baseline in mAP@50 while maintaining competitive throughput and resource efficiency. Qualitative results from real-world scenes further demonstrate robust performance for practical fire perception applications.
Table 11 summarizes the edge device used for real-time deployment. The hardware platform is an NVIDIA Jetson Xavier NX (NVIDIA Corporation, Santa Clara, CA, USA), featuring a 384-core NVIDIA Volta GPU with 48 Tensor Cores and a six-core NVIDIA Carmel ARMv8.2 64-bit CPU at 1.4 GHz. The device provides 8 GB LPDDR4x memory (51.2 GB/s) and 16 GB eMMC 5.1 storage and operates in 20 W 6 core mode. The software stack was Ubuntu 20.04 LTS with JetPack 5.0.2 (L4T 35.1.0). For inference, the input resolution was set to 640 × 640 × 3, aligned with common YOLO-based detectors. Deployment used TensorRT (FP32) with layer fusion and kernel-level optimizations for efficient inference. We collected system-level metrics, including frames per second (FPS), GPU utilization, RAM usage, and average power consumption, over 30 inference runs, providing a comprehensive assessment of efficiency and feasibility for real-time edge AI under strict hardware and power budgets.
Table 12 reports parameter counts and TensorRT engine sizes before and after FP32 compilation. Only marginal reductions are observed after compilation, indicating that FP32 TensorRT provides negligible compression of parameter scale. Among the baselines, YOLOv5n is the lightest (1.8 M parameters, 7.04 MB engine), whereas YOLO-SAD is the heaviest (7.02 M parameters, 28.05 MB). Intermediate models such as YOLOv9t (2.00 M → 1.9 M; 7.88 MB) and YOLOv11n (2.60 M → 2.58 M; 10.33 MB) exhibit moderate complexity. For the proposed detectors, both flame and smoke specific variants remain lightweight (about 1.89 M before, 1.78–1.79 M after FP32), yielding compact engines (7.12 MB and 7.15 MB, respectively). These results confirm that the proposed models preserve nearly the same computational footprint as YOLOv5n while integrating specialized attention modules.
Table 13 summarizes real-time inference on the NVIDIA Jetson Xavier NX under single and dual stream configurations. YOLOv5n delivers the highest efficiency with 59.97 FPS (single) and 29.66 FPS (dual), serving as the lightweight reference. YOLOv9t (43.88/19.05 FPS) and YOLOv11n (50.55/21.58 FPS) offer moderate throughput but already show noticeable drops in dual stream mode. By contrast, YOLOv12n, YOLOFM, and YOLO-SAD suffer substantial slowdowns in dual stream settings (15.27, 11.66, and 13.28 FPS, respectively), suggesting that their additional architectural components, such as enhanced feature blocks and attention modules, introduce significant computational overhead, limiting real-time suitability at the edge.
The proposed flame-specific and smoke-specific detectors maintain throughput nearly identical to YOLOv5n, 59.7 FPS (single) and 28.3 FPS (dual), while also showing slightly lower GPU utilization (about 90% vs. 97–98% for other baselines), indicating improved resource efficiency. RAM usage (3950 MB single, 5860 MB dual) and power draw (15.7–15.9 W single, 17.0–17.3 W dual) remain stable and comparable to YOLOv5n, confirming that the proposed models preserve real-time capability on edge hardware while providing domain-specific accuracy gains.
To assess generalization, we additionally ran edge-deployed inference on four previously unseen fire-related videos [68,69,70]; results are reported in Table 14. On the Japan VR video [68], YOLOv5n achieved the most balanced smoke detection (F1 = 61.9%), whereas the proposed ESCFM-RS improved to 66.8% by reaching 100% precision with moderate recall (50.2%). For flame detection, YOLOv11n obtained the highest F1 score (87.6%), while the proposed ESCFM++ achieved 59.2%, reflecting the challenge of cross-domain flame generalization.
Overall, the proposed detectors remain real-time on edge hardware and generalize competitively, especially for smoke detection, where they attain the best precision–recall balance on challenging real-world footage.
Table 14 shows consistent generalization benefits from the proposed modules across three unseen videos. On Japan-VR, the flame task remains challenging for all baselines (F1 ≈ 53–58%), whereas YOLOv5n + ESCFM++ attains the best F1 (59.15%) by improving recall by 9–15 points compared with YOLOv5n and YOLOv12n. For smoke, YOLOv5n + ESCFM-RS achieves the highest F1 (66.84%) with perfect precision (100%) and improved recall (50.2%), indicating robust confidence calibration for thin and drifting smoke.
On USA-VES, YOLOv11n delivers the strongest flame F1 (87.56%), while ESCFM++ yields the top recall (91.75%), suggesting a better miss rate profile even with lower precision. For smoke, ESCFM-RS provides the best overall F1 (78.26%), outperforming transformer augmented and attention-heavy YOLO variants by 3–6 points.
On USA-WSF, ESCFM++ attains the best flame F1 (84.54%) with a large recall gain (93.71%), and ESCFM-RS establishes a clear state of the art on smoke (F1 = 96.19%), surpassing strong baselines such as YOLO-SAD (92.96%). Overall, the two specialized modules, ESCFM++ for flame and ESCFM-RS for smoke, improve cross-domain robustness primarily through recall amplification without sacrificing precision, aligning with their design goals for small irregular flames and diffuse smoke patterns.
Figure 8 presents qualitative results of the proposed detector on previously unseen fire videos spanning indoor and outdoor scenes. The top row shows Fire Scene VR (indoor), the middle row Vent Enter Search (outdoor, nighttime), and the bottom row Working Structure Fire (outdoor, daytime). For each scenario, flame and smoke detections are visualized separately, indicating that the proposed model generalizes across diverse environments and lighting conditions.
Table 15 summarizes the paired t-test results comparing the proposed flame-specific (ESCFM++) and smoke-specific (ESCFM-RS) detectors with the YOLOv5n baseline in terms of mAP@50. For flame detection (YOLOv5n vs. ESCFM++), the t-statistic is 4.85 with a p-value of 0.003, indicating a highly significant improvement at the 0.01 level, and the corresponding Cohen’s d of 1.25 denotes a large effect size. For smoke detection (YOLOv5n vs. ESCFM-RS), the test yields a t-statistic of 4.42 and a p-value of 0.004, again confirming statistical significance, with a Cohen’s d of 1.18 indicating a large effect size. These results demonstrate that the proposed dual-stream detectors (ESCFM++ for flames and ESCFM-RS for smoke) provide statistically reliable and practically meaningful improvements over the YOLOv5n baseline.
As summarized in Table 16, both detectors achieve 100.00% precision for large flames whose bounding boxes exceed 15% of the image area, while the proposed model attains higher recall (99.15% vs. 97.86%) and F1-score (99.57% vs. 98.92%) than YOLOv5n, indicating more reliable detection of clearly visible flames. For small flames (≤15% area), YOLOv5n provides a more balanced trade-off between precision and recall (53.36% and 54.92%, respectively; F1-score of 54.13%), whereas the Proposed model adopts a highly conservative behavior with 100.00% precision but substantially lower recall (37.67%), yielding a comparable F1-score of 54.72%. These results suggest that the proposed detector strongly suppresses false positives for small flames at the cost of missing more small flame instances.
Table 17 compares the flame detection performance of YOLOv5n and the proposed model under daytime and night conditions. During daytime, YOLOv5n exhibits moderately balanced precision and recall (59.89% and 62.06%), resulting in an F1-score of 60.96%. In contrast, the proposed model achieves extremely high precision (99.31%) but substantially lower recall (46.41%), yielding a slightly higher F1-score of 63.26%. This indicates that the proposed flame-specific detector markedly reduces false alarms at the expense of missing more daytime flames. At night, the Proposed model outperforms YOLOv5n in terms of overall balance: it improves precision from 67.17% to 77.93% and achieves a higher F1-score (81.57% vs. 77.56%), while still maintaining a high recall of 85.57% (slightly below the 91.75% of YOLOv5n). These results suggest that the proposed architecture is particularly effective in low-light conditions, delivering a better precision–recall trade-off for nighttime flame detection.
As shown in Table 18, both smoke detectors maintain near-perfect precision during daytime (99.49% for YOLOv5n and 99.26% for the Proposed model), while their recalls remain around 50%, leading to similar F1-scores (66.23% vs. 65.24%). This indicates that, under daytime conditions, the proposed smoke-specific detector behaves comparably to the baseline. Under night conditions, however, the proposed model substantially improves recall from 56.07% to 67.72%, with only a negligible decrease in precision (99.12% to 99.03%), resulting in a clearly higher F1-score (80.43% vs. 71.63%). Therefore, the proposed smoke-specific architecture provides a pronounced advantage in nighttime smoke detection, capturing more true smoke instances while preserving an extremely low false-positive rate.

4.7. Real-World Outdoor Live-Stream Case Study

We further evaluate our models in a real outdoor live-stream setting by connecting a USB webcam directly to the Jetson Xavier NX. We capture daytime and nighttime videos and run end-to-end inference on the edge device to validate real-time detection of small flames. Quantitative results are summarized in Table 19 and Table 20, and representative qualitative examples are shown in Figure 9. Specifically, we recorded four outdoor video clips (two daytime and two nighttime), each with a duration of 1 min, under a controlled small-flame scenario to safely emulate early-stage flame cues without recreating large-scale fires. This evaluation complements benchmark experiments by verifying that the proposed edge-ready pipeline maintains reliable performance under practical illumination changes (day vs. night) and real-world outdoor background clutter.
Table 19 reports clip-level performance for Daytime1–2 and Nighttime1–2. In daytime conditions, where small flames are more easily confused with background textures, reflections, and illumination variations, the proposed method shows a clear improvement over the baseline. For Daytime1, the F1 score increases from 80.47% (YOLOv5n) to 92.54% (Proposed), corresponding to a +12.06 percentage-point gain, and for Daytime2, the F1 score increases from 84.21% to 91.60%, yielding a +7.39 percentage-point gain. In contrast, nighttime scenes provide higher flame-to-background contrast, making detection easier for both models, and thus the performance gap becomes marginal. For Nighttime1, the F1 score changes from 100.00% to 99.39%, and for Nighttime2, it changes from 96.62% to 96.17%, indicating that both methods achieve near-saturated performance and differences remain small.
Table 20 summarizes the macro-averaged results by lighting condition and overall, clarifying the practical impact of the proposed method in real-time streaming. Under daytime conditions, the proposed method improves recall substantially from 73.40% to 94.32% (+20.92 percentage points), while precision slightly decreases from 94.04% to 89.92% (−4.12 percentage points), resulting in a net F1 improvement from 82.34% to 92.07% (+9.73 percentage points). This trend suggests that the baseline tends to miss weak or tiny flame cues in daytime videos, whereas the proposed method detects small flames more consistently, which is critical for early warning, even at the cost of a modest precision reduction. Under nighttime conditions, both models perform similarly with minimal differences, where the baseline achieves an F1 of 98.31% and the proposed method achieves 97.78%, reflecting the fact that the strong luminance contrast in nighttime scenes reduces ambiguity and diminishes the relative benefit of specialized attention. When aggregating all clips, the proposed method increases overall recall from 85.97% to 96.25% (+10.28 percentage points) and improves overall F1 from 90.33% to 94.93% (+4.60 percentage points), demonstrating that the proposed approach yields a meaningful net gain in end-to-end edge live-stream inference, primarily by improving sensitivity to weak early-stage flame cues in more challenging daytime conditions.
Figure 9 provides representative qualitative comparisons consistent with Table 19 and Table 20. In the top row (daytime), panel (a) Day 1 shows that both YOLOv5n and YOLOv5n+ESCFM++ can produce multiple boxes when the flame is small and distant, indicating that long-range tiny-flame perception under cluttered outdoor backgrounds remains challenging. In panel (b) Day 2, YOLOv5n tends to generate a small off-target box with less consistent localization, whereas YOLOv5n+ESCFM++ places bounding boxes more stably around the true flame region, visually supporting the daytime recall and F1 improvements. In the bottom row (nighttime), panels (a) Night-1 and (b) Night-2 show that both methods detect flames reliably with only minor qualitative differences, consistent with the near-ceiling nighttime performance. Overall, the proposed model’s primary advantage emerges in challenging daytime outdoor scenarios where small-flame cues are weak and easily confounded by background complexity, while nighttime scenes are comparatively easier due to higher contrast, leading to similar performance for both methods.

5. Conclusions

In this work, we presented ESCFM-YOLOv5, a dual-stream detection framework for real-time flame and smoke perception on edge devices. Conventional unified detectors often learn flame and smoke jointly within a single backbone, although the two classes exhibit opposing visual statistics (flames: high luminance and edge-dominant cues; smoke: low-contrast and diffuse patterns). Such joint learning can lead to cross-class feature/gradient interference, where optimizing for edge-dominant flame cues suppresses subtle smoke signals, or optimizing for diffuse smoke cues blurs discriminative flame boundaries. This issue becomes particularly critical in early-warning scenarios, where cues are weak (small flames and thin smoke) and easily confused with background distractors such as reflections, illumination changes, and textured surfaces. To mitigate this limitation, we designed two lightweight specialists, YOLOv5n with ESCFM++ for flames and YOLOv5n with ESCFM-RS for smoke, which are trained and deployed independently to reduce cross-class interference while preserving sensitivity to early-stage cues under strict edge constraints.
Experiments on the D-Fire dataset demonstrate that the proposed lightweight attention modules improve detection performance without increasing the model footprint. For flame-only detection, ESCFM++ enhances mAP@50 while maintaining a compact parameter budget, and statistical tests confirm that the observed improvements are not due to chance. For smoke-only detection, ESCFM-RS achieves competitive performance compared to recent lightweight baselines, providing a practical advantage in terms of the accuracy–efficiency trade-off required for edge deployment.
Beyond offline benchmarks, we further evaluated real-world deployability by performing end-to-end live-stream inference on an outdoor daytime/nighttime setup, where a USB webcam was directly connected to the Jetson Xavier NX (each clip is 1 min long). The quantitative results (Table 19 and Table 20) indicate that the proposed method is particularly beneficial under daytime conditions, where small flames are more easily confused with background textures, reflections, and illumination variations. In these challenging daytime scenes, the proposed method more consistently captures weak early-stage flame cues, resulting in meaningful performance improvements. In contrast, nighttime scenes typically offer higher flame-to-background contrast, making detection easier for both models; thus, the performance gap becomes marginal due to near-saturated accuracy. This trend suggests that the task-specific attention design provides its strongest practical gains under more difficult conditions, especially in daytime scenarios.
Nevertheless, this work has several limitations. First, due to safety, ethical, and facility constraints, we were not able to recreate and evaluate real fire scenarios indoors with extensive environmental variations. Accordingly, our goal was not to reproduce fire itself, but rather to quantitatively validate real-time detectability of early-stage cues using controlled flame sources. To enhance realism under such constraints, we complemented limited indoor feasibility by securing an outdoor location and collecting daytime and nighttime real videos under low-wind conditions, followed by on-device real-time evaluation on the edge platform. Second, in daytime conditions, false alarms still occur due to background patterns (e.g., wall textures, structural edges, and reflections), indicating that additional improvements are needed for reliable operation in diverse real environments. This behavior reflects a common trade-off when increasing sensitivity for early warning, and it should be addressed more systematically.
Future work will extend the evaluation protocol to more diverse outdoor/indoor environments with broader variations in distance, viewpoint, and background. To reduce false alarms caused by textures and reflections, we plan to incorporate hard-negative training (reflection/light-source/textured distractors), temporal consistency modeling, and/or lightweight post-processing stabilization (e.g., track-level confirmation). We will also explore multimodal sensing (e.g., infrared/thermal cameras) to improve robustness across lighting conditions, and, when feasible, expand validation toward operationally realistic scenarios such as structured fire drills and larger-scale field evaluations.

Author Contributions

Conceptualization, J.-C.P.; Methodology, J.-C.P. and G.-W.K.; Software, J.-C.P. and M.K.; Formal analysis, S.-M.C. and G.-W.K.; Investigation, J.-C.P. and M.K.; Data curation, J.-C.P.; Writing—original draft, J.-C.P. and G.-W.K.; Writing—review and editing, S.-M.C. and G.-W.K.; Supervision, S.-M.C. and G.-W.K.; Project administration, S.-M.C. and G.-W.K.; Funding acquisition, S.-M.C. and G.-W.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Regional Innovation System & Education (RISE) program through the RISE Center, Gyeongsangnam-do, funded by the Ministry of Education (MOE) and the Gyeongsangnam-do Provincial Government, Republic of Korea (2025-RISE-16-001).

Data Availability Statement

The datasets used and/or analyzed during the current research are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Filkov, A.I.; Tihay-Felicelli, V.; Masoudvaziri, N.; Rush, D.; Valencia, A.; Wang, Y.; Blunck, D.L.; Valero, M.M.; Kempna, K.; Smolka, J.; et al. A review of thermal exposure and fire spread mechanisms in large outdoor fires and the built environment. Fire Saf. J. 2023, 140, 103871. [Google Scholar] [CrossRef] [Scilit]
  2. Liu, Y.; Heilman, W.E.; Potter, B.E.; Clements, C.B.; Jackson, W.A.; French, N.H.; Goodrick, S.L.; Kochanski, A.K.; Larkin, N.K.; Lahm, P.W.; et al. Recent advances in wildland fire smoke dynamics research in the United States. Atmosphere 2025, 16, 1221. [Google Scholar] [CrossRef] [Scilit]
  3. Bukowski, R.W.; Peacock, R.D.; Averill, J.D.; Cleary, T.G.; Bryner, N.P.; Reneke, P.A. Performance of Home Smoke Alarms: Analysis of the Response of Several Available Technologies in Residential Fire Settings; NIST Technical Note 1455-1; National Institute of Standards and Technology: Gaithersburg, MD, USA, 2008. Available online: https://www.nist.gov/publications/performance-home-smoke-alarms-analysis-response-several-available-technologies-0?pub_id=100900 (accessed on 1 November 2025).
  4. Agbehadji, I.E.; Mabhaudhi, T.; Botai, J.; Masinde, M. A systematic review of existing early warning systems’ challenges and opportunities in cloud computing early warning systems. Climate 2023, 11, 188. [Google Scholar] [CrossRef] [Scilit]
  5. Wu, Q.; Ding, Z.; Zhang, W. Research progress on electrochemical gas sensors for fire detection. Int. J. Electrochem. Sci. 2025, 20, 101043. [Google Scholar] [CrossRef] [Scilit]
  6. Danish, S.; Piran, M.J.; Khan, S.U.; Khan, M.A.; Dang, L.M.; Zweiri, Y.; Song, H.K.; Moon, H. Vision-based fire management system using autonomous unmanned aerial vehicles: A comprehensive survey. Artif. Intell. Rev. 2026, 59, 16. [Google Scholar] [CrossRef] [Scilit]
  7. Khan, F.; Xu, Z.; Sun, J.; Khan, F.M.; Ahmed, A.; Zhao, Y. Recent advances in sensors for fire detection. Sensors 2022, 22, 3310. [Google Scholar] [CrossRef] [Scilit]
  8. Kim, D.; Ruy, W. CNN-based fire detection method on autonomous ships using composite channels composed of RGB and IR data. Int. J. Nav. Archit. Ocean. Eng. 2022, 14, 100489. [Google Scholar] [CrossRef] [Scilit]
  9. Gragnaniello, D.; Greco, A.; Sansone, C.; Vento, B. Fire and smoke detection from videos: A literature review under a novel taxonomy. Expert Syst. Appl. 2024, 255, 124783. [Google Scholar] [CrossRef] [Scilit]
  10. Lv, C.; Zhou, H.; Chen, Y.; Fan, D.; Di, F. A lightweight fire detection algorithm for small targets based on YOLOv5s. Sci. Rep. 2024, 14, 14104. [Google Scholar] [CrossRef] [Scilit]
  11. Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar]
  12. Redmon, J.; Farhadi, A. YOLOv3: An incremental improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar] [CrossRef] [Scilit]
  13. Tian, Y.; Ye, Q.; Doermann, D. YOLOv12: Attention-centric real-time object detectors. arXiv 2025, arXiv:2502.12524. [Google Scholar]
  14. Bochkovskiy, A.; Wang, C.-Y.; Liao, H.-Y.M. YOLOv4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar] [CrossRef] [Scilit]
  15. Wang, C.-Y.; Bochkovskiy, A.; Liao, H.-Y.M. YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 17–24 June 2023; pp. 7464–7475. [Google Scholar]
  16. Wang, C.-Y.; Yeh, I.-H.; Liao, H.-Y.M. YOLOv9: Learning what you want to learn using programmable gradient information. In European Conference on Computer Vision; Springer: Cham, Switzerland, 2024; pp. 1–21. [Google Scholar]
  17. Khanam, R.; Hussain, M. YOLOv11: An overview of the key architectural enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar] [CrossRef] [Scilit]
  18. Jocher, G.; Stoken, A.; Borovec, J.; NanoCode012; Chaurasia, A.; Tao, X.; Liu, C.; Abhiram, V.; Laughing; tkianai; et al. YOLOv5, Version 5.0; [Source Code]; GitHub: Tokyo, Japan, 2020. Available online: https://github.com/ultralytics/yolov5 (accessed on 1 October 2024).
  19. Han, X.; Wu, Y.; Pu, N.; Feng, Z.; Zhang, Q.; Bei, Y.; Cheng, L. Fire and smoke detection with burning intensity representation. arXiv 2024, arXiv:2410.16642. [Google Scholar] [CrossRef] [Scilit]
  20. Sultan, T.; Chowdhury, M.S.; Safran, M.; Mridha, M.F.; Dey, N. Deep learning-based multistage fire detection system and emerging direction. Fire 2024, 7, 451. [Google Scholar] [CrossRef] [Scilit]
  21. Cheng, G.; Chen, X.; Wang, C.; Li, X.; Xian, B.; Yu, H. Visual fire detection using deep learning: A survey. Neurocomputing 2024, 555, 127975. [Google Scholar] [CrossRef] [Scilit]
  22. Zhao, C.; Zhao, L.; Zhang, K.; Ren, Y.; Chen, H.; Sheng, Y. Smoke and Fire-You Only Look Once: A lightweight deep learning model for video smoke and flame detection in natural scenes. Fire 2025, 8, 104. [Google Scholar] [CrossRef] [Scilit]
  23. Jangirova, S.; Jankovic, B.; Ullah, W.; Khan, L.U.; Guizani, M. Real-time aerial fire detection on resource-constrained devices using knowledge distillation. arXiv 2025, arXiv:2502.20979. [Google Scholar] [CrossRef] [Scilit]
  24. Almeida, J.S.; Jagatheesaperumal, S.K.; Nogueira, F.G.; de Albuquerque, V.H.C. EdgeFireSmoke++: A novel lightweight algorithm for real-time forest fire detection and visualization using Internet of Things-human machine interface. Expert Syst. Appl. 2023, 221, 119747. [Google Scholar] [CrossRef] [Scilit]
  25. Sun, H.; Xu, R.; Luo, J.; Cheng, H. Review of the application of UAV edge computing in fire rescue. Sensors 2025, 25, 3304. [Google Scholar] [CrossRef] [Scilit]
  26. Maltezos, E.; Petousakis, K.; Dadoukis, A.; Karagiannidis, L.; Ouzounoglou, M.; Krommyda, M.; Hadjipavlis, G.; Amditis, A. A smart building fire and gas leakage alert system with edge computing and NG112 emergency call capabilities. Information 2022, 13, 164. [Google Scholar] [CrossRef] [Scilit]
  27. Li, C.; Li, L.; Jiang, H.; Weng, K.; Geng, Y.; Li, L.; Ke, Z.; Li, Q.; Cheng, M.; Nie, W.; et al. YOLOv6: A single-stage object detection framework for industrial applications. arXiv 2022, arXiv:2209.02976. [Google Scholar] [CrossRef] [Scilit]
  28. Reis, D.; Kupec, J.; Hong, J.; Daoudi, A. Real-time flying object detection with YOLOv8. arXiv 2023, arXiv:2305.09973. [Google Scholar] [CrossRef] [Scilit]
  29. Wang, H.; Xu, Y.; He, Y.; Cai, Y.; Chen, L.; Li, Y.; Sotelo, M.A.; Li, Z. YOLOv5-Fog: A multiobjective visual detection algorithm for fog driving scenes based on improved YOLOv5. IEEE Trans. Instrum. Meas. 2022, 71, 1–12. [Google Scholar] [CrossRef] [Scilit]
  30. Geng, X.; Su, Y.; Cao, X.; Li, H.; Liu, L. YOLOFM: An improved fire and smoke object detection algorithm based on YOLOv5n. Sci. Rep. 2024, 14, 4543. [Google Scholar] [CrossRef] [Scilit]
  31. Peng, B.; Kim, T.K. YOLO-HF: Early detection of home fires using YOLO. IEEE Access 2025, 13, 79451–79466. [Google Scholar] [CrossRef] [Scilit]
  32. He, Y.; Hu, J.; Zeng, M.; Qian, Y.; Zhang, R. DCGC-YOLO: The efficient dual-channel bottleneck structure YOLO detection algorithm for fire detection. IEEE Access 2024, 12, 65254–65265. [Google Scholar] [CrossRef] [Scilit]
  33. Pan, W.; Wang, X.; Huan, W. EFA-YOLO: An efficient feature attention model for fire and flame detection. arXiv 2024, arXiv:2409.12635. [Google Scholar]
  34. Wu, S.; Xia, Y. Enhanced YOLOv7-tiny for small-scale fire detection via multi-scale channel spatial attention and dynamic upsampling. IEEE Access 2025, 13, 126901–126914. [Google Scholar] [CrossRef] [Scilit]
  35. Khan, S.; Muhammad, K.; Hussain, T.; Del Ser, J.; Cozzolino, F.; Bhattacharyya, S.; Akhtar, Z.; de Albuquerque, V.H.C. DeepSmoke: Deep learning model for smoke detection and segmentation in outdoor environments. Expert Syst. Appl. 2021, 182, 115125. [Google Scholar] [CrossRef] [Scilit]
  36. Yuan, F.; Li, K.; Wang, C.; Fang, Z. A lightweight network for smoke semantic segmentation. Pattern Recognit. 2023, 137, 109289. [Google Scholar] [CrossRef] [Scilit]
  37. Celik, T.; Demirel, H.; Ozkaramanli, H.; Uyguroglu, M. Fire detection using statistical color model in video sequences. J. Vis. Commun. Image Represent. 2007, 18, 176–185. [Google Scholar] [CrossRef] [Scilit]
  38. Töreyin, B.U.; Dedeoğlu, Y.; Güdükbay, U.; Cetin, A.E. Computer vision-based method for real-time fire and flame detection. Pattern Recognit. Lett. 2006, 27, 49–58. [Google Scholar] [CrossRef] [Scilit]
  39. Li, P.; Zhao, W. Image fire detection algorithms based on convolutional neural networks. Case Stud. Therm. Eng. 2020, 19, 100625. [Google Scholar] [CrossRef] [Scilit]
  40. Jadon, A.; Omama, M.; Varshney, A.; Ansari, M.S.; Sharma, R. FireNet: A specialized lightweight fire and smoke detection model for real-time IoT applications. arXiv 2019, arXiv:1905.11922. [Google Scholar]
  41. Woo, S.; Park, J.; Lee, J.-Y.; Kweon, I.S. CBAM: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar]
  42. He, L.; Zhou, Y.; Liu, L.; Zhang, Y.; Ma, J. Research and application of deep learning object detection methods for forest fire smoke recognition. Sci. Rep. 2025, 15, 16328. [Google Scholar] [CrossRef] [Scilit]
  43. Ahn, Y.; Choi, H.; Kim, B.S. Development of early fire detection model for buildings using computer vision-based CCTV. J. Build. Eng. 2023, 65, 105647. [Google Scholar] [CrossRef] [Scilit]
  44. Pincott, J.; Tien, P.W.; Wei, S.; Calautit, J.K. Indoor fire detection utilizing computer vision-based strategies. J. Build. Eng. 2022, 61, 105154. [Google Scholar] [CrossRef] [Scilit]
  45. Yar, H.; Khan, Z.A.; Ullah, F.U.M.; Ullah, W.; Baik, S.W. A modified YOLOv5 architecture for efficient fire detection in smart cities. Expert Syst. Appl. 2023, 231, 120465. [Google Scholar] [CrossRef] [Scilit]
  46. Li, C.; Du, Y.; Zhang, X.; Wu, P. YOLOGX: An improved forest fire detection algorithm based on YOLOv8. Front. Environ. Sci. 2025, 12, 1486212. [Google Scholar] [CrossRef] [Scilit]
  47. Fu, J.; Xu, Z.; Yue, Q.; Lin, J.; Zhang, N.; Zhao, Y.; Gu, D. A multi-object detection method for building fire warnings through artificial intelligence generated content. Sci. Rep. 2025, 15, 18434. [Google Scholar] [CrossRef] [Scilit]
  48. Amjad, A.; Huroon, A.M.; Chang, H.T.; Tai, L.C. Dynamic fire and smoke detection module with enhanced feature integration and attention mechanisms. Pattern Anal. Appl. 2025, 28, 81. [Google Scholar] [CrossRef] [Scilit]
  49. Yang, R.; Jiang, J.; Liu, F.; Yan, L. YOLO-SAD for fire detection and localization in real-world images. Digit. Signal Process. 2025, 165, 105320. [Google Scholar] [CrossRef] [Scilit]
  50. Park, J.C.; Kim, M.J.; Kim, G.W. MSA-YOLOv5: An improved lightweight YOLOv5 model for small object detection. In Proceedings of the 15th International Conference on Information and Communication Technology Convergence (ICTC), Jeju Island, Republic of Korea, 16–18 October 2024; pp. 658–663. [Google Scholar]
  51. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montreal, Canada, 7–12 December 2015; Volume 28, pp. 91–99. [Google Scholar]
  52. Tan, M.; Pang, R.; Le, Q.V. EfficientDet: Scalable and efficient object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 10781–10790. [Google Scholar]
  53. Lv, W.; Zhao, Y.; Chang, Q.; Huang, K.; Wang, G.; Liu, Y. RT-DETRv2: Improved baseline with bag-of-freebies for real-time detection transformer. arXiv 2024, arXiv:2407.17140. [Google Scholar]
  54. Li, X.; Wang, W.; Hu, X.; Yang, J. Selective kernel networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 510–519. [Google Scholar]
  55. Shaw, P.; Uszkoreit, J.; Vaswani, A. Self-attention with relative position representations. arXiv 2018, arXiv:1803.02155. [Google Scholar] [CrossRef] [Scilit]
  56. Hu, J.; Shen, L.; Sun, G. Squeeze-and-excitation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar]
  57. Liu, Q.; Chen, H.; Lin, D. Research and optimization of a multilevel fire detection framework based on deep learning and classical pattern recognition techniques. Sci. Rep. 2025, 15, 20364. [Google Scholar] [CrossRef] [Scilit]
  58. Howard, A.; Sandler, M.; Chu, G.; Chen, L.-C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for MobileNetV3. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1314–1324. [Google Scholar]
  59. Misra, D. Mish: A self-regularized non-monotonic activation function. arXiv 2019, arXiv:1908.08681. [Google Scholar]
  60. Peng, H.; Li, Z.; Zou, X.; Wang, H.; Xiong, J. Research on litchi image detection in orchard using UAV based on improved YOLOv5. Expert Syst. Appl. 2025, 263, 125828. [Google Scholar] [CrossRef] [Scilit]
  61. Qiu, S.; Xu, X.; Cai, B. FReLU: Flexible rectified linear units for improving convolutional neural networks. In Proceedings of the 24th International Conference on Pattern Recognition (ICPR), Beijing, China, 20–24 August 2018; pp. 1223–1228. [Google Scholar]
  62. Ma, N.; Zhang, X.; Liu, M.; Sun, J. Activate or not: Learning customized activation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 8032–8042. [Google Scholar]
  63. Hendrycks, D.; Gimpel, K. Gaussian error linear units (GELUs). arXiv 2016, arXiv:1606.08415. [Google Scholar]
  64. Maas, A.L.; Hannun, A.Y.; Ng, A.Y. Rectifier nonlinearities improve neural network acoustic models. In Proceedings of the 30th International Conference on Machine Learning (ICML), Atlanta, GA, USA, 16–21 June 2013; Volume 30, p. 3. [Google Scholar]
  65. Nair, V.; Hinton, G.E. Rectified linear units improve restricted Boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML), Haifa, Israel, 21–24 June 2010; pp. 807–814. [Google Scholar]
  66. Xu, B.; Wang, N.; Chen, T.; Li, M. Empirical evaluation of rectified activations in convolutional network. arXiv 2015, arXiv:1505.00853. [Google Scholar] [CrossRef] [Scilit]
  67. Godfrey, L.B.; Gashler, M.S. A continuum among logarithmic, linear, and exponential functions, and its potential to improve generalization in neural networks. In Proceedings of the 7th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (IC3K), Lisbon, Portugal, 12–14 November 2015; Volume 1, pp. 481–486. [Google Scholar]
  68. YouTube. Fire Scene VR Video. 2018. Available online: https://www.youtube.com/watch?v=R6qJUl9C8HQ&ab_channel=kobecitychannel (accessed on 1 July 2025).
  69. YouTube. Vent-Enter-Search Rescue Video. 2019. Available online: https://www.youtube.com/watch?v=ECg8bI-ZY0o&ab_channel=StocktonFireHistory (accessed on 1 July 2025).
  70. YouTube. Working Structure Fire Video. 2016. Available online: https://www.youtube.com/watch?v=S6P2V4I36L4&ab_channel=StocktonFireHistory (accessed on 1 July 2025).
Figure 1. Dual-stream edge pipeline for small-scale flame and smoke detection. The dashed box indicates tiny-flame filtering applied to the flame branch only (retaining samples with flame area < 15%).
Figure 1. Dual-stream edge pipeline for small-scale flame and smoke detection. The dashed box indicates tiny-flame filtering applied to the flame branch only (retaining samples with flame area < 15%).
Applsci 16 00778 g001
Figure 3. The ESCFM++ module is designed for flame-specific attention with additive residual fusion.
Figure 3. The ESCFM++ module is designed for flame-specific attention with additive residual fusion.
Applsci 16 00778 g003
Figure 4. The ESCFM-RS module structure is designed for smoke-specific attention using multiplicative residual fusion.
Figure 4. The ESCFM-RS module structure is designed for smoke-specific attention using multiplicative residual fusion.
Applsci 16 00778 g004
Figure 5. Dual-stream inference strategy using FP32 TensorRT for edge deployment.
Figure 5. Dual-stream inference strategy using FP32 TensorRT for edge deployment.
Applsci 16 00778 g005
Figure 6. Dataset composition before and after preprocessing (EDA).
Figure 6. Dataset composition before and after preprocessing (EDA).
Applsci 16 00778 g006
Figure 7. On the test set, YOLOv5n with ESCFM++ (a) detects flames, while YOLOv5n with ESCFM-RS (b) detects smoke; representative results are visualized with bounding boxes and scores. Note that some examples include dataset-provided logos/watermarks inherited from the original source media.
Figure 7. On the test set, YOLOv5n with ESCFM++ (a) detects flames, while YOLOv5n with ESCFM-RS (b) detects smoke; representative results are visualized with bounding boxes and scores. Note that some examples include dataset-provided logos/watermarks inherited from the original source media.
Applsci 16 00778 g007
Figure 8. Detection results on unseen videos: indoor (Japan- VR [68]), outdoor nighttime (USA-VES [69]), and outdoor daytime (USA-WSF [70]). Flame and smoke are visualized separately.
Figure 8. Detection results on unseen videos: indoor (Japan- VR [68]), outdoor nighttime (USA-VES [69]), and outdoor daytime (USA-WSF [70]). Flame and smoke are visualized separately.
Applsci 16 00778 g008
Figure 9. Qualitative comparison of outdoor live-stream flame detection on Jetson Xavier NX under daytime and nighttime conditions. Columns correspond to (a) Day 1 and (b) Day 2. For each day, the top row shows daytime results and the bottom row shows nighttime results. In each pair, the baseline YOLOv5n (left) and the proposed flame detector (YOLOv5n + ESCFM++, right) are evaluated on the same input stream.
Figure 9. Qualitative comparison of outdoor live-stream flame detection on Jetson Xavier NX under daytime and nighttime conditions. Columns correspond to (a) Day 1 and (b) Day 2. For each day, the top row shows daytime results and the bottom row shows nighttime results. In each pair, the baseline YOLOv5n (left) and the proposed flame detector (YOLOv5n + ESCFM++, right) are evaluated on the same input stream.
Applsci 16 00778 g009
Table 1. Training environment and hyperparameters.
Table 1. Training environment and hyperparameters.
ItemDetails
HardwareGPU: NVIDIA GeForce RTX 4080 (16 GB VRAM),
CPU: Intel 9-13900 K, Memory: 64 GB
Operating systemWindows 11
Software frameworkPyTorch 2.1.0, CUDA 12.1, cuDNN 8.9
YOLOv5 modelYOLOv5n (Nano)
Learning hyperparametersLearning rate: 0.01; weight decay: 0.0005;
momentum: 0.937
Max epochs3000
Batch size8
Warm-up phaseEpochs: 3; warm up momentum: 0.8; warm up bias LR: 0.1
Table 2. Applied data augmentation techniques and settings.
Table 2. Applied data augmentation techniques and settings.
TechniqueDescriptionProbability/Range
HSV transformAdjusts hue, saturation, and value (brightness)Hue: ±1.5%, Saturation.: ±70%,
Value.: ±40%
MosaicCombines four images to generate a new training
sample
Probability: 100%
FlipHorizontal flipProbability: 50%
TranslationRandom translation±10%
RotationRandom rotation±10°
ScaleRandom scaling±50%
Table 3. Dataset composition before preprocessing (original D-Fire).
Table 3. Dataset composition before preprocessing (original D-Fire).
ClassImagesBounding Boxes
Only fire116414,692
Only smoke586711,865
Fire and smoke4658-
None9838-
Table 4. Dataset composition after preprocessing (used in experiments).
Table 4. Dataset composition after preprocessing (used in experiments).
Class (Processed)TrainValTotal
Flame only41619755136
Smoke only33857984183
Flame and smoke41619755136
Table 5. Training results of YOLO models for flame-only and smoke-only detection.
Table 5. Training results of YOLO models for flame-only and smoke-only detection.
ModelFlameSmoke
Precision (%)Recall
(%)
mAP@50 (%)Precision (%)Recall
(%)
mAP@50 (%)Params (M)
YOLOv3 tiny57.052.049.6883.046.072.428.7
YOLOv4 tiny72.054.057.5477.077.081.396.1
YOLOv5n73.070.273.8085.782.888.001.8
MSA YOLOv5n [50]73.968.773.4085.783.188.101.82
YOLOv6n72.367.072.3086.466.586.504.7
YOLOv7 tiny71.1971.8874.2489.0481.8687.847.0
YOLOv8n73.266.773.4086.283.588.503.2
YOLOv9t73.067.873.1088.884.689.002.0
YOLOv10n71.168.171.8086.281.986.802.3
YOLOv11n74.964.772.7085.280.086.702.6
YOLOv12n72.167.272.8088.983.287.702.6
YOLOv5n ESCFM++ (ours)74.170.474.50---1.89
YOLOv5n ESCFM-RS (ours)---89.481.989.201.89
Table 6. Joint flame and smoke detection results (unified two-class training).
Table 6. Joint flame and smoke detection results (unified two-class training).
ModelPrecision (%)Recall (%)mAP@50 (%)Params (M)
YOLOv3 tiny60.0047.0056.688.70
YOLOv4 tiny72.0057.0066.426.10
YOLOv5n79.6074.5078.801.80
MSA YOLOv5n [50]80.3074.7078.801.82
YOLOv6n78.4061.4078.404.70
YOLOv7 tiny81.0876.4480.167.00
YOLOv8n79.4073.1079.003.20
YOLOv9t81.2073.9079.502.00
YOLOv10n81.1070.9078.702.30
YOLOv11n79.2072.8078.502.60
YOLOv12n80.4073.2079.702.60
YOLOv5n ESCFM++ (ours)80.0072.2078.701.89
YOLOv5n ESCFM-RS (ours)81.3674.6280.201.89
Table 7. Class-wise results of the unified two-class (flame and smoke) detector.
Table 7. Class-wise results of the unified two-class (flame and smoke) detector.
ModelClassPrecision (%)Recall (%)mAP@50 (%)
YOLOv5n ESCFM++ (ours)Flame72.3067.0073.10
Smoke86.4066.5084.30
YOLOv5n ESCFM-RS (ours)Flame73.6068.0074.40
Smoke87.2067.9085.60
Table 8. Training results of comparative models for flame-only and smoke-only detection.
Table 8. Training results of comparative models for flame-only and smoke-only detection.
DatasetModelReductionPrecision
(%)
Recall
(%)
mAP@50
(%)
Params (M)
FlameFaster R-CNN [51]-71.7049.7071.7041.00
EfficientDet-D0 [52]-30.6049.1364.403.90
RT-DETRv2 [53]-40.2058.8074.2020.00
YOLOFM [30]-71.9069.1072.003.60
YOLO-SAD [49]-74.2070.6074.5016.20
YOLOv5n + SKNet [54]2473.8067.9072.401.98
YOLOv5n + Self Attention [55]2474.6068.5073.402.05
YOLOv5n + CBAM [41]1672.6070.0074.201.90
YOLOv5n + ESCFM++ (ours)2474.1070.4074.501.89
SmokeFaster R-CNN -60.7046.8060.7041.00
EfficientDet-D0-53.5066.7087.703.90
RT-DETRv2-58.9073.2088.7020.00
YOLOFM-88.2082.1087.303.60
YOLO-SAD-87.3084.3088.4016.20
YOLOv5n + SKNet2486.2082.3088.401.98
YOLOv5n + Self Attention887.9081.2088.102.05
YOLOv5n + CBAM2488.0081.9088.601.90
YOLOv5n + ESCFM-RS (ours)1489.4081.9089.201.89
Table 9. Post-processing and IoU loss comparison.
Table 9. Post-processing and IoU loss comparison.
DatasetModelPost-
Processing
IoUActivationPrecision (%)Recall
(%)
mAP@50
(%)
FlameYOLOv5nNMS [56]GloU [50]SiLU [54]72.8069.5073.10
GloU 73.9068.7073.40
NMSDluU [55]SiLU74.2067.1072.30
MSA-YOLOv5n [57] CloU [55] 73.9068.7073.40
GloU 72.4069.6073.50
Soft-NMS [53]DloUSiLU73.4067.9073.30
CloU 72.4069.6073.50
GloU 74.2069.1073.80
NMSDloUSiLU73.0069.0073.40
YOLOv5n + ESCFM CloU 75.4068.2073.50
GloU 74.7069.0073.20
Soft-NMSDloUSiLU74.8068.4073.10
CloU 74.7069.0073.20
SmokeYOLOv5nNMSGloUSiLU85.7082.8088.00
GloU 85.7083.1088.10
NMSDloUSiLU86.8082.7088.00
MSA-YOLOv5n CloU 85.7083.1088.10
GloU 86.5082.7087.60
Soft-NMSDlouSiLU87.3080.5087.60
CloU 86.5082.7087.60
GloU 86.8083.0088.60
NMSDloUSiLU85.8083.4087.00
YOLOv5n + ESCFM CloU 85.8083.4087.00
GloU 86.2084.3087.80
Soft-NMSDloUSiLU85.7082.3087.80
CloU 86.2084.3087.70
Table 10. Activation function comparison.
Table 10. Activation function comparison.
DatasetModelPost-ProcessingIoUActivationPrecision
(%)
Recall
(%)
mAP@50
(%)
YOLOv5nNMSGloUSiLU72.869.573.1
SiLU74.269.173.8
Hardswish [58]74.368.172.7
Mish [59]75.168.073.2
EfficientMish [60]73.669.172.9
FreLU [61]70.869.171.7
FlameYOLOv5n + ESCFMNMSGloUAconC [62]72.967.272.3
MetaAconC [62]73.667.073.0
GELU [63]73.967.672.9
Leaky ReLU [64]73.068.672.3
ReLU [65]71.967.572.7
ReLUN [66]71.067.972.1
Soft Exponential [67]37.930.125.0
YOLOv5nNMSGloUSiLU86.384.488.5
SiLU86.883.088.6
Hardswish85.083.287.0
Mish87.481.987.9
EfficientMish86.880.987.2
FreLU86.580.985.5
SmokeYOLOv5n + ESCFMNMSGloUAconC86.480.586.3
MetaAconC84.779.986.1
GELU85.881.987.2
Leaky ReLU85.783.587.6
ReLU87.880.787.2
ReLUN85.882.686.9
Soft Exponential63.954.853.4
Table 11. Edge device setup.
Table 11. Edge device setup.
ComponentSpecification
DeviceNVIDIA Jetson Xavier NX
GPU384 core NVIDIA Volta with 48 Tensor Cores
CPU6 core NVIDIA Carmel ARMv8.2 64 bit @ 1.4 GHz
Memory8 GB LPDDR4x (51.2 GB/s)
Storage16 GB eMMC 5.1
Power mode20 W (6 core mode)
Operating systemUbuntu 20.04 LTS (JetPack 5.0.2, L4T 35.1.0)
Inference resolution640 × 640 × 3
DeploymentTensorRT (FP32) with layer fusion and kernel-level
optimizations
Metrics collectedFPS, GPU utilization, RAM usage, and power consumption (30 run average)
Table 12. Model Parameters Before and after TensorRT FP32 Conversion.
Table 12. Model Parameters Before and after TensorRT FP32 Conversion.
ModelParams (M) BeforeParams (M) After FP32TensorRT Engine Size (MB)
YOLOv5n1.801.767.04
YOLOv9t2.001.977.88
YOLOv11n2.602.5810.33
YOLOv12n2.602.5610.23
YOLOFM3.633.6314.52
YOLO-SAD7.027.0128.05
Proposed (Flame)1.891.787.12
Proposed (Smoke)1.891.797.15
Table 13. Real-time inference performance on Xavier NX (single and dual stream).
Table 13. Real-time inference performance on Xavier NX (single and dual stream).
ModelFPSGPU Load (%)RAM (MB)Power (W)
SingleDualSingleDualSingleDualSingleDual
YOLOv5n59.9729.6691974012572115.7516.70
YOLOv9t43.8819.0597974075576917.6016.40
YOLOv11n50.5521.5897973846529417.2517.00
YOLOv12n36.7715.2797973921685418.0017.80
YOLOFM28.3111.6698984146719518.1018.30
YOLO-SAD31.6813.2898984049657618.8018.10
Proposed (Flame)59.7628.3590973952586615.9017.30
Proposed (Smoke)59.9628.3490973958586615.7017.00
Table 14. Frame-level detection accuracy on evaluation videos (precision, recall, and F1 score per scene).
Table 14. Frame-level detection accuracy on evaluation videos (precision, recall, and F1 score per scene).
VideosDatasetModelPrecision (%)Recall (%)F1 Score (%)
YOLOv5n65.0045.0053.41
YOLOv9t66.0046.0054.38
YOLOv11n67.0048.0056.08
FlameYOLOv12n67.0049.0056.93
YOLOFM68.0049.0057.55
YOLO-SAD68.0050.0058.06
Japan VR [68] YOLOv5n + ESCFM++ (ours)58.4759.8459.15
YOLOv5n100.0044.8661.93
YOLOv9t100.0040.4657.61
YOLOv11n100.0040.0057.14
SmokeYOLOv12n95.0047.0062.89
YOLOFM94.0046.0061.77
YOLO-SAD96.0048.0064.00
YOLOv5n + ESCFM-RS (ours)100.0050.2066.84
YOLOv5n 73.0069.0071.00
YOLOv9t84.7786.0885.42
YOLOv11n87.1388.0087.56
YOLOv12n86.0085.0085.50
YOLOFM85.5085.7085.60
YOLO-SAD86.2086.0086.10
USA VES [69] YOLOv5n + ESCFM++ (ours)67.1791.7577.56
YOLOv5n88.5746.2760.78
YOLOv9tn100.0031.3447.72
YOLOv11n100.0031.5848.00
YOLOv12n90.0062.0073.42
YOLOFM89.0061.0072.39
YOLO-SAD91.0063.0074.45
YOLOv5n + ESCFM-RS (ours)93.7567.1678.26
YOLOv5n93.5270.6280.48
YOLOv9tn96.4757.3470.10
YOLOv11n98.1563.1076.81
YOLOv12n95.0058.2071.80
YOLOFM95.7059.0072.55
YOLO-SAD96.2060.1074.01
USA WSF [70] YOLOv5n + ESCFM++ (ours)77.0193.7184.54
YOLOv5n87.3467.6576.24
YOLOv9tn96.6155.8870.80
YOLOv11n97.4463.3376.77
YOLOv12n90.0095.0092.43
YOLOFM89.0094.0091.43
YOLO-SAD91.0095.0092.96
YOLOVv5n + ESCFM-RS (ours)93.5299.0296.19
Table 15. Statistical Significance Test Result (Proposed vs. Baselines, mAP@50).
Table 15. Statistical Significance Test Result (Proposed vs. Baselines, mAP@50).
Comparison PairT-Statisticp-ValueCohen’s dSignificance
YOLOv5n vs. Proposed (Flame, ESCFM++)4.850.0031.25Yes
YOLOv5n vs. Proposed (Smoke, ESCFM-RS)4.420.0041.18Yes
Table 16. Detection performance on pure flame samples according to bounding-box area.
Table 16. Detection performance on pure flame samples according to bounding-box area.
ModelBBox Area RatioPrecision (%)Recall (%)F1-Score (%)
YOLOv5n>15% of image area100.0097.8698.92
YOLOv5n≤15% of Image area53.3654.9254.13
Proposed>15% of Image area100.0099.1599.57
Proposed≤15% of Image area100.0037.6754.72
Table 17. Detection performance of flame detectors under daytime and nighttime conditions. All values are reported in percent (%).
Table 17. Detection performance of flame detectors under daytime and nighttime conditions. All values are reported in percent (%).
ModelStatePrecision (%)Recall (%)F1-Score (%)
YOLOv5nDaytime59.8962.0660.96
YOLOv5nNight67.1791.7577.56
ProposedDaytime99.3146.4163.26
ProposedNight77.9385.5781.57
Table 18. Detection performance of smoke detectors under daytime and night conditions. All values are reported in percent (%).
Table 18. Detection performance of smoke detectors under daytime and night conditions. All values are reported in percent (%).
ModelStatePrecision (%)Recall (%)F1-Score (%)
YOLOv5nDaytime99.4949.6466.23
YOLOv5nNight99.1256.0771.63
ProposedDaytime99.2648.5965.24
ProposedNight99.0367.7280.43
Table 19. Per-clip performance (%) for real-world small-flame live-stream tests (daytime and nighttime): baseline (YOLOv5n) vs. proposed (YOLOv5n + ESCFM++).
Table 19. Per-clip performance (%) for real-world small-flame live-stream tests (daytime and nighttime): baseline (YOLOv5n) vs. proposed (YOLOv5n + ESCFM++).
ConditionYOLOv5n
Precision (%)
YOLOv5n
Recall (%)
YOLOv5n
F1 (%)
Proposed
Precision (%)
Proposed
Recall (%)
Proposed
F1 (%)
ΔF1 (p.p.)
Daytime 195.7769.3980.4790.2994.992.5412.06
Daytime 292.3177.4284.2189.5593.7591.67.39
Nighttime 110010010010098.899.39−0.61
Nighttime 296.1597.0996.6294.8197.5796.17−0.45
Table 20. Macro-averaged Precision, Recall, and F1-score (%) for flame detection under daytime, nighttime, and overall conditions: baseline (YOLOv5n) vs. proposed (YOLOv5n + ESCFM++).
Table 20. Macro-averaged Precision, Recall, and F1-score (%) for flame detection under daytime, nighttime, and overall conditions: baseline (YOLOv5n) vs. proposed (YOLOv5n + ESCFM++).
ConditionYOLOv5n
Precision (%)
YOLOv5n Recall (%)YOLOv5n F1 (%)Proposed
Precision (%)
Proposed
Recall (%)
Proposed
F1 (%)
ΔPrecision (p.p.)ΔRecall (p.p.)ΔF1 (p.p.)
Daytime94.0473.482.3489.9294.3292.07−4.1220.929.73
Nighttime98.0898.5498.3197.4198.1897.78−0.67−0.36−0.53
Overall96.0685.9790.3393.6696.2594.93−2.410.284.6
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Park, J.-C.; Kim, M.; Choi, S.-M.; Kim, G.-W. ESCFM-YOLO: Lightweight Dual-Stream Architecture for Real-Time Small-Scale Fire Smoke Detection on Edge Devices. Appl. Sci. 2026, 16, 778. https://doi.org/10.3390/app16020778

AMA Style

Park J-C, Kim M, Choi S-M, Kim G-W. ESCFM-YOLO: Lightweight Dual-Stream Architecture for Real-Time Small-Scale Fire Smoke Detection on Edge Devices. Applied Sciences. 2026; 16(2):778. https://doi.org/10.3390/app16020778

Chicago/Turabian Style

Park, Jong-Chan, Myeongjun Kim, Sang-Min Choi, and Gun-Woo Kim. 2026. "ESCFM-YOLO: Lightweight Dual-Stream Architecture for Real-Time Small-Scale Fire Smoke Detection on Edge Devices" Applied Sciences 16, no. 2: 778. https://doi.org/10.3390/app16020778

APA Style

Park, J.-C., Kim, M., Choi, S.-M., & Kim, G.-W. (2026). ESCFM-YOLO: Lightweight Dual-Stream Architecture for Real-Time Small-Scale Fire Smoke Detection on Edge Devices. Applied Sciences, 16(2), 778. https://doi.org/10.3390/app16020778

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop