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.