Intelligent identification method and system for methane leakage based on multi-dimensional signal fusion of double-layer sensing array

By fusing the multidimensional signals from a dual-layer gas-sensitive array and constructing a two-stage optimized random forest model, the problems of sensor poisoning and cross-interference in complex environments were solved, achieving high-accuracy identification and low false positive rate of methane leaks.

CN122778321BActive Publication Date: 2026-11-20HUNAN UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611249550.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-20
Estimated Expiration
2046-08-18

AI Technical Summary

Technical Problem

Existing metal oxide semiconductor methane sensors are easily poisoned by HMDSO in complex environments, leading to resistance baseline drift and sensitivity decay. Furthermore, ambient water vapor competes with methane molecules for adsorption, forming complex cross-interference. Existing identification methods have high false alarm and false negative rates, and the random forest algorithm has insufficient generalization ability in low signal-to-noise ratio scenarios.

Method used

By fusing multidimensional signals from a dual-layer gas-sensitive array, including the resistance, voltage, and environmental parameters of the inner and outer layers, a two-stage optimized random forest classification model is constructed. This model dynamically adjusts feature weights, suppresses cross-sensitivity interference, and improves recognition accuracy.

Benefits of technology

To improve the accuracy and reliability of methane leak identification in complex environments, reduce the risk of misjudgment, improve computational efficiency, and adapt to different interference conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122778321B_ABST
    Figure CN122778321B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of gas sensing and artificial intelligence identification, and discloses a methane leakage intelligent identification method and system based on double-layer sensing array multi-dimensional signal fusion. The double-layer sensing array is used to collect multi-dimensional sensing signals and environmental parameters. Multi-dimensional features are extracted, and a training sample library of multiple working conditions is constructed. A random forest classification model optimized and screened through two stages is constructed based on the training sample library. In the first stage, comprehensive performance scores are screened based on classification accuracy and output result consistency. In the second stage, redundant pruning is performed based on feature usage similarity, and an optimized forest is obtained. Based on the out-of-bag samples of each decision tree in the optimized forest, the importance scores of each dimension feature are calculated according to different working conditions, and the mapping relationship between working conditions and feature weights is constructed. In online identification, the current working condition is determined, and the methane concentration level and leakage risk level determination results are output. Thus, high-precision and low-redundancy intelligent identification of methane leakage under complex working conditions is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the interdisciplinary field of gas sensing and artificial intelligence recognition, specifically relating to a method and system for intelligent identification of methane leaks based on multidimensional signal fusion of a dual-layer sensor array. Background Technology

[0002] Metal-oxide-semiconductor (MOS) methane sensors are widely used for leak detection in coal mines, gas pipelines, industrial plants, and other scenarios. However, they generally suffer from the following problems in complex real-world environments: The sensor is susceptible to poisoning by organosilicon compounds such as HMDSO (hexamethyldisiloxane). During the poisoning process, the oxygen vacancy concentration and surface hydroxyl configuration change, resulting in nonlinear drift of the resistance baseline and distortion of the gas-sensitive response. Environmental water vapor and methane molecules compete for adsorption on the surface of gas-sensitive materials, leading to baseline drift and sensitivity decay. This, combined with poisoning interference, forms a "complex cross-interference," making it difficult to address all interferences under a single interference mechanism. Existing identification methods mostly rely on a single resistance signal or a fixed empirical threshold for judgment, failing to fully utilize the information on the difference in response between the inner and outer layers inherent in the double-layer gas-sensitive element itself, and failing to distinguish and dynamically select effective features under different interference conditions, resulting in a high false alarm and false alarm rate. While conventional random forest algorithms theoretically reduce inter-tree correlations during bootstrap sampling and node splitting through random feature subset mechanisms, they face the following dual-mechanism problem in scenarios with limited gas sensing data sample size, strong correlation between features such as inner and outer layer resistance, and low signal-to-noise ratio: On the one hand, due to the total dimensionality of features at a single time step... Limited, making Features such as methane concentration, methane concentration, and carbon dioxide have a relatively high probability of being included in the candidate subset during random feature subset sampling. On the other hand, because these three features are all strongly correlated with methane concentration and have outstanding discriminative power, once included in the candidate subset, they are highly likely to win out and become the actual splitting features during node splitting. Therefore, they repeatedly dominate the actual splitting decisions at numerous splitting nodes across multiple trees, leading to insufficient diversity of base learners and high homogeneity redundancy. This problem results in insufficient model generalization ability and robustness against interference, and redundant subtrees consume computational resources, making them unsuitable for industrial field deployment.

[0003] Therefore, there is a need for an intelligent identification method that can integrate multi-dimensional response signals from a dual-layer gas-sensitive array and adaptively filter and weight effective features for different interference conditions, so as to improve the accuracy and reliability of methane leak identification in complex environments. Summary of the Invention

[0004] To overcome the shortcomings of existing technologies, the present invention aims to provide a method and system for intelligent identification of methane leaks based on multi-dimensional signal fusion of a dual-layer sensor array. By fusing multi-modal time-series signals such as resistance and voltage from a dual-layer methane gas-sensitive array, as well as the response differences between the inner and outer layers, and by introducing a random forest dynamic ensemble optimization method that leverages the high correlation between the response characteristics of the inner and outer layers in the dual-layer sensor array and the ability to effectively distinguish dynamic changes in characteristics under different interference conditions, the method achieves in-depth mining of methane characteristic patterns under interference conditions such as HMDSO poisoning and high humidity. At the same time, an adaptive weighting mechanism based on feature importance is used to suppress the influence of cross-sensitive interference, and finally outputs the results of methane concentration level and leak risk level determination.

[0005] To achieve the above objectives, the following technical solution is adopted: In a first aspect, the present invention provides a smart identification method for methane leaks based on multidimensional signal fusion of a dual-layer sensor array, comprising the following steps: S1: Multidimensional sensing signals and environmental parameters are acquired using a dual-layer sensing array; the multidimensional sensing signals include the inner layer resistance, outer layer resistance, and test voltage of each gas-sensitive unit in the dual-layer sensing array; the environmental parameters include ambient temperature, ambient humidity, and circuit noise. S2: Extract multi-dimensional features based on the multi-dimensional sensing signals and environmental parameters, and construct a training sample library covering various working conditions; S3: Construct a random forest classification model based on the training sample library after two-stage optimization and screening. The two-stage optimization includes: First stage, screening candidate decision trees based on the comprehensive performance score of classification accuracy and output result consistency, and retaining candidate trees whose comprehensive score meets the preset conditions; Second stage, redundancy pruning of candidate trees based on feature similarity, and removing tree pairs with similarity exceeding the preset threshold according to the accuracy priority principle, until the forest size converges to the preset value, and the optimized forest is obtained. S4: Based on the out-of-bag samples of each decision tree in the optimized forest, calculate the importance scores of each dimension of features according to different working conditions, and construct the mapping relationship between working conditions and feature weights; S5: Determine the current working condition based on the feature information of the current data, adjust the voting weight of each decision tree in the random forest classification model according to the importance weight information corresponding to the current working condition, and output the methane identification result based on the weighted voting result.

[0006] Furthermore, in step S2, the multi-dimensional features include at least the inner layer resistance, the outer layer resistance, the inner and outer layer differential features, the test voltage, the inner layer resistance change rate, the temperature, the humidity, and the circuit noise at the current moment; the inner and outer layer differential features are the difference between the inner layer resistance and the outer layer resistance.

[0007] Furthermore, in step S2, a sliding time window is used to aggregate multi-dimensional features from multiple consecutive time points into a training sample. Statistics are calculated for each dimension of features at multiple time points within the window, and the calculated statistics are concatenated to form the feature vector of the sample corresponding to the window. The statistics include at least one of mean, standard deviation, and slope.

[0008] Furthermore, the inner layer resistance change rate is calculated in the discrete sampling system by the ratio of the resistance difference between the current sampling time and the previous sampling time to the sampling interval. For the first sampling moment within the sliding window, the ratio of the resistance difference between the current sampling moment and the next sampling moment to the sampling interval is calculated.

[0009] Furthermore, the various operating conditions include clean air operating conditions, HMDSO poisoning operating conditions, high humidity operating conditions, and composite interference operating conditions where HMDSO poisoning and high humidity coexist. The sample labels in the training sample library are calibrated based on the methane concentration range and the leakage risk level.

[0010] Furthermore, in step S3, in the first stage, the training sample library is divided into a training set and multiple independent validation subsets according to the principle of consistent category distribution, and Bootstrap resampling is performed on the training set to generate several candidate decision trees. For each candidate decision tree, the classification accuracy is calculated on each of the validation subsets and the average value is taken. The consistency rate between the tree and the other candidate decision trees on the validation set is calculated. The consistency rate is the average of the pairwise consistency rates between the tree and the other candidate decision trees. A comprehensive score is calculated based on the average classification accuracy and the consistency rate. Candidate trees that meet the comprehensive score criteria are then sorted in descending order and retained for the second stage.

[0011] Furthermore, in step S3, in the second stage, for each candidate decision tree, the features used by each split node and the sample proportion corresponding to each node are extracted. The contribution of the same feature on all split nodes is weighted by the node depth and then summed. The cumulative weighted value of each feature is used to form the feature usage vector of the candidate decision tree. The similarity between the feature vectors of any two candidate decision trees is used as the feature of the two candidate decision trees. For tree pairs with similarity exceeding a preset threshold, those with lower accuracy are removed based on the principle of prioritizing accuracy. This process is repeated until the forest size converges to the preset value, resulting in an optimized forest.

[0012] Furthermore, the order between the first stage (screening based on classification accuracy and consistency with output results) and the second stage (redundancy pruning based on feature similarity) is fixed: The first stage is executed first, followed by the second stage. The first stage is used to eliminate candidate trees with insufficient classification performance or similar output results, while the second stage is used to eliminate candidate trees that have become homogenized at the feature level due to strong correlation features repeatedly dominating the splitting path.

[0013] Furthermore, S4 includes: Training samples are divided according to work condition categories. Based on the out-of-bag samples of each decision tree in the optimized forest, the importance scores of each dimension of features under each work condition are calculated and normalized to construct the mapping relationship between work conditions and feature weight vectors. The importance score is calculated as follows: for each working condition, the original error of each decision tree on the out-of-bag samples and the error of the decision tree on the out-of-bag samples after replacing a certain feature are calculated respectively. The difference between the error after replacement and the original error is used as the importance measure of the feature under the decision tree. The average value of the importance measures under all decision trees is taken as a non-negative value as the importance score of the feature in the working condition.

[0014] Furthermore, in step S5, the step of determining the current working condition based on the feature information of the current data specifically involves: determining the working condition category to which the current sample belongs based on the humidity information and resistance fluctuation information of the current sample and the pre-established probability density model of each working condition; obtaining the corresponding feature weight vector from the mapping relationship based on the determination result as the current adaptive weight vector; wherein, the resistance fluctuation information is the resistance standard deviation of the current sample within the sliding window; The step of adjusting the voting weights of each decision tree in the random forest classification model based on the importance weight information corresponding to the current working condition includes: for each decision tree in the optimized forest, determining the voting weight of the decision tree in the current identification based on the matching degree between the feature vector of the decision tree and the adaptive weight vector, and combining the verification accuracy of the decision tree; summing the voting weights of all decision trees under each category, and selecting the category with the largest weight sum as the final judgment result output.

[0015] Furthermore, the dual-layer sensing array is composed of multiple dual-layer gas-sensitive units, each of which includes a ceramic tube, a sensitive inner layer disposed on the surface of the ceramic tube and an anti-toxic and moisture-resistant outer layer, as well as electrodes and heating wires disposed on the ceramic tube. The sensitive inner layer is a metal oxide sensitive layer with methane-sensitive response capability, and the anti-toxic and moisture-resistant outer layer is an oxide composite layer with anti-interference properties. The sensitive inner layer and the anti-toxic and moisture-resistant outer layer together constitute a double-layer sensitive structure.

[0016] In a second aspect, the present invention also provides a methane leak intelligent identification system based on multidimensional signal fusion of a dual-layer sensor array, for implementing the method described in the first aspect, comprising: The dual-layer sensor array consists of multiple dual-layer gas-sensitive units, used to collect the inner layer resistance, outer layer resistance and test voltage of each gas-sensitive unit. An environmental sensing module is used to collect ambient temperature, ambient humidity, and circuit noise. The feature construction module is used to extract multi-dimensional features based on the multi-dimensional sensing signals and the environmental parameters, and to construct a training sample library covering multiple working conditions. The model building module is used to build a random forest classification model based on the training sample library after two-stage optimization and screening. The feature weight establishment module is used to calculate the importance score of each feature according to different working conditions based on the out-of-bag samples of the optimized forest, and to build a mapping relationship between working conditions and feature weights. The online identification module is used to determine the current working condition based on the feature information of the current data, adjust the voting weight of each decision tree according to the corresponding importance weight information, and output the methane identification result based on the weighted voting result.

[0017] Compared with the prior art, the present invention has the following beneficial effects: 1. By fusing the differential resistance signals of the inner and outer layers of the dual-layer gas-sensitive element with voltage and environmental multimodal data, the robustness of feature representation is improved by fully utilizing the anti-interference characteristics of the dual-layer structure itself. 2. The two-stage optimized random forest reduces model redundancy while maintaining recognition accuracy through comprehensive performance scoring on the validation set and feature similarity redundancy pruning, thereby improving computational efficiency for industrial deployment. This invention's two-stage optimization mechanism is specifically designed to address the homogenization problem caused by the strong correlation features of two-layer sensor arrays. The similarity measurement in the second-stage redundancy pruning is directly based on the similarity of node splitting features, corresponding to the strong correlation characteristics of this type of sensor data, rather than directly applying general pruning methods. 3. An adaptive weighted voting mechanism based on the importance of features under different working conditions based on OOB can dynamically adjust the feature and decision tree weights according to the current interference conditions. This helps to reduce the impact of cross-sensitive interference under HMDSO poisoning and high humidity coexistence conditions on the identification results and reduce the risk of misjudgment.

[0018] It should be understood that the description in the Summary of the Invention is not intended to limit the key or essential features of the embodiments of the present invention, nor is it intended to restrict the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0019] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent from the accompanying drawings and the following detailed description. The drawings are provided for a better understanding of the invention and are not intended to limit the scope of the invention. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein: Figure 1 This is a flowchart of the steps of a methane leak intelligent identification method based on multidimensional signal fusion of a dual-layer sensor array according to Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of a double-layer methane gas-sensitive element; Figure 3 This is a schematic diagram of the two-stage optimized random forest construction process according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the architecture of the intelligent methane leakage identification system based on multidimensional signal fusion of a dual-layer sensor array according to Embodiment 2 of the present invention. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] Furthermore, the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0022] Example 1: Figure 1 This is a flowchart of the steps of a methane leak intelligent identification method based on multidimensional signal fusion of a dual-layer sensor array according to Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of a double-layer methane gas-sensitive element. (See diagram below.) Figure 1 and Figure 2 As shown, a smart identification method for methane leaks based on multidimensional signal fusion using a dual-layer sensor array includes the following steps: S1: Multidimensional sensing signals and environmental parameters are acquired using a dual-layer sensing array; the multidimensional sensing signals include the inner layer resistance, outer layer resistance, and test voltage of each gas-sensitive unit in the dual-layer sensing array; the environmental parameters include ambient temperature, ambient humidity, and circuit noise. Step S1 is used to acquire multidimensional data through a dual-layer sensor array: The dual-layer sensing array consists of multiple dual-layer gas-sensitive units. Each dual-layer gas-sensitive unit includes a ceramic tube, a sensitive inner layer disposed on the surface of the ceramic tube, an anti-toxic and moisture-resistant outer layer, and electrodes and heating wires disposed on the ceramic tube. The sensitive inner layer is a metal oxide sensitive layer with methane-sensitive response capability, and the anti-toxic and moisture-resistant outer layer is an oxide composite layer with anti-interference properties. The sensitive inner layer and the anti-toxic and moisture-resistant outer layer together constitute a dual-layer sensing structure.

[0023] As a concrete example, a dual-layer sensor array consists of It consists of two-layer gas-sensitive units, such as Figure 2 As shown, each bilayer gas-sensitive unit contains a sensitive inner layer (modified with methane-sensitive response capability). Substrate sensitive layer, such as surface grafting modification and doping Precious metals Sensitive layer) and anti-toxic and moisture-resistant outer layer (an oxide composite sensitive layer with anti-interference properties, such as a load-bearing layer). of The composite layer is driven by a constant-temperature heating wire and connected to a multi-parameter synchronous acquisition circuit to output the inner layer resistance in real time. outer layer resistance and voltage measurement Simultaneously, the temperature is collected by the environmental sensing module. ,humidity and circuit noise .

[0024] S2: Extract multi-dimensional features based on the multi-dimensional sensing signals and environmental parameters, and construct a training sample library covering various working conditions; Step S2 is used to extract multi-dimensional features and construct a training sample library. Based on the sensitive inner layer (a modified material with methane-sensitive response capability) The base sensitive layer, such as a surface-grafted modified layer doped with noble metals like Pt / Pd. Sensitive layer) - Anti-toxic and moisture-resistant outer layer (Oxide composite sensitive layer with anti-interference properties, such as load) of The composite layer dual-layer structure sensor array synchronously acquires the inner layer resistance at each node. outer layer resistance Test voltage and combined temperature ,humidity Circuit noise Equal environmental parameters are used to construct differential features between inner and outer layers. The multidimensional time-series feature vector of the inner layer resistance change rate is used, and the sliding time window method is employed to aggregate features from multiple consecutive time points into samples, constructing a training sample library covering various operating conditions such as clean air, HMDSO poisoning, high humidity, and combined interference. Details are as follows: The multi-dimensional features include at least the inner layer resistance, outer layer resistance, inner and outer layer differential features, test voltage, inner layer resistance change rate, temperature, humidity, and circuit noise at the current moment; the inner and outer layer differential features are the difference between the inner layer resistance and the outer layer resistance.

[0025] A sliding time window is used to aggregate multi-dimensional features from multiple consecutive time points into a single training sample. Statistics are calculated for each dimension of features at multiple time points within the window. The calculated statistics are then concatenated to form the feature vector of the sample corresponding to the window. The statistics include at least one of the mean, standard deviation, and slope.

[0026] Single-time feature vector Defined as:

[0027] in, : Single-time feature vector; :time The inner layer resistance; :time The outer layer resistance; :time The inner and outer layer difference characteristics, ; :time The test voltage; : Rate of change of inner layer resistance; :time Temperature; :time Humidity; :time Circuit noise; The sampling interval of a discrete sampling system.

[0028] Inner layer resistivity change rate In a discrete sampling system, the resistance difference between the current and previous sampling times and the sampling interval are used as the basis for the sampling method. The ratio calculation, that is For the first sampling time within the sliding window (without earlier historical data); The difference between the current sampling time and its next sampling time is used as the sampling interval. Approximate calculation, i.e. Under the test conditions set in this invention, since the outer layer response and the inner layer response have different sensitivities to interference factors, the differential features between the inner and outer layers can provide additional discriminative information that is different from a single resistance signal, and therefore serve as one of the key features for fusion in this method.

[0029] Use a length of The sliding window will continuously At that moment Aggregate them into a single training / recognition sample. In a preferred embodiment, the aggregation method is: [the aggregation is performed on samples within a window]. At that moment Calculate the mean, standard deviation, and slope along the time dimension, and concatenate them to form the feature vector of the samples corresponding to that window. The total dimension of the features is denoted as . , This is the product of the dimension of the feature vector at a single time step and the number of extracted statistical categories. Sample labels are based on laboratory toxicity tests (…). HMDSO atmosphere and humidity chamber testing The calibrated methane concentration range and leakage risk level were determined. The composite interference condition label was determined based on samples collected under conditions of simultaneous application of 10 ppm HMDSO atmosphere and a 70% RH humidity chamber. Specific classification standards are preset according to the methane monitoring needs of the industrial site, as shown in Table 1 below: Table 1

[0030] S3: Construct a random forest classification model based on the training sample library after two-stage optimization and screening. The two-stage optimization includes: First stage, screening candidate decision trees based on the comprehensive performance score of classification accuracy and output result consistency, and retaining candidate trees whose comprehensive score meets the preset conditions; Second stage, redundancy pruning of candidate trees based on feature similarity, and removing tree pairs with similarity exceeding the preset threshold according to the accuracy priority principle, until the forest size converges to the preset value, and the optimized forest is obtained. Step S3 is used to implement a two-stage optimized random forest dynamic ensemble modeling for the data characteristics of a two-layer sensor array. This part is one of the core innovations of this invention. Figure 3 The diagram shown is a schematic diagram of the two-stage optimized random forest construction process according to an embodiment of the present invention.

[0031] Phase 1: Comprehensive Performance Scoring and Screening (Base Learner Screening): Several independent validation subsets are divided according to the stratified sampling principle. A large-scale candidate decision tree set is generated using the Bootstrap algorithm. The consistency index between the classification accuracy and the output of the tree is evaluated on each validation subset. A comprehensive score is constructed to eliminate candidate trees with insufficient performance or overly similar outputs. The details are as follows: Based on the principle of consistent category distribution, the training sample library is divided into training sets. and multiple (optionally three) independent verification subsets Perform Bootstrap resampling on the training set to generate... Candidate decision trees ,in, The total number of candidate decision trees generated for Bootstrap resampling. To optimize forest size, Much larger than the target forest size .

[0032] For the first Candidate decision trees In three verification subsets respectively Calculate classification accuracy Take the average , : No. Trees in verifying subsets The classification accuracy; : No. Trees in verifying subsets The classification accuracy; : No. Trees in verifying subsets The classification accuracy; : No. The average classification accuracy of the tree on the three validation subsets is calculated; simultaneously, the consistency rate between the tree and the output results of the other candidate trees on the validation set is calculated. Defined as the tree and all others. The average pairwise consistency rate of the candidate trees:

[0033] in, : No. The consistency rate between the output of the selected tree and all other candidate trees; : No. Trees and the first The percentage of samples on the validation set that have the same discrimination result for the same validation sample.

[0034] Define comprehensive score :

[0035] in, Weighting coefficients to balance accuracy and diversity.

[0036] The formula uses average classification accuracy As a fundamental constraint, the sorting is performed based on output differences while meeting accuracy requirements, avoiding low-precision tree errors. ) Items received excessive rewards. Based on the existing training dataset, different The classification accuracy performance of the optimized forest on the validation subset is compared under different values. The preferred value range is 0.6 to 0.8; in the example, it is taken as... .

[0037] according to Sort the trees in descending order, remove candidate trees with lower overall scores (i.e., those that balance accuracy and output diversity), and retain the set of candidate trees with higher overall scores to proceed to the second stage.

[0038] The second stage involves redundancy pruning based on feature subset overlap. A decision tree similarity measurement method based on feature subset overlap is introduced. A similarity threshold is set, and tree pairs with highly similar features are selected, while those with lower precision are removed based on a precision-first principle. This ultimately forms an optimized forest composed of high-precision, low-relevance decision trees, balancing recognition accuracy and model simplicity. Details are as follows: For each candidate decision tree Extract the features used in each split node and the sample proportion corresponding to each node. Then, sum the contributions of the same feature across all split nodes after attenuation weighting according to node depth. Use the cumulative weighted value of each feature to construct the first split node. Features of candidate decision trees using vectors , : No. The cumulative node weight of the first feature in the tree; : No. The first of the trees The cumulative node weights of each feature; is the total dimension of the features. The weight of a single split node is calculated as follows: calculate, This represents the percentage of samples corresponding to the split nodes for this feature. This represents the depth of the node in the tree. A preset attenuation coefficient is used; the weights of multiple nodes that reuse features are summed based on the number of node splits and the proportion of samples covered, i.e., the feature weights. Corresponding:

[0039] in, : No. Features of a tree The cumulative node weights; :feature The total number of times the tree was used for splitting; :feature No. The percentage of samples corresponding to the node used for splitting; :feature No. The depth of the corresponding node in the tree is used during splitting.

[0040] Define inter-tree similarity:

[0041] in, : No. Trees and the first Similarity between trees; : No. The features of each candidate decision tree are used as vectors; :vector The modulus (Euclidean norm); :vector The modulus (Euclidean norm) Determining the optimal similarity threshold using grid search. The grid search is based on the optimized forest obtained after pruning. In three independent verification subsets Maximizing the average classification accuracy is the objective function. The optimal value of this objective function is selected by iterating through a preset threshold interval. Regarding similarity Tree pairs are removed based on the principle of precision priority. Those with lower values, The average classification accuracy of the decision tree is used; the process is iterated repeatedly until the forest size converges to the preset value. This yields the final optimized forest. .in, Optimize the forest The first in A decision tree.

[0042] It is important to clarify the distinction between the two-stage collaborative logic and the two diversity measures: If the second stage of similarity removal is performed first, since the candidate tree set at this point contains a large number of low-precision trees, similarity removal can only guarantee feature diversity but cannot guarantee the classification accuracy of the retained trees, thus leading to a decrease in the overall accuracy of the optimized forest. Therefore, the first stage of comprehensive performance scoring should be used for screening before the second stage of redundant pruning based on feature similarity is performed. It should be noted that the consistency rate in the first stage... The measure is the consistency of the final decision results of the decision tree, used to remove trees with poor classification performance or similar outputs due to randomness; the second stage uses similarity as a feature. It measures the similarity of the features used to split nodes, specifically targeting... , Strongly correlated features repeatedly dominate the splitting path, but the randomness of the splitting threshold affects the consistency rate of the output results. The first stage addresses situations where the performance is too low to be effectively eliminated in the second stage. The two stages have different measurement dimensions and complement each other, rather than being redundant designs. The first stage ensures that the tree set has a minimum performance lower bound, while the second stage specifically addresses the feature homogenization problem caused by the strong correlation features of the two-layer sensor array to further reduce redundancy. Both are indispensable and their order cannot be reversed, thereby achieving an efficient balance between the accuracy and diversity of the base learner.

[0043] S4: Based on the out-of-bag samples of each decision tree in the optimized forest, calculate the importance scores of each dimension of features according to different working conditions, and construct the mapping relationship between working conditions and feature weights; Step S4 is used to implement an adaptive weighting mechanism for feature importance based on out-of-bag (OOB) samples. This is the second core innovation of this invention.

[0044] Based on out-of-bag (OOB) samples from each decision tree in the same optimized random forest, the features of each dimension (especially the difference features between inner and outer layers) are calculated separately according to the working conditions. The importance score of each condition (operating condition labels are assigned based on the atmospheric conditions and environmental parameters applied during the experimental phase) is used to construct an "operating condition-feature weight" mapping table. During online identification, the current operating condition category is first determined based on humidity readings and short-term resistance fluctuation statistical characteristics. The corresponding feature weight vector is then obtained from the table, and the weights of each decision tree in the voting phase are dynamically adjusted accordingly. This suppresses the influence of interference features and strengthens the contribution of anti-interference features, thereby achieving adaptive suppression of cross-sensitive interference. Multiple operating conditions are included, such as clean air conditions, HMDSO poisoning conditions, high humidity conditions, and composite interference conditions where HMDSO poisoning and high humidity coexist. The sample labels in the training sample library are calibrated based on methane concentration ranges and leakage risk levels.

[0045] Furthermore, training samples are divided according to work condition categories. Based on the out-of-bag samples of each decision tree in the optimized forest, the importance scores of each dimension feature under each work condition are calculated and normalized to construct the mapping relationship between work conditions and feature weight vectors. The importance score is calculated as follows: for each work condition, the original error of each decision tree on the out-of-bag samples and the error of the decision tree on the out-of-bag samples after replacing a certain feature are calculated. The difference between the error after replacement and the original error is used as the importance measure of the feature under the decision tree. The average value of the importance measures under all decision trees is taken and non-negative, which is used as the importance score of the dimension feature under the work condition.

[0046] The adaptive weighting process for feature importance is as follows: The training set was divided into subsets according to operating condition labels (cleanliness, HMDSO poisoning, high humidity, and combined interference), and the same optimized forest was used. For each decision tree, out-of-bag (OOB) samples are grouped according to working conditions, and the importance of each feature is calculated and nonnegated.

[0047] in, Operating conditions Lower features Importance score; For the first Trees in working condition The original error on the OOB sample, For the first Trees in working condition Lower permutation features The error after that, This indicates the operating condition category index (cleaning / HMDSO poisoning / high humidity / complex interference). For working conditions The total number of decision trees in the training subset is based on the samples from this specific work condition as the out-of-bag samples. If a certain work condition... If the importance of all features calculated below is zero, then each component is considered as... The uniformly distributed vector is used as the working condition. This avoids the situation where the denominator is zero during the normalization process.

[0048] This yields the results for each working condition. Feature importance vector They are then normalized to form a "working condition-feature weight" mapping table.

[0049] S5: Determine the current working condition based on the feature information of the current data, adjust the voting weight of each decision tree in the random forest classification model according to the importance weight information corresponding to the current working condition, and output the methane identification result based on the weighted voting result.

[0050] Step S5 is used to implement weighted integrated voting output. By combining the verification accuracy weights of each decision tree and the matching degree between their feature vectors and the adaptive weight vector of the current operating condition, a weighted vote is performed on the discrimination results of each decision tree in the optimized forest, and the methane concentration level and leakage risk level are output.

[0051] Furthermore, the current operating condition is determined based on the feature information of the current data. Specifically, based on the humidity information and resistance fluctuation information of the current sample, the operating condition category of the current sample is determined according to the pre-established probability density model of each operating condition; and the corresponding feature weight vector is obtained from the mapping relationship based on the determination result as the current adaptive weight vector.

[0052] Furthermore, the voting weights of each decision tree in the random forest classification model are adjusted according to the importance weight information corresponding to the current working condition. This includes: for each decision tree in the optimized forest, determining the voting weight of the decision tree in the current identification based on the matching degree between the feature vector of the decision tree and the adaptive weight vector, and combining the verification accuracy of the decision tree; summing the voting weights of all decision trees under each category, and selecting the category with the largest weight sum as the final judgment result output.

[0053] The specific process is as follows: During the online identification phase, based on the current sample at time... humidity reading The operating condition category is determined based on indicators such as short-term resistance fluctuation rate (e.g., standard deviation within a window). Specifically, this is done in advance based on training subsets for various operating conditions, including cleanliness, HMDSO poisoning, high humidity, and combined interference. The statistical distribution of short-time resistance fluctuations was analyzed, and the Gaussian kernel density estimation method was used to establish the statistical distribution of each operating condition category. Joint probability density model of humidity value and resistivity fluctuation According to Bayes' rule Calculate the class membership probability, where, For each working condition The prior probability can be estimated from the proportion of each working condition in the training sample; Operating conditions Lower eigenvectors Class-conditional probability density; : Current sample Belongs to working condition The posterior probability.

[0054] Based on this weighted combination, the current adaptive weight vector is obtained:

[0055] in, : Current sample The adaptive feature weight vector.

[0056] Weighted voting decision-making: optimizing the decision of each tree in the forest Calculate its features using vectors With the current adaptive weight vector The cosine similarity is calculated and then nonnegated. This avoids negative weights when feature directions are opposite. Combined with its verification accuracy... This constitutes the voting weight of the tree in this judgment.

[0057] normalize Defined as for all candidate trees After summing the values, normalize them to make . : No. The features of each decision tree are used as vectors; : No. The verification accuracy of each decision tree.

[0058] Because optimizing the forest ensures that each decision tree completes at least one effective node split, Since the vector is always non-zero, the denominator of the cosine calculation is not zero.

[0059] Among them, normalize : Normalization function, which makes the sum of the voting weights of all trees equal to 1; : No. Trees for the current sample The voting weight.

[0060] The final classification is as follows:

[0061] in, For the set of all concentration level categories, Indicates a concentration level category index; The final output category is determined. : Indicator function, which takes the condition in parentheses as true, i.e., when the predicted class of the k-th decision tree for the current sample x is equal to... The value is 1 if it is true, and 0 otherwise.

[0062] This enables an adaptive anti-interference voting mechanism that dynamically adjusts the voting power of each decision tree based on the current interference conditions of the sample. Compared with the traditional random forest equal-weighted voting, it helps to suppress misjudgment results dominated by HMDSO poisoning and high humidity interference characteristics.

[0063] Example 2: Figure 4 This is a schematic diagram of a module of an intelligent methane leak identification system based on multi-dimensional signal fusion using a dual-layer sensor array, according to an embodiment of the present invention. Figure 4 As shown, a methane leak intelligent identification system based on multi-dimensional signal fusion of a dual-layer sensor array is used to implement the method described in Example 1. The system includes: The dual-layer sensor array consists of multiple dual-layer gas-sensitive units, used to collect the inner layer resistance, outer layer resistance and test voltage of each gas-sensitive unit. An environmental sensing module is used to collect ambient temperature, ambient humidity, and circuit noise. The feature construction module is used to extract multi-dimensional features based on the multi-dimensional sensing signals and the environmental parameters, and to construct a training sample library covering multiple working conditions. The model building module is used to build a random forest classification model based on the training sample library after two-stage optimization and screening. The feature weight establishment module is used to calculate the importance score of each feature according to different working conditions based on the out-of-bag samples of the optimized forest, and to build a mapping relationship between working conditions and feature weights. The online identification module is used to determine the current working condition based on the feature information of the current data, adjust the voting weight of each decision tree according to the corresponding importance weight information, and output the methane identification result based on the weighted voting result.

[0064] The methane leak intelligent identification system based on multi-dimensional signal fusion of a dual-layer sensor array provided in this embodiment of the invention can execute the methane leak intelligent identification method based on multi-dimensional signal fusion of a dual-layer sensor array provided in any of the embodiments of the invention above. It has the corresponding functions and beneficial effects of executing the method. For detailed process, please refer to the relevant operations of the methane leak intelligent identification system based on multi-dimensional signal fusion of a dual-layer sensor array in the foregoing embodiments.

[0065] Example 3: Taking methane monitoring in a confined industrial space as an example, the complete determination process of the method of the present invention is illustrated. The sensor array outputs a certain moment... , The humidity sensor reading is The short-time resistance fluctuation rate (window standard deviation) is 1.2 kJ / m². .

[0066] Step 1 (Operating Condition Identification): Will and resistance fluctuation Substituting the pre-established Gaussian kernel density estimation model, we obtain the membership probabilities for each working condition (exemplary output): High humidity Composite interference clean poison .

[0067] Step Two (Adaptive Weight Acquisition): According to the "Operating Condition-Feature Weight" mapping table, the feature importance vector (exemplary output) corresponding to the high humidity operating condition is as follows: ; Corresponding to composite interference conditions .

[0068] The current adaptive weight vector is obtained through weighted calculation (example output). The normalized feature weights are as follows: : . and Weight higher than original Weights.

[0069] Step 3 (Weighted Integrated Voting): Optimize the forest A decision tree, with the validation accuracy of the first 5 trees. They are respectively Its features use vectors and The cosine similarities, after nonnegation, are 0.85, 0.72, 0.88, 0.65, and 0.78, respectively; the corresponding voting weights after normalization are... The weights are 0.042, 0.034, 0.044, 0.030, and 0.038 respectively (the sum of the weights of the remaining 45 trees is 0.812).

[0070] After obtaining the voting weights of each tree, the decision results of each decision tree are weighted and integrated according to the following formula, and the category with the highest total score is selected as the final output: ; In this embodiment, the category distribution of the 50 decision trees and the sum of the voting weights for each category are as follows: 18 decision trees predict "Level II Warning", with a sum of voting weights of 0.62; 12 decision trees predict "Level III Alarm", with a sum of voting weights of 0.21; 11 decision trees predict "Level I Safety", with a sum of voting weights of 0.11; and 9 decision trees predict "Level IV Danger", with a sum of voting weights of 0.06. Comparing the total scores of each category, the "Level II Warning" category has the highest score (0.62), so this category is selected as the final judgment result, i.e., the final output is "Methane Concentration Level: Level II (1000~5000 ppm), Leakage Risk Level: Warning".

[0071] The above probability and weight values ​​are exemplary outputs calculated by the model, used to illustrate the data processing and judgment flow of this method, and are not limited to specific sensor models or operating environments. Compared to relying solely on... The threshold-based judgment scheme, in this example, helps reduce the probability of false alarms caused by baseline drift due to high humidity.

[0072] In summary, this invention provides a method and system for intelligent identification of methane leaks based on multi-dimensional signal fusion of a dual-layer sensor array. By using dual-layer multi-modal signal fusion and dynamic integration optimization of random forest, it achieves high-precision, low-redundancy intelligent identification of methane leaks under complex operating conditions, effectively suppresses cross-sensitive interference, and can effectively improve the accuracy and reliability of methane leak identification in complex environments, as well as improve industrial deployment efficiency.

[0073] The above description is only a preferred embodiment of the present invention and is used only to explain the present invention. It is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0074] It should also be noted that, in the embodiments of this application, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0075] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined in the embodiments of this application may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown in this application, but is to be accorded the widest scope consistent with the principles and novel features disclosed in the embodiments of this application.

Claims

1. A smart identification method for methane leaks based on multidimensional signal fusion using a dual-layer sensor array, characterized in that, Includes the following steps: S1: Multidimensional sensing signals and environmental parameters are acquired using a dual-layer sensing array; the multidimensional sensing signals include the inner layer resistance, outer layer resistance, and test voltage of each gas-sensitive unit in the dual-layer sensing array; the environmental parameters include ambient temperature, ambient humidity, and circuit noise. S2: Extract multi-dimensional features based on the multi-dimensional sensing signals and environmental parameters, and construct a training sample library covering various working conditions; In step S2, the multi-dimensional features include at least the inner layer resistance, the outer layer resistance, the inner and outer layer differential features, the test voltage, the inner layer resistance change rate, the ambient temperature, the ambient humidity, and the circuit noise at the current moment; the inner and outer layer differential features are the difference between the inner layer resistance and the outer layer resistance. S3: Construct a random forest classification model based on the training sample library after two-stage optimization and screening. The two-stage optimization includes: the first stage, screening candidate decision trees based on the comprehensive performance score of classification accuracy and output result consistency, and retaining candidate trees whose comprehensive score meets the preset conditions. In the second stage, redundancy pruning of candidate trees is performed based on feature similarity. Tree pairs with similarity exceeding a preset threshold are removed according to the principle of precision priority, until the forest size converges to the preset value, thus obtaining the optimized forest. S4: Based on the out-of-bag samples of each decision tree in the optimized forest, calculate the importance scores of each dimension of features according to different working conditions, and construct the mapping relationship between working conditions and feature weights; S5: Determine the current working condition based on the feature information of the current data, adjust the voting weight of each decision tree in the random forest classification model according to the feature weight corresponding to the current working condition, and output the methane identification result based on the weighted voting result.

2. The method according to claim 1, characterized in that, In step S2, a sliding time window is used to aggregate multi-dimensional features from multiple consecutive time points into a training sample. Statistics are calculated for each dimension of features at multiple time points within the window, and the calculated statistics are concatenated to form the feature vector of the sample corresponding to the window. The statistics include at least one of mean, standard deviation, and slope.

3. The method according to claim 2, characterized in that, The rate of change of inner layer resistance is calculated in the discrete sampling system by the ratio of the resistance difference between the current sampling time and the previous sampling time to the sampling interval. For the first sampling moment within the sliding time window, the ratio of the resistance difference between the current sampling moment and the next sampling moment to the sampling interval is calculated.

4. The method according to claim 1, characterized in that, The various operating conditions include clean air operating conditions, hexamethyldisiloxane poisoning operating conditions, high humidity operating conditions, and composite interference operating conditions where hexamethyldisiloxane poisoning and high humidity coexist. The sample labels in the training sample library are calibrated based on the methane concentration range and the leakage risk level.

5. The method according to claim 2, characterized in that, In step S3, in the first stage, the training sample library is divided into a training set and multiple independent validation subsets according to the principle of consistent category distribution, and Bootstrap resampling is performed on the training set to generate several candidate decision trees; For each candidate decision tree, the classification accuracy is calculated on each of the validation subsets and the average value is taken. The consistency rate between the tree and the other candidate decision trees on the validation set is calculated. The consistency rate is the average of the pairwise consistency rates between the tree and the other candidate decision trees. A comprehensive score is calculated based on the average classification accuracy and the consistency rate. Candidate trees that meet the comprehensive score criteria are then sorted in descending order and retained for the second stage.

6. The method according to claim 5, characterized in that, In step S3, in the second stage, for each candidate decision tree, the features used by each split node and the sample proportion corresponding to each node are extracted. The contribution of the same feature on all split nodes is weighted by the node depth and then summed. The cumulative weighted value of each feature is used to form the feature usage vector of the candidate decision tree. The similarity between the feature vectors of any two candidate decision trees is used as the feature of the two candidate decision trees. For tree pairs with similarity exceeding a preset threshold, those with lower accuracy are removed based on the principle of prioritizing accuracy. This process is repeated until the forest size converges to the preset value, resulting in an optimized forest.

7. The method according to claim 6, characterized in that, The order between the first stage, which filters based on classification accuracy and consistency of output results, and the second stage, which performs redundancy pruning based on feature similarity, is fixed. The first stage is executed first, followed by the second stage. The first stage is used to eliminate candidate trees with insufficient classification performance or similar output results, while the second stage is used to eliminate candidate trees that have become homogenized at the feature level due to strong correlation features repeatedly dominating the splitting path.

8. The method according to claim 1, characterized in that, S4 includes: Training samples are divided according to work condition categories. Based on the out-of-bag samples of each decision tree in the optimized forest, the importance scores of each dimension of features under each work condition are calculated and normalized to construct the mapping relationship between work conditions and feature weight vectors. The importance score is calculated as follows: for each working condition, the original error of each decision tree on the out-of-bag samples and the error of the decision tree on the out-of-bag samples after replacing a certain feature are calculated respectively. The difference between the error after replacement and the original error is used as the importance measure of the feature under the decision tree. The average value of the importance measures under all decision trees is taken as a non-negative value as the importance score of the feature in the working condition.

9. The method according to claim 6, characterized in that, In step S5, the step of determining the current working condition based on the feature information of the current data specifically involves: determining the working condition category of the current sample based on the humidity information and resistance fluctuation information of the current sample and the pre-established probability density model of each working condition; obtaining the corresponding feature weight vector from the mapping relationship based on the determination result as the current adaptive weight vector; wherein, the resistance fluctuation information is the resistance standard deviation of the current sample within the sliding time window; The step of adjusting the voting weights of each decision tree in the random forest classification model according to the feature weights corresponding to the current working condition includes: for each decision tree in the optimized forest, determining the voting weight of the decision tree in the current identification based on the matching degree between the feature usage vector of the decision tree and the adaptive weight vector, and combining the verification accuracy of the decision tree; summing the voting weights of all decision trees under each category, and selecting the category with the largest weight sum as the final judgment result output.

10. The method according to claim 1, characterized in that, The dual-layer sensing array is composed of multiple dual-layer gas-sensitive units. Each dual-layer gas-sensitive unit includes a ceramic tube, a sensitive inner layer disposed on the surface of the ceramic tube and an anti-toxic and moisture-resistant outer layer, as well as an electrode and a heating wire disposed on the ceramic tube. The sensitive inner layer is a metal oxide sensitive layer with methane-sensitive response capability, and the anti-toxic and moisture-resistant outer layer is an oxide composite layer with anti-interference properties. The sensitive inner layer and the anti-toxic and moisture-resistant outer layer together constitute a double-layer sensitive structure.

11. A methane leak intelligent identification system based on multi-dimensional signal fusion of a dual-layer sensor array, characterized in that, For implementing the method as described in any one of claims 1-10, comprising: The dual-layer sensor array consists of multiple dual-layer gas-sensitive units, used to collect the inner layer resistance, outer layer resistance and test voltage of each gas-sensitive unit. An environmental sensing module is used to collect ambient temperature, ambient humidity, and circuit noise. The feature construction module is used to extract multi-dimensional features based on the multi-dimensional sensing signals and the environmental parameters, and to construct a training sample library covering multiple working conditions. The model building module is used to build a random forest classification model based on the training sample library after two-stage optimization and screening. The feature weight establishment module is used to calculate the importance score of each feature according to different working conditions based on the out-of-bag samples of the optimized forest, and to build a mapping relationship between working conditions and feature weights. The online identification module is used to determine the current working condition based on the feature information of the current data, adjust the voting weight of each decision tree according to the corresponding feature weight, and output the methane identification result based on the weighted voting result.

Citation Information

Patent Citations

  • Double-layer structure SnO2-based methane sensor capable of resisting HMDSO poisoning and preparation method of double-layer structure SnO2-based methane sensor

    CN114113241A

  • Random forest-based gas type and concentration prediction method, system and device

    CN116759014A