A tunnel gas monitoring and early warning method and system

By performing abnormal data aggregation matrix reasoning and clustering processing on the tunnel gas monitoring data set, and splitting it into sub-data sets for identification, the problem of difficulty in capturing abnormal gas concentration changes in the existing technology is solved, and the accuracy and comprehensiveness of early warning are improved.

CN118643451BActive Publication Date: 2024-10-22SINOHYDRO BEREAU 10 CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411117735.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-22
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The existing tunnel gas monitoring and early warning system is difficult to capture subtle anomalies in gas concentration changes, resulting in low early warning accuracy. Moreover, the global detection method ignores the abnormal characteristics of different areas and different times in the data set, and cannot fully reflect the gas safety status in the tunnel. .

Method used

By performing abnormal data aggregation matrix inference on the tunnel gas monitoring data set, features with multiple different intensities are extracted and dimensionally reduced, clustering is detected, split into sub-data sets, anomalies are identified and integrated, and whether to issue an early warning is determined.

Benefits of technology

It achieves accurate identification of subtle abnormal data in tunnel gas monitoring data sets, improves the accuracy of gas early warning, and can more comprehensively detect the range and degree of gas anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643451B_ABST
    Figure CN118643451B_ABST
Patent Text Reader

Abstract

The present application provides a tunnel gas monitoring and early warning method and system. Based on the clustering target range obtained by clustering the abnormal data aggregation matrix, a sub-tunnel gas monitoring data set is extracted from the tunnel gas monitoring data set, and then detected. The data at different times and locations of the original tunnel gas monitoring data set are compared and detected separately. The subtle abnormal data in the tunnel gas monitoring data set can be detected more comprehensively, and the recognition results of the subtle abnormal data are used as the filling of the global abnormal recognition results of the tunnel gas monitoring data set. In this way, the recognition of obvious abnormal data and subtle abnormal data in the tunnel gas monitoring data set is completed at the same time, and the abnormal data of various abnormal ranges and abnormal degrees in the tunnel gas monitoring data set can be accurately identified, thereby increasing the accuracy of abnormal data recognition and thus improving the accuracy of gas early warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular, to a method and system for monitoring and early warning of gas in a tunnel. Background Art

[0002] In tunnel and underground engineering construction, gas is a potential dangerous factor, and its concentration change has a significant impact on operational safety. Especially in tunnel environments with complex geological conditions and limited ventilation conditions, gas accumulation and emergencies occur from time to time, seriously threatening the life safety of construction workers and project progress. Therefore, it is particularly important to develop an efficient and accurate tunnel gas monitoring and early warning technology. Most of the existing tunnel gas monitoring and early warning systems rely on traditional sensor monitoring and threshold judgment methods. Although these methods can achieve real-time monitoring and early warning of gas concentration to a certain extent, due to the nonlinear, non-stationary and uneven spatial distribution of gas concentration changes, traditional methods often find it difficult to capture subtle abnormal changes, resulting in low early warning accuracy and the risk of missed reports and false alarms. In addition, most of the existing early warning systems perform global detection on the entire tunnel gas monitoring data set, ignoring that abnormal data in different regions and at different times in the data set may have different characteristics and importance. Although this global detection method is simple and easy to implement, it is easy to ignore subtle abnormal changes in local areas, and thus cannot fully and accurately reflect the gas safety status in the tunnel. Summary of the invention

[0003] The purpose of the present invention is to provide a tunnel gas monitoring and early warning method and system, and the present application is implemented as follows:

[0004] In the first aspect, the present application provides a tunnel gas monitoring and early warning method, the method comprising: performing an abnormal data clustering matrix inference operation on a tunnel gas monitoring data set to obtain an abnormal data clustering matrix of the tunnel gas monitoring data set, wherein the abnormal data clustering matrix represents the clustering position information of the abnormal data in the tunnel gas monitoring data set, and the abnormal data clustering matrix inference operation includes multiple feature extraction and dimensionality reduction operations with different intensities; performing a detection clustering operation on the abnormal data clustering matrix to obtain multiple clustering target ranges in the abnormal data clustering matrix; performing an extraction operation on the tunnel gas monitoring data set according to the multiple clustering target ranges to obtain a corresponding multiple sub-tunnel gas monitoring data sets, wherein each of the sub-tunnel gas monitoring data sets includes multiple abnormal data; performing an abnormal identification operation on each of the sub-tunnel gas monitoring data sets and the tunnel gas monitoring data set in turn to obtain a first abnormal identification result corresponding to each of the sub-tunnel gas monitoring data sets and the tunnel gas monitoring data set; performing an integration operation on each of the first abnormal identification results to obtain a second abnormal identification result corresponding to the tunnel gas monitoring data set; and judging whether to issue an early warning based on the second abnormal identification result.

[0005] In a second aspect, the present application provides a computer system comprising: one or more processors; a memory; one or more computer programs; wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and when the one or more computer programs are executed by the processors, the method as described above is implemented.

[0006] The beneficial effects of the present application include at least: the tunnel gas monitoring and early warning method and system provided by the present application, based on the clustering target range obtained by clustering the abnormal data aggregation matrix, extracts a sub-tunnel gas monitoring data set from the tunnel gas monitoring data set, and then performs detection, and compares and detects the data of the original tunnel gas monitoring data set at different times and locations. The subtle abnormal data in the tunnel gas monitoring data set can be detected more comprehensively, and the recognition result of the subtle abnormal data (i.e., the first abnormal recognition result) is used as the global abnormal recognition result (i.e., the second abnormal recognition result) of the tunnel gas monitoring data set to fill in the global abnormal recognition result of the tunnel gas monitoring data set. In this way, the recognition of obvious abnormal data and subtle abnormal data in the tunnel gas monitoring data set is completed at the same time, and the abnormal data of various abnormal ranges and abnormal degrees in the tunnel gas monitoring data set can be accurately identified, thereby increasing the accuracy of abnormal data recognition and thus improving the accuracy of gas early warning. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 It is a flow chart of a tunnel gas monitoring and early warning method provided in an embodiment of the present application.

[0008] Figure 2 It is a schematic diagram of the composition of a computer system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0009] The execution subject of the tunnel gas monitoring and early warning method in the embodiment of the present application is a computer system, including but not limited to a server, a personal computer, a laptop computer, a tablet computer, a smart phone, etc. Figure 1 As shown, the method includes:

[0010] Step S100: Perform an abnormal data aggregation matrix reasoning operation on the tunnel gas monitoring data set to obtain the abnormal data aggregation matrix of the tunnel gas monitoring data set, wherein the abnormal data aggregation matrix represents the aggregation position information of the abnormal data in the tunnel gas monitoring data set, and the abnormal data aggregation matrix reasoning operation includes multiple feature extractions and dimensionality reduction operations with different intensities.

[0011] In an embodiment of the present application, when the computer system executes step S100, it first receives real-time monitoring data from multiple gas sensors in the tunnel. These data usually exist in the form of time series, recording the gas concentration values ​​at different locations and time points. In order to mine abnormal information from these data, the system needs to perform a series of carefully designed feature extraction and dimensionality reduction operations. Feature extraction is the first step in identifying data patterns. In an embodiment of the present application, the computer system can use a convolutional neural network (CNN) to implement this process. The convolution layer locally perceives the input data by means of a sliding window, and uses a preset filter matrix (also called a convolution kernel) to extract the spatial features of the data. These features may include the local rate of change of gas concentration, the concentration gradient between different locations, etc., which are crucial for identifying gas anomalies.

[0012] Due to the complex and changeable environment of the tunnel, it is often difficult for feature extraction of a single scale to fully capture the characteristics of abnormal data. The computer system performs multiple feature extraction operations with different intensities in step S100. This means that convolution kernels of different sizes are used to process the input data. Small convolution kernels can capture local details, while large convolution kernels can perceive a wider range of spatial structures. In this way, the system can construct a multi-dimensional feature space, providing a rich source of information for subsequent analysis. As feature extraction deepens, the dimension of the data will increase rapidly, which not only increases the computational complexity, but also may introduce redundant information. To solve this problem, the computer system can use a pooling layer to reduce the dimension of the feature map. The pooling operation reduces the spatial size of the data by selecting the maximum value, average value, etc. in a certain area of ​​the feature map, while retaining important feature information. For example, the maximum pooling operation can help the system identify areas where the gas concentration suddenly increases, while the average pooling helps to smooth noise and extract global features. In the embodiment of the present application, the intensity of the dimensionality reduction operation corresponds to the step size of the pooling. When the step size is small, the pooling operation can retain more detailed information, but the amount of calculation is large; when the step size is large, the data dimension can be significantly reduced, but some key information may be lost. Therefore, the computer system needs to select an appropriate step size according to the specific task requirements and data characteristics.

[0013] Through multiple feature extraction and dimensionality reduction operations with different intensities, the computer system finally generates an abnormal data aggregation matrix. This matrix intuitively shows the clustering location information of abnormal data in the tunnel gas monitoring data set. Each element in the matrix corresponds to a specific area in the input data (such as a certain time period, a certain spatial location), and the value of the element reflects the possibility or degree of abnormality in the area. For example, if the gas concentration in a certain area is continuously higher than the normal level, then the area will form an obvious aggregation point in the abnormal data aggregation matrix. The reasoning process of the abnormal data aggregation matrix is ​​not carried out in isolation. In practical applications, the computer system can combine prior knowledge, expert experience and historical data to continuously optimize and adjust the parameter settings of feature extraction and dimensionality reduction to ensure the accuracy and reliability of the reasoning results. In addition, with the continuous addition of new data and the continuous training of the model, the abnormal data aggregation matrix will also be dynamically updated to adapt to changes in the tunnel gas environment.

[0014] Step S200: performing a detection clustering operation on the abnormal data clustering matrix to obtain a plurality of clustering target ranges in the abnormal data clustering matrix.

[0015] Specifically, after the computer system completes step S100 and obtains the abnormal data aggregation matrix of the tunnel gas monitoring data set, it further analyzes the matrix to find a set of elements with similar characteristics or behaviors. These element sets appear as clustering points or dense areas in the matrix, and they are likely to correspond to gas abnormal areas in the actual tunnel environment. In order to achieve the detection clustering operation, the computer system can use one or more clustering algorithms. In the embodiment of the present application, the commonly used clustering algorithms include but are not limited to K-means clustering, hierarchical clustering, DBSCAN (density-based spatial clustering with noise), etc. These algorithms have their own characteristics, but the common goal is to divide the data points in the matrix into several clusters (clusters), so that the similarity of data points in the same cluster is high, while the similarity of data points between different clusters is low. Through the clustering algorithm, these areas are divided into different clusters, each cluster representing a potential gas abnormality source. Through the detection clustering operation of the abnormal data aggregation matrix, multiple clustering target ranges (i.e., clustering areas in the matrix) can be obtained.

[0016] Step S300: performing an extraction operation on a tunnel gas monitoring data set according to a plurality of clustering target ranges to obtain a corresponding plurality of sub-tunnel gas monitoring data sets, wherein each sub-tunnel gas monitoring data set includes a plurality of abnormal data.

[0017] In step S300 of the embodiment of the present application, the computer system performs a refined extraction operation on the original tunnel gas monitoring data set according to the multiple clustering target ranges (i.e., clustering regions in the matrix) obtained in step S200, thereby generating a series of corresponding sub-tunnel gas monitoring data sets. Each sub-data set focuses on a specific abnormal data aggregation region, providing more targeted data samples for subsequent in-depth analysis.

[0018] Specifically, when the computer system completes the cluster analysis, it will obtain a list containing multiple clustering target ranges. These ranges may correspond to different areas in the tunnel in physical space, and each area is identified by the clustering algorithm due to abnormal changes in gas concentration. Next, the computer system will filter out corresponding data points from the original monitoring data set based on these ranges to construct multiple sub-tunnel gas monitoring data sets. Assume that the original data set contains gas concentration readings of multiple sensors in the tunnel at different time points. Each data point can be represented as a vector containing information such as timestamp, sensor location, and gas concentration. In the cluster analysis stage, the computer system may have identified three main abnormal data aggregation areas, corresponding to three different sections in the tunnel. In step S300, the original data set is traversed, and for each data point, its location information is checked to see if it falls into any of the three clustering target ranges. If so, the data point will be added to the corresponding sub-data set. This process is similar to the filtering operation in database query, but here, the filtering condition is based on a complex combination of spatial location and time series.

[0019] For example, for the first clustering target range, assume that it covers an area near the tunnel entrance and the time span is the last week. Then, all gas concentration readings within this time period and whose location information matches the area are extracted from the original data set to form a sub-tunnel gas monitoring data set. This sub-data set will be used specifically to analyze gas anomalies near the tunnel entrance. By executing step S300, the computer system can split the original, large tunnel gas monitoring data set into multiple smaller and more focused sub-data sets. Each sub-data set revolves around a specific abnormal data aggregation area, making subsequent anomaly identification processing more efficient and accurate. This data splitting strategy not only reduces the waste of computing resources, but also improves the response speed and accuracy of the early warning system, providing a strong guarantee for the safety of tunnel operations.

[0020] Step S400: performing an abnormality identification operation on each sub-tunnel gas monitoring data set and tunnel gas monitoring data set in sequence to obtain a first abnormality identification result corresponding to each sub-tunnel gas monitoring data set and tunnel gas monitoring data set.

[0021] In the embodiment of the present application, step S400 is responsible for performing in-depth anomaly identification operations on each sub-tunnel gas monitoring data set obtained after cluster analysis and the original tunnel gas monitoring data set.

[0022] Specifically, the computer system can perform anomaly identification operations for each sub-tunnel gas monitoring data set. Since these sub-data sets have been divided in space and time according to the clustering results, they each focus on a specific area or time period in the tunnel. The computer system can use various machine learning models to analyze these sub-data sets, including but not limited to support vector machines (SVM), random forests, gradient boosting trees (GBDT) or deep learning models (such as long short-term memory networks LSTM, convolutional neural networks CNN, etc.). For each sub-tunnel gas monitoring data set, the computer system outputs a first anomaly identification result. This result may be a set of anomaly scores, each score corresponding to a time step or spatial position in the data set, indicating the possibility of gas anomalies at that location. In addition, the results may also include specific information such as the type of anomaly, severity, and possible causes, which are helpful for subsequent manual review and emergency response. After completing the anomaly identification of all sub-data sets, the computer system performs the same operation on the entire tunnel gas monitoring data set to ensure that no global anomaly patterns are missed, especially those that cross the boundaries of multiple sub-data sets. By analyzing the entire data set, the system can obtain a more comprehensive perspective, which helps to discover potential systemic risks.

[0023] Finally, for each sub-tunnel gas monitoring data set and the entire tunnel gas monitoring data set, the computer system will output a corresponding first abnormality identification result.

[0024] Step S500: integrating each first abnormality recognition result to obtain a second abnormality recognition result corresponding to the tunnel gas monitoring data set.

[0025] In step S500 of the embodiment of the present application, the computer system integrates the first abnormality identification results generated for each sub-tunnel gas monitoring data set and the entire tunnel gas monitoring data set in the previous step to form a comprehensive second abnormality identification result. This process not only considers the local abnormal conditions of each area in the tunnel, but also takes into account the global perspective, ensuring the accuracy and comprehensiveness of the early warning decision.

[0026] Specifically, the computer system can collect all the first anomaly identification results. These results may exist in different forms, such as an anomaly score matrix, an abnormal event list, or structured data containing information such as anomaly type, location, timestamp, etc. In order to integrate this diverse information, the computer system needs to design a unified set of evaluation criteria or frameworks. During the integration process, the computer system can adopt a variety of strategies to comprehensively evaluate the gas anomaly in the tunnel. A common strategy is the weighted average method, that is, assigning different weights to each sub-dataset or global data set according to its importance (such as regional sensitivity, historical anomaly frequency, etc.), and then weighted summing all the first anomaly identification results according to the corresponding weights. The second anomaly identification result obtained in this way can reflect the overall level and distribution characteristics of gas anomalies in the tunnel.

[0027] Alternatively, the computer system may also use a more complex fusion algorithm to integrate the abnormality identification results. For example, a fusion algorithm based on a decision tree can construct decision rules according to the advantages and limitations of different abnormality identification models, thereby realizing the intelligent fusion of multiple first abnormality identification results. In addition, some advanced machine learning methods (such as ensemble learning, deep learning, etc.) can also be applied to this step to further improve the accuracy and efficiency of the integration. After the integration operation, the computer system outputs a second abnormality identification result corresponding to the tunnel gas monitoring data set. This result not only contains the overall situation of the gas anomaly in the tunnel, but may also contain specific abnormal location, type, severity, and recommended countermeasures.

[0028] Step S600: Determine whether to issue an early warning based on the second abnormality recognition result.

[0029] Specifically, the second anomaly identification result can be a comprehensive evaluation that includes comprehensive information about the anomalies in the tunnel gas monitoring data set, such as the location, type, severity, etc. In order to make accurate early warning decisions, the computer system needs to preset a set of early warning thresholds or rules, which are based on the safety standards of tunnel operations, historical abnormal data analysis, and expert experience.

[0030] During the judgment process, the computer system compares and analyzes the second abnormality recognition result with the preset warning threshold or rule. If the degree of abnormality in the recognition result exceeds the preset threshold, or the abnormality type belongs to the category of high danger, the system will determine that an early warning is needed. On the contrary, if the degree of abnormality is low and does not constitute a safety threat, the system may choose not to trigger the early warning mechanism. The formulation of early warning decisions is not static, but needs to be dynamically adjusted according to the actual situation of tunnel operations and changes in the external environment. For example, in some special cases (such as complex tunnel geological conditions and high operation intensity), the computer system can appropriately lower the early warning threshold to improve the sensitivity and timeliness of the early warning. On the contrary, when the tunnel operation is relatively stable and the safety risk is low, the system may increase the early warning threshold to reduce false alarms and unnecessary interference. The formulation of early warning decisions needs to consider the comprehensive influence of multiple factors. For example, in addition to the direct indicator of gas concentration, the computer system may also need to combine environmental factors such as wind speed, temperature, and humidity in the tunnel for comprehensive analysis. By introducing multi-source data fusion and complex event processing technology, the system can more comprehensively evaluate the safety status in the tunnel and make more scientific and reasonable early warning decisions.

[0031] As an implementation manner, step S100, performing an abnormal data aggregation matrix inference operation on a tunnel gas monitoring data set to obtain an abnormal data aggregation matrix of the tunnel gas monitoring data set, may specifically include:

[0032] Step S110: According to the tunnel gas monitoring data set, the debugged abnormal data aggregation matrix inference model is retrieved to perform abnormal data aggregation matrix inference operations to obtain the abnormal data aggregation matrix of the tunnel gas monitoring data set.

[0033] Among them, the debugging process of the debugged abnormal data aggregation matrix inference model includes:

[0034] Step S10: According to the tunnel gas monitoring data set samples, the abnormal data aggregation matrix inference model to be debugged is retrieved to perform abnormal data aggregation matrix inference operations to obtain the inference abnormal data aggregation matrix of the tunnel gas monitoring data set samples.

[0035] In the embodiment of the present application, specifically, the computer system may select a portion of the entire tunnel gas monitoring data set as a sample data set. This sample data set should be able to reflect the main characteristics and distribution patterns of the original data, and at the same time be small enough for fast processing. For example, the sample data set may include gas concentration readings from different locations and different time periods in the tunnel, as well as some known abnormal event records.

[0036] Next, the computer system calls the abnormal data aggregation matrix inference model to be debugged. This model may be built based on a convolutional neural network (CNN), which is particularly suitable for processing data sets with spatial features. The design of the model takes into account the characteristics of tunnel gas monitoring data, such as the continuity of time series, the correlation of spatial positions, and the nonlinearity of gas concentration changes. After the model is successfully loaded, the computer system will use the sample data set as input to start the abnormal data aggregation matrix inference operation. During this process, the model will automatically perform a series of complex calculations, including but not limited to data preprocessing, feature extraction, dimensionality reduction, and abnormal aggregation reasoning. In particular, the model uses convolutional layers to capture local features in the data, uses pooling layers to reduce data dimensions and extract important information, and finally generates an inference abnormal data aggregation matrix.

[0037] The inference abnormal data aggregation matrix is ​​a multidimensional array, whose dimensions usually correspond to the spatial and temporal resolution of the sample data set. Each element or region in the matrix represents a specific spatial location or time period, and its value reflects the possibility or intensity of abnormal gas concentration in that location or time period. For example, if the gas concentration in a certain area is continuously higher than the normal level, a high-value aggregation point will be formed in the matrix for that area. Through step S10, the computer system obtains a preliminary inference abnormal data aggregation matrix, which is the basis for subsequent model debugging and optimization. The computer system will use this matrix to compare with the actual abnormal data aggregation of the sample data set, evaluate the current performance of the model by calculating the error, and guide the subsequent parameter adjustment work accordingly. In this way, through continuous iterative debugging, the computer system can gradually optimize the reasoning ability of the model and improve its accuracy and reliability in tunnel gas monitoring and early warning.

[0038] Step S20: Retrieving the aggregation error function according to the inference abnormal data aggregation matrix of the tunnel gas monitoring data set samples and the actual abnormal data aggregation matrix of the tunnel gas monitoring data set samples to obtain the error of the tunnel gas monitoring data set samples.

[0039] In the embodiment of the present application, specifically, in step S20, the computer system can obtain two key data matrices: one is the inference abnormal data aggregation matrix generated by the abnormal data aggregation matrix inference model to be debugged in step S10, and the other is the actual abnormal data aggregation matrix of the tunnel gas monitoring data set sample. The two matrices are usually consistent in structure, and both reflect the abnormal gas concentration at different locations or time periods in the sample data set.

[0040] Next, the computer system calls a predefined aggregation error function to calculate the difference between the two matrices. This function is designed to capture the inconsistency between corresponding elements or regions in the matrix and quantify it into a single value - error (or loss). The size of the error value directly reflects the accuracy of the model's inference results. The smaller the error, the closer the model's inference results are to the actual situation. In the embodiment of the present application, the selection of the aggregation error function needs to take into account the characteristics of the data and the requirements of the task. A common choice is the mean square error (MSE) function, which calculates the average of the sum of the squares of the differences between the corresponding elements of the inference matrix and the actual matrix. The calculation formula of the MSE function is as follows:

[0041] ;

[0042] Where N is the total number of elements in the matrix, y i is the value of the i-th element in the actual abnormal data aggregation matrix, It is the value of the corresponding element in the inference abnormal data aggregation matrix. By calculating MSE, the computer system can intuitively understand the overall inference error of the model.

[0043] In some cases, the computer system can choose other more robust error functions, such as the Huber loss function or the Hinge loss function, to better adapt to the characteristics of the data.

[0044] Step S30: adjusting the internal configuration variables of the abnormal data aggregation matrix inference model to be debugged according to the errors of the tunnel gas monitoring data set samples.

[0045] In step S30 of the embodiment of the present application, the computer system adjusts the internal configuration variables of the abnormal data aggregation matrix inference model to be debugged according to the error of the tunnel gas monitoring data set sample calculated in step S20, in order to reduce the error and improve the reasoning accuracy of the model. Specifically, the internal configuration variables of the model usually include parameters such as weights and biases, which play a vital role in the model training process. In step S30, the computer system can analyze the source and nature of the error. The error may come from many aspects, such as unreasonable model structure, improper parameter initialization, interference from data noise, etc. By deeply analyzing the error, the computer system can identify the key points for improving model performance.

[0046] Next, the computer system will use one or more optimization algorithms to adjust the internal configuration variables of the model. Common optimization algorithms include Gradient Descent, Stochastic Gradient Descent (SGD), Adam optimizer, etc. These algorithms calculate the gradient of the error with respect to the model parameters and update the parameter value in the opposite direction of the gradient, thereby gradually reducing the error. Taking the gradient descent method as an example, the formula for updating the parameters is usually expressed as:

[0047] ;

[0048] Among them, θ t represents the parameter value at the tth iteration, α represents the learning rate, that is, the step size of each parameter update, Represents the error function The gradient with respect to the parameters θ. By iteratively executing this formula, the computer system can gradually find the parameter values ​​that minimize the error.

[0049] In the embodiment of the present application, the computer system can select a suitable optimization algorithm and parameter update strategy according to the characteristics of the tunnel gas monitoring data set. For example, if there is a large amount of noise or outliers in the data set, the computer system can use a more robust optimization algorithm, such as the Huber loss function combined with the gradient descent method; if the model structure is more complex and has more parameters, the computer system can use the Adam optimizer, which combines the advantages of the Momentum and RMSprop algorithms and can converge to the optimal solution more quickly.

[0050] By continuously adjusting the model's internal configuration variables, the computer system can gradually optimize the model's reasoning capabilities, making it more accurate and reliable in tunnel gas monitoring and early warning tasks. This process usually requires multiple iterations, each of which updates the model parameters based on the current error and recalculates the error to evaluate the improvement in model performance. Ultimately, when the error is reduced to a certain extent or reaches a preset number of iterations, the model debugging process ends, and the computer system will obtain an optimized abnormal data aggregation matrix reasoning model for subsequent tunnel gas monitoring and early warning tasks.

[0051] As an implementation mode, step S110, based on the tunnel gas monitoring data set, retrieves the debugged abnormal data aggregation matrix inference model to perform abnormal data aggregation matrix inference operation to obtain the abnormal data aggregation matrix of the tunnel gas monitoring data set, including:

[0052] According to the tunnel gas monitoring data set, the debugged abnormal data aggregation matrix inference model is retrieved and the following processing is performed:

[0053] Step S111: performing multiple feature extraction and dimensionality reduction operations with different intensities on the tunnel gas monitoring data set to obtain multiple representation matrices with different intensities;

[0054] Step S112: integrating multiple representation matrices with different intensities to obtain an integrated representation matrix;

[0055] Step S113: performing a filtering operation on the integrated characterization matrix to obtain an abnormal data aggregation matrix of the tunnel gas monitoring data set.

[0056] The tunnel environment is complex and changeable, and the gas concentration is affected by multiple factors such as geological conditions, ventilation conditions, and construction activities, showing significant spatial and temporal non-uniformity. In order to accurately capture the abnormal patterns in these complex changes, the computer system needs to be able to extract multi-level and multi-scale feature information from the tunnel gas monitoring data set. In step S111, the computer system can perform multiple feature extraction and dimensionality reduction operations with different intensities (or scales) on the tunnel gas monitoring data set. The intensity here can be understood as the spatial range or degree of detail considered during feature extraction, and different intensities correspond to different observation scales. In an embodiment of the present application, the computer system can use a convolutional layer in a convolutional neural network (CNN) to extract features from the monitoring data. The convolutional layer can automatically learn local spatial features from the data through sliding windows and filtering operations, and these features are crucial for identifying abnormal changes in gas concentration. For example, assume that the tunnel gas monitoring data set contains a series of time series data, and each time point corresponds to the gas concentration readings at different locations in the tunnel. The computer system can use a convolutional layer containing multiple convolution kernels to extract features from these data. Each convolution kernel represents a specific feature extraction mode, which traverses the entire data set through a sliding window to generate a series of feature maps (i.e., representation matrices). These feature maps capture information about changes in gas concentration at different scales, such as local peaks, change trends, etc.

[0057] Dimensionality reduction methods include pooling, principal component analysis (PCA), linear discriminant analysis (LDA), etc. For example, after feature extraction, the computer system can use a pooling layer to reduce the dimension of the feature map. The pooling layer reduces the spatial size of the feature map by taking the maximum value, average value, etc. in the region, while retaining important feature information. For example, the maximum pooling operation can capture significant peaks in the feature map, which often correspond to areas with abnormally high gas concentrations.

[0058] After the multi-scale feature extraction and dimensionality reduction operation in step S111, the computer system obtains multiple characterization matrices (i.e., feature maps) of different intensities. These matrices each reflect the feature information of the data at different scales, but how to effectively integrate this information to form a comprehensive understanding of the abnormal data aggregation situation is a problem that needs to be solved in step S112. In step S112, the computer system performs an integration operation on multiple characterization matrices of different intensities. The purpose of integration is to fuse feature information of different scales into a unified characterization matrix for subsequent abnormal aggregation reasoning. The choice of integration method depends on the specific application scenario and data characteristics. Common integration methods include feature concatenation, feature summation, feature multiplication, etc.

[0059] After the integration operation in step S112, the computer system obtains an integrated representation matrix containing multi-scale feature information. However, the feature information in this matrix still exists in its original form and needs further processing to form an intuitive representation of the abnormal data aggregation situation. Therefore, in step S113, the computer system performs a filtering operation (i.e., convolution) on the integrated representation matrix to generate an abnormal data aggregation matrix of the tunnel gas monitoring data set. For example, assume that in step S112, the computer system obtains an integrated representation matrix D. In step S113, a convolution operation is performed on D using a designed convolution kernel. This convolution kernel may be a two-dimensional matrix whose element values ​​are set according to specific rules (such as Gaussian distribution, uniform distribution, etc.). The convolution operation traverses the entire D matrix through a sliding window, performs a local weighted sum operation at each position, and generates a new matrix E. Matrix E is the abnormal data aggregation matrix of the tunnel gas monitoring data set, which reflects the aggregation position and intensity information of the abnormal data in the data set.

[0060] Specifically, the filtering process can be described as follows: For each position (i, j) in the D matrix, take a window area with the same size as the convolution kernel, centered at that position. Then, the element value in the window area is multiplied by the element value at the corresponding position of the convolution kernel, and all products are added together to obtain a sum value. This sum value is assigned to the element at the corresponding position (i, j) in the E matrix. By traversing the entire D matrix, a complete E matrix is ​​generated as the abnormal data aggregation matrix.

[0061] As an implementation manner, step S200, performing a detection clustering operation on the abnormal data clustering matrix to obtain multiple clustering target ranges in the abnormal data clustering matrix, may specifically include:

[0062] Step S210: Detecting the clustering points in the abnormal data clustering matrix to obtain the confidence distribution information of the clustering points;

[0063] Step S220: clustering the clustering points with the same distribution characteristics according to the confidence distribution information of the clustering points to obtain multiple clustering target ranges in the abnormal data clustering matrix.

[0064] In the embodiment of the present application, the abnormal data aggregation matrix is ​​the output of step S110, which intuitively shows the distribution of abnormal data in the data set. These abnormal data usually appear in the form of cluster points, and each cluster point represents one or more areas with abnormal gas concentration. In order to further analyze these cluster points, the computer system first needs to detect their positions and evaluate the confidence of each cluster point, that is, the possibility that the point does represent abnormal data.

[0065] The method of detecting clustering points relies on the analysis of local features in the matrix, such as traversing each element of the abnormal data clustering matrix and identifying local high-value areas by comparing the values ​​of adjacent elements. For example, a threshold segmentation method can be used, that is, a threshold is set, and the elements in the matrix with values ​​greater than the threshold are regarded as part of the clustering point. The confidence distribution information reflects the reliability of each clustering point as an abnormal data source. In order to obtain this information, the computer system can calculate the statistical characteristics of the area around the clustering point, such as the mean, variance, kurtosis, etc. These characteristics can reflect the central tendency and discreteness of the data. In addition, the probability model in machine learning can be used to estimate the confidence of each clustering point. For example, a classifier can be trained to take the data of the clustering point and its surrounding area as input, and output the probability that the clustering point belongs to the abnormal class as the confidence.

[0066] For example, suppose that the abnormal data clustering matrix is ​​a two-dimensional array, in which the value of the element represents the degree of abnormality of the gas concentration at the corresponding location. By traversing the matrix, the computer system detects several local high-value areas as clustering points. For each clustering point, the system calculates the mean and variance of the elements within a certain range around it to evaluate the stability and significance of the clustering point. At the same time, a pre-trained probability model (such as a logistic regression model) is used to estimate the confidence of each clustering point. Finally, each clustering point is assigned a confidence value, indicating the probability that the point does represent abnormal data. After obtaining the confidence distribution information of the clustering points, these clustering points are clustered according to certain rules, that is, they are grouped into multiple clustering target ranges (clustering areas).

[0067] The principle of clustering is usually based on the similarity or distance measurement between cluster points. In the embodiment of the present application, the similarity may be reflected in the confidence, position, shape and other aspects of the cluster points. For example, if two cluster points have similar confidence values ​​and are close in position, they are likely to belong to the same anomaly source; conversely, if their confidence values ​​are very different or their positions are far apart, they may belong to different anomaly sources.

[0068] In order to implement clustering operations, the computer system needs to select a suitable clustering algorithm. Common clustering algorithms include K-means clustering, hierarchical clustering, DBSCAN (density-based spatial clustering with noise), etc. Taking the DBSCAN algorithm as an example, the algorithm identifies core points, boundary points, and noise points in the data by defining two parameters (ε and MinPts), and constructs clusters based on the core points. In the application of tunnel gas monitoring, the computer system can regard each cluster point as a data point, and its confidence value can be considered as a weight or auxiliary information (although DBSCAN itself does not directly use weights). Then, according to the actual situation of the tunnel and the characteristics of the data, set appropriate ε and MinPts values, and run the DBSCAN algorithm to identify the clustering area in the data. Specifically, the DBSCAN algorithm first finds all core points (that is, points with at least MinPts points in the ε neighborhood). Then, starting from any core point, find all points that are density-reachable from the point to form a cluster. Then, starting from the core point that has never been visited, find the next cluster until all core points have been visited. Finally, the remaining non-core points (i.e., noise points) will be excluded from the clustering. For example, assume that in step S210, the computer system has obtained the location and confidence information of all cluster points in the abnormal data clustering matrix. Next, the system uses the DBSCAN algorithm to perform clustering operations. First, the system sets the values ​​of ε and MinPts according to the size of the tunnel, the range of changes in gas concentration, and the distribution of historical abnormal data. Then, the system traverses all cluster points, finds all core points, and builds clusters based on these core points. In the process of building clusters, the system determines whether they are density-reachable based on the Euclidean distance between cluster points. Finally, the system identifies multiple clustering areas, each of which contains a group of cluster points with similar confidence and location characteristics, representing different abnormal sources or abnormal patterns in the tunnel.

[0069] As an implementation mode, step S400, performing an abnormality identification operation on each sub-tunnel gas monitoring data set and the tunnel gas monitoring data set in sequence, and obtaining a first abnormality identification result corresponding to each sub-tunnel gas monitoring data set and the tunnel gas monitoring data set, may specifically include:

[0070] For any sub-tunnel gas monitoring data set, perform the following steps:

[0071] Step S410: performing a multi-level characterization information extraction operation on the sub-tunnel gas monitoring data set to obtain a plurality of characterization information with different intensities corresponding to the sub-tunnel gas monitoring data set;

[0072] Step S420: performing a first abnormality recognition operation on a plurality of characterization information with different strengths to obtain a first recognition result corresponding to each characterization information with different strengths;

[0073] Step S430: performing a second abnormality recognition operation on each first recognition result to obtain a second recognition result corresponding to each first recognition result, wherein the recognition granularity of the second abnormality recognition operation is greater than the recognition granularity of the first abnormality recognition operation;

[0074] Step S440: taking the second recognition result as the first abnormal recognition result.

[0075] In the embodiment of the present application, the tunnel gas monitoring data set contains a large amount of spatiotemporal information about gas concentration, which is often highly complex and nonlinear. In order to extract useful representation information from these complex data, the computer system needs to perform multi-level and multi-scale feature extraction operations. This process is similar to the layer-by-layer abstract understanding of images by the human visual system, which aims to gradually extract high-level feature representations from the raw data.

[0076] In step S410, the computer system adopts a multi-level representation information extraction method, which can be understood as an extension of multi-scale feature extraction. Specifically, the system can perform preliminary data preprocessing on the sub-tunnel gas monitoring data set, including data cleaning, normalization and other operations to ensure the effectiveness of subsequent feature extraction. Then, the system uses a feature encoder to perform multi-level feature extraction. The feature encoder can be a complex neural network structure, such as a convolutional neural network (CNN), a recurrent neural network (RNN) or its variants (such as LSTM, GRU), etc. The specific selection depends on the characteristics of the data and the requirements of the task. In the embodiment of the present application, since the data contains both time series and spatial distribution information, a hybrid network structure combining CNN and RNN can be adopted. The feature encoder usually contains multiple levels (or levels), each of which is responsible for extracting features of a specific scale. For example, in CNN, the shallow convolution layer may be responsible for extracting low-level features such as edges and textures, while the deep convolution layer can capture more complex shapes, patterns and other high-level features. In RNN, the hidden states at different time steps represent the feature representations of time series data at different time scales.

[0077] In order to achieve multi-scale feature extraction, the feature encoder can adopt a variety of strategies, such as using convolution kernels of different sizes, setting different pooling steps, introducing pyramid structures, etc. These strategies help the system capture the change information of different scales in the data, so as to understand the data more comprehensively.

[0078] For example, assume that the sub-tunnel gas monitoring data set contains a series of time series data, and each time point corresponds to the gas concentration reading at different locations in the tunnel. In step S410, the computer system uses a hybrid network structure combining CNN and LSTM as a feature encoder.

[0079] After obtaining multi-level representation information, anomaly identification operations are performed on this information to preliminarily screen out data areas that may contain anomalies. The first anomaly identification operation is the first step in this process, which aims to quickly locate potential anomalies or abnormal areas and provide direction for subsequent in-depth analysis.

[0080] In step S420, the computer system adopts an anomaly identification method based on classification or regression. The choice of specific method depends on the nature of the task and the characteristics of the data. In the embodiment of the present application, since the goal is to identify areas with abnormally elevated gas concentrations, classification methods (such as support vector machines SVM, random forest RF, etc.) or anomaly detection algorithms (such as isolation forests, local anomaly factors LOF, etc.) can be used. For each representation information (or feature vector) in the multi-level representation information set, the system will input it into the anomaly identification model for prediction. The model will calculate an anomaly score or anomaly label based on the input feature vector, indicating whether there is an anomaly in the data area corresponding to the feature vector.

[0081] For example, it is assumed that in step S410, the computer system has obtained a multi-level characterization information set of the sub-tunnel gas monitoring data set. In step S420, the system uses an anomaly recognition model based on random forest to perform the first anomaly recognition operation. Although the first anomaly recognition operation can quickly locate potential abnormal areas, it may not meet the requirements for abnormal location accuracy due to its coarse recognition granularity (i.e., the identified abnormal area may be large and not accurate enough). In order to further improve the accuracy and precision of abnormal recognition, the computer system needs to perform a second anomaly recognition operation. In step S430, the computer system uses a more sophisticated abnormal recognition method, which usually has a higher recognition granularity. Specifically, the system can further analyze and process each abnormal area in the first anomaly recognition result to extract more specific abnormal features and perform a second recognition based on these features. In order to achieve the second anomaly recognition operation, the computer system can introduce more complex machine learning models or algorithms, such as deep learning models, integrated learning models, etc. These models usually have stronger feature learning capabilities and more complex decision boundaries, and can better capture subtle changes in the data.

[0082] In addition, the system can also use some post-processing technologies to improve the precision of anomaly recognition, such as region segmentation, local search, feature recalibration, etc. These technologies help the system to further narrow the scope of the abnormal area based on the initial anomaly recognition results and improve the accuracy of anomaly positioning.

[0083] For example, assuming that in step S420, the computer system has obtained the first anomaly recognition result of the sub-tunnel gas monitoring data set through the random forest model. In step S430, the system uses a second anomaly recognition model based on deep learning to further improve the precision of anomaly recognition.

[0084] The deep learning model may be a hybrid network structure combining a convolutional neural network (CNN) and a recurrent neural network (RNN), which is designed to capture both spatial and temporal features of the data. Specifically, the model can perform local feature extraction operations on each abnormal region in the first anomaly recognition result, and use CNN to capture the spatial features (such as shape, texture, etc.) in the region. Then, the model uses RNN to process the extracted local feature sequence to capture the dynamic change characteristics in the time series data. After the feature extraction is completed, the model inputs these features into a fully connected layer (or classifier) ​​for anomaly classification. The fully connected layer calculates the probability distribution of each abnormal region belonging to different abnormal categories based on the input features, and selects the category with the highest probability as the final anomaly recognition result. In order to further improve the precision of anomaly recognition, the system can also use some post-processing techniques. For example, after obtaining the anomaly recognition result, the system can perform a region segmentation operation on each abnormal region, divide the large region into multiple small regions, and perform independent anomaly recognition on each small region. This can not only improve the accuracy of anomaly location, but also help the system understand the distribution law and change trend of abnormal data more accurately. After the first anomaly recognition operation and the second anomaly recognition operation, the computer system obtains two different levels of anomaly recognition results. In order to form a comprehensive understanding of the sub-tunnel gas monitoring data set and the overall tunnel gas monitoring data set, the system needs to integrate the recognition results of these two levels.

[0085] In step S440, the computer system adopts a reasonable integration strategy to merge the first abnormal identification results and the second abnormal identification results. The choice of specific strategies depends on the requirements of the task and the characteristics of the data. In the embodiment of the present application, since the goal is to improve the accuracy and precision of abnormal identification, a weighted integration or decision fusion method can be used to merge the two levels of recognition results. The weighted integration method is a simple integration strategy, which assigns different weights to the first abnormal identification results and the second abnormal identification results according to their reliability and importance, and sums or averages the weighted results to obtain the final recognition result. The decision fusion method is more complicated, and it can introduce some additional decision rules or logic to comprehensively evaluate the recognition results of the two levels, and make the final decision based on these rules or logic.

[0086] For example, assume that in step S430, the computer system has obtained the re-anomaly recognition result of the sub-tunnel gas monitoring data set through the deep learning model. In step S440, the system adopts a weighted integration method to merge the first anomaly recognition result and the re-anomaly recognition result. Specifically, the system can assign different weights to them according to the reliability evaluation of the two levels of recognition results. For example, since the re-anomaly recognition operation usually has a higher recognition granularity and fineness, the system can assign a higher weight to it. Then, the system performs a weighted sum or average operation on the two levels of recognition results to obtain the final recognition result. In the weighted integration process, some additional factors can also be considered to optimize the integration effect.

[0087] As an implementation method, the multi-level characterization information extraction operation is performed based on a feature encoder, which includes a filter component, one or more first sub-feature encoders and one or more second sub-feature encoders with the same architecture; the first sub-feature encoder and the second sub-feature encoder both include multiple hierarchical components connected in sequence. Step S410, performing a multi-level characterization information extraction operation on the sub-tunnel gas monitoring data set to obtain multiple characterization information with different intensities corresponding to the sub-tunnel gas monitoring data set, including:

[0088] Step S411: Retrieving a filter component to perform a filtering operation according to the sub-tunnel gas monitoring data set to obtain a filtering operation result of the sub-tunnel gas monitoring data set;

[0089] Step S412: according to the filtering operation result, multiple hierarchical components connected in sequence in the first sub-feature encoder are retrieved for multi-stage processing to obtain the multi-stage processing result of each hierarchical component in the first sub-feature encoder;

[0090] Step S413: according to the filtering operation result and the multi-level processing result of each hierarchical component in the first sub-feature encoder, multiple hierarchical components in the second sub-feature encoder are retrieved for multi-level processing to obtain the multi-level processing result of each hierarchical component in the second sub-feature encoder;

[0091] Step S414: The multi-level processing results of each hierarchical component in the first sub-feature encoder and the multi-level processing results of each hierarchical component in the second sub-feature encoder are used as multiple representation information with different intensities corresponding to the sub-tunnel gas monitoring data set.

[0092] In the embodiment of the present application, the tunnel gas monitoring data set usually contains a large amount of time series and spatial distribution information. These data may be noisy, redundant or irregular in their original form, and may not work well when directly used for feature extraction. Therefore, before extracting multi-level representation information, the data needs to be preprocessed to eliminate noise, smooth the data, and preliminarily extract useful information components.

[0093] In step S411, the computer system retrieves the filter component to perform filtering operations based on the sub-tunnel gas monitoring data set. The filter component is a module specially designed for data preprocessing. It can suppress noise and interference components in the data through mathematical transformation or signal processing technology, while retaining or enhancing useful signal features. The choice of filtering method depends on the characteristics of the data and the requirements of the task. In the embodiment of the present application, commonly used filtering methods include low-pass filtering, high-pass filtering, band-pass filtering, etc. Low-pass filtering is suitable for removing high-frequency noise and retaining low-frequency trends; high-pass filtering is the opposite, suitable for removing low-frequency background noise and retaining high-frequency change information; band-pass filtering can extract signal features within a specific frequency range.

[0094] For example, suppose that the sub-tunnel gas monitoring data set contains a series of time series data, and each time point corresponds to the gas concentration reading at different locations in the tunnel. In order to eliminate high-frequency noise in the data and retain low-frequency trend information, the computer system uses a low-pass filter as a filtering component. The filter distinguishes high-frequency noise from low-frequency signals by setting a cutoff frequency, attenuating or suppressing the components above the cutoff frequency, and thus obtains smoothed time series data as the result of the filtering operation. After the filtering operation, the data quality of the sub-tunnel gas monitoring data set has been initially improved. However, these data are still in a relatively primitive state and have not yet been converted into feature representations suitable for subsequent anomaly recognition tasks. Therefore, it is necessary to further extract multi-level and multi-scale features in the data through feature encoders.

[0095] The first sub-feature encoder is an important part of the feature encoder, which is responsible for extracting primary-level feature information from the results of the filtering operation. The encoder contains multiple hierarchical components (or hierarchical networks) connected in sequence, each of which has a certain data processing capability, and its size (such as convolution kernel size, pooling window size, etc.) gradually decreases to achieve multi-scale feature extraction.

[0096] In step S412, the computer system calls multiple hierarchical components in the first sub-feature encoder for multi-level processing based on the filtering operation results. This process is similar to the forward propagation process in deep learning. The data is transmitted layer by layer starting from the input layer, and a new feature representation is generated after being processed by each hierarchical component until the output layer. Each hierarchical component undertakes a specific data processing task. For example, in a convolutional neural network (CNN), the convolution layer extracts local spatial features through sliding windows and filtering operations; the pooling layer reduces the spatial size of the feature map and retains important information through downsampling operations; and the fully connected layer is responsible for integrating the extracted features and mapping them to the output space. In the first sub-feature encoder, these hierarchical components may appear in different combinations to adapt to different data characteristics and task requirements.

[0097] For example, assume that the first sub-feature encoder is a CNN-based structure, including two convolutional layers and a pooling layer as hierarchical components. In step S412, the computer system first inputs the result of the filtering operation into the first convolutional layer for feature extraction. The convolutional layer uses multiple convolution kernels of different sizes to perform a sliding window operation on the data to generate multiple feature maps as preliminary feature representations. These feature maps are then input into the pooling layer for downsampling operations to reduce the spatial size of the feature maps and retain important information. Finally, the feature maps processed by the pooling layer are again input into the second convolutional layer for further feature extraction and integration. Through this process, the first sub-feature encoder generates a series of primary-level feature representations as multi-level processing results.

[0098] After obtaining the multi-level processing results of the first sub-feature encoder, the computer system needs to further extract deeper and more abstract feature information. This feature information has higher value and significance for subsequent anomaly recognition tasks. Therefore, it is necessary to introduce the second sub-feature encoder for further multi-level processing.

[0099] Similar to the first sub-feature encoder, the second sub-feature encoder also includes multiple hierarchical components connected in sequence. However, the size, parameters and configuration of these hierarchical components may be different from those of the first sub-feature encoder to meet the needs of deeper feature extraction. In addition, the second sub-feature encoder may also receive additional input information from the filtering operation results and the multi-level processing results of the first sub-feature encoder to comprehensively consider the feature representations at different levels. In step S413, the computer system calls multiple hierarchical components in the second sub-feature encoder for multi-level processing based on the filtering operation results and the multi-level processing results of each hierarchical component in the first sub-feature encoder. This process is similar to step S412, but the data source and level processed are deeper and more complex. The second sub-feature encoder generates a deeper feature representation as a multi-level processing result through further feature extraction, integration and abstraction operations.

[0100] For example, assume that the second sub-feature encoder is also a CNN-based structure but is different from the first sub-feature encoder. It may contain more convolutional layers and pooling layers and more complex connection methods (such as residual connections, jump connections, etc.) to enhance the network's feature extraction ability and training stability. In step S413, the computer system first passes the filtering operation results and the multi-level processing results of the first sub-feature encoder as input to the second sub-feature encoder. Then, these data are processed in multiple levels by multiple hierarchical components in the second sub-feature encoder: the convolution layer extracts deeper local spatial features; the pooling layer reduces the spatial size of the feature map and retains important information; other possible components (such as activation layers, normalization layers, etc.) are used to enhance the nonlinear representation ability and numerical stability of the features. Finally, the second sub-feature encoder generates a series of deeper and more abstract feature representations as multi-level processing results.

[0101] After multi-level processing by the first sub-feature encoder and the second sub-feature encoder, the computer system obtains feature representations at multiple levels and scales. These feature representations each capture different aspects and different levels of information in the data, and are of great value for subsequent anomaly identification tasks. However, in order to form a comprehensive data representation for subsequent analysis and processing, these feature representations need to be integrated. The strategy for integrating representation information depends on the requirements of the task and the characteristics of the data. In an embodiment of the present application, it may be necessary to comprehensively consider feature representations of different levels and scales to form the final data representation. A common strategy is to perform operations such as concatenation or weighted summation on all feature representations to generate a unified feature vector or feature matrix as the integrated representation information.

[0102] For example, assume that the multi-level processing results of the first sub-feature encoder and the second sub-feature encoder are obtained in steps S412 and S413, respectively. These results include feature representations at multiple levels and scales (such as feature maps at different levels, hidden states at different time steps, etc.). In step S414, the computer system uses a feature splicing strategy to integrate these feature representations: first, all feature representations are arranged and combined in a certain order to form a long vector or a two-dimensional matrix; then, as needed, this long vector or two-dimensional matrix can be further reduced in dimension or transformed to generate the final integrated representation information. This integrated representation information contains multi-level and multi-scale feature information in the sub-tunnel gas monitoring data set, which provides rich and effective data support for subsequent abnormality identification.

[0103] As an implementation manner, step S412, based on the filtering operation result, calls a plurality of sequentially connected hierarchical components in the first sub-feature encoder for multi-stage processing to obtain the multi-stage processing result of each hierarchical component in the first sub-feature encoder, which may specifically include:

[0104] Step S4121: according to the filtering operation result, the hierarchical component C1 in the first sub-feature encoder is retrieved for multi-level processing to obtain the multi-level processing result R1 of the first sub-feature encoder;

[0105] Step S4122: Iterate x to perform the following steps: call the hierarchical component C in the first sub-feature encoder according to the multi-level processing result Rx of the first sub-feature encoder x+1 Perform multi-level processing to obtain the multi-level processing result R of the first sub-feature encoder x+1 ; Where x∈[1,M-1], M is the number of multiple hierarchical components connected in sequence.

[0106] In order to make the solution of the present application easier to understand, the meanings of the terms in English and Chinese combined with numerical labels mentioned above and subsequently are explained here.

[0107] As mentioned above, in the hierarchical component C1, C is the abbreviation of components, and the subscript 1 indicates the order, that is, the hierarchical component C1 indicates the "1" hierarchical component; similarly, in the multi-level processing result R1, R is the abbreviation of result, and the subscript 1 indicates the order, that is, the multi-level processing result R1 indicates the "1" multi-level processing result, and the multi-level processing result R x+1 In , R is the abbreviation of Result, and the subscript x+1 indicates the order, that is, the multi-level processing result R1 indicates the "x+1"th multi-level processing result; in the addition result A1, A is the abbreviation of Addition result, and the subscript 1 indicates the order, that is, the addition result A1 indicates the "1"th addition result. And so on.

[0108] In the embodiment of the present application, after the filtering operation in step S411, the data quality of the sub-tunnel gas monitoring data set has been initially improved, and the noise and redundant information have been effectively suppressed. However, the data at this time is still in a relatively primitive state and has not yet been converted into a feature representation suitable for subsequent analysis. Therefore, in step S4121, the computer system will call the first grading component C1 in the first sub-feature encoder for initial grading processing based on the filtering operation result.

[0109] As the entry component of the first sub-feature encoder, the hierarchical component C1 is responsible for extracting preliminary features from the filtering operation results. Its specific implementation may rely on a variety of machine learning algorithms or neural network structures, such as convolutional layers, pooling layers, fully connected layers, etc. In the embodiment of the present application, since the data contains both time series and spatial distribution information, C1 is likely to be a convolutional layer used to capture local spatial features in the data.

[0110] In step S4121, the computer system passes the result of the filtering operation as input to the hierarchical component C1. C1 performs a sliding window operation on the input data through its internal computing unit (such as a convolution kernel) to extract the feature information of the local area. These feature information are usually represented in the form of feature maps, where each feature map corresponds to the feature representation of the input data at a specific perspective. For example, assume that the hierarchical component C1 is a convolution layer with a 3×3 convolution kernel. In step S4121, the computer system passes the result of the filtering operation (a time series data in the form of a two-dimensional matrix) as input to C1. C1 traverses the input data through its 3×3 convolution kernel, and each slide calculates the sum of the dot product of the elements in the convolution kernel coverage area and the convolution kernel weight (plus the bias term and then passes the activation function) to generate a new feature map element. Through this process, C1 generates a series of feature maps as the multi-level processing result R1, which captures the feature information of different local areas in the input data.

[0111] After obtaining the initial hierarchical processing result R1, the computer system needs to continue to further process R1 through other hierarchical components in the first sub-feature encoder to extract deeper and more abstract feature information. This process is iterative, and each hierarchical component is further processed based on the processing result of the previous hierarchical component. As the iteration proceeds, the size of the hierarchical component (such as convolution kernel size, pooling window size, etc.) can be gradually reduced. This size change helps capture feature information of different scales: larger hierarchical components can capture larger local area features, while smaller hierarchical components can capture finer detail features. This multi-scale feature extraction strategy is of great significance for improving the accuracy and robustness of subsequent anomaly recognition.

[0112] In step S4122, the computer system iterates the variable x (x starts from 1 and ends at M-1, where M is the total number of hierarchical components in the first sub-feature encoder). In each iteration, the system will calculate the value of the multi-level processing result R according to the current multi-level processing result R. x Retrieve the next hierarchical component C x+1 Processing. C x+1 R x Perform processing similar to C1 (but may have different parameters and configurations) to generate a new multi-level processing result R x+1 .

[0113] For example, assume that the first sub-feature encoder contains three hierarchical components: C1 (convolutional layer), C2 (convolutional layer + pooling layer), and C3 (fully connected layer). In step S4121, the system has generated a multi-level processing result R1 through C1. Next, in the first iteration of step S4122 (x=1), the system passes R1 as input to C2. C2 first performs further feature extraction operations on R1 through its internal convolutional layer to generate an intermediate result; then downsamples the intermediate result through the pooling layer to reduce the spatial size of the feature map and retain important information; and finally generates a multi-level processing result R2. In the second iteration (x=2), the system passes R2 as input to C3. Since C3 is a fully connected layer, it no longer performs a sliding window operation like a convolutional layer, but flattens R2 into a one-dimensional vector (or feature vector) and performs a fully connected calculation. The fully connected layer maps the feature vector to a new feature space through its internal weight matrix and bias term to generate a multi-level processing result R3. R3, as the final output of the first sub-feature encoder, contains multi-level and multi-scale feature information in the input data, providing rich data support for subsequent anomaly recognition tasks.

[0114] During the iteration process, each hierarchical component may contain multiple computing units (such as multiple convolution kernels, multiple pooling windows, etc.) to extract different aspects of feature information. In addition, in order to enhance the network's feature extraction capabilities and training stability, some additional components or technologies such as activation functions, batch normalization, residual connections, etc. may be introduced. The specific implementation of these components or technologies depends on the requirements of the task and the characteristics of the data, and will not be repeated here.

[0115] As an implementation manner, step S413, based on the filtering operation result and the multi-level processing result of each hierarchical component in the first sub-feature encoder, multiple hierarchical components in the second sub-feature encoder are called for multi-level processing to obtain the multi-level processing result of each hierarchical component in the second sub-feature encoder, which may specifically include:

[0116] Step S4131: Combine the filtering operation result and the hierarchical component C of the first sub-feature encoder x Add the multi-level processing results to obtain the addition result A1;

[0117] Step S4132: according to the addition result A1, the hierarchical component C1 in the second sub-feature encoder is called to perform multi-level processing to obtain the multi-level processing result R1 of the second sub-feature encoder;

[0118] Step S4133: Iterate x to perform the following steps: convert the multi-stage processing result R of the first sub-feature encoder into x and the multi-stage processing result R of the second sub-feature encoder x Add and obtain the addition result A x+1 , according to the addition result A x+1 Call the classification component C in the second sub-feature encoder x+1 Perform multi-level processing to obtain the multi-level processing result R of the second sub-feature encoder x+1 .

[0119] In step S412 of the present embodiment, the first sub-feature encoder has performed multi-level processing on the filtering operation result through multiple hierarchical components inside it, and generated a series of feature representations at different levels (i.e., multi-level processing results R x ). These feature representations each capture different aspects and levels of information in the data. However, in order to understand the data more comprehensively and extract deeper features, it is necessary to fuse the results of the filtering operation with the multi-level processing results of the first sub-feature encoder.

[0120] In step S4131, the computer system first adds the result of the filtering operation to the multi-level processing result R1 of the first hierarchical component C1 of the first sub-feature encoder. This addition operation can be regarded as a feature fusion strategy, which combines the global information in the original data with the local feature information extracted by the first sub-feature encoder to form an addition result A1 containing richer information. It should be noted that the addition operation here may not be a simple element-level addition, but a weighted addition based on the importance and relevance of the features or other more complex fusion methods. However, in order to simplify the explanation, we assume that the element-level addition method is adopted here.

[0121] For example, suppose the result of the filtering operation is a two-dimensional matrix F, which represents the result of filtering the original time series data in the tunnel gas monitoring data set. The multi-level processing result R1 of the first hierarchical component C1 of the first sub-feature encoder is also a two-dimensional matrix, which represents the preliminary feature information extracted by C1 from F. In step S4131, the computer system performs an element-wise addition operation on F and R1 to obtain the addition result A1. Specifically, if the elements of F and R1 at the same position are f ij and r ij (where i and j represent the row and column indices of the matrix respectively), then the element a at the position of the addition result A1 is ij f ij With r ij The sum.

[0122] After obtaining the addition result A1 of the preliminary feature fusion, the computer system needs to further extract deeper feature information through the hierarchical components in the second sub-feature encoder. Different from the first sub-feature encoder, the second sub-feature encoder may adopt different network structures, parameter configurations or feature extraction strategies to meet the needs of deeper feature extraction.

[0123] In step S4132, the computer system retrieves the first hierarchical component C1 in the second sub-feature encoder for multi-level processing according to the addition result A1. C1 may be a convolutional layer, a pooling layer, a fully connected layer, or other types of neural network layers, depending on the design of the second sub-feature encoder. Regardless of the type of hierarchical component used, the purpose is to further extract and transform A1 to generate the initial multi-level processing result R1 of the second sub-feature encoder.

[0124] For example, assume that the first hierarchical component C1 of the second sub-feature encoder is a convolution layer with a 3×3 convolution kernel. In step S4132, the computer system passes the addition result A1 as input to C1. C1 performs a sliding window operation on A1 through its 3×3 convolution kernel, and each slide calculates the sum of the dot product of the elements in the convolution kernel coverage area and the convolution kernel weight (after adding the bias term and passing the activation function) to generate a new feature map element. Through this process, C1 generates a series of feature maps as the initial multi-level processing results R1 of the second sub-feature encoder. These feature maps capture deeper feature information of different local areas in A1.

[0125] After obtaining the initial multi-level processing result R1 of the second sub-feature encoder, the computer system needs to continue to iteratively fuse the subsequent multi-level processing results of the first sub-feature encoder with the current multi-level processing results of the second sub-feature encoder, and call the subsequent hierarchical components in the second sub-feature encoder for multi-level processing. This process will be repeated until all multi-level processing results of the first sub-feature encoder and all hierarchical components of the second sub-feature encoder are processed.

[0126] In each iteration, the computer system first converts the current multi-level processing result R of the first sub-feature encoder into x and the current multi-stage processing result R of the second sub-feature encoder x An addition operation is performed (here x represents the number of iterations or the index of the hierarchical component). Similar to the addition operation in step S4131, the addition operation here can also be regarded as a feature fusion strategy, which combines the feature information extracted by the first sub-feature encoder at different levels with the feature information extracted by the second sub-feature encoder at the current level to form an addition result A containing richer information. x+1 .

[0127] Get the addition result A x+1 Afterwards, according to A x+1 Call the next hierarchical component C in the second sub-feature encoder x+1 Multi-level processing. x+1 It may have different parameter configurations or feature extraction strategies from C1 to meet the needs of deeper feature extraction. x+1 The multi-level processing operation generates a new multi-level processing result R x+1 And update the current multi-stage processing result of the second sub-feature encoder.

[0128] For example, assume that the first sub-feature encoder includes three hierarchical components (C1, C2, C3) to generate multi-level processing results (R1, R2, R3), and the second sub-feature encoder also includes three hierarchical components (C1, C2, C3) for further processing. In the first iteration of step S4133 (x=1), the computer system adds R1 and R1 (note that R1 here is both the result of the first sub-feature encoder and the initial result of the second sub-feature encoder) to obtain the addition result A2. Then, according to A2, C2 in the second sub-feature encoder is called for multi-level processing to generate a new multi-level processing result R2 and update the current result of the second sub-feature encoder.

[0129] In the second iteration (x=2), the computer system adds R2 to the updated R2 to obtain the addition result A3. Then, based on A3, C3 in the second sub-feature encoder is called for multi-level processing to generate a new multi-level processing result R3. Since all the multi-level processing results of the first sub-feature encoder have been processed or all the hierarchical components of the second sub-feature encoder have been called (depending on the smaller one of the two), the iteration process ends. The final multi-level processing result R3, as the final output of the second sub-feature encoder, contains deeper and more detailed feature information in the input data, providing strong support for subsequent anomaly recognition tasks.

[0130] It should be noted that during the iteration process, each hierarchical component may contain multiple computing units (such as multiple convolution kernels, multiple pooling windows, etc.) to extract different aspects of feature information. In addition, in order to enhance the network's feature extraction capabilities and training stability, some additional components or technologies such as activation functions, batch normalization, residual connections, etc. may be introduced. The specific implementation of these components or technologies depends on the requirements of the task and the characteristics of the data, and will not be repeated here.

[0131] As an implementation method, the grading component includes a standard grading component and a sliding grading component; based on this, step S4122, according to the multi-level processing result R of the first sub-feature encoder x Call the classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the multi-level processing result R of the first sub-feature encoder x+1 , which may include:

[0132] Step S41221: Based on the multi-stage processing result R of the first sub-feature encoder x Retrieve the standard classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the standard hierarchical processing result R of the first sub-feature encoder x+1 ;

[0133] Step S41222: Process the result R according to the standard classification of the first sub-feature encoder x+1 Call the sliding classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the sliding multi-level processing result R of the first sub-feature encoder x+1 , the sliding multi-level processing result R of the first sub-feature encoder is obtained x+1 , as the multi-stage processing result R of the first sub-feature encoder x+1 .

[0134] In the embodiment of the present application, step S4122 introduces a combination strategy of a standard grading component and a sliding grading component to process the multi-level processing result R of the first sub-feature encoder. x Further multi-level processing is performed to extract deeper and more refined feature information. This process not only enhances the flexibility and diversity of feature extraction, but also improves the accuracy and robustness of subsequent anomaly identification.

[0135] In step S412, as the iteration proceeds, the computer system has performed preliminary multi-level processing on the filtering operation results through multiple hierarchical components in the first sub-feature encoder, generating a series of multi-level processing results R x (x represents the number of iterations or the index of the hierarchical component). In order to continue to dig deeper into the feature information in the data, the system needs to call the next hierarchical component C x+1 R x In step S41221, this task is performed by the standard grading component C x+1 bear.

[0136] The standard hierarchical component is one of the common components in the feature extraction network. It usually has a fixed structure and parameter configuration, and is used to perform standard feature extraction and transformation operations on the input data. In the embodiment of the present application, the standard hierarchical component may be a convolution layer, a pooling layer, or a combination thereof. For example, a convolution layer containing a 3×3 convolution kernel and a ReLU activation function can be regarded as a standard hierarchical component.

[0137] In step S41221, the computer system generates a first sub-feature encoder based on the multi-level processing result R x Retrieve standard grading component C x+1 Specifically, C x+1 The input data (i.e. R x ) performs a series of preset computational operations, such as convolution, pooling, activation, etc., to generate new feature representations. These operations are usually designed to extract local features in the input data, reduce data dimensions, increase data nonlinearity, etc.

[0138] For example, assuming the standard graded component C x+1 is a convolutional layer containing a 3×3 convolution kernel, a stride of 1, and a padding of 1, followed by a ReLU activation function. In step S41221, the computer system converts R x Passed as input to C x+1 . C x+1 First, R is rectified through its 3×3 convolution kernel xPerform a sliding window operation, and each time the convolution kernel is sliding, the sum of the dot products of the elements in the convolution kernel coverage area and the convolution kernel weight is calculated (after adding the bias term and passing the ReLU activation function), generating a new feature map element. Through this process, C x+1 A series of new feature maps are generated as the standard classification processing results R x+1 These feature maps capture the R x Deeper feature information of different local regions in the

[0139] After obtaining the standard grading result R x+1 After that, the computer system does not stop the feature extraction process, but further calls the sliding classification component C x+1 R x+1 Multi-level processing is performed. The introduction of this step aims to extract feature information different from the standard grading component through the special structure and processing strategy of the sliding grading component, thereby increasing the diversity and richness of feature extraction.

[0140] The sliding classification component is a feature extraction component with a sliding window mechanism or similar features, which can perform more flexible and diverse feature extraction operations on the input data. In an embodiment of the present application, the sliding classification component may be a convolution layer with a variable convolution kernel size, step size or padding, or a convolution layer that combines advanced techniques such as dilated convolution and deformable convolution. These techniques allow the network to dynamically adjust the size or shape of the receptive field during the feature extraction process to better capture the spatial distribution characteristics of the data.

[0141] In step S41222, the computer system processes the result R according to the standard classification. x+1 Retrieve sliding grading component C x+1 Different from the standard classification component, the sliding classification component may adopt more complex calculation strategies and parameter configurations to process the input data. For example, it may use convolution kernels of different sizes to extract multi-scale features, or use dilated convolution to increase the receptive field without increasing the amount of calculation. These operations are designed to generate feature representations that are different from the results of standard classification processing to enrich the diversity of feature information. For example, suppose the sliding classification component C x+1 is a convolution layer with a dilated convolution feature, whose convolution kernel size is 3×3 but the dilation ratio is 2 (which means that the actual receptive field size of the convolution kernel on the input data is 5×5 but only 9 parameters are used). In step S41222, the computer system converts R x+1 Passed as input to C x+1 . C x+1 Through its hole convolution kernel R x+1Perform a sliding window operation, and each time the sliding window calculates the sum of the dot products of the elements in the area covered by the dilated convolution kernel and the convolution kernel weight (after adding the bias term and passing the activation function), to generate a new feature map element. Due to the characteristics of dilated convolution, C x+1 It is possible to increase the receptive field size without increasing the number of parameters, thereby capturing R x+1 Through this process, C x+1 A series of new feature maps are generated as the sliding multi-level processing results R x+1 '. Ultimately, the computer system will R x+1 'As the multi-level processing result R of the first sub-feature encoder x+1 Output for subsequent steps.

[0142] The multi-level processing result Rx of the first sub-feature encoder is further multi-level processed by introducing a combination strategy of standard grading components and sliding grading components. This process not only enhances the flexibility and diversity of feature extraction, but also improves the accuracy and robustness of subsequent anomaly recognition.

[0143] As an implementation method, the standard grading component includes a first internal focusing module, a normalization module and a feedforward module; Step S41221, according to the multi-stage processing result Rx of the first sub-feature encoder, the standard grading component C in the first sub-feature encoder is retrieved. x+1 Perform multi-level processing to obtain the standard hierarchical processing result R of the first sub-feature encoder x+1 , which may include:

[0144] Step S412211: Based on the multi-stage processing result R of the first sub-feature encoder x Retrieving a standardization module to perform a standardization operation and obtain a first standardization operation result;

[0145] Step S412212: calling the first internal focusing module to perform an internal focusing operation according to the standardized operation result to obtain a first internal focusing operation result;

[0146] Step S412213: The multi-level processing result R of the first sub-feature encoder is x Adding the result of the first internal focusing operation to obtain a first internal focusing module addition result;

[0147] Step S412214: calling the standardization module to perform a standardization operation according to the addition result of the first internal focusing module to obtain a second standardization operation result;

[0148] Step S412215: calling the feedforward module to perform detection according to the second standardization operation result to obtain a first recognition result;

[0149] Step S412216: Add the first recognition result and the first internal focusing module addition result, and use the obtained first addition result as the standard classification processing result R of the first sub-feature encoder. x+1 .

[0150] In the embodiment of the present application, the standardization operation helps to eliminate the dimensional differences between different features, making the subsequent processing process more stable and efficient. In step S412211, the computer system generates the multi-level processing result R of the first sub-feature encoder according to the multi-level processing result R of the first sub-feature encoder. x Call the standardization module to perform standardization operations.

[0151] The normalization module usually contains a series of calculation steps to transform the input data into a distribution with a specific mean and variance. A common normalization method is batch normalization, which accelerates the training process of the neural network and improves the generalization ability of the model by normalizing small batches of data. However, in the specific scenario of the tunnel gas monitoring and early warning system, it may be necessary to select a more appropriate normalization method based on the characteristics of the data and the requirements of the task.

[0152] For example, assume that the standardization module uses a simple Z-score standardization method, that is, each feature dimension is removed from the mean and variance is normalized.

[0153] In step S412211, the computer system first calculates R x The mean and standard deviation of each feature dimension are then calculated using the above formula. x Perform normalization to obtain the first normalization operation result, which will serve as the input for the subsequent internal focusing operation.

[0154] In the field of deep learning, the self-attention mechanism enhances the model's feature extraction capability by calculating the correlation between different positions within the input data. In step S412212, the computer system calls the first internal focusing module (i.e., a self-attention module) to perform an internal focusing operation based on the standardized operation result to obtain important feature information within the input data.

[0155] For example, the self-attention module includes three key steps: the calculation of query, key and value, and the assignment of attention weights. Specifically, the module first maps the input data to three different spaces of query, key and value through linear transformation; then calculates the similarity between query and key as the attention weight; finally, the value is weighted and summed according to the attention weight to obtain the output of self-attention.

[0156] For example, assuming that the first internal focusing module adopts a multi-head self-attention mechanism (Multi-HeadAttention), it can calculate self-attention in parallel in different representation subspaces, thereby capturing richer feature information in the input data. In step S412212, the computer system first maps the result of the first normalization operation to the query, key, and value spaces through a linear transformation; then calculates the dot product similarity between the query and the key, and normalizes it through the softmax function to obtain the attention weight; finally, the value is weighted and summed according to the attention weight to obtain the first internal focusing operation result. This result will be used as one of the inputs for subsequent steps.

[0157] After obtaining the result of the first internal focus operation, in order to retain part of the information in the original input data and combine it with the feature information extracted by the self-attention mechanism, the computer system can perform an addition operation on the two. This step helps to enhance the diversity and robustness of the features. In step S412213, the computer system adds the multi-level processing result R of the first sub-feature encoder to the original input data. x The result of the first internal focusing operation is added.

[0158] The addition operation is usually element-wise, that is, the elements at corresponding positions are added. This operation is simple and efficient, and can directly fuse feature information from two different sources.

[0159] For example, in step S412213, the computer system converts R x and the result of the first inner focus operation (both have the same shape and dimensions). Specifically, if R x The elements at the same position as the result of the first internal focus operation are r ij and a ij (where i and j represent the row and column indices of the matrix respectively), then the element at that position of the addition result is r ij with a ij This process generates the sum of the first internal focus module, which contains both the original input data and the feature information extracted by the self-attention mechanism.

[0160] After adding the original input data and the feature information extracted by the self-attention mechanism, in order to maintain the stability of the data and the efficiency of subsequent processing, it is usually necessary to re-standardize the addition result. This step helps to eliminate the noise and deviation that may be introduced in the addition process, and makes the data distribution more in line with the requirements of the subsequent processing module. In step S412214, the computer system calls the standardization module according to the addition result of the first internal focusing module to perform a re-standardization operation.

[0161] Similar to the normalization operation in step S412211, the normalization operation may also use batch normalization, Z-score normalization or other more appropriate normalization methods. The specific choice depends on the characteristics of the data and the requirements of the task.

[0162] The feedforward module is a common structure in deep neural networks. It enhances the model's feature extraction and conversion capabilities through a combination of multi-layer linear transformations and nonlinear activation functions. In step S412215, the computer system calls the feedforward module to perform a detection operation based on the second standardization operation result to obtain a deeper feature representation or a preliminary classification / regression result.

[0163] The feedforward module usually contains multiple hidden layers and an output layer, and each hidden layer contains linear transformation (such as fully connected layer) and nonlinear activation function (such as ReLU, Sigmoid, etc.). Data is passed layer by layer in the feedforward module, and is mapped to a new feature space or output space after being processed by linear transformation and nonlinear activation function. For example, assume that the feedforward module contains two hidden layers and an output layer, and each hidden layer uses ReLU as an activation function. In step S412215, the computer system first passes the result of the second normalization operation as input to the first hidden layer; the first hidden layer generates a new feature representation through linear transformation and ReLU activation function; then this feature representation is passed to the second hidden layer for further processing; finally, the output of the second hidden layer is passed to the output layer to generate a first recognition result. This recognition result may be a feature vector, a probability distribution, or other forms of output depending on the requirements of the task.

[0164] After obtaining the first recognition result, in order to combine this result with the feature information previously extracted by the self-attention mechanism, the computer system can add the two together to generate the final standard classification processing result. This step helps to retain the advantages of feature information from two different sources and enhance the robustness of the final result. In step S412216, the computer system adds the first recognition result and the addition result of the first internal focus module to obtain the standard classification processing result R of the first sub-feature encoder. x+1 .

[0165] Similar to the addition operation in step S412213, the integration of the addition result is also at the element level, that is, the feature information from two different sources is added at the corresponding positions.

[0166] For example, in step S412216, the computer system performs an element-wise addition operation on the first recognition result and the result of adding the first inner focusing module (the two have the same shape and dimension). Specifically, if the elements at the same position of the first recognition result and the result of adding the first inner focusing module are p ij and ij Then the element at this position of the addition result is p ij With s ij This process generates the standard hierarchical processing result R of the first sub-feature encoder x+1 It contains the comprehensive information of the original input data, the feature information extracted by the self-attention mechanism, and the deep feature representation generated by the feedforward module, providing rich data support for subsequent processing steps.

[0167] As an implementation method, the sliding classification component includes a second internal focusing module, a normalization module and a feedforward module; based on this, step S41222, according to the standard classification processing result R of the first sub-feature encoder x+1 Call the sliding classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the sliding multi-level processing result R of the first sub-feature encoder x+1 , which may include:

[0168] Step S412221: Process the result R according to the standard classification of the first sub-feature encoder x+1 Retrieving the standardization module to perform standardization operation and obtain the third standardization operation result;

[0169] Step S412222: calling a second internal focusing module to perform an internal focusing operation according to the third normalization operation result to obtain a second internal focusing operation result;

[0170] Step S412223: The standard classification processing result R of the first sub-feature encoder is x+1 Adding the result of the second internal focusing operation to obtain a second internal focusing module addition result;

[0171] Step S412224: calling the standardization module to perform a standardization operation according to the addition result of the second inner focusing module to obtain a fourth standardization operation result;

[0172] Step S412225: calling the feedforward module to perform detection according to the fourth standardization operation result to obtain a second recognition result;

[0173] Step S412226: Add the second recognition result and the second inner focus module addition result, and use the obtained second addition result as the sliding multi-level processing result R of the first sub-feature encoder. x+1 .

[0174] In the embodiment of the present application, step S41222 is performed by sliding the grading component C x+1 The standard hierarchical processing result R of the first sub-feature encoder x+1 Further processing is performed to extract feature information that is different and complementary to the standard classification processing results. This process not only enhances the diversity of feature extraction, but also improves the accuracy and robustness of subsequent anomaly identification.

[0175] Before complex feature extraction and conversion, standardizing the input data helps eliminate the dimensional differences between different features, making the subsequent processing more stable and efficient. In step S412221, the computer system processes the standard classification result R of the first sub-feature encoder according to the standard classification result R of the first sub-feature encoder. x+1 The standardization module is called to perform a standardization operation to generate a data representation suitable for subsequent internal focusing operations. Similar to the standardization operation in step S412211, the standardization module in step S412221 may also use batch normalization, Z-score standardization, or other suitable standardization methods. The specific choice depends on the characteristics of the data and the requirements of the task. Regardless of the method used, the purpose is to convert the input data into a distribution form with a specific mean and variance for subsequent processing.

[0176] For example, assuming that the standardization module adopts the Z-score standardization method. In step S412221, the computer system first calculates R x+1 The mean and standard deviation of each feature dimension are then calculated using the Z-score standardization formula. x+1 The process is to subtract the mean of each feature dimension from the element of that dimension and divide it by the standard deviation. This process generates the result of the third standardization operation, which serves as the input of the subsequent internal focusing operation.

[0177] The second inner focusing module may be a self-attention module or its variant, which contains three key components: query, key, and value. These components map the input data to different spaces through linear transformations and calculate the similarity between the query and the key as the attention weight. Then, the values ​​are weighted summed according to the attention weights to obtain the output of the self-attention. Compared with the first inner focusing module in the standard hierarchical component, the second inner focusing module may adopt different parameter configurations, multi-head attention mechanisms, or other advanced techniques to enhance the diversity and flexibility of feature extraction.

[0178] For example, suppose that the second internal focus module adopts a multi-head self-attention mechanism. In step S412222, the computer system first maps the result of the third normalization operation to the query, key, and value spaces through a linear transformation. Then, the dot product similarity between the query and the key is calculated and normalized by the softmax function to obtain the attention weight. Then, the value is weighted and summed according to the attention weight to obtain the result of the second internal focus operation. This process allows the model to process R x+1 When focusing on the important feature information, it generates a feature representation containing this information.

[0179] After obtaining the second internal focusing operation result, in order to retain the original input data (i.e., the standard classification processing result R x+1 ) and combines it with the feature information extracted by the self-attention mechanism, and the computer system can add the two together. This step helps to enhance the diversity and robustness of features and provide richer data support for subsequent processing steps.

[0180] Similar to the addition operation in step S412213, the addition operation in step S412223 is also element-wise, that is, the elements at corresponding positions are added. This operation method is simple and efficient, and can directly merge feature information from two different sources.

[0181] For example, in step S412223, the computer system converts R x+1 Performs an element-wise addition operation on the result of the second inner focus operation (both have the same shape and dimensions). Specifically, if R x+1 The elements at the same position as the second inner focus operation result are r' ij and a' ij (where i and j represent the row and column indices of the matrix respectively), then the element at that position of the addition result is r' ij With a' ij This process generates the sum of the second internal focus module, which contains both the original input data and the feature information extracted by the self-attention mechanism.

[0182] After adding the original input data and the feature information extracted by the self-attention mechanism, in order to maintain the stability of the data and the efficiency of subsequent processing, it is usually necessary to normalize the addition result again. This step helps to eliminate the noise and bias that may be introduced in the addition process and makes the data distribution more in line with the requirements of the subsequent processing module.

[0183] Similar to the normalization operations in steps S412214 and S412221, the re-normalization operation in step S412224 may also use batch normalization, Z-score normalization, or other suitable normalization methods. The specific selection depends on the characteristics of the data and the requirements of the task.

[0184] For example, assuming that the Z-score standardization method is still used in the second standardization operation. In step S412224, the computer system first calculates the mean and standard deviation of the sum of the second internal focusing module on each feature dimension. Then, the Z-score standardization formula is applied to process the data to generate the fourth standardization operation result. This result will serve as the input of the subsequent feedforward module.

[0185] The feedforward module is a common structure in deep neural networks. It enhances the model's feature extraction and conversion capabilities through a combination of multi-layer linear transformations and nonlinear activation functions. In step S412225, the computer system calls the feedforward module to perform a detection operation based on the fourth standardization operation result to obtain a deeper feature representation or a preliminary classification / regression result.

[0186] Similar to the feedforward module in step S412215, the feedforward module in step S412225 may also include multiple hidden layers and an output layer. Each hidden layer contains linear transformations (such as fully connected layers) and nonlinear activation functions (such as ReLU, Sigmoid, etc.) for further feature extraction and transformation of input data. The output layer generates corresponding outputs (such as feature vectors, probability distributions, etc.) according to the requirements of the task.

[0187] For example, assume that the feedforward module includes two hidden layers and an output layer, and each hidden layer uses ReLU as an activation function. In step S412225, the computer system first passes the result of the fourth normalization operation as input to the first hidden layer. The first hidden layer generates a new feature representation through linear transformation and ReLU activation function, and passes it to the second hidden layer for further processing. Finally, the output of the second hidden layer is passed to the output layer to generate a second recognition result. This recognition result may be a feature vector, a probability distribution, or other form of output, depending on the specific requirements of the task.

[0188] After obtaining the second recognition result, in order to combine this result with the feature information previously extracted by the self-attention mechanism and the addition operation, the computer system can add the two to generate the final sliding multi-level processing result. This step helps to retain the advantages of feature information from two different sources and enhance the robustness of the final result.

[0189] Similar to the addition operation in steps S412216 and S412223, the integration of the addition results in step S412226 is also element-wise, that is, the feature information from two different sources is added at the corresponding positions. For example, in step S412226, the computer system performs an element-wise addition operation on the second recognition result and the second inner focusing module addition result (the two have the same shape and dimension). Specifically, if the elements of the second recognition result and the second inner focusing module addition result at the same position are p' ij and s' ij , then the element at that position of the addition result is p' ij With s' ij This process generates the sliding multi-level processing result R of the first sub-feature encoder x+1 ', which includes the original input data, the feature information extracted by the self-attention mechanism, the deep feature representation generated by the feedforward module, and the comprehensive result of this information. This result provides richer and more detailed data support for subsequent processing steps.

[0190] As an implementation, the first anomaly recognition operation is performed based on one or more first-level feature extraction components and one or more second-level feature extraction components of a unified architecture, the number of first-level feature extraction components is consistent with the number of first sub-feature encoders, and the number of second-level feature extraction components is consistent with the number of second sub-feature encoders. Step S420, performing the first anomaly recognition operation on multiple representation information of different strengths to obtain a first recognition result corresponding to the representation information of each strength, specifically may include:

[0191] For any intensity characterization information corresponding to the sub-tunnel gas monitoring data set, the following steps are performed:

[0192] Step S421: Based on the multi-stage processing result R of the first sub-feature encoder x Call the first-level feature extraction component to perform the first anomaly recognition operation and obtain the multi-level processing result R of the first sub-feature encoder x a corresponding first recognition result;

[0193] Step S422: Based on the multi-stage processing result R of the second sub-feature encoder x Calling the second-level feature extraction component to perform a first abnormality recognition operation to obtain a first recognition result corresponding to the multi-level processing result Rx of the second sub-feature encoder;

[0194] Step S423: The multi-stage processing result R of the first sub-feature encoder is x The corresponding first recognition result and the multi-level processing result R of the second sub-feature encoder xThe corresponding first recognition results are integrated to obtain the first recognition results corresponding to the characterization information of each intensity.

[0195] In step S410, the computer system has extracted multi-level characterization information from the sub-tunnel gas monitoring data set through the first sub-characterization encoder, and generated multiple characterization information with different strengths (i.e., multi-level processing results R x ). These representation information each captures the characteristics of the data at different levels and scales. In order to preliminarily identify abnormal data from these representation information, the computer system needs to call the first-level feature extraction component to perform the first abnormality identification operation.

[0196] The first-level feature extraction component is one or more modules based on specific algorithms or neural network structures, which are used to further extract features and transform input data for subsequent anomaly identification. For example, these components may include pyramid networks, specific layers of convolutional neural networks (CNNs), recurrent neural networks (RNNs) or their variants (such as LSTM, GRU), etc. As a typical multi-scale feature extraction structure, the pyramid network can capture feature information of data at different scales, so it may be particularly suitable in this scenario.

[0197] In step S421, the computer system generates a first sub-feature encoder based on the multi-level processing result R x The first-level feature extraction component is called to perform the first anomaly recognition operation. Specifically, the system first converts R x It is passed as input to the first-level feature extraction component; then, the component processes R through its internal computing units (such as convolutional layers, pooling layers, fully connected layers, etc.). x Further processing and conversion are performed; finally, the component outputs a x The corresponding first recognition result may be a feature vector, a probability distribution, an anomaly score, or other forms of output, depending on the design of the component and the requirements of the anomaly recognition task.

[0198] For example, assuming that the first-level feature extraction component is a pyramid network structure including multiple convolutional layers and pooling layers. In step S421, the computer system converts the multi-level processing result R of the first sub-feature encoder into x(Assuming it is a two-dimensional feature map) is passed as input to the pyramid network. The pyramid network first performs feature extraction on Rx through its convolutional layer to generate a series of feature maps with different scales; then, these feature maps are downsampled through the pooling layer to reduce the spatial size and retain important information; finally, the feature map is mapped to a feature vector or probability distribution space through the fully connected layer to generate the first recognition result. This first recognition result may contain R x The preliminary identification information of abnormal data such as abnormal location, abnormal type or abnormal degree.

[0199] Similar to the first sub-feature encoder, the second sub-feature encoder also generates multiple representation information with different strengths (i.e., the multi-level processing result R x ). These representation information may capture different feature information from the first sub-feature encoder or provide supplementary information to the same feature information at different scales. In order to more comprehensively identify abnormal patterns in the data, the computer system needs to call the second-level feature extraction component to process the multi-level processing results R of the second sub-feature encoder. x Perform the first abnormality identification operation.

[0200] Similar to the first-level feature extraction component, the second-level feature extraction component may also be one or more modules based on a specific algorithm or neural network structure. These components may use different structures or parameter configurations from the first-level feature extraction component to adapt to the multi-level processing results R generated by the second sub-feature encoder x For example, the second-level feature extraction component may include more convolutional layers to capture finer feature information or use different types of pooling layers to reduce the spatial size of the feature map. The implementation process of step S422 is similar to step S421, but the object of processing is the multi-level processing result R of the second sub-feature encoder. x . Computer system based on R x Call the second-level feature extraction component to generate the first anomaly recognition operation and R x The corresponding first recognition result may also be a feature vector, a probability distribution, an anomaly score or other forms of output depending on the design of the component and the requirements of the anomaly recognition task.

[0201] For example, assume that the second-level feature extraction component is a CNN structure including a dilated convolution layer. The dilated convolution layer can increase the receptive field size without increasing the number of parameters, thereby capturing a wider range of spatial distribution characteristics. In step S422, the computer system converts the multi-level processing result R of the second sub-feature encoder into x As input, it is passed to this CNN structure. The CNN structure uses its hole convolution layer to xPerform feature extraction to generate a series of feature maps; then further process and transform these feature maps through other types of layers (such as pooling layers, fully connected layers, etc.); finally generate x The corresponding first recognition result. This first recognition result may be different from the first recognition result generated in step S421 but also includes R x Preliminary identification information of abnormal data.

[0202] After processing steps S421 and S422, the computer system has obtained two first recognition results corresponding to the same intensity characterization information: one from the first-level feature extraction component and the other from the second-level feature extraction component. These two recognition results may capture abnormal information of different aspects or levels in the data, so they need to be integrated to generate a more comprehensive first recognition result. The specific implementation method of the integration operation depends on the form of the recognition result and the requirements of the abnormal recognition task. A common integration method is feature concatenation, which is to concatenate the two recognition results as feature vectors to form a longer feature vector as the integrated recognition result. Another method is weighted summation, which is to assign different weights to the recognition results according to their importance and reliability and sum the weighted results to obtain the integrated recognition result. In addition, more complex integration strategies such as decision fusion can also be adopted.

[0203] For example, assume that the two first recognition results generated in steps S421 and S422 are both in the form of feature vectors and have the same length (or can be converted to the same length in some way). In step S423, the computer system integrates the two recognition results by feature splicing. Specifically, the system splices the two feature vectors in the same dimension to form a new, longer feature vector as the integrated recognition result. This integrated recognition result contains the abnormal recognition information from both the first-level feature extraction component and the second-level feature extraction component, providing richer and more comprehensive data support for subsequent processing steps.

[0204] As an implementation mode, the re-anomaly recognition operation is completed based on a continuous decision component, and the continuous decision component includes a target proposal component and multiple dimension reduction components; based on this, step S430 performs a re-anomaly recognition operation on each first recognition result to obtain a second recognition result corresponding to each first recognition result, which may specifically include:

[0205] For any first recognition result, perform the following steps:

[0206] Step S431: calling the target proposal component to perform target proposal processing according to the first recognition result, and obtaining a target proposal processing result corresponding to the first recognition result;

[0207] Step S432: calling multiple dimensionality reduction components to perform dimensionality reduction operations according to the target proposal processing result and the first recognition result, and obtaining dimensionality reduction operation results corresponding to each dimensionality reduction component;

[0208] Step S433: taking the dimension reduction operation result as the second recognition result.

[0209] In an embodiment of the present application, step S430 performs an abnormal recognition operation on each first recognition result again through a continuous decision component, aiming to improve the accuracy and granularity of abnormal recognition. In step S420, the computer system has obtained a first recognition result corresponding to multiple characterization information with different intensities through the first abnormal recognition operation. These first recognition results may contain potential abnormal areas in the data, but their range and accuracy may not be sufficient to meet the actual early warning needs. Therefore, in step S430, the computer system needs to first perform target proposal processing on the first recognition result through a target proposal component to preliminarily determine the approximate location and range of the abnormal area.

[0210] The target proposal component may be a module based on a specific algorithm or neural network structure, which is used to generate a set of candidate abnormal region proposals from the input data. These proposals are usually represented by bounding boxes, segmentation masks or other forms, and are intended to cover possible abnormal regions in the data. In practical applications, the target proposal component may use methods such as region proposal network (RPN), anchor box mechanism, sliding window, etc. to generate proposals.

[0211] For example, assume that the target proposal component adopts the RPN structure. In step S431, the computer system passes the first recognition result (assuming it is a feature map or feature vector) as input to the RPN. The RPN first further extracts features from the input data through its internal convolutional layer; then, multiple anchor boxes are generated at each position of the feature map as candidate abnormal regions; then, each anchor box is evaluated and adjusted through the classifier and regressor to generate a set of target proposals with high confidence; finally, the target proposal processing result corresponding to the first recognition result is output, which contains a series of candidate abnormal region proposals and their confidences.

[0212] After obtaining the target proposal processing result, the computer system needs to further refine the candidate abnormal area to improve the accuracy and granularity of abnormal identification. This process usually involves a dimensionality reduction operation on the data, that is, reducing the dimension and redundant information of the data while retaining key information. In step S432, the computer system retrieves multiple dimensionality reduction components for dimensionality reduction operations based on the target proposal processing result and the first recognition result. Dimensionality reduction components may include various types of neural network layers or modules such as pooling layers, fully connected layers, and attention mechanisms. These components implement dimensionality reduction processing of data through different calculation methods. For example, the pooling layer reduces the spatial size of the feature map by taking the maximum value and average value in the region; the fully connected layer maps the feature vector to a lower dimensional space through a weight matrix and a bias term; the attention mechanism dynamically adjusts the distribution of information by calculating the weights of different parts of the input data. For example, assume that the dimensionality reduction component includes two pooling layers and one fully connected layer.

[0213] It is worth noting that in step S432, the computer system can dynamically adjust the parameters and configuration of the dimension reduction component according to the size, shape or feature distribution of the candidate abnormal region to ensure the effectiveness and accuracy of the dimension reduction operation. In addition, in order to further improve the accuracy and robustness of abnormal identification, the computer system may also use ensemble learning, multi-scale fusion and other technologies to integrate and optimize the output results of multiple dimension reduction components.

[0214] After the dimensionality reduction operation in step S432, the computer system has obtained a series of dimensionality reduction operation results corresponding to the candidate abnormal regions. These results may be represented by feature vectors, probability distributions or other forms and contain more detailed and accurate abnormality identification information. In step S433, the computer system outputs these dimensionality reduction operation results as second identification results for use in subsequent processing steps.

[0215] Assume that in step S432, the computer system performs a dimensionality reduction operation on the three candidate abnormal regions and generates three corresponding dimensionality reduction operation results. These results may be represented as three feature vectors V1, V2 and V3 respectively. Each feature vector contains a fine feature representation and abnormality identification information of the corresponding candidate abnormal region. In step S433, the computer system outputs these feature vectors as second recognition results. These second recognition results not only have higher accuracy and fine granularity, but also can provide a more accurate and reliable data basis for subsequent decision support, warning release and other tasks.

[0216] As an implementation mode, step S432, based on the target proposal processing result and the first recognition result, multiple dimension reduction components are retrieved to perform dimension reduction operations, and the dimension reduction operation results corresponding to each dimension reduction component are obtained, which may specifically include:

[0217] Step S4321: Calling the dimension reduction component C1 to perform a dimension reduction operation according to the target proposal processing result and the first recognition result, and obtaining a dimension reduction operation result R1 corresponding to the dimension reduction component C1;

[0218] Step S4322: Based on the dimensionality reduction operation result R y And the first recognition result retrieves the dimension reduction component C y+1 Perform dimensionality reduction operation to obtain the dimensionality reduction component C y+1 The corresponding dimensionality reduction operation result R y+1 , where y∈[1,K-1], K is the number of multiple dimension reduction components.

[0219] In the embodiment of the present application, a continuous dimensionality reduction operation is performed on the target proposal processing result and the first recognition result through multiple dimensionality reduction components, aiming to gradually extract the key features of the abnormal area and improve the accuracy and granularity of abnormality recognition.

[0220] In step S431, the computer system has performed target proposal processing on the first recognition result through the target proposal component, and generated a series of candidate abnormal region proposals and their confidences. These proposals may cover potential abnormal regions in the data, but their feature representations are still redundant and complex, and further processing is required to improve the accuracy of recognition. Therefore, in step S4321, the computer system first calls the first dimensionality reduction component C1 to perform dimensionality reduction operations on the target proposal processing results and the first recognition results. The dimensionality reduction component C1 is, for example, a neural network module based on pooling operations, attention mechanisms, or fully connected layers, which is used to reduce the dimension of input data and retain key information. Taking the pooling layer as an example, C1 may use maximum pooling or average pooling to select the maximum value or average value in each region of the feature map as the representative of the region, thereby reducing the spatial size of the feature map. In addition, C1 may also include other types of layers (such as convolutional layers, activation layers, etc.) to further enhance the ability of feature extraction and conversion. For example, assume that the dimensionality reduction component C1 is a neural network module containing a maximum pooling layer and a ReLU activation function. In step S4321, the computer system first fuses the target proposal processing result (assuming a set of bounding boxes of candidate abnormal regions and their corresponding feature maps) and the first recognition result (assuming a global feature vector). The fusion method may include feature concatenation, weighted summation, etc., depending on the characteristics of the data and the requirements of the task. Then, the fused result is passed to C1 as input. C1 performs dimensionality reduction processing on the input feature map through its maximum pooling layer, and selects the maximum value in each region as the representative of the region; then, the pooling result is nonlinearly transformed through the ReLU activation function to enhance the expression ability of the feature. Finally, C1 outputs the dimensionality reduction operation result R1 corresponding to the first dimensionality reduction component, which may be a feature map or feature vector with lower dimension but key information retained. After obtaining the first dimensionality reduction operation result R1, R1 is further reduced in dimension through subsequent dimensionality reduction components to gradually extract the key features of the abnormal region. This process is iterative, and each dimensionality reduction component is further processed based on the processing result of the previous dimensionality reduction component. As the iteration proceeds, the accuracy of the dimensionality reduction operation results gradually improves, the redundant information gradually decreases, and finally a high-precision anomaly recognition feature representation is generated.

[0221] In step S4322, the computer system iterates the variable y (y starts from 1 and ends at K-1, where K is the total number of dimensionality reduction components). In each iteration, the system calculates the value of the variable y according to the current dimensionality reduction operation result R y And the first recognition result calls the next dimension reduction component C y+1 Perform dimensionality reduction operation. y+1It is possible to use a different structure or parameter configuration from C1 to meet the requirements of different levels of dimensionality reduction. Through continuous iterative dimensionality reduction operations, the system gradually generates a series of dimensionality reduction operation results R2, R3, ..., R K , each result has higher precision and less redundant information than the previous one.

[0222] For example, assume that the total number of dimensionality reduction components is 3 (i.e., K=3), and each component adopts a different structure to achieve different levels of dimensionality reduction processing. In the first iteration of step S4322 (y=1), the computer system calls the second dimensionality reduction component C2 for dimensionality reduction operation based on the dimensionality reduction operation result R1 and the first recognition result. C2 may be a neural network module including an attention mechanism and a fully connected layer, which is used to weight and integrate the key features in R1. Through the attention mechanism, C2 can dynamically adjust the importance weights of different features; through the fully connected layer, C2 maps the weighted features to a lower dimensional space to generate the dimensionality reduction operation result R2. In the second iteration (y=2), the system calls the third dimensionality reduction component C3 for dimensionality reduction operation based on R2 and the first recognition result. C3 may be a more refined network structure, such as a deep neural network including multiple convolutional layers and pooling layers, which is used to further refine the key features in R2 and generate the final dimensionality reduction operation result R3. As the output result of step S432, R3 has the highest accuracy and the least redundant information, providing strong support for subsequent abnormality recognition decisions. In the iterative dimensionality reduction process, each dimensionality reduction component may contain multiple computing units (such as convolution kernels, pooling windows, attention weights, etc.) to achieve complex transformation and processing of input data. In addition, in order to enhance the robustness and generalization ability of dimensionality reduction operations, computer systems may also use some additional technologies such as batch normalization and dropout to prevent overfitting and improve the stability of the model.

[0223] The present application also provides a computer system, such as Figure 2 As shown, the computer system 100 includes: a processor 101 and a memory 103. The processor 101 and the memory 103 are connected, such as through a bus 102. Optionally, the computer system 100 may also include a transceiver 104. It should be noted that in actual applications, the transceiver 104 is not limited to one, and the structure of the computer system 100 does not constitute a limitation on the embodiments of the present application.

[0224] An embodiment of the present application provides a computer system. The computer system in the embodiment of the present application includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and when the one or more programs are executed by the processor, the above method is implemented.

Claims

1. A tunnel gas monitoring and early warning method, characterized in that: The method comprises: An abnormal data aggregation matrix reasoning operation is performed on a tunnel gas monitoring data set to obtain an abnormal data aggregation matrix of the tunnel gas monitoring data set, wherein the abnormal data aggregation matrix represents the aggregation position information of abnormal data in the tunnel gas monitoring data set, and the abnormal data aggregation matrix reasoning operation includes multiple feature extractions and dimensionality reduction operations with different intensities; the tunnel gas monitoring data set includes gas concentration values ​​at different locations and different time points; Performing a detection clustering operation on the abnormal data clustering matrix to obtain a plurality of clustering target ranges in the abnormal data clustering matrix; Performing an extraction operation on the tunnel gas monitoring data set according to the multiple clustering target ranges to obtain a corresponding multiple sub-tunnel gas monitoring data sets, wherein each of the sub-tunnel gas monitoring data sets includes a plurality of the abnormal data; Performing an abnormality identification operation on each of the sub-tunnel gas monitoring data sets and the tunnel gas monitoring data set in sequence to obtain a first abnormality identification result corresponding to each of the sub-tunnel gas monitoring data sets and the tunnel gas monitoring data set; Integrate each of the first abnormality recognition results to obtain a second abnormality recognition result corresponding to the tunnel gas monitoring data set; Determining whether to issue an early warning based on the second abnormality recognition result; The performing of a detection and clustering operation on the abnormal data clustering matrix to obtain a plurality of clustering target ranges in the abnormal data clustering matrix includes: Detecting clustering points in the abnormal data clustering matrix to obtain confidence distribution information of the clustering points; According to the confidence distribution information of the clustering points, the clustering points having the same distribution characteristics are clustered to obtain a plurality of clustering target ranges in the abnormal data clustering matrix; The abnormality identification operation is performed on each of the sub-tunnel gas monitoring data sets and the tunnel gas monitoring data set in sequence to obtain a first abnormality identification result corresponding to each of the sub-tunnel gas monitoring data sets and the tunnel gas monitoring data set, including: For any of the sub-tunnel gas monitoring data sets, the following steps are performed: Performing a multi-level characterization information extraction operation on the sub-tunnel gas monitoring data set to obtain a plurality of characterization information with different intensities corresponding to the sub-tunnel gas monitoring data set; Performing a first abnormality identification operation on the plurality of characterization information with different strengths to obtain a first identification result corresponding to each of the characterization information with the strength; Performing a second abnormality recognition operation on each of the first recognition results to obtain a second recognition result corresponding to each of the first recognition results, wherein the recognition granularity of the second abnormality recognition operation is greater than the recognition granularity of the first abnormality recognition operation; Using the second recognition result as the first abnormality recognition result; The multi-level characterization information extraction operation is performed based on a feature encoder, the feature encoder includes a filtering component, one or more first sub-feature encoders and one or more second sub-feature encoders with consistent architecture; the first sub-feature encoder and the second sub-feature encoder both include multiple hierarchical components connected in sequence; the multi-level characterization information extraction operation is performed on the sub-tunnel gas monitoring data set to obtain multiple characterization information with different intensities corresponding to the sub-tunnel gas monitoring data set, including: Retrieving the filtering component to perform filtering operation according to the sub-tunnel gas monitoring data set to obtain the filtering operation result of the sub-tunnel gas monitoring data set; According to the filtering operation result, multiple sequentially connected hierarchical components in the first sub-feature encoder are called to perform multi-stage processing to obtain a multi-stage processing result of each hierarchical component in the first sub-feature encoder; According to the filtering operation result and the multi-stage processing result of each hierarchical component in the first sub-feature encoder, multiple hierarchical components in the second sub-feature encoder are called to perform multi-stage processing to obtain the multi-stage processing result of each hierarchical component in the second sub-feature encoder; The multi-level processing results of each hierarchical component in the first sub-feature encoder and the multi-level processing results of each hierarchical component in the second sub-feature encoder are used as multiple representation information with different intensities corresponding to the sub-tunnel gas monitoring data set.

2. The method according to claim 1, characterized in that The performing of an abnormal data aggregation matrix inference operation on the tunnel gas monitoring data set to obtain an abnormal data aggregation matrix of the tunnel gas monitoring data set includes: According to the tunnel gas monitoring data set, a debugged abnormal data aggregation matrix inference model is retrieved to perform abnormal data aggregation matrix inference operations to obtain the abnormal data aggregation matrix of the tunnel gas monitoring data set; The debugging process of the debugged abnormal data aggregation matrix inference model includes: According to the tunnel gas monitoring data set sample, the abnormal data aggregation matrix inference model to be debugged is retrieved to perform abnormal data aggregation matrix inference operation to obtain the inference abnormal data aggregation matrix of the tunnel gas monitoring data set sample; Retrieving an aggregation error function according to the inference abnormal data aggregation matrix of the tunnel gas monitoring data set sample and the actual abnormal data aggregation matrix of the tunnel gas monitoring data set sample to obtain the error of the tunnel gas monitoring data set sample; The internal configuration variables of the abnormal data aggregation matrix inference model to be debugged are adjusted according to the errors of the tunnel gas monitoring data set samples.

3. The method according to claim 2, characterized in that The method of retrieving the debugged abnormal data aggregation matrix inference model according to the tunnel gas monitoring data set to perform abnormal data aggregation matrix inference operation to obtain the abnormal data aggregation matrix of the tunnel gas monitoring data set includes: According to the tunnel gas monitoring data set, the debugged abnormal data aggregation matrix inference model is retrieved to perform the following processing: Performing the multiple feature extraction and dimensionality reduction operations with different intensities on the tunnel gas monitoring data set to obtain multiple representation matrices with different intensities; Integrating the multiple representation matrices with different intensities to obtain an integrated representation matrix; A filtering operation is performed on the integrated characterization matrix to obtain an abnormal data aggregation matrix of the tunnel gas monitoring data set.

4. The method according to claim 1, characterized in that: The step of calling a plurality of sequentially connected hierarchical components in the first sub-feature encoder for multi-stage processing according to the filtering operation result to obtain a multi-stage processing result of each hierarchical component in the first sub-feature encoder includes: According to the filtering operation result, the hierarchical component C1 in the first sub-feature encoder is called to perform multi-level processing to obtain a multi-level processing result R1 of the first sub-feature encoder; Iterate x to perform the following steps: x Call the hierarchical component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the multi-level processing result R of the first sub-feature encoder x+1 ; Wherein, x∈[1,M-1], M is the number of the plurality of sequentially connected hierarchical components; iterating x means that x starts from 1 and ends at M-1; The step of calling multiple hierarchical components in the second sub-feature encoder for multi-stage processing according to the filtering operation result and the multi-stage processing result of each hierarchical component in the first sub-feature encoder to obtain the multi-stage processing result of each hierarchical component in the second sub-feature encoder includes: The filtering operation result and the hierarchical component C of the first sub-feature encoder are combined x Add the multi-level processing results to obtain the addition result A1; According to the addition result A1, the hierarchical component C1 in the second sub-feature encoder is called to perform multi-level processing to obtain a multi-level processing result R1 of the second sub-feature encoder; Iterate x to perform the following steps: convert the multi-stage processing result R of the first sub-feature encoder into x and the multi-stage processing result R of the second sub-feature encoder x Add and obtain the addition result A x+1 , according to the addition result A x+1 Call the hierarchical component C in the second sub-feature encoder x+1 Perform multi-level processing to obtain the multi-level processing result R of the second sub-feature encoder x+1 .

5. The method according to claim 4, characterized in that The grading assembly includes a standard grading assembly and a sliding grading assembly; The multi-stage processing result R according to the first sub-feature encoder x Call the hierarchical component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the multi-level processing result R of the first sub-feature encoder x+1 ,include: According to the multi-stage processing result R of the first sub-feature encoder x Retrieve the standard classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the standard hierarchical processing result R of the first sub-feature encoder x+1 ; According to the standard classification processing result R of the first sub-feature encoder x+1 Call the sliding classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the sliding multi-level processing result R of the first sub-feature encoder x+1 , the sliding multi-level processing result R of the first sub-feature encoder is obtained x+1 , as the multi-stage processing result R of the first sub-feature encoder x+1 .

6. The method according to claim 5, characterized in that The standard classification component includes a first internal focusing module, a normalization module and a feedforward module; the multi-level processing result R of the first sub-feature encoder is x Retrieve the standard classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the standard hierarchical processing result R of the first sub-feature encoder x+1 ,include: According to the multi-stage processing result R of the first sub-feature encoder x Calling the standardization module to perform a standardization operation to obtain a first standardization operation result; Calling the first internal focusing module to perform an internal focusing operation according to the standardized operation result to obtain a first internal focusing operation result; The multi-stage processing result R of the first sub-feature encoder is x and the first internal focusing operation result to obtain a first internal focusing module addition result; Calling the standardization module to perform a standardization operation according to the addition result of the first inner focusing module to obtain a second standardization operation result; Calling the feedforward module to perform detection according to the second standardization operation result to obtain a first recognition result; The first recognition result and the first inner focus module addition result are added together, and the obtained first addition result is used as the standard classification processing result R of the first sub-feature encoder. x+1 ; The sliding classification component includes a second inner focusing module, a normalization module and a feedforward module; The standard classification processing result R according to the first sub-feature encoder x+1 Call the sliding classification component C in the first sub-feature encoder x+1 Perform multi-level processing to obtain the sliding multi-level processing result R of the first sub-feature encoder x+1 ,include: According to the standard classification processing result R of the first sub-feature encoder x+1 Retrieving the standardization module to perform a standardization operation to obtain a third standardization operation result; Calling the second internal focusing module to perform an internal focusing operation according to the third normalization operation result to obtain a second internal focusing operation result; The standard hierarchical processing result R of the first sub-feature encoder is x+1 and the second internal focusing operation result to obtain a second internal focusing module addition result; Calling the standardization module to perform a standardization operation according to the addition result of the second inner focusing module to obtain a fourth standardization operation result; Calling the feedforward module to perform detection according to the fourth standardization operation result to obtain a second recognition result; The second recognition result and the second inner focus module addition result are added together, and the obtained second addition result is used as the sliding multi-level processing result R of the first sub-feature encoder. x+1 .

7. The method according to claim 4, characterized in that The first anomaly identification operation is performed based on one or more first-level feature extraction components and one or more second-level feature extraction components of a unified architecture, the number of the first-level feature extraction components is consistent with the number of the first sub-feature encoders, and the number of the second-level feature extraction components is consistent with the number of the second sub-feature encoders; The performing a first abnormality identification operation on the plurality of representation information with different strengths to obtain a first identification result corresponding to each of the representation information with different strengths includes: For any intensity characterization information corresponding to the sub-tunnel gas monitoring data set, the following steps are performed: According to the multi-stage processing result R of the first sub-feature encoder x The first-level feature extraction component is called to perform the first abnormality recognition operation to obtain the multi-level processing result R of the first sub-feature encoder. x a corresponding first recognition result; According to the multi-stage processing result R of the second sub-feature encoder x The second-level feature extraction component is called to perform the first abnormality recognition operation to obtain the multi-level processing result R of the second sub-feature encoder. x a corresponding first recognition result; The multi-stage processing result R of the first sub-feature encoder is x The corresponding first recognition result and the multi-stage processing result R of the second sub-feature encoder x The corresponding first recognition results are integrated to obtain the first recognition results corresponding to the characterization information of each strength; The re-anomaly recognition operation is completed based on a continuous decision component, wherein the continuous decision component includes a target proposal component and a plurality of dimensionality reduction components; the re-anomaly recognition operation is performed on each of the first recognition results to obtain a second recognition result corresponding to each of the first recognition results, including: For any of the first recognition results, perform the following steps: Calling the target proposal component to perform target proposal processing according to the first recognition result to obtain a target proposal processing result corresponding to the first recognition result; Retrieving the plurality of dimensionality reduction components to perform dimensionality reduction operations according to the target proposal processing result and the first recognition result, and obtaining dimensionality reduction operation results corresponding to each of the dimensionality reduction components; The dimension reduction operation result is used as the second recognition result.

8. The method according to claim 7, characterized in that The step of calling the plurality of dimensionality reduction components to perform dimensionality reduction operations according to the target proposal processing result and the first recognition result, and obtaining dimensionality reduction operation results corresponding to each of the dimensionality reduction components, includes: According to the target proposal processing result and the first recognition result, the dimension reduction component C1 is called to perform a dimension reduction operation, and a dimension reduction operation result R1 corresponding to the dimension reduction component C1 is obtained; According to the dimensionality reduction operation result R y The first recognition result is used to retrieve the dimension reduction component C y+1 Perform dimensionality reduction operation to obtain the dimensionality reduction component C y+1 The corresponding dimensionality reduction operation result R y+1 , where y∈[1,K-1], K is the number of the multiple dimensionality reduction components.

9. A computer system, characterized in that: include: one or more processors; Memory; one or more computer programs; The one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and when the one or more computer programs are executed by the processors, the method according to any one of claims 1 to 8 is implemented.