基于TinyML和迁移学习的瓦斯浓度边缘智能实时预测

Edge intelligence-based real-time gas concentration prediction using TinyML and transfer learning

  • 摘要: 针对目前瓦斯浓度预测模型“端−云”架构实时性不足的问题,提出了基于微型机器学习(TinyML)和迁移学习的瓦斯浓度边缘智能实时预测方案。以某煤矿工作面监测数据为样本,利用Pearson相关系数法分析温度、粉尘等多源输入与瓦斯浓度的相关性,采用卷积神经网络+门控循环单元架构,构建了强相关数据输入复杂分支进行深层提取、弱相关数据输入轻量分支处理的双分支网络瓦斯浓度预测模型;基于模型预测数据,结合《煤矿安全规程》、3σ风险划分准则等,设计了瓦斯浓度超限预警策略;采用TinyML技术,将预测模型部署在以STM32F405为核心的极边缘端设备上;针对极边缘端模型因数据分布波动而产生的概念漂移问题,提出了一种基于迁移学习的“端−边”协同在线学习策略。实验结果表明:瓦斯浓度预测模型能够准确预测瓦斯浓度变化趋势,均方根误差和平均绝对百分比误差分别为0.015 2%和0.048 4%;边缘推理效率较高,单次推理平均功耗、推理延时与能耗分别为22.80 mW,16.49 ms和0.376 mJ;支持在极边缘端进行模型动态更新,保障了预测的准确性与实时性。

     

    Abstract: To address the insufficient real-time performance of the device–cloud architecture used by current gas concentration prediction models, an edge intelligence-based real-time gas concentration prediction scheme using Tiny Machine Learning (TinyML) and transfer learning was proposed. Monitoring data from a coal mine working face were used as samples, and Pearson correlation coefficients were used to analyze the correlations between multisource inputs, including temperature and dust, and gas concentration. A dual-branch gas concentration prediction network was constructed using a Convolutional Neural Network (CNN)–Gated Recurrent Unit (GRU) architecture. Strongly correlated data were fed into a complex-structure branch for deep feature extraction, whereas weakly correlated data were processed by a lightweight branch. A gas concentration exceedance warning strategy was designed based on the model predictions, the Coal Mine Safety Regulations, and criteria including the 3σ risk classification rule. Using TinyML, the prediction model was deployed on a far-edge device built around an STM32F405. To address concept drift in the far-edge model caused by fluctuations in data distribution, a device–edge collaborative online learning strategy based on transfer learning was proposed. The experimental results showed that the gas concentration prediction model accurately predicted trends in gas concentration, with a Root Mean Square Error (RMSE) of 0.015 2% and a Mean Absolute Percentage Error (MAPE) of 0.048 4%. Edge inference was efficient, with an average power consumption, inference latency, and energy consumption per inference of 22.80 mW, 16.49 ms, and 0.376 mJ, respectively. The scheme supports dynamic model updates at the far edge, ensuring prediction accuracy and real-time performance.

     

/

返回文章
返回