Hydrogen leakage detection method, detection system, detection device and storage medium

By arranging multiple sensors directly above and at the edge of a predetermined area in hydrogen leakage detection, and using the graph structure and CFD model, the aging and accuracy of hydrogen leakage detection is improved, and the problem of low detection aging in traditional methods is solved.

CN118961068AActive Publication Date: 2024-11-15GUANGDONG DIANWANG GONGSI YUNFU POWER SUPPLY BUREAU

Patent Information

Application Number
CN202411015986.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-15
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Traditional hydrogen leakage detection methods rely on a single or a few sensors, resulting in low detection timeliness and inability to effectively utilize the spatial layout information of the sensor network, limiting the accuracy of hydrogen leakage positioning.

Method used

Multiple hydrogen sensors are uniformly arranged directly above and at the edge of the predetermined area, and the graph structure is constructed using the GCN model combined with the CFD model to improve the accuracy of hydrogen leakage detection through the spatial relationship between the sensors.

Benefits of technology

The reaction time of hydrogen leakage is shortened, the detection aging is improved, and the coverage of hydrogen leakage monitoring in the entire predetermined area is enhanced, solving the problem of low detection aging in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118961068A_ABST
    Figure CN118961068A_ABST
Patent Text Reader

Abstract

The invention provides a hydrogen leakage detection method, system and device and a storage medium. According to the method, hydrogen sensors are uniformly arranged right above a predetermined area, and hydrogen sensors are arranged at the edge right above the predetermined area, so that hydrogen leakage at the edge of the predetermined area is monitored in an enhanced manner, and therefore, comprehensive coverage of hydrogen leakage monitoring of the whole predetermined area is realized; according to the hydrogen leakage detection method and device, whether hydrogen leakage occurs in the preset area or not is determined, the reaction time of hydrogen leakage can be shortened, the timeliness of hydrogen leakage detection is improved, and therefore the problem that in the prior art, a traditional hydrogen leakage detection method usually depends on data of a single sensor or a few sensors, and consequently the timeliness of hydrogen leakage detection is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of hydrogen leakage detection, and in particular to a hydrogen leakage detection method, a hydrogen leakage detection system, a hydrogen leakage detection device, a computer-readable storage medium and a computer program product. Background Art

[0002] The problems with traditional hydrogen leak detection methods are as follows:

[0003] It usually relies on data from a single or a few sensors, has a slow response time to hydrogen leaks, and has weak detection capabilities in areas far from the leak point, resulting in low timeliness of hydrogen leak detection.

[0004] The spatial connections between sensors are ignored and the spatial layout information of the sensor network cannot be effectively utilized, which limits the accuracy of hydrogen leak positioning.

[0005] Currently, there is no solution to the above problem. Summary of the invention

[0006] The main purpose of the present application is to provide a hydrogen leak detection method, a hydrogen leak detection system, a hydrogen leak detection device, a computer-readable storage medium and a computer program product, so as to at least solve the problem that the traditional hydrogen leak detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leak detection.

[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a hydrogen leakage detection method is provided, and the hydrogen leakage detection system comprises: a plurality of hydrogen sensors, the predetermined area is composed of nine identical quadrilateral areas in a nine-square grid form, and the numbers of the quadrilateral areas are sequentially increased in a serpentine order, one hydrogen sensor is arranged at a first predetermined distance directly above each vertex of the quadrilateral area at the exact center, one hydrogen sensor is arranged at a second predetermined distance directly above each first target point, the first target point is the intersection of any two quadrilateral areas except the quadrilateral area at the exact center, and the first target point is located on the outer contour of the predetermined area, one hydrogen sensor is arranged at the second predetermined distance directly above the exact center point of the quadrilateral area at the exact center, and one hydrogen sensor is arranged at a third predetermined distance directly above each second target point. The hydrogen sensor is set at a distance, the second target point is the center point of the quadrilateral area with only two sides intersecting with other quadrilateral areas, and a hydrogen sensor is set at the third predetermined distance directly above the center point of the quadrilateral area at the center, the second predetermined distance is greater than the first predetermined distance, and the third predetermined distance is greater than the second predetermined distance. The method comprises: in the current time period, acquiring multiple groups of sensor data, one group of the sensor data comprises: the three-dimensional coordinates of the hydrogen sensor in the predetermined coordinate system, the hydrogen pressure value, and the hydrogen concentration value, one group of the sensor data corresponds to one hydrogen sensor, and the hydrogen pressure value and the hydrogen concentration value in one group of the sensor data are collected by the corresponding hydrogen sensor; according to the sensor data of all groups, determining whether hydrogen leakage occurs in the predetermined area.

[0008] Optionally, determining whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups includes: determining multiple leakage probabilities based on the sensor data of all groups, the leakage probabilities corresponding to the quadrilateral areas one-to-one, and the leakage probability being the probability of hydrogen leakage occurring in the corresponding quadrilateral area; determining whether each leakage probability satisfies a predetermined condition, the predetermined condition being that the leakage probability is greater than a predetermined probability; and determining that hydrogen leakage occurs in the predetermined area when at least one leakage probability satisfies the predetermined condition.

[0009] Optionally, after determining that a hydrogen leak occurs in the predetermined area, the method further includes: obtaining a number of a target area, the target area being the quadrilateral area whose corresponding leakage probability satisfies the predetermined condition; generating prompt information according to the number of the target area, the prompt information being used to characterize that a hydrogen leak occurs in the target area, the prompt information including: the number of the target area.

[0010] Optionally, multiple leakage probabilities are determined based on the sensor data of all groups, including: normalizing each group of the sensor data to obtain multiple groups of normalized sensor data, one group of the normalized sensor data corresponds to one group of the sensor data; constructing a graph structure, the graph structure consisting of multiple nodes and multiple edges, the nodes correspond one-to-one to the hydrogen sensors, and the nodes represent the corresponding hydrogen sensors, the nodes include: node feature vectors, the node feature vectors include: a group of normalized sensor data corresponding to the node, any two nodes are connected by the edge, the edge includes: edge feature vectors, the edge feature vectors include: direction vectors of the two nodes connected by the edge, and the distance between the two nodes connected by the edge; the graph structure is input into a hydrogen leakage detection model to obtain multiple leakage probabilities, the leakage detection model is obtained by training a GCN model using multiple groups of training data, and each group of the training data includes: the graph structure and the leakage probability obtained in a historical period.

[0011] Optionally, before inputting the graph structure into a hydrogen leak detection model to obtain a plurality of the leakage probabilities, the method further includes: establishing a target CFD model in the historical period, the target CFD model being a three-dimensional CFD model of a predetermined space and a three-dimensional CFD model of the hydrogen leak detection system, the predetermined space being a space between the predetermined area and a top area, the top area having the same shape as the predetermined area, and the top area being located directly above the predetermined area, and being parallel to the predetermined area, and the distance between the top area and the predetermined area being the third predetermined distance; setting a plurality of hydrogen leak The hydrogen leakage scenario at least includes: the three-dimensional coordinates of the point where the hydrogen leakage occurs in the predetermined coordinate system, the hydrogen leakage rate, and the leakage probability of all the quadrilateral areas; in the target CFD model, each hydrogen leakage scenario is run, and multiple hydrogen data sets are obtained, one hydrogen data set corresponds to one hydrogen leakage scenario, one hydrogen data set includes multiple groups of hydrogen data, one group of hydrogen data includes: hydrogen pressure value, hydrogen concentration value, one group of hydrogen data corresponds to one hydrogen sensor, and one group of hydrogen data is collected by the corresponding hydrogen sensor.

[0012] Optionally, the graph structure is input into a hydrogen leak detection model to obtain a plurality of the leakage probabilities, including: inputting the graph structure into an input layer to obtain an initial node feature matrix, wherein the initial node feature matrix is ​​composed of all the node feature vectors; inputting the initial node feature matrix into a graph convolution network to obtain a final node feature matrix, wherein the graph convolution network is composed of N graph convolution layers connected in sequence, and the final node feature matrix is ​​a node feature matrix output by the Nth graph convolution layer, and the l+1th graph convolution layer is: l is an integer, and -1<l<N, H (0) is the initial node feature matrix, H (l +1) is the node feature matrix output by the l+1th graph convolutional layer, H (l) is the node feature matrix output by the lth graph convolutional layer, σ is the ReLU activation function, W (l) is the weight matrix of the lth graph convolutional layer, A is the adjacency matrix, A ij is an element in A, and A ij is 1, indicating that the i-th node is connected to the j-th node in communication, and A ij 0 indicates that the i-th node is not connected to the j-th node in communication, D is a degree matrix, and the degree matrix is ​​a diagonal matrix, D ii is the number of nodes that are connected to the i-th node for communication, Yes ij The weight matrix, e ij is the edge feature vector included in the edge connecting the ith node and the jth node, N(i) is the set of nodes connected to the ith node in communication; the final node feature matrix is ​​input into the fully connected layer to obtain the classification feature vector, wherein the fully connected layer is: Z = Pooling (H (N) )W fc +b fc , where Pooling() is global average pooling, W fc is the weight matrix of the fully connected layer, b fc is the bias matrix of the fully connected layer, H (N) is the node feature matrix output by the Nth graph convolutional layer, and Z is the classification feature vector; the classification feature vector is input into the output layer to obtain a probability vector, and the probability vector is composed of all the leakage probabilities, wherein the output layer is composed of a Softmax activation function, and the Softmax activation function is in, is the probability vector, Z iis the ith element in the classification feature vector, and M is the total number of the quadrilateral regions.

[0013] According to another aspect of the present application, a hydrogen leak detection system is provided, the system comprising: a plurality of hydrogen sensors, any two of the hydrogen sensors are communicatively connected, the hydrogen sensors are used to collect hydrogen pressure values ​​and hydrogen concentration values, a predetermined area is composed of nine identical quadrilateral areas in a nine-square grid form, and the numbers of the quadrilateral areas are sequentially increased in a serpentine order, one hydrogen sensor is arranged at a first predetermined distance directly above each vertex of the quadrilateral area at the exact center, one hydrogen sensor is arranged at a second predetermined distance directly above each first target point, the first target point is the intersection of any two of the quadrilateral areas except the quadrilateral area at the exact center, and the first target point is located on the outer contour of the predetermined area, and one hydrogen sensor is arranged at the second predetermined distance directly above the center point of the quadrilateral area at the exact center. A hydrogen sensor is arranged at a third predetermined distance directly above each second target point, the second target point is the center point of the quadrilateral area having only two sides intersecting with other quadrilateral areas, and a hydrogen sensor is arranged at the third predetermined distance directly above the center point of the quadrilateral area at the center, the second predetermined distance is greater than the first predetermined distance, the third predetermined distance is greater than the second predetermined distance, the origin of the predetermined coordinate system is the center point of the predetermined area, the horizontal axis of the predetermined coordinate system is parallel to one central axis of the predetermined area, the vertical axis of the predetermined coordinate system is parallel to another central axis of the predetermined area, the vertical axis of the predetermined coordinate system is perpendicular to the horizontal axis of the predetermined coordinate system, and the vertical axis of the predetermined coordinate system is perpendicular to the vertical axis of the predetermined coordinate system.

[0014] According to another aspect of the present application, a hydrogen leak detection device is provided. The hydrogen leak detection system includes: a plurality of hydrogen sensors, wherein a predetermined area is composed of nine identical quadrilateral areas in a nine-square grid form, and the numbers of the quadrilateral areas are sequentially increased in a serpentine order, and one hydrogen sensor is arranged at a first predetermined distance directly above each vertex of the quadrilateral area at the exact center, and one hydrogen sensor is arranged at a second predetermined distance directly above each first target point, the first target point is an intersection point of any two quadrilateral areas except the quadrilateral area at the exact center, and the first target point is located on the outer contour of the predetermined area, one hydrogen sensor is arranged at the second predetermined distance directly above the exact center point of the quadrilateral area at the exact center, and the hydrogen sensor is arranged at a third predetermined distance directly above each second target point , the second target point is the center point of the quadrilateral area having only two sides intersecting with other quadrilateral areas, a hydrogen sensor is arranged at the third predetermined distance directly above the center point of the quadrilateral area at the center, the second predetermined distance is greater than the first predetermined distance, and the third predetermined distance is greater than the second predetermined distance, the device comprises: a first acquisition unit, used to acquire multiple groups of sensor data in the current time period, a group of the sensor data comprises: the three-dimensional coordinates of the hydrogen sensor in the predetermined coordinate system, the pressure value of hydrogen, and the concentration value of hydrogen, a group of the sensor data corresponds to one hydrogen sensor, and the pressure value of hydrogen and the concentration value of hydrogen in a group of the sensor data are collected by the corresponding hydrogen sensor; a determination unit, used to determine whether hydrogen leakage occurs in the predetermined area according to all groups of the sensor data.

[0015] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the hydrogen leak detection methods.

[0016] According to one aspect of the present application, a computer program product is provided, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, any one of the hydrogen leak detection methods is implemented.

[0017] By applying the technical solution of the present application, hydrogen sensors are evenly arranged just above the predetermined area, and hydrogen sensors are arranged at the edge just above the predetermined area, so as to strengthen the monitoring of hydrogen leakage at the edge of the predetermined area, thereby achieving comprehensive coverage of hydrogen leakage monitoring of the entire predetermined area, and determining whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups, which can shorten the reaction time of hydrogen leakage and improve the timeliness of hydrogen leakage detection, thereby solving the problem that the traditional hydrogen leakage detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leakage detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] FIG. 1( a ) shows a schematic diagram of the arrangement of a bottom hydrogen sensor provided according to an embodiment of the present application;

[0019] FIG1( b ) shows a schematic diagram of the arrangement of a central hydrogen sensor provided according to an embodiment of the present application;

[0020] FIG. 1( c ) shows a schematic diagram of the arrangement of a top hydrogen sensor provided according to an embodiment of the present application;

[0021] Figure 2 A schematic diagram of a process of a hydrogen leakage detection method provided according to an embodiment of the present application is shown;

[0022] Figure 3 A schematic diagram of a graph structure provided according to an embodiment of the present application is shown;

[0023] Figure 4 A structural block diagram of a hydrogen leak detection model provided according to an embodiment of the present application is shown;

[0024] Figure 5 A schematic diagram of a target CFD model provided according to an embodiment of the present application is shown;

[0025] Figure 6 A structural block diagram of a hydrogen leakage detection device provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0030] Hydrogen sensor: Hydrogen sensors usually integrate multiple sensing functions and can monitor the pressure and concentration of hydrogen in real time.

[0031] GCN (Graph Convolutional Network) model: is a deep learning model for graph data analysis. It uses the structure of graph neural network and convolution operation to learn and predict features of graph data. The GCN model can effectively capture the relationship and local structure between nodes, thereby achieving good performance in tasks such as node classification and link prediction.

[0032] CFD (Computational Fluid Dynamics) model: is a numerical simulation method used to study the movement and heat transfer process of fluids. The CFD model can simulate the flow, heat transfer and mass transfer process of fluids in complex geometric bodies by discretizing and numerically solving the fluid dynamics equations, thereby analyzing the flow field characteristics, temperature distribution, pressure distribution and other information of the fluid.

[0033] Computational fluid dynamics software (ANSYS Fluent): is a fluid dynamics simulation software developed by ANSYS, which is used to simulate and analyze various fluid flow phenomena. It provides powerful computing power and a variety of simulation tools, and can be used to solve problems such as liquid, gas and other fluid flow, heat transfer, mass transfer, etc. In ANSYS Fluent, CFD models are used to establish mathematical models and solve fluid dynamics problems.

[0034] As introduced in the background technology, the traditional hydrogen leak detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leak detection. In order to solve the problem that the traditional hydrogen leak detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leak detection, the embodiments of the present application provide a hydrogen leak detection method, a hydrogen leak detection system, a hydrogen leak detection device, a computer-readable storage medium and a computer program product.

[0035] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0036] In this embodiment, a hydrogen leak detection system is provided, and the system comprises:

[0037] A plurality of hydrogen sensors, any two of which are communicatively connected, the hydrogen sensors being used to collect hydrogen pressure values ​​and hydrogen concentration values, the predetermined area being composed of nine identical quadrilateral areas in a nine-square grid format, and the numbers of the quadrilateral areas being sequentially increased in a serpentine order, one hydrogen sensor being arranged at a first predetermined distance directly above each vertex of the quadrilateral area at the exact center, one hydrogen sensor being arranged at a second predetermined distance directly above each first target point, the first target point being an intersection of any two of the quadrilateral areas except the quadrilateral area at the exact center, and the first target point being located on the outer contour of the predetermined area, one hydrogen sensor being arranged at the second predetermined distance directly above the center point of the quadrilateral area at the exact center, and one hydrogen sensor being arranged at a second predetermined distance directly above each second target point. The above-mentioned hydrogen sensor is arranged at a third predetermined distance directly above the target point, the above-mentioned second target point is the center point of the above-mentioned quadrilateral area having only two sides intersecting with the other above-mentioned quadrilateral areas, and one above-mentioned hydrogen sensor is arranged at the above-mentioned third predetermined distance directly above the center point of the above-mentioned quadrilateral area at the center, the above-mentioned second predetermined distance is greater than the above-mentioned first predetermined distance, the above-mentioned third predetermined distance is greater than the above-mentioned second predetermined distance, the origin of the above-mentioned predetermined coordinate system is the center point of the above-mentioned predetermined area, the horizontal axis of the above-mentioned predetermined coordinate system is parallel to one central axis of the above-mentioned predetermined area, the vertical axis of the above-mentioned predetermined coordinate system is parallel to another central axis of the above-mentioned predetermined area, the vertical axis of the above-mentioned predetermined coordinate system is perpendicular to the horizontal axis of the above-mentioned predetermined coordinate system, and the vertical axis of the above-mentioned predetermined coordinate system is perpendicular to the vertical axis of the above-mentioned predetermined coordinate system.

[0038] Specifically, as shown in FIG. 1(a), FIG. 1(b), and FIG. 1(c), in some embodiments, the predetermined area is the ground area of ​​the hydrogen fuel cell truck parking garage, the predetermined area is an area of ​​60*60*8 meters, and the predetermined area is equally divided into 3 rows*3 columns of quadrilateral areas, and numbered 1 to 9 in sequence. Hydrogen leakage may occur anywhere in the hydrogen fuel cell truck parking garage, and it is not necessarily only one point that leaks, it may be in the form of a combination. Considering that the density of hydrogen is relatively small, it will rise rapidly when leaking, so a hydrogen sensor in the height direction is necessary. For this purpose, three heights are defined, namely the bottom (1 meter), the middle (4 meters), and the top (8 meters). m), the hydrogen sensor layout scheme is as follows: as shown in Figure 1(a), at the bottom height, the square indicates the location of the hydrogen sensor, and a hydrogen sensor is arranged at each vertex of the quadrilateral area numbered 5. As shown in Figure 1(b), at the middle height, the triangle indicates the location of the hydrogen sensor, a hydrogen sensor is arranged at each first target point, and a hydrogen sensor is arranged at the center point of the quadrilateral area numbered 5. As shown in Figure 1(c), at the top height, the circle indicates the location of the hydrogen sensor, a hydrogen sensor is arranged at each second target point, and a hydrogen sensor is arranged at the center point of the quadrilateral area numbered 5.

[0039] Through the above embodiment, hydrogen sensors are evenly arranged just above the predetermined area, and hydrogen sensors are arranged at the edge just above the predetermined area, so as to strengthen the monitoring of hydrogen leakage at the edge of the predetermined area, thereby achieving comprehensive coverage of hydrogen leakage monitoring in the entire predetermined area, thereby shortening the reaction time of hydrogen leakage and improving the timeliness of hydrogen leakage detection, thereby solving the problem that the traditional hydrogen leakage detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leakage detection.

[0040] In this embodiment, a hydrogen leak detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0041] Figure 2 : is a flow chart of a hydrogen leak detection method according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0042] Step S201, in the current time period, a plurality of sets of sensor data are acquired, wherein a set of the sensor data includes: the three-dimensional coordinates of the hydrogen sensor in the predetermined coordinate system, the pressure value of hydrogen, and the concentration value of hydrogen, wherein a set of the sensor data corresponds to one hydrogen sensor, and the pressure value of hydrogen and the concentration value of hydrogen in a set of the sensor data are acquired by the corresponding hydrogen sensor;

[0043] Step S202: determining whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups.

[0044] In an optional solution, the above step S202 can be implemented as follows:

[0045] Step S2021, determining a plurality of leakage probabilities according to the sensor data of all groups, wherein the leakage probabilities correspond to the quadrilateral regions one by one, and the leakage probabilities are probabilities of hydrogen leakage occurring in the corresponding quadrilateral regions;

[0046] In an optional solution, the above step S2021 can be implemented as follows:

[0047] Step S20211, respectively normalizing each group of the sensor data to obtain multiple groups of normalized sensor data, where one group of the normalized sensor data corresponds to one group of the sensor data;

[0048] Specifically, the three-dimensional coordinates of the hydrogen sensor in a predetermined coordinate system, the hydrogen pressure value, and the hydrogen concentration value in each set of sensor data are normalized to eliminate the influence of the dimension and unify the data scale. The normalization process can be minimum and maximum normalization or hydrogen leak detection score normalization.

[0049] Step S20212, constructing a graph structure, the graph structure consisting of a plurality of nodes and a plurality of edges, the nodes corresponding to the hydrogen sensors one by one, and the nodes representing the corresponding hydrogen sensors, the nodes including: a node feature vector, the node feature vector including: a group of normalized sensor data corresponding to the node, any two nodes are connected by the edge, the edge including: an edge feature vector, the edge feature vector including: a direction vector of the two nodes connected by the edge, and a distance between the two nodes connected by the edge;

[0050] Specifically, the graph structure is as follows Figure 3 As shown, a circle is a node, a line segment is an edge, and the node feature vector is N i =[(x i ,y i ,z i ),F i ], where x iis the horizontal coordinate of the ith hydrogen detection sensor in the predetermined coordinate system, y i is the ordinate of the i-th hydrogen detection sensor in the predetermined coordinate system, z i is the vertical coordinate of the ith hydrogen detection sensor in the predetermined coordinate system, F i =[p i (tT),...,p i (t);c i (tT),...,c i (t)], T is the length of the current period, c i (tT) is the concentration of hydrogen collected by the i-th hydrogen detection sensor at time tT, c i (t) is the concentration of hydrogen collected by the i-th hydrogen detection sensor at time t, p i (tT) is the pressure value of hydrogen collected by the i-th hydrogen detection sensor at time tT, p i (t) is the hydrogen pressure value collected by the i-th hydrogen detection sensor at time t. The connection between nodes is determined by the distance and direction vector between the hydrogen sensors. All nodes in this application are connected to each other, and the edge feature vector is e ij =(v ij ,|v ij |), v ij =(x i -x j ,y i -y j ,z i -z j ) represents the direction vector from the i-th node to the j-th node, d ij =||v ij || represents the distance between the i-th node and the j-th node, x j is the horizontal coordinate of the jth hydrogen detection sensor in the predetermined coordinate system, y j is the ordinate of the jth hydrogen detection sensor in the predetermined coordinate system, z j is the vertical coordinate of the jth hydrogen detection sensor in the predetermined coordinate system.

[0051] Step S20213, input the above graph structure into the hydrogen leak detection model to obtain the above multiple leakage probabilities. The above leakage detection model is obtained by training the GCN model with multiple groups of training data, and each group of the above training data includes: the above graph structure and the above leakage probability obtained in a historical period.

[0052] Specifically, the spatial relationship between hydrogen sensors (i.e., the nodes and edges of the graph structure) is explicitly utilized by using the graph structure, allowing the GCN model to improve the accuracy of positioning through spatial interactions. In this way, even if the hydrogen sensor in a quadrilateral area does not directly detect the hydrogen leakage, the GCN model can infer the possibility of hydrogen leakage through the data collected by the hydrogen sensors in the adjacent quadrilateral areas, thereby solving the problem that the traditional hydrogen leakage detection method in the prior art ignores the spatial connection between sensors, cannot effectively utilize the spatial layout information of the sensor network, and limits the accuracy of hydrogen leakage positioning.

[0053] In an optional solution, the above step S20213 can be implemented as follows:

[0054] Input the above graph structure into the input layer to obtain an initial node feature matrix, which is composed of all the above node feature vectors;

[0055] The above initial node feature matrix is ​​input into the graph convolutional network to obtain the final node feature matrix, wherein the above graph convolutional network is composed of N graph convolutional layers connected in sequence, and the above final node feature matrix is ​​the node feature matrix output by the Nth graph convolutional layer, and the l+1th graph convolutional layer is: l is an integer, and -1<l<N, H (0) is the initial node feature matrix, H (l+1) is the node feature matrix output by the l+1th graph convolutional layer, H (l) is the node feature matrix output by the lth graph convolutional layer, σ is the ReLU activation function, W (l) is the weight matrix of the lth graph convolutional layer above, A is the adjacency matrix, A ij is an element in A, and A ij is 1, indicating that the i-th node is connected to the j-th node, and A ij 0 indicates that the i-th node and the j-th node are not connected in communication, D is the degree matrix, and the degree matrix is ​​a diagonal matrix, D ii is the number of the above nodes that are connected to the i-th above node for communication, Yes ij The weight matrix, e ij is the edge feature vector included in the edge connecting the i-th node and the j-th node, and N(i) is the set of nodes that are communicatively connected to the i-th node;

[0056] Specifically, in the present application, each hydrogen sensor is connected to all other hydrogen sensors, as shown in FIG. 1( a ), FIG. 1( b ), and FIG. 1( c ), and 18 hydrogen sensors are set. In this case, the adjacency matrix is ​​an 18*18 matrix, and all elements except the diagonal are 1.

[0057] The above final node feature matrix is ​​input into the fully connected layer to obtain the classification feature vector, where the above fully connected layer is: Z = Pooling (H (N) )W fc +b fc , where Pooling() is global average pooling, W fc is the weight matrix of the above fully connected layer, b fc is the bias matrix of the above fully connected layer, H (N) is the node feature matrix output by the Nth graph convolutional layer, and Z is the classification feature vector;

[0058] The above classification feature vector is input into the output layer to obtain a probability vector, which is composed of all the above leakage probabilities. The above output layer is composed of a Softmax activation function, which is in, is the above probability vector, Z i is the i-th element in the above classification feature vector, and M is the total number of the above quadrilateral regions.

[0059] Specifically, Figure 4 As shown in Figure 1, the hydrogen leakage detection model is composed of an input layer, a first graph convolution layer, a second graph convolution layer, a fully connected layer and an output layer in sequence. As shown in Figure 1(a), Figure 1(b) and Figure 1(c), 18 hydrogen sensors are set. Therefore, the initial node feature matrix output by the input layer consists of 18 node feature vectors. The dimension of the initial node feature matrix is ​​18×(3+2T). The output layer outputs the initial node feature matrix to the graph convolution network. The dimension of the node feature matrix output by the first graph convolution layer is 18×64. The dimension of the node feature matrix output by the first graph convolution layer is 18×32, that is, the dimension of the final node feature matrix is ​​18×32. The graph convolution network outputs the final node feature matrix to the fully connected layer. The dimension of the classification feature vector output by the fully connected layer is 1×9. The fully connected layer outputs the classification feature vector to the output layer to obtain a probability vector. The dimension of the probability vector is 1×9. is the leakage probability of the quadrilateral area numbered 1, is the leakage probability of the quadrilateral area numbered 2, is the leakage probability of the quadrilateral area numbered 9.

[0060] In an optional solution, before the above step S20213, the above method further includes:

[0061] During the historical period, a target CFD model is established, wherein the target CFD model is a three-dimensional CFD model of a predetermined space and a three-dimensional CFD model of the hydrogen leakage detection system, wherein the predetermined space is a space between the predetermined area and the top area, wherein the top area has the same shape as the predetermined area, and the top area is located directly above the predetermined area and is parallel to the predetermined area, and the distance between the top area and the predetermined area is the third predetermined distance;

[0062] Specifically, in some embodiments, the predetermined space is a hydrogen fuel cell truck parking garage, and the predetermined area is a ground area of ​​the hydrogen fuel cell truck parking garage.

[0063] Setting a plurality of hydrogen leakage scenarios, wherein the hydrogen leakage scenarios at least include: the three-dimensional coordinates of the point where the hydrogen leakage occurs in the predetermined coordinate system, the hydrogen leakage rate, and the leakage probability of all the quadrilateral areas;

[0064] Specifically, the hydrogen leakage scenario simulates the diffusion behavior of hydrogen under various leakage conditions. The hydrogen leakage scenario also includes: the initial pressure value of hydrogen, spatial barriers, temperature and humidity, such as Figure 5 As shown, the target CFD model is a three-dimensional CFD model of a hydrogen fuel cell vehicle parking garage and a hydrogen leakage detection system, and the hydrogen leakage scenario simulates hydrogen leakage at leakage point 1 and leakage point 2.

[0065] In the target CFD model, each of the hydrogen leakage scenarios is run, and a plurality of hydrogen data sets are obtained. One hydrogen data set corresponds to one of the hydrogen leakage scenarios. One hydrogen data set includes a plurality of groups of hydrogen data. One group of the hydrogen data includes: a hydrogen pressure value and a hydrogen concentration value. One group of the hydrogen data corresponds to one of the hydrogen sensors, and one group of the hydrogen data is collected by the corresponding hydrogen sensor.

[0066] Specifically, Figure 5 As shown, the target CFD model is a three-dimensional CFD model of a hydrogen fuel cell vehicle parking garage and a hydrogen leakage detection system. Through computational fluid dynamics software, various hydrogen leakage scenarios are run in the target CFD model, and the changes in the hydrogen concentration of each hydrogen sensor under different hydrogen leakage scenarios over time are recorded, that is, multiple hydrogen data sets are obtained.

[0067] Specifically, for a hydrogen leakage scenario, a hydrogen data set is obtained, and the hydrogen data set is used to train a GCN model to obtain a hydrogen leakage detection model.

[0068] Specifically, the present application trains the GCN model based on a variety of hydrogen data sets obtained from a variety of hydrogen leakage scenarios, thereby improving the adaptability of the hydrogen leakage detection model to environmental changes, improving the accuracy of the hydrogen leakage detection model detection, and ensuring the stability and reliability of the hydrogen leakage detection model.

[0069] Step S2022, determining whether each of the leakage probabilities satisfies a predetermined condition, the predetermined condition being that the leakage probability is greater than a predetermined probability;

[0070] Step S2023: When at least one of the leakage probabilities satisfies the predetermined condition, it is determined that hydrogen leakage occurs in the predetermined area.

[0071] Specifically, when at least one leakage probability is greater than a predetermined probability, it indicates that hydrogen leakage has occurred in the quadrilateral area to which the leakage probability belongs, thereby determining that hydrogen leakage has occurred in the predetermined area.

[0072] In an optional solution, after the above step S2023, the above method further includes:

[0073] Obtaining a number of a target area, the target area being the quadrilateral area corresponding to the leakage probability that satisfies the predetermined condition;

[0074] Prompt information is generated according to the number of the target area. The prompt information is used to indicate that hydrogen leakage occurs in the target area. The prompt information includes: the number of the target area.

[0075] Specifically, prompt information is generated according to the number of the target area, that is, prompt information is generated according to the number of the quadrilateral area where the hydrogen leakage occurs, so as to remind the staff of the specific location where the hydrogen leakage occurs.

[0076] Through the above embodiment, hydrogen sensors are evenly arranged just above the predetermined area, and hydrogen sensors are arranged at the edge just above the predetermined area, so as to strengthen the monitoring of hydrogen leakage at the edge of the predetermined area, thereby achieving comprehensive coverage of hydrogen leakage monitoring of the entire predetermined area, and determining whether hydrogen leakage occurs in the predetermined area based on sensor data of all groups, which can shorten the reaction time of hydrogen leakage and improve the timeliness of hydrogen leakage detection, thereby solving the problem that the traditional hydrogen leakage detection method in the prior art usually relies on the data of a single or a few sensors, resulting in relatively low timeliness of hydrogen leakage detection.

[0077] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0078] The embodiment of the present application also provides a hydrogen leak detection device. It should be noted that the hydrogen leak detection device of the embodiment of the present application can be used to execute the hydrogen leak detection method provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions have been omitted. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0079] The following is an introduction to the hydrogen leakage detection device provided in the embodiments of the present application.

[0080] Figure 6 is a structural block diagram of a hydrogen leakage detection device according to an embodiment of the present application. Figure 6 As shown, the device comprises:

[0081] A first acquisition unit 10 is used to acquire multiple sets of sensor data in a current period, wherein a set of the sensor data includes: a three-dimensional coordinate of the hydrogen sensor in the predetermined coordinate system, a hydrogen pressure value, and a hydrogen concentration value, wherein a set of the sensor data corresponds to one hydrogen sensor, and the hydrogen pressure value and the hydrogen concentration value in a set of the sensor data are collected by the corresponding hydrogen sensor;

[0082] The determination unit 20 is used to determine whether hydrogen leakage occurs in the predetermined area according to the sensor data of all groups.

[0083] In an optional solution, the above-mentioned determination unit includes:

[0084] A first determining subunit is used to determine a plurality of leakage probabilities according to the sensor data of all groups, wherein the leakage probabilities correspond to the quadrilateral areas one by one, and the leakage probabilities are probabilities of hydrogen leakage occurring in the corresponding quadrilateral areas;

[0085] In an optional solution, the first determining subunit includes:

[0086] A processing module, used for performing normalization processing on each group of the sensor data to obtain multiple groups of normalized sensor data, wherein one group of the normalized sensor data corresponds to one group of the sensor data;

[0087] Specifically, the three-dimensional coordinates of the hydrogen sensor in a predetermined coordinate system, the hydrogen pressure value, and the hydrogen concentration value in each set of sensor data are normalized to eliminate the influence of the dimension and unify the data scale. The normalization process can be minimum and maximum normalization or hydrogen leak detection score normalization.

[0088] A construction module, for constructing a graph structure, the graph structure is composed of a plurality of nodes and a plurality of edges, the nodes correspond to the hydrogen sensors one by one, and the nodes represent the corresponding hydrogen sensors, the nodes include: a node feature vector, the node feature vector includes: a group of normalized sensor data corresponding to the node, any two nodes are connected by the edge, the edge includes: an edge feature vector, the edge feature vector includes: a direction vector of the two nodes connected by the edge, and a distance between the two nodes connected by the edge;

[0089] Specifically, the graph structure is as follows Figure 3 As shown, a circle is a node, a line segment is an edge, and the node feature vector is N i =[(x i ,y i ,z i ),F i ], where x i is the horizontal coordinate of the ith hydrogen detection sensor in the predetermined coordinate system, y i is the ordinate of the i-th hydrogen detection sensor in the predetermined coordinate system, z i is the vertical coordinate of the ith hydrogen detection sensor in the predetermined coordinate system, F i =[p i (tT),...,p i (t);c i (tT),...,c i (t)], T is the length of the current period, c i (tT) is the concentration of hydrogen collected by the i-th hydrogen detection sensor at time tT, c i (t) is the concentration of hydrogen collected by the i-th hydrogen detection sensor at time t, p i (tT) is the pressure value of hydrogen collected by the i-th hydrogen detection sensor at time tT, p i (t) is the hydrogen pressure value collected by the i-th hydrogen detection sensor at time t. The connection between nodes is determined by the distance and direction vector between the hydrogen sensors. All nodes in this application are connected to each other, and the edge feature vector is e ij =(v ij ,||v ij ||), v ij =(x i -x j ,y i -y j ,z i -z j ) represents the direction vector from the i-th node to the j-th node, d ij =||vij || represents the distance between the i-th node and the j-th node, x j is the horizontal coordinate of the jth hydrogen detection sensor in the predetermined coordinate system, y j is the ordinate of the jth hydrogen detection sensor in the predetermined coordinate system, z j is the vertical coordinate of the jth hydrogen detection sensor in the predetermined coordinate system.

[0090] The input module is used to input the above graph structure into the hydrogen leakage detection model to obtain multiple leakage probabilities. The above leakage detection model is obtained by training the GCN model with multiple sets of training data. Each set of the above training data includes: the above graph structure and the above leakage probability obtained in the historical period.

[0091] Specifically, the spatial relationship between hydrogen sensors (i.e., the nodes and edges of the graph structure) is explicitly utilized by using the graph structure, allowing the GCN model to improve the accuracy of positioning through spatial interactions. In this way, even if the hydrogen sensor in a quadrilateral area does not directly detect the hydrogen leakage, the GCN model can infer the possibility of hydrogen leakage through the data collected by the hydrogen sensors in the adjacent quadrilateral areas, thereby solving the problem that the traditional hydrogen leakage detection method in the prior art ignores the spatial connection between sensors, cannot effectively utilize the spatial layout information of the sensor network, and limits the accuracy of hydrogen leakage positioning.

[0092] In an optional solution, the input module includes:

[0093] A first input submodule is used to input the graph structure into an input layer to obtain an initial node feature matrix, where the initial node feature matrix is ​​composed of all the node feature vectors.

[0094] The second input submodule is used to input the above-mentioned initial node feature matrix into the graph convolution network to obtain the final node feature matrix, wherein the above-mentioned graph convolution network is composed of N graph convolution layers connected in sequence, and the above-mentioned final node feature matrix is ​​the node feature matrix output by the Nth graph convolution layer, and the l+1th graph convolution layer is: l is an integer, and -1<l<N, H (0) is the initial node feature matrix, H (l +1) is the node feature matrix output by the l+1th graph convolutional layer above, H (l) is the node feature matrix output by the lth graph convolutional layer, σ is the ReLU activation function, W (l) is the weight matrix of the lth graph convolutional layer above, A is the adjacency matrix, A ij is an element in A, and A ijis 1, indicating that the i-th node is connected to the j-th node, and A ij 0 indicates that the i-th node and the j-th node are not connected in communication, D is the degree matrix, and the degree matrix is ​​a diagonal matrix, D ii is the number of the above nodes that are connected to the i-th above node for communication, Yes ij The weight matrix, e ij is the edge feature vector included in the edge connecting the i-th node and the j-th node, and N(i) is the set of nodes that are communicatively connected to the i-th node;

[0095] Specifically, in the present application, each hydrogen sensor is connected to all other hydrogen sensors, as shown in FIG. 1( a ), FIG. 1( b ), and FIG. 1( c ), and 18 hydrogen sensors are set. In this case, the adjacency matrix is ​​an 18*18 matrix, and all elements except the diagonal are 1.

[0096] The third input submodule is used to input the above-mentioned final node feature matrix into the fully connected layer to obtain the classification feature vector, wherein the above-mentioned fully connected layer is: Z = Pooling (H (N) )W fc +b fc , where Pooling() is global average pooling, W fc is the weight matrix of the above fully connected layer, b fc is the bias matrix of the above fully connected layer, H (N) is the node feature matrix output by the Nth graph convolutional layer, and Z is the classification feature vector;

[0097] The fourth input submodule is used to input the above classification feature vector into the output layer to obtain a probability vector, wherein the above probability vector is composed of all the above leakage probabilities, wherein the above output layer is composed of a Softmax activation function, and the above Softmax activation function is in, is the above probability vector, Z i is the i-th element in the above classification feature vector, and M is the total number of the above quadrilateral regions.

[0098] Specifically, Figure 4As shown in Figure 1, the hydrogen leakage detection model is composed of an input layer, a first graph convolution layer, a second graph convolution layer, a fully connected layer and an output layer in sequence. As shown in Figure 1(a), Figure 1(b) and Figure 1(c), 18 hydrogen sensors are set. Therefore, the initial node feature matrix output by the input layer consists of 18 node feature vectors. The dimension of the initial node feature matrix is ​​18×(3+2T). The output layer outputs the initial node feature matrix to the graph convolution network. The dimension of the node feature matrix output by the first graph convolution layer is 18×64. The dimension of the node feature matrix output by the first graph convolution layer is 18×32, that is, the dimension of the final node feature matrix is ​​18×32. The graph convolution network outputs the final node feature matrix to the fully connected layer. The dimension of the classification feature vector output by the fully connected layer is 1×9. The fully connected layer outputs the classification feature vector to the output layer to obtain a probability vector. The dimension of the probability vector is 1×9. is the leakage probability of the quadrilateral area numbered 1, is the leakage probability of the quadrilateral area numbered 2, is the leakage probability of the quadrilateral area numbered 9.

[0099] In an optional solution, the above device also includes:

[0100] an establishing unit, configured to establish a target CFD model in the historical period, wherein the target CFD model is a three-dimensional CFD model of a predetermined space and a three-dimensional CFD model of the hydrogen leakage detection system, wherein the predetermined space is a space between the predetermined area and the top area, the top area has the same shape as the predetermined area, and the top area is located directly above the predetermined area and is parallel to the predetermined area, and the distance between the top area and the predetermined area is the third predetermined distance;

[0101] Specifically, in some embodiments, the predetermined space is a hydrogen fuel cell truck parking garage, and the predetermined area is a ground area of ​​the hydrogen fuel cell truck parking garage.

[0102] A setting unit, used to set a plurality of hydrogen leakage scenarios, wherein the hydrogen leakage scenarios at least include: the three-dimensional coordinates of the point where the hydrogen leakage occurs in the predetermined coordinate system, the hydrogen leakage rate, and the leakage probability of all the quadrilateral areas;

[0103] Specifically, the hydrogen leakage scenario simulates the diffusion behavior of hydrogen under various leakage conditions. The hydrogen leakage scenario also includes: the initial pressure value of hydrogen, spatial barriers, temperature and humidity, such as Figure 5 As shown, the target CFD model is a three-dimensional CFD model of a hydrogen fuel cell vehicle parking garage and a hydrogen leakage detection system, and the hydrogen leakage scenario simulates hydrogen leakage at leakage point 1 and leakage point 2.

[0104] An operation unit is used to operate each of the above hydrogen leakage scenarios in the above target CFD model, and obtain multiple hydrogen data sets, one hydrogen data set corresponds to one of the above hydrogen leakage scenarios, one hydrogen data set includes multiple groups of hydrogen data, one group of the above hydrogen data includes: hydrogen pressure value, hydrogen concentration value, one group of the above hydrogen data corresponds to one of the above hydrogen sensors, and one group of the above hydrogen data is collected by the corresponding above hydrogen sensor.

[0105] Specifically, Figure 5 As shown, the target CFD model is a three-dimensional CFD model of a hydrogen fuel cell vehicle parking garage and a hydrogen leakage detection system. Through computational fluid dynamics software, various hydrogen leakage scenarios are run in the target CFD model, and the changes in the hydrogen concentration of each hydrogen sensor under different hydrogen leakage scenarios over time are recorded, that is, multiple hydrogen data sets are obtained.

[0106] Specifically, for a hydrogen leakage scenario, a hydrogen data set is obtained, and the hydrogen data set is used to train a GCN model to obtain a hydrogen leakage detection model.

[0107] Specifically, the present application trains the GCN model based on a variety of hydrogen data sets obtained from a variety of hydrogen leakage scenarios, thereby improving the adaptability of the hydrogen leakage detection model to environmental changes, improving the accuracy of the hydrogen leakage detection model detection, and ensuring the stability and reliability of the hydrogen leakage detection model.

[0108] A second determining subunit is used to respectively determine whether each of the above leakage probabilities meets a predetermined condition, wherein the above predetermined condition is that the above leakage probability is greater than a predetermined probability;

[0109] The third determining subunit is used to determine that hydrogen leakage occurs in the predetermined area when at least one of the leakage probabilities satisfies the predetermined condition.

[0110] Specifically, when at least one leakage probability is greater than a predetermined probability, it indicates that hydrogen leakage has occurred in the quadrilateral area to which the leakage probability belongs, thereby determining that hydrogen leakage has occurred in the predetermined area.

[0111] In an optional solution, the above device also includes:

[0112] A second acquisition unit is used to acquire the number of the target area, where the target area is the quadrilateral area corresponding to the leakage probability that meets the predetermined condition;

[0113] The generating unit is used to generate prompt information according to the number of the target area, wherein the prompt information is used to indicate that hydrogen leakage occurs in the target area, and the prompt information includes: the number of the target area.

[0114] Specifically, prompt information is generated according to the number of the target area, that is, prompt information is generated according to the number of the quadrilateral area where the hydrogen leakage occurs, so as to remind the staff of the specific location where the hydrogen leakage occurs.

[0115] Through the above embodiment, hydrogen sensors are evenly arranged just above the predetermined area, and hydrogen sensors are arranged at the edge just above the predetermined area, so as to strengthen the monitoring of hydrogen leakage at the edge of the predetermined area, thereby achieving comprehensive coverage of hydrogen leakage monitoring of the entire predetermined area, and determining whether hydrogen leakage occurs in the predetermined area based on sensor data of all groups, which can shorten the reaction time of hydrogen leakage and improve the timeliness of hydrogen leakage detection, thereby solving the problem that the traditional hydrogen leakage detection method in the prior art usually relies on the data of a single or a few sensors, resulting in relatively low timeliness of hydrogen leakage detection.

[0116] The above-mentioned hydrogen leakage detection device includes a processor and a memory, and the above-mentioned first acquisition unit and determination unit are stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.

[0117] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the problem that the traditional hydrogen leak detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leak detection.

[0118] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0119] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the hydrogen leakage detection method.

[0120] Specifically, the hydrogen leak detection method includes:

[0121] Step S201, in the current time period, a plurality of sets of sensor data are acquired, wherein a set of the sensor data includes: the three-dimensional coordinates of the hydrogen sensor in the predetermined coordinate system, the pressure value of hydrogen, and the concentration value of hydrogen, wherein a set of the sensor data corresponds to one hydrogen sensor, and the pressure value of hydrogen and the concentration value of hydrogen in a set of the sensor data are acquired by the corresponding hydrogen sensor;

[0122] Step S202: determining whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups.

[0123] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the hydrogen leakage detection method is executed when the program is run.

[0124] Specifically, the hydrogen leak detection method includes:

[0125] Step S201, in the current time period, a plurality of sets of sensor data are acquired, wherein a set of the sensor data includes: the three-dimensional coordinates of the hydrogen sensor in the predetermined coordinate system, the pressure value of hydrogen, and the concentration value of hydrogen, wherein a set of the sensor data corresponds to one hydrogen sensor, and the pressure value of hydrogen and the concentration value of hydrogen in a set of the sensor data are acquired by the corresponding hydrogen sensor;

[0126] Step S202: determining whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups.

[0127] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0128] Step S201, in the current time period, a plurality of sets of sensor data are acquired, wherein a set of the sensor data includes: the three-dimensional coordinates of the hydrogen sensor in the predetermined coordinate system, the pressure value of hydrogen, and the concentration value of hydrogen, wherein a set of the sensor data corresponds to one hydrogen sensor, and the pressure value of hydrogen and the concentration value of hydrogen in a set of the sensor data are acquired by the corresponding hydrogen sensor;

[0129] Step S202: determining whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups.

[0130] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0131] Step S201, in the current time period, a plurality of sets of sensor data are acquired, wherein a set of the sensor data includes: the three-dimensional coordinates of the hydrogen sensor in the predetermined coordinate system, the pressure value of hydrogen, and the concentration value of hydrogen, wherein a set of the sensor data corresponds to one hydrogen sensor, and the pressure value of hydrogen and the concentration value of hydrogen in a set of the sensor data are acquired by the corresponding hydrogen sensor;

[0132] Step S202: determining whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups.

[0133] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0134] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0135] The present application is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0136] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0137] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0138] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0139] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0140] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0141] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0142] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0143] 1) In the hydrogen leakage detection method of the present application, hydrogen sensors are evenly arranged just above the predetermined area, and hydrogen sensors are arranged at the edge just above the predetermined area to strengthen the monitoring of hydrogen leakage at the edge of the predetermined area, thereby achieving comprehensive coverage of hydrogen leakage monitoring of the entire predetermined area. According to the sensor data of all groups, it is determined whether hydrogen leakage occurs in the predetermined area, which can shorten the reaction time of hydrogen leakage and improve the timeliness of hydrogen leakage detection, thereby solving the problem that the traditional hydrogen leakage detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leakage detection.

[0144] 2) In the hydrogen leak detection system of the present application, hydrogen sensors are evenly arranged just above the predetermined area, and hydrogen sensors are arranged at the edge just above the predetermined area to strengthen the monitoring of hydrogen leaks at the edge of the predetermined area, thereby achieving comprehensive coverage of hydrogen leak monitoring in the entire predetermined area. Based on the sensor data of all groups, it is determined whether hydrogen leaks occur in the predetermined area, which can shorten the reaction time of hydrogen leaks and improve the timeliness of hydrogen leak detection, thereby solving the problem that the traditional hydrogen leak detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leak detection.

[0145] 3) In the hydrogen leak detection device of the present application, hydrogen sensors are evenly arranged just above the predetermined area, and hydrogen sensors are arranged at the edge just above the predetermined area to strengthen the monitoring of hydrogen leaks at the edge of the predetermined area, thereby achieving comprehensive coverage of hydrogen leak monitoring in the entire predetermined area. Based on the sensor data of all groups, it is determined whether hydrogen leaks occur in the predetermined area, which can shorten the reaction time of hydrogen leaks and improve the timeliness of hydrogen leak detection, thereby solving the problem that the traditional hydrogen leak detection method in the prior art usually relies on the data of a single or a few sensors, resulting in a relatively low timeliness of hydrogen leak detection.

[0146] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for detecting hydrogen leakage, It is characterized in that A hydrogen leak detection system comprises: a plurality of hydrogen sensors, wherein a predetermined area is composed of nine identical quadrilateral areas in a nine-square grid form, and the numbers of the quadrilateral areas are sequentially increased in a serpentine order, wherein a hydrogen sensor is arranged at a first predetermined distance directly above each vertex of the quadrilateral area at the exact center, and a hydrogen sensor is arranged at a second predetermined distance directly above each first target point, wherein the first target point is an intersection point of any two quadrilateral areas except the quadrilateral area at the exact center, and the first target point is located on an outer contour of the predetermined area, wherein a hydrogen sensor is arranged at the second predetermined distance directly above the exact center point of the quadrilateral area at the exact center, and a hydrogen sensor is arranged at a third predetermined distance directly above each second target point, wherein the second target point is a center point of a quadrilateral area having only two sides intersecting with other quadrilateral areas, and wherein a hydrogen sensor is arranged at the third predetermined distance directly above the exact center point of the quadrilateral area at the exact center, wherein the second predetermined distance is greater than the first predetermined distance, and the third predetermined distance is greater than the second predetermined distance, and wherein the method comprises: In the current period, a plurality of groups of sensor data are acquired, wherein a group of the sensor data includes: a three-dimensional coordinate of the hydrogen sensor in the predetermined coordinate system, a hydrogen pressure value, and a hydrogen concentration value, wherein a group of the sensor data corresponds to one hydrogen sensor, and the hydrogen pressure value and the hydrogen concentration value in a group of the sensor data are acquired by the corresponding hydrogen sensor; It is determined whether hydrogen leakage occurs in the predetermined area based on the sensor data of all groups.

2. The method according to claim 1, It is characterized in that Determining whether hydrogen leakage occurs in the predetermined area according to the sensor data of all groups includes: Determine a plurality of leakage probabilities according to the sensor data of all groups, wherein the leakage probabilities correspond to the quadrilateral areas one by one, and the leakage probabilities are probabilities of hydrogen leakage occurring in the corresponding quadrilateral areas; Determine respectively whether each of the leakage probabilities meets a predetermined condition, wherein the predetermined condition is that the leakage probability is greater than a predetermined probability; When at least one of the leakage probabilities satisfies the predetermined condition, it is determined that hydrogen leakage occurs in the predetermined area.

3. The method according to claim 2, It is characterized in that After determining that hydrogen leakage occurs in the predetermined area, the method further includes: Obtaining a number of a target area, where the target area is the quadrilateral area whose corresponding leakage probability satisfies the predetermined condition; Prompt information is generated according to the number of the target area, where the prompt information is used to indicate that hydrogen leakage occurs in the target area, and the prompt information includes: the number of the target area.

4. The method according to claim 2, It is characterized in that Based on all groups of the sensor data, a plurality of leak probabilities are determined, including: Normalizing each group of the sensor data to obtain multiple groups of normalized sensor data, one group of the normalized sensor data corresponds to one group of the sensor data; Constructing a graph structure, the graph structure is composed of a plurality of nodes and a plurality of edges, the nodes correspond to the hydrogen sensors one by one, and the nodes represent the corresponding hydrogen sensors, the nodes include: a node feature vector, the node feature vector includes: a group of normalized sensor data corresponding to the node, any two nodes are connected by the edge, the edge includes: an edge feature vector, the edge feature vector includes: a direction vector of the two nodes connected by the edge, and a distance between the two nodes connected by the edge; The graph structure is input into a hydrogen leak detection model to obtain a plurality of the leak probabilities. The leak detection model is obtained by training a GCN model using a plurality of sets of training data. Each set of the training data includes: the graph structure and the leak probability acquired in a historical period.

5. The method according to claim 4, It is characterized in that Before inputting the graph structure into a hydrogen leakage detection model to obtain a plurality of leakage probabilities, the method further includes: In the historical period, a target CFD model is established, wherein the target CFD model is a three-dimensional CFD model of a predetermined space and a three-dimensional CFD model of the hydrogen leakage detection system, wherein the predetermined space is a space between the predetermined area and a top area, wherein the top area has the same shape as the predetermined area, and the top area is located directly above the predetermined area and is parallel to the predetermined area, and the distance between the top area and the predetermined area is the third predetermined distance; Setting a plurality of hydrogen leakage scenarios, wherein the hydrogen leakage scenarios at least include: the three-dimensional coordinates of the point where the hydrogen leakage occurs in the predetermined coordinate system, the hydrogen leakage rate, and the leakage probability of all the quadrilateral areas; In the target CFD model, each hydrogen leakage scenario is run, and multiple hydrogen data sets are obtained, one hydrogen data set corresponds to one hydrogen leakage scenario, one hydrogen data set includes multiple groups of hydrogen data, one group of hydrogen data includes: hydrogen pressure value, hydrogen concentration value, one group of hydrogen data corresponds to one hydrogen sensor, and one group of hydrogen data is collected by the corresponding hydrogen sensor.

6. The method according to claim 4, It is characterized in that The graph structure is input into a hydrogen leakage detection model to obtain a plurality of leakage probabilities, including: Input the graph structure into an input layer to obtain an initial node feature matrix, wherein the initial node feature matrix is ​​composed of all the node feature vectors; The initial node feature matrix is ​​input into the graph convolution network to obtain a final node feature matrix, wherein the graph convolution network is composed of N graph convolution layers connected in sequence, the final node feature matrix is ​​the node feature matrix output by the Nth graph convolution layer, and the l+1th graph convolution layer is: l is an integer, and -1<l<N, H (0) is the initial node feature matrix, H (l+1) is the node feature matrix output by the l+1th graph convolutional layer, H (l) is the node feature matrix output by the lth graph convolutional layer, σ is the ReLU activation function, W (l) is the weight matrix of the lth graph convolutional layer, A is the adjacency matrix, A ij is an element in A, and A ij is 1, indicating that the i-th node is connected to the j-th node in communication, and A ij 0 indicates that the i-th node is not connected to the j-th node in communication, D is a degree matrix, and the degree matrix is ​​a diagonal matrix, D ii is the number of nodes that are connected to the i-th node for communication, Yes ij The weight matrix, e ij is the edge feature vector included in the edge connecting the i-th node and the j-th node, and N(i) is the set of nodes that are communicatively connected to the i-th node; The final node feature matrix is ​​input into the fully connected layer to obtain the classification feature vector, wherein the fully connected layer is: Z = Pooling (H (N) )W fc +b fc , where Pooling() is global average pooling, W fc is the weight matrix of the fully connected layer, b fc is the bias matrix of the fully connected layer, H (N) is the node feature matrix output by the Nth graph convolutional layer, and Z is the classification feature vector; The classification feature vector is input into the output layer to obtain a probability vector, which is composed of all the leakage probabilities, wherein the output layer is composed of a Softmax activation function, and the Softmax activation function is in, is the probability vector, Z i is the ith element in the classification feature vector, and M is the total number of the quadrilateral regions.

7. A hydrogen leak detection system, It is characterized in that The system comprises: A plurality of hydrogen sensors, any two of which are communicatively connected, the hydrogen sensors being used to collect hydrogen pressure values ​​and hydrogen concentration values, the predetermined area being composed of nine identical quadrilateral areas in a nine-square grid format, and the numbers of the quadrilateral areas being sequentially increased in a serpentine order, a hydrogen sensor being arranged at a first predetermined distance directly above each vertex of the quadrilateral area at the exact center, a hydrogen sensor being arranged at a second predetermined distance directly above each first target point, the first target point being the intersection of any two of the quadrilateral areas except the quadrilateral area at the exact center, and the first target point being located on the outer contour of the predetermined area, a hydrogen sensor being arranged at the second predetermined distance directly above the exact center point of the quadrilateral area at the exact center, and a hydrogen sensor being arranged at a second predetermined distance directly above each second target point. The hydrogen sensor is arranged at a third predetermined distance directly above the target point, the second target point is the center point of the quadrilateral area having only two sides intersecting with other quadrilateral areas, and a hydrogen sensor is arranged at the third predetermined distance directly above the center point of the quadrilateral area at the center, the second predetermined distance is greater than the first predetermined distance, and the third predetermined distance is greater than the second predetermined distance, the origin of the predetermined coordinate system is the center point of the predetermined area, the horizontal axis of the predetermined coordinate system is parallel to one central axis of the predetermined area, the vertical axis of the predetermined coordinate system is parallel to another central axis of the predetermined area, the vertical axis of the predetermined coordinate system is perpendicular to the horizontal axis of the predetermined coordinate system, and the vertical axis of the predetermined coordinate system is perpendicular to the vertical axis of the predetermined coordinate system.

8. A hydrogen leak detection device, It is characterized in that A hydrogen leak detection system comprises: a plurality of hydrogen sensors, wherein a predetermined area is composed of nine identical quadrilateral areas in a nine-square grid form, and the numbers of the quadrilateral areas are sequentially increased in a serpentine order, wherein a hydrogen sensor is arranged at a first predetermined distance directly above each vertex of the quadrilateral area at the exact center, and a hydrogen sensor is arranged at a second predetermined distance directly above each first target point, wherein the first target point is an intersection point of any two quadrilateral areas except the quadrilateral area at the exact center, and the first target point is located on the outer contour of the predetermined area, wherein a hydrogen sensor is arranged at the second predetermined distance directly above the exact center point of the quadrilateral area at the exact center, and a hydrogen sensor is arranged at a third predetermined distance directly above each second target point, wherein the second target point is the center point of the quadrilateral area having only two sides intersecting with other quadrilateral areas, and wherein a hydrogen sensor is arranged at the third predetermined distance directly above the exact center point of the quadrilateral area at the exact center, wherein the second predetermined distance is greater than the first predetermined distance, and the third predetermined distance is greater than the second predetermined distance, and wherein the device comprises: A first acquisition unit is used to acquire multiple groups of sensor data in a current time period, wherein a group of sensor data includes: a three-dimensional coordinate of the hydrogen sensor in the predetermined coordinate system, a hydrogen pressure value, and a hydrogen concentration value, wherein a group of sensor data corresponds to one hydrogen sensor, and the hydrogen pressure value and the hydrogen concentration value in a group of sensor data are collected by the corresponding hydrogen sensor; A determination unit is used to determine whether hydrogen leakage occurs in the predetermined area according to the sensor data of all groups.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the hydrogen leakage detection method according to any one of claims 1 to 6.

10. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the hydrogen leak detection method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Hydrogen leakage detecting and positioning system and method

    CN114323448A

  • Hydrogen leakage detecting and positioning system and method

    CN116164243A

  • Intelligent and efficient hydrogen leakage diffusion prediction method based on graph physical information deep learning

    CN117391126A

  • Method and device for detecting hydrogen leakage of fuel cell and computer readable storage medium

    CN118107392A

  • Hydrogen safety monitoring method and device of fuel cell generator car and storage medium

    CN118144569A

Cited By

  • Hydrogen refueling station safety management method and system and computer program product

    CN121352509A

  • A method, system, and computer program product for the safety management of hydrogen refueling stations.

    CN121352509B