Hydrogen sulfide gas detection system and method

Multi-scale feature analysis of hydrogen sulfide gas pressure is performed through deep learning technology to distinguish natural fluctuations from fluctuations caused by leaks, which solves the problem of insufficient sensitivity of existing detection methods and achieves more accurate leak identification.

CN118506900BActive Publication Date: 2024-09-27XINJIANG DINGCHENG TESTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410958321.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Existing hydrogen sulfide gas detection methods are not sensitive enough to detect hydrogen sulfide gas leaks, making it difficult to distinguish pressure fluctuations caused by leaks from natural fluctuations, resulting in missed alarms and false alarms.

Method used

Data processing technology based on deep learning is used to obtain the time series of hydrogen sulfide gas pressure collected by the pressure sensor, perform time series feature analysis and fusion, and use multi-scale feature aggregation representation vectors to distinguish natural fluctuations and fluctuations caused by leakage, and generate detection results.

Benefits of technology

It improves the accuracy of hydrogen sulfide gas leak detection, reduces false alarms and false negatives, and enables a deeper understanding of the dynamic changes in hydrogen sulfide gas pressure data to accurately identify leaks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506900B
    Figure CN118506900B
Patent Text Reader

Abstract

The present application relates to the field of intelligent detection, and specifically discloses a hydrogen sulfide gas detection system and method, which obtains the time series of hydrogen sulfide gas pressure collected by a pressure sensor, and uses data processing and analysis technology based on deep learning to perform time series feature analysis and fusion on the hydrogen sulfide gas pressure, so as to automatically obtain the detection result of whether there is a leak according to the time series aggregation characteristics of the hydrogen sulfide gas pressure on different time scales. In this way, the dynamic changes of hydrogen sulfide gas pressure data can be more deeply understood, so as to distinguish the natural fluctuations of hydrogen sulfide gas pressure and the fluctuations caused by leakage, thereby reducing false alarms and missed alarms to more accurately identify hydrogen sulfide gas leaks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent detection, and more specifically, to a hydrogen sulfide gas detection system and method. Background Art

[0002] Hydrogen sulfide (chemical formula H2S) is a colorless, highly toxic acidic gas known for its strong rotten egg smell. In nature, hydrogen sulfide can be produced by the decomposition of organic matter or the metabolic activities of certain microorganisms. Since it can quickly accumulate to lethal concentrations without warning, forming potential danger zones, detection is required to ensure environmental safety.

[0003] Fluctuations in gas pressure or pipeline pressure during flow may be caused by a variety of factors, including natural fluctuations and potential leaks. However, some traditional hydrogen sulfide gas detection methods are not sensitive enough to detect hydrogen sulfide, and it is difficult to distinguish whether the hydrogen sulfide gas is caused by pressure fluctuations caused by leaks or natural fluctuations, resulting in missed reports and false alarms.

[0004] Therefore, an optimized hydrogen sulfide gas detection system is desired. Summary of the invention

[0005] In order to solve the above technical problems, this application is proposed.

[0006] According to one aspect of the present application, a hydrogen sulfide gas detection system is provided, which includes: a hydrogen sulfide gas pressure acquisition module, used to obtain a time series of hydrogen sulfide gas pressure collected by a pressure sensor; a pressure time series arrangement module, used to arrange the time series of the hydrogen sulfide gas pressure according to the time dimension into a pressure time series input vector; a time series vector segmentation module, used to perform vector segmentation on the pressure time series input vector to obtain a sequence of first-scale pressure local time series input vectors and a sequence of second-scale pressure local time series input vectors; a pressure time series aggregation module, used to input the sequence of the first-scale pressure local time series input vectors and the sequence of the second-scale pressure local time series input vectors into a pressure time series feature aggregation analyzer of fusion node importance to obtain a first-scale pressure time series aggregation representation vector and a second-scale pressure time series aggregation representation vector; a multi-scale feature fusion module, used to perform feature fusion on the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector to obtain a multi-scale pressure time series aggregation representation vector as a multi-scale pressure time series aggregation representation feature; a detection result generation module, used to obtain a detection result based on the multi-scale pressure time series aggregation representation feature.

[0007] In the above-mentioned hydrogen sulfide gas detection system, the time series vector segmentation module includes: a first-scale time series segmentation unit, used to perform vector segmentation on the pressure time series input vector at a first time scale to obtain a sequence of the first-scale pressure local time series input vectors; and a second-scale time series segmentation unit, used to perform vector segmentation on the pressure time series input vector at a second time scale to obtain a sequence of the second-scale pressure local time series input vectors.

[0008] In the above-mentioned hydrogen sulfide gas detection system, the pressure time series aggregation module includes: a significant factor calculation unit, which is used to use a scoring function to measure the significant factors of the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vector to obtain k-1 first-scale pressure local time series significant factors; a local time series aggregation unit, which is used to use the k-1 first-scale pressure local time series significant factors as weights to calculate the position-weighted sum of the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vector to aggregate the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vector to obtain the first of the rear node sets. A scale pressure local time series aggregate representation vector; a linear modulation unit, used to use preset hyperparameters to linearly modulate the kth first-scale pressure local time series input vector in the sequence of the first-scale pressure local time series input vector to obtain the kth first-scale pressure local time series input vector after modulation; a full-node aggregation unit, used to calculate the positional sum of the kth first-scale pressure local time series input vector after modulation and the first-scale pressure local time series aggregate representation vector of the rear node set to obtain the first-scale pressure local time series full-node aggregate representation vector; and a multi-layer perceptron processing unit, used to input the first-scale pressure local time series full-node aggregate representation vector into a multi-layer perceptron model to obtain the first-scale pressure time series aggregate representation vector.

[0009] In the above hydrogen sulfide gas detection system, the significant factor calculation unit includes: a feature weighting subunit, which is used to respectively calculate the matrix product between each weight coefficient matrix and the first k-1 first-scale pressure local time series input vectors to obtain the first k-1 first-scale pressure local time series weighted input vectors; a feature bias calculation subunit, which is used to add the corresponding bias vector to each first-scale pressure local time series weighted input vector in the first k-1 first-scale pressure local time series weighted input vectors to obtain the first k-1 first-scale pressure local time series bias input vectors; a feature activation subunit, which is used to add the first k-1 first-scale pressure local time series weighted input vectors to the first k-1 first-scale pressure local time series weighted input vectors. k-1 first-scale pressure local time series bias input vectors are activated to obtain the first k-1 first-scale pressure local time series activation input vectors; a local time series correlation calculation subunit is used to calculate the product between each first-scale pressure local time series activation input vector in the first k-1 first-scale pressure local time series activation input vectors and the weight coefficient vector to obtain the first k-1 first-scale pressure local time series correlation; and a nonlinear processing subunit is used to perform nonlinear processing on the first k-1 first-scale pressure local time series correlations to obtain the k-1 first-scale pressure local time series significance factors.

[0010] In the above hydrogen sulfide gas detection system, the feature activation subunit is used to: input the first k-1 first-scale pressure local time series bias input vectors The function is activated to obtain the first k-1 first-scale pressure local time series activation input vectors.

[0011] In the above hydrogen sulfide gas detection system, the nonlinear processing subunit is used to: input the first k-1 first-scale pressure local time series correlation degrees into function to obtain the k-1 first-scale pressure local time series significance factors.

[0012] In the above hydrogen sulfide gas detection system, the detection result generation module is used to: input the multi-scale pressure time series aggregation representation vector into a classifier-based leakage detector to obtain a detection result, and the detection result is used to indicate whether there is a leakage.

[0013] The above hydrogen sulfide gas detection system also includes a training module for training the pressure time series feature aggregation analyzer of the importance of the fusion node and the classifier-based leakage detector.

[0014] In the above-mentioned hydrogen sulfide gas detection system, the training module includes: a training data acquisition unit, which is used to acquire training data, wherein the training data includes a time series of training hydrogen sulfide gas pressure collected by a pressure sensor, and a true value of whether there is a leak; a training data arrangement unit, which is used to arrange the time series of training hydrogen sulfide gas pressure according to the time dimension into a training pressure time series input vector; a training data first scale segmentation unit, which is used to vector segment the training pressure time series input vector at a first time scale to obtain a sequence of training first scale pressure local time series input vectors; a training data second scale segmentation unit, which is used to vector segment the training pressure time series input vector at a second time scale to obtain a sequence of training second scale pressure local time series input vectors; a training time series feature aggregation unit, which is used to aggregate the sequence of the training first scale pressure local time series input vector and the sequence of the training second scale pressure local time series input vector. A pressure time series feature aggregation analyzer for inputting the fusion node importance is used to obtain a training first-scale pressure time series aggregation representation vector and a training second-scale pressure time series aggregation representation vector; a training data feature fusion unit is used to perform feature fusion on the training first-scale pressure time series aggregation representation vector and the training second-scale pressure time series aggregation representation vector to obtain a training multi-scale pressure time series aggregation representation vector; a training detection result generation unit is used to pass the training multi-scale pressure time series aggregation representation vector through the classifier-based leakage detector to obtain a training detection result; a classification loss unit is used to calculate the cross entropy loss function value between the training detection result and the true value of whether there is a leakage to obtain a classification loss function value; and a training unit is used to train the pressure time series feature aggregation analyzer for the fusion node importance and the classifier-based leakage detector based on the classification loss function value and through back propagation of gradient descent.

[0015] According to another aspect of the present application, a hydrogen sulfide gas detection method is provided, which includes: acquiring a time series of hydrogen sulfide gas pressure collected by a pressure sensor; arranging the time series of hydrogen sulfide gas pressure into a pressure time series input vector according to the time dimension; performing vector segmentation on the pressure time series input vector to obtain a sequence of first-scale pressure local time series input vectors and a sequence of second-scale pressure local time series input vectors; inputting the sequence of the first-scale pressure local time series input vectors and the sequence of the second-scale pressure local time series input vectors into a pressure time series feature aggregation analyzer of fusion node importance to obtain a first-scale pressure time series aggregation representation vector and a second-scale pressure time series aggregation representation vector; performing feature fusion on the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector to obtain a multi-scale pressure time series aggregation representation vector as a multi-scale pressure time series aggregation representation feature; and obtaining a detection result based on the multi-scale pressure time series aggregation representation feature.

[0016] Compared with the prior art, the present application provides a hydrogen sulfide gas detection system and method, which obtains the time series of hydrogen sulfide gas pressure collected by the pressure sensor, and uses data processing and analysis technology based on deep learning to perform time series feature analysis and fusion on the hydrogen sulfide gas pressure, so as to automatically obtain the detection result of whether there is a leak according to the time series aggregation characteristics of the hydrogen sulfide gas pressure on different time scales. In this way, the dynamic changes of hydrogen sulfide gas pressure data can be more deeply understood, so as to distinguish the natural fluctuations of hydrogen sulfide gas pressure and the fluctuations caused by leakage, thereby reducing false alarms and missed alarms to more accurately identify hydrogen sulfide gas leaks. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0018] Figure 1 4 is a block diagram of a hydrogen sulfide gas detection system according to an embodiment of the present application.

[0019] Figure 2 Schematic diagram of the architecture of a hydrogen sulfide gas detection system according to an embodiment of the present application.

[0020] Figure 3 4 is a block diagram of a timing vector segmentation module in a hydrogen sulfide gas detection system according to an embodiment of the present application.

[0021] Figure 4It is a block diagram of a pressure timing aggregation module in a hydrogen sulfide gas detection system according to an embodiment of the present application.

[0022] Figure 5 4 is a block diagram of a training module in a hydrogen sulfide gas detection system according to an embodiment of the present application.

[0023] Figure 6 Flow chart of a hydrogen sulfide gas detection method according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] The embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, but rather these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0026] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0028] In response to the above technical problems, the technical concept of the present application is to obtain the time series of hydrogen sulfide gas pressure collected by the pressure sensor, and use data processing and analysis technology based on deep learning to analyze and fuse the time series characteristics of the hydrogen sulfide gas pressure, so as to automatically obtain the detection result of whether there is a leak according to the time series aggregation characteristics of the hydrogen sulfide gas pressure on different time scales. In this way, it is possible to have a deeper understanding of the dynamic changes of hydrogen sulfide gas pressure data, so as to distinguish the natural fluctuations of hydrogen sulfide gas pressure and the fluctuations caused by leakage, thereby reducing false alarms and missed alarms to more accurately identify hydrogen sulfide gas leaks.

[0029] Figure 1 4 is a block diagram of a hydrogen sulfide gas detection system according to an embodiment of the present application. Figure 2 Schematic diagram of the structure of the hydrogen sulfide gas detection system according to the embodiment of the present application. Figure 1 and Figure 2 As shown, according to the embodiment of the present application, the hydrogen sulfide gas detection system 100 includes: a hydrogen sulfide gas pressure acquisition module 110, which is used to obtain the time series of the hydrogen sulfide gas pressure collected by the pressure sensor; a pressure time series arrangement module 120, which is used to arrange the time series of the hydrogen sulfide gas pressure according to the time dimension into a pressure time series input vector; a time series vector segmentation module 130, which is used to vector segment the pressure time series input vector to obtain a sequence of the first scale pressure local time series input vector and a sequence of the second scale pressure local time series input vector; a pressure time series aggregation module 140, which is used to aggregate the first scale pressure local time series input vector into a pressure time series input vector; a pressure time series aggregation module 140, which is used to aggregate the first scale pressure local time series input vector into a pressure time series input vector; a pressure time series aggregation module 15 ... The sequence of the local time series input vectors and the sequence of the second-scale pressure local time series input vectors are input into a pressure time series feature aggregation analyzer of the importance of the fusion node to obtain a first-scale pressure time series aggregation representation vector and a second-scale pressure time series aggregation representation vector; a multi-scale feature fusion module 150, which is used to perform feature fusion on the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector to obtain a multi-scale pressure time series aggregation representation vector as a multi-scale pressure time series aggregation representation feature; and a detection result generation module 160, which is used to obtain a detection result based on the multi-scale pressure time series aggregation representation feature.

[0030] In an embodiment of the present application, the hydrogen sulfide gas pressure acquisition module 110 is used to obtain the time series of the hydrogen sulfide gas pressure collected by the pressure sensor. It should be understood that the hydrogen sulfide gas pressure refers to the pressure exerted by the hydrogen sulfide gas on the container wall or the pipeline wall in a certain space. In particular, when the hydrogen sulfide gas leaks, the pressure sensor can detect a sudden drop or change in pressure, which is a key indicator for identifying a leakage event. Based on this, in the technical solution of the present application, obtaining the time series of the hydrogen sulfide gas pressure collected by the pressure sensor can better understand and control the behavior of the hydrogen sulfide gas and prevent accidents.

[0031] In an embodiment of the present application, the pressure time series arrangement module 120 is used to arrange the time series of the hydrogen sulfide gas pressure into a pressure time series input vector according to the time dimension. Accordingly, considering that the hydrogen sulfide gas pressure has time correlation, that is, the hydrogen sulfide gas pressure will continue to fluctuate and change over time. Therefore, in order to show the trend of the hydrogen sulfide gas pressure changing over time while retaining the correlation between various data in the time dimension, in the technical solution of the present application, the time series of the hydrogen sulfide gas pressure is arranged into a pressure time series input vector according to the time dimension. In this way, the order of the change of the hydrogen sulfide gas pressure over time can be more accurately identified, so as to more clearly analyze and capture the change pattern of the hydrogen sulfide gas pressure on the time scale, such as periodic fluctuations, sudden drops, etc., and understand the mutual dependence between them in the time dimension, thereby improving the accuracy and reliability of leak detection.

[0032] In the embodiment of the present application, the time series vector segmentation module 130 is used to perform vector segmentation on the pressure time series input vector to obtain a sequence of first-scale pressure local time series input vectors and a sequence of second-scale pressure local time series input vectors. Figure 3 is a block diagram of a time series vector segmentation module in a hydrogen sulfide gas detection system according to an embodiment of the present application. Specifically, in the embodiment of the present application, Figure 3 As shown, the time series vector segmentation module 130 includes: a first-scale time series segmentation unit 131, used to perform vector segmentation on the pressure time series input vector at a first time scale to obtain a sequence of the first-scale pressure local time series input vectors; and a second-scale time series segmentation unit 132, used to perform vector segmentation on the pressure time series input vector at a second time scale to obtain a sequence of the second-scale pressure local time series input vectors.

[0033] Specifically, the first scale time series segmentation unit 131 is used to vector segment the pressure time series input vector at the first time scale to obtain a sequence of the first scale pressure local time series input vector. It should be understood that, considering that the pressure time series input vector reflects different pressure time series change trends and fluctuations in different shorter local time periods, such as the pressure continues to increase over a period of time, and the pressure has abnormal values ​​over a period of time, these local time pressure change trends are crucial to the leakage point of pipeline hydrogen sulfide gas. Based on this, in the technical solution of the present application, the pressure time series input vector is vector segmented at the first time scale to obtain a sequence of the first scale pressure local time series input vector. It should be understood that the first time scale usually represents the finest-grained time series information. Specifically, by segmenting the pressure time series input vector into a sequence of the first scale pressure local time series input vector, the model can focus on the local time series pattern of pressure, so that the pressure change trend and fluctuation can be observed on a finer time scale, thereby capturing the subtle pressure time series changes and patterns in the pressure local time series sequence.

[0034] Specifically, the second-scale time series segmentation unit 132 is used to perform vector segmentation on the pressure time series input vector at a second time scale to obtain a sequence of the second-scale pressure local time series input vector. Accordingly, it is considered that the pressure time series input vector also has a long-term change pattern of pressure between longer time spans. Therefore, in order to more accurately analyze the time series change pattern of the pressure time series input vector under different time spans, in the technical solution of the present application, further, the pressure time series input vector is vector segmented at a second time scale to obtain a sequence of the second-scale pressure local time series input vector. In particular, the second time scale is usually larger than the first time scale, which allows the model to capture the longer-term time series change pattern and trend of the pressure time series input vector, which helps to more comprehensively and comprehensively understand the long-term change characteristics of pressure over time, so as to provide richer and more reliable data support, thereby improving the comprehensive performance of the hydrogen sulfide gas leakage detection system.

[0035] In the embodiment of the present application, the pressure time series aggregation module 140 is used to input the sequence of the first-scale pressure local time series input vector and the sequence of the second-scale pressure local time series input vector into the pressure time series feature aggregation analyzer of the fusion node importance to obtain the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector. It should be understood that, considering that each pressure local time series input vector in the sequence of the first-scale pressure local time series input vector and the sequence of the second-scale pressure local time series input vector has the association and dependence on the pressure local feature information on the entire time series. Therefore, in order to more comprehensively and effectively capture the influence and importance characteristics of each first-scale pressure local time series input vector and the second-scale pressure local time series input vector on the global time series, in the technical solution of the present application, the sequence of the first-scale pressure local time series input vector and the sequence of the second-scale pressure local time series input vector are input into the pressure time series feature aggregation analyzer of the fusion node importance to obtain the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector. Specifically, the pressure time series feature aggregation analyzer of the importance of the fusion node weights the importance of the pressure local time series patterns of the first k-1 pressure local time series input vectors in the sequence of the pressure local time series input vectors through the significant pressure local time series feature information of the first k-1 pressure local time series input vectors on the entire time scale, and optimizes the kth pressure local time series input vector based on the first k-1 weighted features. In this way, the model can focus on the pressure change patterns that are most relevant to leak detection and reduce the impact of irrelevant or redundant patterns, while integrating the features of multiple pressure local time series input vectors into a unified representation vector to more comprehensively capture the characteristics of pressure changes, and obtain a multi-dimensional, multi-time-scale first-scale pressure time series aggregation representation vector and a second-scale pressure time series aggregation representation vector.

[0036] Figure 4 is a block diagram of a pressure timing aggregation module in a hydrogen sulfide gas detection system according to an embodiment of the present application. Specifically, in the embodiment of the present application, Figure 4As shown, the pressure time series aggregation module 140 includes: a significant factor calculation unit 141, which is used to use a scoring function to measure the significant factors of the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vector to obtain k-1 first-scale pressure local time series significant factors; a local time series aggregation unit 142, which is used to use the k-1 first-scale pressure local time series significant factors as weights to calculate the position-weighted sum of the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vector to aggregate the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vector to obtain the first-scale pressure local time series of the rear node set. A time series aggregation representation vector; a linear modulation unit 143, used to use a preset hyperparameter to linearly modulate the kth first-scale pressure local time series input vector in the sequence of the first-scale pressure local time series input vector to obtain the kth first-scale pressure local time series input vector after modulation; a full-node aggregation unit 144, used to calculate the positional sum of the kth first-scale pressure local time series input vector after modulation and the first-scale pressure local time series aggregation representation vector of the rear node set to obtain the first-scale pressure local time series full-node aggregation representation vector; and a multi-layer perceptron processing unit 145, used to input the first-scale pressure local time series full-node aggregation representation vector into a multi-layer perceptron model to obtain the first-scale pressure time series aggregation representation vector. In particular, the processing process of the sequence of the second-scale pressure local time series input vector is consistent with the processing process of the sequence of the first-scale pressure local time series input vector.

[0037] More specifically, in the embodiment of the present application, the significant factor calculation unit includes: a feature weighting subunit, which is used to respectively calculate the matrix product between each weight coefficient matrix and the first k-1 first-scale pressure local time series input vectors to obtain the first k-1 first-scale pressure local time series weighted input vectors; a feature bias calculation subunit, which is used to add the corresponding bias vector to each first-scale pressure local time series weighted input vector in the first k-1 first-scale pressure local time series weighted input vectors to obtain the first k-1 first-scale pressure local time series bias input vectors; a feature activation subunit, which is used to add the first k-1 first-scale pressure local time series weighted input vectors to the first k-1 first-scale pressure local time series weighted input vectors. k-1 first-scale pressure local time series bias input vectors are activated to obtain the first k-1 first-scale pressure local time series activation input vectors; a local time series correlation calculation subunit is used to calculate the product between each first-scale pressure local time series activation input vector in the first k-1 first-scale pressure local time series activation input vectors and the weight coefficient vector to obtain the first k-1 first-scale pressure local time series correlation; and a nonlinear processing subunit is used to perform nonlinear processing on the first k-1 first-scale pressure local time series correlations to obtain the k-1 first-scale pressure local time series significance factors.

[0038] More specifically, in the embodiment of the present application, the feature activation subunit is used to: input the first k-1 first-scale pressure local time series bias input vectors The function is activated to obtain the first k-1 first-scale pressure local time series activation input vectors.

[0039] More specifically, in the embodiment of the present application, the nonlinear processing subunit is used to: input the first k-1 first-scale pressure local time series correlation degrees into function to obtain the k-1 first-scale pressure local time series significance factors.

[0040] In the embodiment of the present application, specifically, the pressure time series aggregation module includes: using the pressure time series feature aggregation analyzer of the fusion node importance, processing the sequence of the first-scale pressure local time series input vector with the following aggregation formula to obtain the first-scale pressure time series aggregation representation vector; wherein the aggregation formula is: ;in, The first scale pressure local time series input vector in the sequence A first-scale pressure local time series input vector, represents the weight coefficient matrix, is the bias vector, represents the weight coefficient vector, express function, express function, The first-scale pressure local time series significant factor at each position in the sequence representing the first-scale pressure local time series significant factor, is the number of eigenvectors in the sequence of the first-scale pressure local time series input vector, The first scale pressure local time series input vector in the sequence A first-scale pressure local time series input vector, is the preset hyperparameter, represents a multi-layer perceptron, The first scale pressure time series aggregate representation vector is obtained. In particular, the encoding method of the sequence of the second scale pressure local time series input vector is consistent with the encoding method of the sequence of the first scale pressure local time series input vector.

[0041] In an embodiment of the present application, the multi-scale feature fusion module 150 is used to perform feature fusion on the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector to obtain a multi-scale pressure time series aggregation representation vector as a multi-scale pressure time series aggregation representation feature. Accordingly, the first-scale pressure time series aggregation representation vector expresses the rapid characteristics of fine-grained changes in hydrogen sulfide gas pressure in a short period of time, such as short-term fluctuations, instantaneous pressure drops, etc., which may be related to leaks or other rapidly occurring events. The second-scale pressure time series aggregation representation vector describes the slow characteristics of long-term changes in hydrogen sulfide gas pressure on a longer time scale, such as long-term trends, periodic changes, etc., which may be related to the normal operating state of the system or a slow leakage process. Therefore, in order to comprehensively characterize the time series change pattern of hydrogen sulfide gas pressure so as to more accurately determine the leakage point, in the technical solution of the present application, the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector are feature fused to obtain a multi-scale pressure time series aggregation representation vector. In this way, by combining the pressure time series features of different time scales, the accuracy of leak detection can be improved, false alarms and missed alarms can be reduced, and more abundant and reliable data support can be provided for leak detection.

[0042] In an embodiment of the present application, the detection result generation module 160 is used to obtain a detection result based on the multi-scale pressure time series aggregation representation feature. Specifically, in an embodiment of the present application, the detection result generation module is used to: input the multi-scale pressure time series aggregation representation vector into a classifier-based leakage detector to obtain a detection result, and the detection result is used to indicate whether there is a leak. That is, the multi-scale pressure time series aggregation representation feature obtained by feature fusion of the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector is used for classification processing to automatically obtain the detection result of whether there is a leak. In this way, the dynamic changes of hydrogen sulfide gas pressure data can be more deeply understood, so as to distinguish the natural fluctuations of hydrogen sulfide gas pressure and the fluctuations caused by leakage, thereby reducing false alarms and missed alarms to more accurately identify hydrogen sulfide gas leaks.

[0043] It is worth mentioning that those skilled in the art should be aware that before applying a deep neural network model for inference, the deep neural network model must be trained so that the deep neural network can implement specific functional capabilities.

[0044] Specifically, in the technical solution of the present application, the hydrogen sulfide gas detection system also includes a training module for training the pressure time series feature aggregation analyzer of the importance of the fusion node and the classifier-based leakage detector.

[0045] Figure 5 is a block diagram of a training module in a hydrogen sulfide gas detection system according to an embodiment of the present application. Specifically, in the embodiment of the present application, Figure 5As shown, the training module 200 includes: a training data acquisition unit 210, which is used to acquire training data, wherein the training data includes a time series of training hydrogen sulfide gas pressure collected by a pressure sensor, and a true value of whether there is a leak; a training data arrangement unit 220, which is used to arrange the time series of the training hydrogen sulfide gas pressure according to the time dimension into a training pressure time series input vector; a training data first scale segmentation unit 230, which is used to vector segment the training pressure time series input vector at a first time scale to obtain a sequence of training first scale pressure local time series input vectors; a training data second scale segmentation unit 240, which is used to vector segment the training pressure time series input vector at a second time scale to obtain a sequence of training second scale pressure local time series input vectors; a training time series feature aggregation unit 250, which is used to input the sequence of the training first scale pressure local time series input vector and the sequence of the training second scale pressure local time series input vector into a training data structure; The pressure time series feature aggregation analyzer of the fusion node importance is input to obtain a training first-scale pressure time series aggregation representation vector and a training second-scale pressure time series aggregation representation vector; a training data feature fusion unit 260 is used to perform feature fusion on the training first-scale pressure time series aggregation representation vector and the training second-scale pressure time series aggregation representation vector to obtain a training multi-scale pressure time series aggregation representation vector; a training detection result generation unit 270 is used to pass the training multi-scale pressure time series aggregation representation vector through the classifier-based leakage detector to obtain a training detection result; a classification loss unit 280 is used to calculate the cross entropy loss function value between the training detection result and the true value of whether there is a leakage to obtain a classification loss function value; and a training unit 290 is used to train the pressure time series feature aggregation analyzer of the fusion node importance and the leakage detector based on the classifier based on the classification loss function value and through back propagation of gradient descent.

[0046] In a preferred embodiment, the training detection result generating unit 270 includes: calculating the autocorrelation matrix of the training multi-scale pressure time series aggregation representation vector and its own transposition, and calculating the first and The inner product of the row vectors is used as the first The matrix value of the position is obtained to obtain a weight matrix, and then the weight matrix is ​​matrix-multiplied with the autocorrelation matrix, and then further matrix-vector multiplied with the training multi-scale pressure time series aggregation representation vector to obtain a correction vector, and finally the correction vector is dot-multiplied with the training multi-scale pressure time series aggregation representation vector to obtain an optimized training multi-scale pressure time series aggregation representation vector, and the optimized training multi-scale pressure time series aggregation representation vector is passed through a classifier-based leakage detector to obtain a training detection result.

[0047] The optimization steps can be expressed as: ;in, represents the training multi-scale pressure time series aggregation representation vector, represents the transpose of a vector, represents the autocorrelation matrix, and The autocorrelation matrix is ​​represented by and row vector, represents the weight matrix, represents the weight matrix The matrix value of the position, represents the height of the autocorrelation matrix, represents the set of real numbers, represents matrix multiplication, represents dot product, Representation optimized trained multi-scale stress temporal aggregate representation vector.

[0048] That is, when the training multi-scale pressure time series aggregation representation vector is fused with the global time domain aggregation representation based on the local time domain node importance in the local time domain of the training hydrogen sulfide gas pressure at different scales, the global time domain time series distribution is not aligned due to the difference in the node importance weights of the local time domains at different scales, resulting in the discretization of the local distribution of the training multi-scale pressure time series aggregation representation vector causing the predetermined category harmony offset, thereby affecting the classification iteration effect. Based on the self-correlation dimension of the training multi-scale pressure time series aggregation representation vector as the object to be modulated, the correlation expansion is performed based on the spatial sub-dimensional complexity of the high-dimensional feature space of the feature distribution, thereby introducing the decomposable correlation dimension offset of the training multi-scale pressure time series aggregation representation vector into the heterogeneous correlation embedding space, thereby enhancing its correlation self-consistency through the joint fine-tuning of the decomposable dimension set represented by the heterogeneous correlation embedding space, so as to improve the predetermined category harmony of the feature set of the training multi-scale pressure time series aggregation representation vector in the associated target classification domain, thereby improving the classification training speed and the accuracy of the classification results when the training multi-scale pressure time series aggregation representation vector is classified by the classifier-based leakage detector. In this way, we can have a deeper understanding of the dynamic changes in hydrogen sulfide gas pressure data, so as to distinguish between natural fluctuations in hydrogen sulfide gas pressure and fluctuations caused by leakage, thereby reducing false alarms and missed alarms to more accurately identify hydrogen sulfide gas leaks.

[0049] In summary, the hydrogen sulfide gas detection system 100 based on the embodiment of the present application is explained, which obtains the time series of the hydrogen sulfide gas pressure collected by the pressure sensor, and uses the data processing and analysis technology based on deep learning to perform time series feature analysis and fusion on the hydrogen sulfide gas pressure, so as to automatically obtain the detection result of whether there is a leak according to the time series aggregation characteristics of the hydrogen sulfide gas pressure on different time scales. In this way, it is possible to have a deeper understanding of the dynamic changes of the hydrogen sulfide gas pressure data, so as to distinguish the natural fluctuations of the hydrogen sulfide gas pressure and the fluctuations caused by the leakage, thereby reducing false alarms and missed alarms to more accurately identify the leakage of hydrogen sulfide gas.

[0050] As described above, the hydrogen sulfide gas detection system 100 according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with a hydrogen sulfide gas detection algorithm. In a possible implementation, the hydrogen sulfide gas detection system 100 according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the hydrogen sulfide gas detection system 100 can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the hydrogen sulfide gas detection system 100 can also be one of the many hardware modules of the wireless terminal.

[0051] Alternatively, in another example, the hydrogen sulfide gas detection system 100 and the wireless terminal may also be separate devices, and the hydrogen sulfide gas detection system 100 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0052] Figure 6 Flow chart of the hydrogen sulfide gas detection method according to an embodiment of the present application. Figure 6As shown, according to the embodiment of the present application, the hydrogen sulfide gas detection method includes: S110, obtaining the time series of hydrogen sulfide gas pressure collected by the pressure sensor; S120, arranging the time series of the hydrogen sulfide gas pressure into a pressure time series input vector according to the time dimension; S130, vector segmenting the pressure time series input vector to obtain a sequence of first-scale pressure local time series input vectors and a sequence of second-scale pressure local time series input vectors; S140, inputting the sequence of the first-scale pressure local time series input vector and the sequence of the second-scale pressure local time series input vector into a pressure time series feature aggregation analyzer of fusion node importance to obtain a first-scale pressure time series aggregation representation vector and a second-scale pressure time series aggregation representation vector; S150, feature fusion of the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector to obtain a multi-scale pressure time series aggregation representation vector as a multi-scale pressure time series aggregation representation feature; and, S160, obtaining a detection result based on the multi-scale pressure time series aggregation representation feature.

[0053] Here, those skilled in the art will appreciate that the specific operations of each step in the above hydrogen sulfide gas detection method have been described in detail above. Figures 1 to 5 The hydrogen sulfide gas detection system has been described in detail, and therefore, its repeated description will be omitted.

[0054] The above descriptions of various implementations of the present disclosure are exemplary and not exhaustive. The disclosure is not limited to the disclosed implementations, and many modifications and variations are obvious to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The terms used herein are selected to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various practical methods disclosed herein.

Claims

1. A hydrogen sulfide gas detection system, characterized in that: include: A hydrogen sulfide gas pressure acquisition module is used to acquire the time series of the hydrogen sulfide gas pressure acquired by the pressure sensor; A pressure time series arrangement module, used for arranging the time series of the hydrogen sulfide gas pressure into a pressure time series input vector according to the time dimension; A time series vector segmentation module, used for performing vector segmentation on the pressure time series input vector to obtain a sequence of first-scale pressure local time series input vectors and a sequence of second-scale pressure local time series input vectors; A pressure time series aggregation module, used for inputting the sequence of the first-scale pressure local time series input vector and the sequence of the second-scale pressure local time series input vector into a pressure time series feature aggregation analyzer of fusion node importance to obtain a first-scale pressure time series aggregation representation vector and a second-scale pressure time series aggregation representation vector; a multi-scale feature fusion module, configured to perform feature fusion on the first-scale pressure time series aggregation representation vector and the second-scale pressure time series aggregation representation vector to obtain a multi-scale pressure time series aggregation representation vector as a multi-scale pressure time series aggregation representation feature; A detection result generation module, used to obtain a detection result based on the multi-scale pressure time series aggregation representation feature; Wherein, the pressure timing aggregation module includes: a significant factor calculation unit, configured to use a scoring function to measure the significant factors of the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vectors to obtain k-1 first-scale pressure local time series significant factors; a local time series aggregation unit, configured to calculate the weighted sum of the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vectors by position, using the k-1 first-scale pressure local time series significant factors as weights, so as to aggregate the first k-1 first-scale pressure local time series input vectors in the sequence of the first-scale pressure local time series input vectors to obtain a first-scale pressure local time series aggregation representation vector of the rear node set; a linear modulation unit, configured to linearly modulate the kth first-scale pressure local time series input vector in the sequence of the first-scale pressure local time series input vectors using a preset hyperparameter to obtain the kth first-scale pressure local time series input vector after modulation; A full-node aggregation unit, used for calculating the positional sum of the k-th first-scale pressure local time series input vector after modulation and the first-scale pressure local time series aggregation representation vector of the rear node set to obtain the first-scale pressure local time series full-node aggregation representation vector; A multi-layer perceptron processing unit, configured to input the first-scale pressure local time series full-node aggregate representation vector into a multi-layer perceptron model to obtain the first-scale pressure time series aggregate representation vector; Wherein, the significant factor calculation unit includes: A feature weighting subunit, used for respectively calculating the matrix product between each weight coefficient matrix and the first k-1 first-scale pressure local time series input vectors to obtain the first k-1 first-scale pressure local time series weighted input vectors; a characteristic bias calculation subunit, configured to add a corresponding bias vector to each of the first k-1 first-scale pressure local time series weighted input vectors to obtain first k-1 first-scale pressure local time series bias input vectors; A feature activation subunit, used for activating the first k-1 first-scale pressure local time series offset input vectors to obtain the first k-1 first-scale pressure local time series activation input vectors; A local time series correlation calculation subunit is used to calculate the product between each first-scale pressure local time series activation input vector in the first k-1 first-scale pressure local time series activation input vectors and the weight coefficient vector to obtain the first k-1 first-scale pressure local time series correlation; The nonlinear processing subunit is used to perform nonlinear processing on the first k-1 first-scale pressure local time series correlations to obtain the k-1 first-scale pressure local time series significance factors.

2. The hydrogen sulfide gas detection system according to claim 1, characterized in that: The time series vector segmentation module includes: A first-scale time series segmentation unit, configured to perform vector segmentation on the pressure time series input vector at a first time scale to obtain a sequence of the first-scale pressure local time series input vectors; The second-scale time series segmentation unit is used to perform vector segmentation on the pressure time series input vector at a second time scale to obtain a sequence of the second-scale pressure local time series input vectors.

3. The hydrogen sulfide gas detection system according to claim 2, characterized in that: The feature activation subunit is used to: input the first k-1 first-scale pressure local time series bias input vectors The function is activated to obtain the first k-1 first-scale pressure local time series activation input vectors.

4. The hydrogen sulfide gas detection system according to claim 3, characterized in that: The nonlinear processing subunit is used to: input the first k-1 first-scale pressure local time series correlation degrees into function to obtain the k-1 first-scale pressure local time series significance factors.

5. The hydrogen sulfide gas detection system according to claim 4, characterized in that: The detection result generating module is used to: input the multi-scale pressure time series aggregation representation vector into a classifier-based leakage detector to obtain a detection result, and the detection result is used to indicate whether there is a leakage.

6. The hydrogen sulfide gas detection system according to claim 5, characterized in that: It also includes a training module for training the pressure time series feature aggregation analyzer of the fusion node importance and the classifier-based leakage detector.

7. The hydrogen sulfide gas detection system according to claim 6, characterized in that: The training module comprises: A training data acquisition unit, used to acquire training data, wherein the training data includes a time series of training hydrogen sulfide gas pressure collected by a pressure sensor, and a true value of whether there is a leak; A training data arrangement unit, used for arranging the time series of the training hydrogen sulfide gas pressure into a training pressure time series input vector according to the time dimension; A training data first scale segmentation unit, used for performing vector segmentation on the training pressure time series input vector at a first time scale to obtain a sequence of training first scale pressure local time series input vectors; A training data second-scale segmentation unit, used for performing vector segmentation on the training pressure time series input vector at a second time scale to obtain a sequence of training second-scale pressure local time series input vectors; A training time series feature aggregation unit, used for inputting the sequence of the training first-scale pressure local time series input vector and the sequence of the training second-scale pressure local time series input vector into the pressure time series feature aggregation analyzer of the fusion node importance to obtain a training first-scale pressure time series aggregation representation vector and a training second-scale pressure time series aggregation representation vector; A training data feature fusion unit, used for performing feature fusion on the training first-scale pressure time series aggregate representation vector and the training second-scale pressure time series aggregate representation vector to obtain a training multi-scale pressure time series aggregate representation vector; A training detection result generating unit, configured to pass the training multi-scale pressure time series aggregate representation vector through the classifier-based leakage detector to obtain a training detection result; A classification loss unit, used to calculate a cross entropy loss function value between the training detection result and the true value of whether there is a leakage to obtain a classification loss function value; A training unit is used to train the pressure time series feature aggregation analyzer of the fusion node importance and the classifier-based leakage detector based on the classification loss function value and through back propagation of gradient descent.

8. A method for detecting hydrogen sulfide gas, using the hydrogen sulfide gas detection system according to claim 1, characterized in that: include: Acquire the time series of hydrogen sulfide gas pressure collected by the pressure sensor; Arranging the time series of the hydrogen sulfide gas pressure into a pressure time series input vector according to the time dimension; Performing vector segmentation on the pressure time series input vector to obtain a sequence of first-scale pressure local time series input vectors and a sequence of second-scale pressure local time series input vectors; Inputting the sequence of the first-scale pressure local time series input vector and the sequence of the second-scale pressure local time series input vector into the pressure time series feature aggregation analyzer of the fusion node importance to obtain a first-scale pressure time series aggregation representation vector and a second-scale pressure time series aggregation representation vector; Performing feature fusion on the first-scale pressure time series aggregate representation vector and the second-scale pressure time series aggregate representation vector to obtain a multi-scale pressure time series aggregate representation vector as a multi-scale pressure time series aggregate representation feature; Based on the multi-scale pressure time series aggregation representation feature, a detection result is obtained.