{"title":"Spark Detection for Hot Work Based on HSV Color Features and Optical Flow Variations","authors":"Haifan Liao, , , Yisheng Liu, , , Weile Chen, , and , Aihua Liu*, ","doi":"10.1021/acs.chas.5c00228","DOIUrl":null,"url":null,"abstract":"<p >Splashing sparks generated during hot work are a major cause of industrial and construction fires. Characterized by small scales, intense brightness mutations, and random motion trajectories, they pose significant challenges for real-time visual detection. To address the issues of high false detection and missed detection rates of traditional methods under complex lighting and background conditions, this paper proposes a spark detection method that fuses HSV color features with optical flow motion features. First, a YOLO-based adaptive threshold parameter optimization mechanism is introduced to dynamically optimize HSV color intervals and improve the stability of color segmentation. Second, a temporal motion analysis module is constructed by combining corner detection, pyramidal Lucas–Kanade optical flow tracking, and RANSAC-based global motion compensation, which is used to extract spark trajectories and suppress the impact of camera jitter. Finally, a fusion strategy based on Intersection over Union is adopted to integrate color and motion detection results, enabling spatial consistency judgment of spark regions. Experimental results show that the proposed method achieves an average Precision of 86.69%, a Recall of 75.90%, and an F1-score of 0.8156 on 8 groups of hot work videos, significantly outperforming baseline models such as the HSV fixed-threshold model, HSV autothreshold model, and pure optical flow model. Ablation experiments verified the effectiveness of each module. Overall, the proposed method exhibits excellent detection accuracy and robustness and can provide reliable technical support for intelligent fire hazard monitoring in hot work scenarios.</p>","PeriodicalId":73648,"journal":{"name":"Journal of chemical health & safety","volume":"33 3","pages":"466–478"},"PeriodicalIF":3.4000,"publicationDate":"2026-05-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://pubs.acs.org/doi/pdf/10.1021/acs.chas.5c00228","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of chemical health & safety","FirstCategoryId":"1085","ListUrlMain":"https://pubs.acs.org/doi/10.1021/acs.chas.5c00228","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/4/15 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Splashing sparks generated during hot work are a major cause of industrial and construction fires. Characterized by small scales, intense brightness mutations, and random motion trajectories, they pose significant challenges for real-time visual detection. To address the issues of high false detection and missed detection rates of traditional methods under complex lighting and background conditions, this paper proposes a spark detection method that fuses HSV color features with optical flow motion features. First, a YOLO-based adaptive threshold parameter optimization mechanism is introduced to dynamically optimize HSV color intervals and improve the stability of color segmentation. Second, a temporal motion analysis module is constructed by combining corner detection, pyramidal Lucas–Kanade optical flow tracking, and RANSAC-based global motion compensation, which is used to extract spark trajectories and suppress the impact of camera jitter. Finally, a fusion strategy based on Intersection over Union is adopted to integrate color and motion detection results, enabling spatial consistency judgment of spark regions. Experimental results show that the proposed method achieves an average Precision of 86.69%, a Recall of 75.90%, and an F1-score of 0.8156 on 8 groups of hot work videos, significantly outperforming baseline models such as the HSV fixed-threshold model, HSV autothreshold model, and pure optical flow model. Ablation experiments verified the effectiveness of each module. Overall, the proposed method exhibits excellent detection accuracy and robustness and can provide reliable technical support for intelligent fire hazard monitoring in hot work scenarios.
高温作业时产生的飞溅火花是引起工业和建筑火灾的主要原因。它们具有小尺度、强烈的亮度突变和随机运动轨迹的特点,对实时视觉检测提出了重大挑战。针对传统方法在复杂光照和背景条件下存在的误检率和漏检率高的问题,本文提出了一种融合HSV颜色特征和光流运动特征的火花检测方法。首先,引入基于yolo的自适应阈值参数优化机制,对HSV颜色间隔进行动态优化,提高颜色分割的稳定性;其次,结合角点检测、金字塔形Lucas-Kanade光流跟踪和基于ransac的全局运动补偿,构建时域运动分析模块,提取火花运动轨迹,抑制摄像机抖动的影响;最后,采用基于Intersection over Union的融合策略对颜色和运动检测结果进行融合,实现火花区域的空间一致性判断。实验结果表明,该方法对8组热作视频的平均准确率为86.69%,召回率为75.90%,f1分数为0.8156,显著优于HSV固定阈值模型、HSV自动阈值模型和纯光流模型等基准模型。烧蚀实验验证了各模块的有效性。总体而言,该方法具有良好的检测精度和鲁棒性,可为热工场景下的火灾隐患智能监控提供可靠的技术支持。