In the context of intelligent coal mine safety monitoring, an integrated prediction and early-warning method named MTGNN-Bayesian-IF-DBSCAN (Multi-Task Graph Neural Network–Bayesian Optimization–Isolation Forest–Density-Based Spatial Clustering of Applications with Noise) is proposed to address the challenges of gas concentration prediction and anomaly detection in coal mining faces. The MTGNN (Multi-Task Graph Neural Network) is first employed to model the spatiotemporal coupling characteristics of gas concentration and wind speed data. By constructing a graph structure based on sensor spatial dependencies and utilizing temporal convolutional layers to capture long short-term time-series features, the high-precision dynamic prediction of gas concentrations is achieved via the MTGNN. Experimental results indicate that the MTGNN outperforms comparative algorithms, such as CrossGNN and FourierGNN, in prediction accuracy, with the mean absolute error (MAE) being as low as 0.00237 and the root mean square error (RMSE) maintained below 0.0203 across different sensor locations (T0, T1, T2). For anomaly detection, a Bayesian optimization framework is introduced to adaptively optimize the fusion weights of IF (Isolation Forest) and DBSCAN (Density-Based Spatial Clustering of Applications with Noise). Through defining the objective function as the F1 score and employing Gaussian process surrogate models, the optimal weight combination (w_if = 0.43, w_dbscan = 0.52) is determined, achieving an F1 score of 1.0. By integrating original concentration data and residual features, gas anomalies are effectively identified by the proposed method, with the detection rate reaching a range of 93–96% and the false alarm rate controlled below 5%. Multidimensional analysis diagrams (e.g., residual distribution, 45° diagonal error plot, and boxplots) further validate the model’s robustness in different spatial locations, particularly in capturing abrupt changes and low-concentration anomalies. This study provides a new technical pathway for intelligent gas warning in coal mines, integrating spatiotemporal modeling, multi-algorithm fusion, and statistical optimization. The proposed framework not only enhances the accuracy and reliability of gas prediction and anomaly detection but also demonstrates potential for generalization to other industrial sensor networks.
Methane concentration anomalies during coal mining operations are identified as important factors triggering major safety accidents. This study aimed to address the key issues of insufficient adaptability of existing detection methods in dynamic and complex underground environments and limited characterization capabilities for non-uniform sampling data. Specifically, an intelligent diagnostic model was proposed by integrating the improved Dung Beetle Optimization Algorithm (SGDBO) with Transformer-SVM. A dual-path feature fusion architecture was innovatively constructed. First, the original sequence length of samples was unified by interpolation algorithms to adapt to deep learning model inputs. Meanwhile, statistical features of samples (such as kurtosis and differential standard deviation) were extracted to deeply characterize local mutation characteristics. Then, the Transformer network was utilized to automatically capture the temporal dependencies of concentration time series. Additionally, the output features were concatenated with manual statistical features and input into the LSSVM classifier to form a complementary enhancement diagnostic mechanism. Sine chaotic mapping initialization and a golden sine search mechanism were integrated into DBO. Subsequently, the SGDBO algorithm was employed to optimize the hyperparameters of the Transformer-LSSVM hybrid model, breaking through the bottleneck of traditional parameter optimization falling into local optima. Experiments reveal that this model can significantly improve the classification accuracy and robustness of anomaly curve discrimination. Furthermore, core technical support can be provided to construct coal mine safety monitoring systems, demonstrating critical practical value for ensuring national energy security production.