Interpretable prediction method and system for BOG generation in LNG storage tank system
By building a priori mechanism and graph neural network architecture in the LNG storage tank system, and using the thermal balance mechanism model and graph neural network to predict BOG production, the lack of interpretability and long-term span prediction of the prediction methods in the existing technology are solved. It solves the problem of poor adaptability and achieves high-precision, fast response and widely applicable BOG generation prediction.
Patent Information
- Application Number
- CN202411066848.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-06
AI Technical Summary
In the existing technology, the BOG production prediction method of the LNG storage tank system has insufficient interpretability, the black box characteristics of the data-driven method are difficult to convince in actual industrial decision-making, and the gradient boosting decision tree algorithm is not suitable for long-term span prediction mode. Poor sex.
Based on the pre-established thermal balance mechanism model of the storage tank system, an architecture driven by Priori Mechanism and Graph Neural Network (PM-GNN) is built. By acquiring historical multivariate time series data, establishing a priori graph structure and self-learning Edge weights, aggregate node information, and batch training methods of graph neural networks are used to predict BOG production.
It achieves strong interpretability, high prediction accuracy, fast response speed and wide generalization of BOG generation, and provides stronger theoretical support for the application of data-driven methods in actual industrial scenarios.
Smart Images

Figure CN118585757B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of BOG generation prediction, and in particular relates to an interpretable prediction method and system for BOG generation of an LNG storage tank system. Background Art
[0002] Affected by factors such as temperature, pressure changes and storage time, LNG will evaporate and produce BOG. Accurately predicting the amount of BOG generated helps guide the workload of the compressor so that the pressure inside the LNG storage tank is always in a stable state. It can also scientifically plan the BOG reprocessing plan to maximize the economic benefits of the enterprise.
[0003] Compared with the BOG generation prediction method driven by numerical simulation and theoretical analysis, the data-driven method has been significantly improved in accuracy, response speed, and generalization. However, the black box characteristics of the data-driven method make it difficult to be convincing in the evolution process from input to decision-making. With the increasing attention paid to the interpretability of prediction models, it is necessary to study a new architecture that embeds prior knowledge in actual industrial systems into data-driven methods.
[0004] The fundamental reason for the generation of BOG is that the temperature of LNG in the storage tank rises due to heating, reaching or exceeding its saturation temperature, thereby inducing phase change. Therefore, taking the entire LNG storage tank system as the research object, establishing a thermal balance mechanism model of the LNG storage tank system from a thermal perspective can more accurately explain the heat exchange mechanism between different elements in the system, thereby obtaining prior knowledge of the system and providing clearer guidance for the prediction of BOG generation.
[0005] Although the Chinese invention patent application with publication number CN 114819193 A and titled Data Processing Method and System for Liquefied Natural Gas Tank Operation Data Mining established a thermal balance mechanism model for the LNG tank system, it simply used the mechanism model to reorganize the original characteristics of the LNG tank system without performing a deeper embedding project. In addition, the above patent only used the gradient boosting decision tree to predict the BOG generation. This algorithm can only show good performance when the global distribution of the data is understood, and it has the disadvantage of being difficult to adapt to long-term prediction models. Summary of the invention
[0006] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides an interpretable prediction method and system for BOG generation of LNG storage tank system. Based on a pre-established thermal balance mechanism model of the storage tank system, a priori mechanism and graph neural network (PM-GNN) driven architecture is constructed to achieve a prediction of BOG generation of LNG storage tanks with strong interpretability, high prediction accuracy, fast response speed and wide generalization.
[0007] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:
[0008] A first aspect of the present invention provides an interpretable prediction method for BOG generation in an LNG storage tank system.
[0009] The interpretable prediction method of BOG generation of LNG storage tank system includes the following steps:
[0010] Obtain historical multivariate time series data of the LNG storage tank system and perform preprocessing;
[0011] Based on the prior relationship between different physical quantities in the pre-established thermal balance physical mechanism model of the LNG storage tank system, a prior graph structure with different sensors as nodes is established;
[0012] Self-learn the edge weights in the prior graph structure to obtain the weight coefficients between nodes and establish a priori weight graph;
[0013] The prior weight graph and the preprocessed historical multivariate time series data of the LNG tank system are input into the pre-established graph neural network model, and the neighbor node information of each node is aggregated to provide a more comprehensive representation of the information of each node.
[0014] The graph neural network model is trained using a batch training method suitable for graph neural networks, and the predicted value of BOG generation in the LNG storage tank system is obtained based on the trained model.
[0015] A second aspect of the present invention provides an explainable prediction system for BOG generation in an LNG storage tank system.
[0016] The explainable prediction system for BOG generation in LNG tank systems includes:
[0017] The data acquisition module is configured to: acquire historical multivariate time series data of the LNG storage tank system and perform preprocessing;
[0018] The prior graph structure establishment module is configured to: establish a prior graph structure with different sensors as nodes based on the prior relationship between different physical quantities in the pre-established LNG tank system thermal balance physical mechanism model;
[0019] The weight coefficient self-learning module is configured to: self-learn the edge weights in the prior graph structure, obtain the weight coefficients between nodes, and establish a priori weight graph;
[0020] The node feature representation module is configured to: input the prior weight graph and the preprocessed historical multivariate time series data of the LNG tank system into the pre-established graph neural network model, aggregate the neighbor node information of each node, and represent the information of each node more comprehensively;
[0021] The training and prediction module is configured to: train the graph neural network model using a batch training method suitable for the graph neural network, and obtain the predicted value of the BOG generation amount of the LNG storage tank system based on the trained model.
[0022] One or more of the above technical solutions have the following beneficial effects:
[0023] The present invention provides an interpretable prediction method and system for the BOG production of an LNG tank system, which further embeds prior knowledge in the industrial system on the basis of a data-driven method. First, based on the prior relationship between different physical quantities in the pre-established thermal balance physical mechanism model of the LNG tank system, a priori graph structure with different sensors as nodes is established. Secondly, the edge weights in the priori graph structure are self-learned to obtain the weight coefficients between the nodes. Thirdly, based on the weight coefficients between the nodes, the neighbor node information of each node is aggregated to more comprehensively represent the information of each node. Finally, a batch training method suitable for graph neural networks is used to train the graph neural network model, and the predicted value of the BOG production of the LNG tank system is obtained based on the trained model. Compared with the methods in the prior art, the present invention has the advantages of high accuracy, fast response speed, wide generalization and strong interpretability, and provides stronger theoretical support for the application of data-driven methods in actual industrial scenarios.
[0024] In the process of establishing an interpretable graph neural network model, the present invention regards sensors with different functions as nodes in a priori graph structure based on the inherent dependency between different sensors described in the thermal balance physical mechanism model of the LNG storage tank system; regards other sensors that are physically connected to the sensor represented by the current node as neighbor nodes of the current node, and at the same time, based on the ideas of cosine similarity and Euclidean distance, self-learns the weight relationship between different sensors in the priori graph structure to further establish a priori weight graph. The present invention can make full use of the priori knowledge existing in the thermal balance physical mechanism model of the LNG storage tank system, and realize the interpretable prediction of the priori knowledge embedded in the data-driven model.
[0025] The present invention builds a method suitable for batch training of graph neural networks, and designs Group Sample ,Label , adjacency matrix And the weight coefficient The arrangement method makes Group The small graph of nodes can form a This avoids the phenomenon that the number of nodes in each small graph exceeds the threshold and the neighbor information aggregation in the large graph after splicing is disordered due to simply splicing the adjacency matrix and weight coefficients.
[0026] In the process of model training, the present invention further The weights in the spliced image are mapped The weight is restored to the value before splicing , which solves the problem that the large graph constructor in PYG Different from The index of The self-learned weights in The phenomenon that increases with the increase of index.
[0027] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0029] Figure 1 Schematic diagram of the sliding window method in the method of the present invention.
[0030] Figure 2 It is a schematic diagram of the original data after periodic splitting of the present invention.
[0031] Figure 3 It is a trend curve diagram of BOG generation in the training set of the present invention.
[0032] Figure 4 It is a trend curve diagram of BOG generation in the test set of the present invention.
[0033] Figure 5 It is a schematic diagram of the first-order difference processing results of the data after periodic splitting according to the present invention.
[0034] Figure 6 It is a schematic diagram of the dependence between different physical quantities in the a priori mechanism of the present invention.
[0035] Figure 7This is a schematic diagram of the visualization result of the edge weight matrix of the prior graph structure of the present invention.
[0036] Figure 8 This is a schematic diagram of the large graph construction and explainable information aggregation mechanism of industrial time series data in GNN based on the batch training idea of the present invention.
[0037] Fig. 9 This is a schematic diagram of the LNG storage tank system of the present invention.
[0038] Fig.10 This is a diagram showing the BOG generation prediction effect of the RNN model under the 3-step prediction mode of the present invention.
[0039] Fig.11 This is a diagram showing the prediction effect of BOG generation by the LSTM model in the three-step prediction mode of the present invention.
[0040] Fig.12 This is a diagram showing the BOG generation prediction effect of the GRU model in the three-step prediction mode of the present invention.
[0041] Fig.13 This is a diagram showing the BOG generation prediction effect of the Transformer model under the three-step prediction mode of the present invention.
[0042] Fig.14 This is a diagram showing the BOG generation prediction effect of the GAT model under the three-step prediction mode of the present invention.
[0043] Fig.15 This is a diagram showing the BOG generation prediction effect of the PM-GNN model under the three-step prediction mode of the present invention.
[0044] Fig.16 This is a diagram showing the BOG generation prediction effect of the RNN model under the 7-step prediction mode of the present invention.
[0045] Fig.17 This is a diagram showing the prediction effect of BOG generation by the LSTM model under the 7-step prediction mode of the present invention.
[0046] Fig.18 This is a diagram showing the BOG generation prediction effect of the GRU model under the 7-step prediction mode of the present invention.
[0047] Fig.19 This is a diagram showing the BOG generation prediction effect of the Transformer model under the 7-step prediction mode of the present invention.
[0048] Fig. 20 This is a diagram showing the BOG generation prediction effect of the GAT model under the 7-step prediction mode of the present invention.
[0049] Fig.21 This is a diagram showing the BOG generation prediction effect of the PM-GNN model under the 7-step prediction mode of the present invention. DETAILED DESCRIPTION
[0050] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0051] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0052] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0053] Embodiment 1
[0054] In the existing technology, although a thermal balance mechanism model of the LNG storage tank system was established, the original characteristics of the LNG storage tank system were simply reorganized using the mechanism model, and no deeper embedding engineering was performed. In addition, the gradient boosting decision tree is used to predict the BOG generation. This algorithm needs to understand the global distribution of the data to show good performance, and it has the disadvantage of being difficult to adapt to long-term prediction models. Figure 8 As shown, this embodiment discloses an interpretable prediction method for BOG generation of an LNG storage tank system, comprising the following steps:
[0055] Obtain historical multivariate time series data of the LNG storage tank system and perform preprocessing;
[0056] Based on the prior relationship between different physical quantities in the pre-established thermal balance physical mechanism model of the LNG storage tank system, a prior graph structure with different sensors as nodes is established;
[0057] Self-learn the edge weights in the prior graph structure to obtain the weight coefficients between nodes and establish a priori weight graph;
[0058] The prior weight graph and the preprocessed historical multivariate time series data of the LNG tank system are input into the pre-established graph neural network model, and the neighbor node information of each node is aggregated to provide a more comprehensive representation of the information of each node.
[0059] The graph neural network model is trained using a batch training method suitable for graph neural networks, and the predicted value of BOG generation in the LNG storage tank system is obtained based on the trained model.
[0060] Specifically, the technical solution of this embodiment includes four parts: preprocessing of historical multivariate time series data of LNG tank systems, edge weight self-learning mechanism based on prior graph structure, neighbor node information aggregation module based on edge weights, and large graph construction of industrial time series data in GNN based on batch training idea.
[0061] (1) Preprocessing of historical multivariate time series data of LNG storage tank system
[0062] Assume that the historical multivariate time series data in the training set and test set of the LNG tank system are represented in the time and space dimensions as and :
[0063]
[0064]
[0065] in, Represents the historical multivariate time series data of the LNG storage tank system in the time dimension The time corresponding to The characteristic value of each sensor, ; Represents the historical multivariate time series data of the LNG storage tank system The sensors in The eigenvalues of the time steps, .
[0066] First, in order to speed up the convergence of the model, Perform data standardization operations:
[0067]
[0068] in, and Respectively represent a specific sensor in The maximum and minimum eigenvalues within a time step.
[0069] Secondly, since the unloading of the LNG tank system is a periodic operation, Perform periodic splitting:
[0070]
[0071] in,
[0072] Respectively represent a unloading cycle.
[0073] Thirdly, if the historical data of the unloading cycle is small, it is possible to consider data enhancement for the periodically split data. - Take the data in the time period as an example (the same applies to the other time periods), and assume that the sliding window length is :
[0074] .
[0075] in,
[0076] Respectively represent the data in each sliding window after data enhancement; Represents a data augmentation operation.
[0077] Finally, for each interval after data enhancement, the idea of difference is introduced to alleviate the lag effect in long-term prediction problems:
[0078]
[0079] in, Indicates data difference.
[0080] (2) Edge weight self-learning mechanism based on prior graph structure
[0081] The a priori mechanism explains the inherent dependency between different sensors. If sensors with different functions are regarded as nodes in the graph, and sensors that are physically connected to a certain functional sensor are regarded as neighbor nodes of the node, then the dependency between sensors with different functions forms a directed / undirected graph. The physical mechanism of thermal balance of the LNG storage tank system established in CN202210744755.7 is as follows:
[0082]
[0083] in, , , , , , is the coefficient corresponding to each term; is the tank side temperature, is the LNG temperature of the storage tank; Indicates the discharge arm pressure, Indicates the pressure inside the tank. represents the tank discharge temperature, m represents the mixed friction zone coefficient; Specifically, it refers to the outflow flow of the tank bottom pump; Indicates tank liquid level; Indicates the tank height, Indicates the top temperature of the tank; Indicates the outlet pressure of BOG compressor, Indicates the BOG compressor outlet flow rate, Indicates the BOG compressor outlet temperature; Represent three storage tanks respectively.
[0084] Therefore, the constants in the above formula are eliminated, the relationship between sensors with different physical meanings is established as a priori graph structure, and the edge weights in the graph structure are further self-learned.
[0085] After preprocessing the historical multivariate time series data of the LNG storage tank system, The multivariate time series data corresponding to N graph nodes in the time period is :
[0086]
[0087] for dimensional vector.
[0088] First, cosine similarity is used to measure the directional similarity between different sensor vectors:
[0089]
[0090] in, and For different nodes; Represents the cosine similarity between two nodes; and Respectively and Model.
[0091] Secondly, the Euclidean distance is used to assist in considering the distance and size differences between different sensor vectors:
[0092]
[0093] in, Represents the Euclidean distance between two nodes; Indicates the node feature values.
[0094] Finally, and Combine to more fully evaluate the overall weight coefficient between the two vectors:
[0095]
[0096] in, Represents the weight coefficient between two nodes; Indicates solving in row vector dimension norm, The role of the norm is to map the weights to between 0 and 1 so that the new feature representation after aggregating neighbor information is at the same order of magnitude as the original feature; represents the identity matrix, which introduces the autocorrelation of the nodes.
[0097] (3) Neighbor node information aggregation module based on edge weight self-learning
[0098] The matrix of weight coefficients between all nodes learned by self-learning in (2) is , in order to ensure that the new features after aggregating neighbor node information are of the same order of magnitude as the original features, Midpoint and nodes The weight coefficients between them are passed through the nonlinear layer as well as After function processing, the final aggregation coefficient is obtained. For Node All neighbor nodes of:
[0099]
[0100] in, Representation Node With Node The final aggregation coefficient between For Node All neighbor nodes of represents a nonlinear layer; Representation Node With Node exist The original self-learned weights in the matrix; Representation Node With Node exist The original self-learned weights in the matrix.
[0101] Furthermore, in order to increase the interpretability of the prediction model, the present invention abandons the Attention mechanism in the original Graph Attention Network (GAT), and then uses the weight coefficients self-learned based on the prior mechanism For Node The feature information of neighbor nodes is linearly combined as the node The final feature representation of is:
[0102]
[0103] in, For Node The final feature representation of For Node Neighbor Node The feature representation of represents a non-linear layer.
[0104] (4) Large graph construction of industrial time series data in GNN based on batch training idea
[0105] In order to speed up the model training process, batch training techniques are usually used. Since GNN embeds node and edge attributes, simply splicing the adjacency matrix and weight coefficients will cause the number of nodes in each small graph to exceed the threshold, and the aggregation of neighbor information in the large graph after splicing will be disordered.
[0106] Therefore, the present invention first Group Sample ,Label , adjacency matrix And the weight coefficient Arrange them as follows:
[0107]
[0108]
[0109] in, Indicates the first Samples of groups; Indicates indivual Samples of groups; Indicates the first adjacency matrix of the group; Indicates indivual adjacency matrix of the group; Indicates the first The label of the group; Indicates indivual The label of the group; Indicates the first The weight coefficient of the group; Indicates indivual The weight coefficient of the group; Represents the samples in the large image after splicing; Represents the adjacency matrix of the spliced large graph; Indicates the label of the large image after splicing; Represents the weight coefficient of the large image after splicing.
[0110] because and are placed diagonally, so Group The small graph of nodes can form a The large graph of nodes is denoted as ,at the same time Each small graph in has an independent computation path and correct feature representation.
[0111] However, The large graph constructor in Different from The index of The self-learned weights in Therefore, the present invention further increases The weights in are mapped to form a large image after splicing The weight values in the image are restored to the values of the sub-images before splicing. The weight values in:
[0112]
[0113] and Represent the number of edges and nodes in the small graph respectively. Stored in A list of [0,batch], The weight matrix of the large image that will be spliced in the wrong way Restore the weight matrix of the large image to be stitched in the correct way .
[0114] Finally, during model training, , and The relationship between can be expressed as:
[0115]
[0116] in, represents a learnable parameter of very large dimension, which can be updated using stochastic gradient descent:
[0117] ,
[0118]
[0119] Represents the loss function For parameters The gradient of represents the updated parameters, Indicates the parameters before updating. Represents the learning rate.
[0120] Further, please refer to the following formula 1:
[0121] (1)
[0122] in, It represents the amount of BOG produced, R is the molar gas constant, and z is the compression factor. Its specific value can be determined according to the actual temperature, pressure and chemical composition of the gas.
[0123] Therefore, this embodiment will As the final prediction target, the final BOG generation can be obtained by integrating the product of the predicted value and 1 / zR in the actual working condition over time.
[0124] Next, the solution of this embodiment will be further described in conjunction with the accompanying drawings.
[0125] like Figure 1 As shown, this embodiment uses a sliding window to predict the BOG generation amount at a future moment, that is, the data in a time period of length n in the past is used to predict the data in a time period of length m in the future, and then the sliding window slides along the time dimension.
[0126] like Figure 2 As shown in FIG. 1 , it is a schematic diagram of the original data of this embodiment after periodic splitting. Since the unloading condition has a certain periodicity, the original data is periodically displayed in this embodiment. Figure 2 In the figure, curves of different colors represent different unloading cycles. In this embodiment, the unloading cycle on the left side of x=t is set as the training set, and the unloading cycle on the right side is set as the test set. After the above division, the BOG generation trend curves in the training set and the test set are as follows: Figure 3 and Figure 4 shown.
[0127] In order to alleviate the hysteresis problem in the prediction model, this embodiment is based on the idea of difference, and the difference between the observations is calculated to remove the trend in the time series to achieve the effect of stabilization. After the periodic split data is processed by difference, Figure 5 shown.
[0128] In addition, in order to accurately verify the stationarity after the difference processing, this embodiment performs an ADF stationarity test on the data after the difference processing, wherein the value of the ADF statistic is -20.473346, which is significantly smaller than the critical indicators of all significance tests (1% level = -3.432, 5% level = -2.862, 10% level = -2.567), and therefore has 99% confidence to show that the data after the first-order difference is stationary.
[0129] In order to more clearly characterize the physical mechanism of thermal equilibrium established in patent CN202210744755.7, this embodiment visualizes it. Figure 6 The figure shows the dependence relationship between different physical quantities in the prior mechanism. The triangles represent , , and There is a dependency relationship between them; the four-pointed star indicates and There is a dependency relationship between them; the five-pointed star indicates that each physical quantity has a dependency relationship with itself; the pentagon indicates and Has dependencies; heptagon represents , as well as There is a dependency relationship between them; the prism indicates , , , , , , , and All have dependencies.
[0130] In addition, this embodiment further assigns values to the edge attributes of the modeled priori graph structure, such as Figure 7 As shown in FIG. 1 , since the dependency weights between different features are inconsistent in different time periods, this embodiment uses serial numbers to replace weight values in the visualization result of the prior weight map.
[0131] For example, and The sequence number of the weight coefficient is 7; and The sequence number of the weight coefficients is 16, and so on, which will not be repeated here.
[0132] Figure 8 This is a schematic diagram of the large graph construction and interpretable information aggregation mechanism of industrial time series data in GNN based on batch training ideas in this embodiment. Different batch data are combined with the prior graph structure, and the sensor features of the corresponding time period are embedded in the edge weight self-learning mechanism to model the prior weight matrix. The edge weights processed by the weight mapping layer are finally used to aggregate the feature information of neighboring nodes.
[0133] like Figure 8 As shown in the figure, Part1, Part2...Part Batch in the batch data represent the first Group, second Group... indivual Group;
[0134] The prior graph structure is obtained through the prior relationship between different physical quantities in the pre-established LNG tank system thermal balance physical mechanism model;
[0135] based on Batch data, combined with the prior graph structure for each The edge weights in the group are self-learned to obtain each The prior weight matrix corresponding to the group data;
[0136] After the prior weight matrix is mapped by the weight mapping layer, the weight values in the weight matrix of the spliced large graph are restored to the values before splicing to obtain the final aggregation coefficients between different nodes in the spliced large graph.
[0137] After obtaining the aggregation coefficient, the neighbor information of different nodes is aggregated. Figure 8 As shown on the far right, Connect , , , Parameters on the edge , , , They represent the sensors learned through the edge weight self-learning mechanism. With sensor , , , The weight coefficient between Indicates that Aggregate the information of neighbor nodes. Indicates that after aggregating neighbor node information New representation of .
[0138] The detailed statistics of historical multivariate time series data in the LNG storage tank system are shown in Table 1. In actual working conditions, three storage tanks are connected to a BOG compressor, and the schematic diagram is shown in Fig. 9 Specifically, the LNG unloading main pipe is connected to the three storage tanks respectively, and the BOG generated by the three storage tanks can be connected to the BOG compressor through the BOG manifold; in each storage tank, there is liquid LNG, and part of the LNG is converted into gaseous BOG after gasification in the storage tank, and the process is shown by the red rising arrow; a tank bottom pump is also provided at the bottom of each storage tank.
[0139] Table 1 shows the detailed statistics of historical multivariate time series data in the LNG storage tank system.
[0140]
[0141] (1)
[0142] Please refer to the above formula 1, It represents the amount of BOG produced, R is the molar gas constant, and z is the compression factor. Its specific value can be determined according to the actual temperature, pressure and chemical composition of the gas.
[0143] Therefore, the present invention will As the final prediction target, the final BOG generation can be obtained by integrating the product of the predicted value and 1 / zR in the actual working condition over time.
[0144] This embodiment uses mean square error (MSE), mean absolute percentage error (MAPE), mean absolute error (MAE), and coefficient of determination (R 2 ) is used as an evaluation indicator for the model prediction effect, and its definition is as follows:
[0145]
[0146] in, is the sample value, is the predicted value, is the sample size.
[0147] According to the above formula, we can find that the lower the value of MSE, MAPE, and MAE, the better the model fitting effect. 2 The higher the value, the stronger the performance of the model.
[0148] Figure 10-Figure 15 , Figure 16-Figure 21 Schematic diagrams showing the prediction effects of the six models on BOG generation in the 3-step and 7-step prediction modes are shown respectively. It can be found that in both modes, the fitting effects of the PM-GNN proposed in this embodiment are improved compared with the traditional five models, which are specifically manifested in that the overlap between the predicted value and the actual value is higher and the fluctuation values at the peaks and troughs are significantly reduced.
[0149] The six models include the PM-GNN proposed in this embodiment and the other five traditional models, which are RNN, LSTM, GRU, Transformer and GAT.
[0150] The 3-step and 7-step prediction modes respectively refer to predicting the BOG generation in the next three time steps and seven time steps.
[0151] In addition, the present invention also quantifies the improvement of PM-GNN performance. By comparing the evaluation indicators in Table 2, it can be found that:
[0152] In the 3-step prediction mode, compared with RNN, LSTM, GRU, Transformer and GAT, PM-GNN's MSE decreased by 45.4%, 69.3%, 39.1%, 24.8%, and 18.5%, respectively, MAE decreased by 40.9%, 58.6%, 15.8%, 19.3%, and 4.7%, respectively, MAPE decreased by 41.3%, 59.1%, 17.4%, 19.3%, and 5.0%, respectively, and R2 increased by 2.0%, 5.6%, 1.5%, 0.8%, and 0.5%, respectively.
[0153] In the 7-step prediction mode, compared with RNN, LSTM, GRU, Transformer and GAT, PM-GNN's MSE decreased by 53.3%, 12.2%, 42.9%, 23.1%, and 8.3%, respectively, MAE decreased by 58.5%, 16.5%, 42.5%, 34.5%, and 5.3%, respectively, MAPE decreased by 58.5%, 17.0%, 43.4%, 34.3%, and 5.4%, respectively, and R2 increased by 7.3%, 0.8%, 4.7%, 1.8%, and 0.5%, respectively.
[0154] Table 2 is a comparison of the evaluation indicators of the six models under the two prediction modes.
[0155]
[0156] Embodiment 2
[0157] This embodiment discloses an explainable prediction system for BOG generation in an LNG storage tank system.
[0158] The explainable prediction system for BOG generation in LNG tank systems includes:
[0159] The data acquisition module is configured to: acquire historical multivariate time series data of the LNG storage tank system and perform preprocessing;
[0160] The prior graph structure establishment module is configured to: establish a prior graph structure with different sensors as nodes based on the prior relationship between different physical quantities in the pre-established LNG tank system thermal balance physical mechanism model;
[0161] The weight coefficient self-learning module is configured to: self-learn the edge weights in the prior graph structure, obtain the weight coefficients between nodes, and establish a priori weight graph;
[0162] The node feature representation module is configured to: input the prior weight graph and the preprocessed historical multivariate time series data of the LNG tank system into the pre-established graph neural network model, aggregate the neighbor node information of each node, and represent the information of each node more comprehensively;
[0163] The training and prediction module is configured to: train the graph neural network model using a batch training method suitable for the graph neural network, and obtain the predicted value of the BOG generation amount of the LNG storage tank system based on the trained model.
[0164] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, 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, 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. The present invention is not limited to any specific combination of hardware and software.
[0165] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. An interpretable prediction method for BOG generation in LNG tank system, characterized in that: The following steps are involved: Obtain historical multivariate time series data of the LNG storage tank system and perform preprocessing; Based on the prior relationship between different physical quantities in the pre-established thermal balance physical mechanism model of the LNG storage tank system, a prior graph structure with different sensors as nodes is established; Self-learn the edge weights in the prior graph structure to obtain the weight coefficients between nodes and establish a priori weight graph; The prior weight graph and the preprocessed historical multivariate time series data of the LNG tank system are input into the pre-established graph neural network model, and the neighbor node information of each node is aggregated to provide a more comprehensive representation of the information of each node. The graph neural network model is trained using a batch training method suitable for graph neural networks, and the predicted value of BOG generation in the LNG storage tank system is obtained based on the trained model. The pre-established LNG tank system thermal balance physical mechanism model is specifically: ; in, , , , , , is the coefficient corresponding to each term; is the tank side temperature, is the LNG temperature of the storage tank; Indicates the discharge arm pressure, Indicates the pressure inside the tank. represents the tank discharge temperature, m represents the mixed friction zone coefficient; It is the outflow flow of the tank bottom pump; Indicates tank liquid level; Indicates the tank height, Indicates the top temperature of the tank; Indicates the outlet pressure of BOG compressor, Indicates the BOG compressor outlet flow rate, Indicates the BOG compressor outlet temperature; , , Respectively represent three storage tanks; After preprocessing the historical multivariate time series data of the LNG storage tank system, The multivariate time series data corresponding to N graph nodes in the time period is Q: ; for dimensional vector; Cosine similarity is used to measure the directional similarity between different sensor vectors: ; in, and For different nodes; Represents the cosine similarity between two nodes; and Respectively and Model; Euclidean distance is used to help consider the distance and size differences between different sensor vectors: ; in, represents the Euclidean distance between two nodes; q represents the qth eigenvalue of the node; Will and Combine to more fully evaluate the overall weight coefficient between the two vectors: ; in, Represents the weight coefficient between two nodes; Indicates solving the L2 norm in the row vector dimension. The role of the L2 norm is to map the weights to between 0 and 1 so that the new feature representation after aggregating neighbor information is in the same order of magnitude as the original feature; represents the identity matrix, which introduces the autocorrelation of the nodes.
2. The interpretable prediction method for BOG generation in an LNG storage tank system according to claim 1, characterized in that: The historical multivariate time series data of the LNG storage tank system obtained in the time and space dimensions are represented as and : in, Represents the historical multivariate time series data of the LNG storage tank system in the time dimension The time corresponding to The characteristic value of each sensor, ; Represents the historical multivariate time series data of the LNG storage tank system The sensors in The eigenvalues of the time steps, .
3. The interpretable prediction method for BOG generation of LNG storage tank system according to claim 2, characterized in that: Preprocess the historical multivariate time series data of the LNG storage tank system, including Perform data standardization operations, Perform periodic splitting processing and perform data enhancement processing on the data after periodic splitting.
4. The interpretable prediction method for BOG generation of an LNG storage tank system according to claim 1, characterized in that: Establish a priori graph structure with sensors as nodes, specifically: Based on the inherent dependency between different sensors explained by the physical mechanism model of thermal balance of LNG storage tank system, sensors with different functions are regarded as nodes in the prior graph structure; Other sensors that are physically connected to the sensor represented by the current node are regarded as neighbor nodes of the current node. Based on the dependency relationship between sensors with different functions, a directed / undirected graph is formed to establish a priori graph structure.
5. The interpretable prediction method for BOG generation of LNG storage tank system according to claim 1, characterized in that: The weight coefficients between the nodes are specifically: in, Represents two nodes and The weight coefficient between ; Indicates solving in row vector dimension norm; represents the identity matrix; Represents two nodes and The cosine similarity between ; Represents two nodes and The Euclidean distance between .
6. The interpretable prediction method for BOG generation of an LNG storage tank system according to claim 1, characterized in that: The final feature representation of each node in the graph neural network model is: in, For Node The final feature representation of For Node Neighbor Node The feature representation of Representation Node With Node The final aggregation coefficient between For Node All neighbor nodes of represents a nonlinear layer; Representation Node With Node exist The original self-learned weights in the matrix; Representation Node With Node exist The original self-learned weights in the matrix; represents a non-linear layer.
7. The interpretable prediction method for BOG generation of an LNG storage tank system according to claim 1, characterized in that: The batch training method is used to train the graph neural network model, which includes: First, Group Sample ,Label , adjacency matrix And the weight coefficient Arrange them as follows, Group The small graph of nodes can form a A large picture of the nodes: in, Indicates the first Samples of groups; Indicates indivual Samples of groups; Indicates the first adjacency matrix of the group; Indicates indivual adjacency matrix of the group; Indicates the first The label of the group; Indicates indivual The label of the group; Indicates the first The weight coefficient of the group; Indicates indivual The weight coefficient of the group; Represents the samples in the large image after splicing; Represents the adjacency matrix of the spliced large graph; The label of the large image after splicing; Represents the weight coefficient of the large image after splicing; Afterwards The weights in are mapped: in, and Represent the number of edges and nodes in the small graph respectively; Stored in A list of [0,batch]; The weight matrix of the large image that will be spliced in the wrong way Restore the weight matrix of the large image to be stitched in the correct way .
8. The interpretable prediction method for BOG generation of an LNG storage tank system according to claim 7, characterized in that: In the process of training the graph neural network model, , and The relationship between them is expressed as: ; in, represents a learnable parameter, which is updated using stochastic gradient descent.
9. An interpretable prediction system for BOG generation in LNG tank systems, characterized in that: include: The data acquisition module is configured to: acquire historical multivariate time series data of the LNG storage tank system and perform preprocessing; The prior graph structure establishment module is configured to: establish a prior graph structure with different sensors as nodes based on the prior relationship between different physical quantities in the pre-established LNG tank system thermal balance physical mechanism model; The weight coefficient self-learning module is configured to: self-learn the edge weights in the prior graph structure, obtain the weight coefficients between nodes, and establish a priori weight graph; The node feature representation module is configured to: input the prior weight graph and the preprocessed historical multivariate time series data of the LNG tank system into the pre-established graph neural network model, aggregate the neighbor node information of each node, and represent the information of each node more comprehensively; The training and prediction module is configured to: train the graph neural network model using a batch training method suitable for the graph neural network, and obtain a predicted value of the BOG generation amount of the LNG storage tank system based on the trained model; The pre-established LNG tank system thermal balance physical mechanism model is specifically: ; in, , , , , , is the coefficient corresponding to each term; is the tank side temperature, is the LNG temperature of the storage tank; Indicates the discharge arm pressure, Indicates the pressure inside the tank. represents the tank discharge temperature, m represents the mixed friction zone coefficient; It is the outflow flow of the tank bottom pump; Indicates tank liquid level; Indicates the tank height, Indicates the top temperature of the tank; Indicates the outlet pressure of BOG compressor, Indicates the BOG compressor outlet flow rate, Indicates the BOG compressor outlet temperature; , , Respectively represent three storage tanks; After preprocessing the historical multivariate time series data of the LNG storage tank system, The multivariate time series data corresponding to N graph nodes in the time period is Q: ; for dimensional vector; Cosine similarity is used to measure the directional similarity between different sensor vectors: ; in, and For different nodes; Represents the cosine similarity between two nodes; and Respectively and Model; Euclidean distance is used to help consider the distance and size differences between different sensor vectors: ; in, represents the Euclidean distance between two nodes; q represents the qth eigenvalue of the node; Will and Combine to more fully evaluate the overall weight coefficient between the two vectors: ; in, Represents the weight coefficient between two nodes; Indicates solving the L2 norm in the row vector dimension. The role of the L2 norm is to map the weights to between 0 and 1 so that the new feature representation after aggregating neighbor information is in the same order of magnitude as the original feature; represents the identity matrix, which introduces the autocorrelation of the nodes.
