Pipeline finite element analysis result cloud map rendering model training method and rendering method
By constructing a deep learning-based cloud map rendering model, the problems of low rendering efficiency and poor accuracy of cloud map rendering results from pipeline finite element analysis were solved, achieving efficient rendering and intelligent extraction of key measurement point data, thereby improving engineering analysis efficiency and visualization effects.
Patent Information
- Application Number
- CN202611290463.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies suffer from low rendering efficiency, poor accuracy, and difficulty in extracting key measurement point data in pipeline finite element analysis result cloud map rendering, lacking a systematic solution.
A deep learning-based cloud map rendering model is constructed, including a graph topology encoding module, a feature enhancement module, a cloud map generation module, and a virtual sensor module. The model is trained through a multi-task loss function to achieve efficient mapping from unstructured grid data to cloud maps, and virtual sensor annotation function is integrated.
It reduces cloud map rendering time from minutes to seconds, improves the detail reproduction accuracy of stress concentration areas and the visual quality of cloud maps, and supports intelligent extraction and reliable presentation of key measurement point data.
Smart Images

Figure CN123160743A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of energy and power technology, specifically relating to a training method and rendering method for a cloud map rendering model of pipeline finite element analysis results. Background Technology
[0002] In pipeline engineering design and safety assessment, finite element analysis (FEM) is one of the core technical methods. By performing multi-physics field analysis on pipelines, including mechanical and thermodynamic analyses, key state parameters such as stress, strain, expansion, and port thrust can be obtained. Contour maps, as the core visualization carrier of finite element analysis results, can intuitively present the spatial distribution characteristics of physical quantities, providing important basis for engineers to judge the rationality of pipeline structures and identify hazardous areas.
[0003] Existing methods for rendering cloud maps of pipeline finite element analysis results mainly rely on traditional visualization tools (such as Paraview and Tecplot). The general process involves reading the node coordinates and physical quantity data from the finite element result file, establishing a mapping between physical quantity values and color information through manually preset coloring configurations (such as color maps and contour intervals), and finally generating the cloud map. However, these traditional methods have the following significant technical drawbacks.
[0004] First, rendering efficiency is a bottleneck. Traditional methods require performing node-by-node or cell-by-cell traversal calculations and color mapping operations on the mesh. When the number of nodes in a pipeline finite element model is large (such as millions of nodes in a large pipeline network system), the traversal and calculation process takes significantly longer, with a single frame rendering taking several minutes. Especially in design iteration scenarios that require frequent adjustments to the viewpoint, switching of physical fields, or comparison of results from multiple working conditions, the inefficiency of traditional methods severely restricts the efficiency of engineering analysis.
[0005] Second, the visualization accuracy relies on human experience and lacks adaptability. The coloring configuration depends on human experience and presets. In areas with drastic changes in physical quantity gradients (such as stress concentration areas such as pipe bends, welds, and tees), problems such as discontinuous color transitions and loss of details are very likely to occur. At the same time, the coloring rules of traditional methods have poor universality. The configuration parameters need to be adjusted separately for different pipe types and different analysis conditions, which is cumbersome and has poor adaptability.
[0006] Third, it is sensitive to numerical noise. Numerical noise (such as calculation truncation error and mesh discretization error) is unavoidable in finite element analysis results. Traditional methods lack effective noise filtering mechanisms, and direct rendering can easily lead to artifacts in the cloud map, interfering with engineers' judgment of the true distribution characteristics of physical quantities.
[0007] Fourth, the efficiency of extracting key measurement point data is low. When using cloud maps, engineers often need to simultaneously obtain precise physical quantity values for specific key locations (such as elbows, welds, and supports) for specification verification or safety assessment. Traditional methods require manual positioning and reading of node data in the cloud map, which is cumbersome and prone to introducing reading errors. Although some tools support probe functions, they still require point-by-point interactive operation and cannot present system data of all key measurement points of the entire pipeline at once, making it difficult to meet the needs of rapid engineering diagnosis and report preparation.
[0008] In recent years, deep learning technology has demonstrated significant advantages in data-driven image generation and enhancement. In the engineering field, some techniques have attempted to combine deep learning with finite element analysis, such as using intrinsic orthogonal decomposition to construct reduced-order surrogate models to accelerate computation. However, these methods only accelerate the computational process and still rely on traditional node-by-node rendering workflows to generate cloud maps, failing to address the efficiency bottleneck in the visualization stage. Other research has used deep learning for 3D reconstruction followed by finite element analysis, but it focuses on geometric modeling rather than rendering the resulting cloud maps. Currently, there is no solution specifically designed to apply deep learning technology to the rendering of cloud maps from pipeline finite element analysis results, while simultaneously achieving automated extraction and presentation of key measurement point data.
[0009] In summary, current technologies lack a systematic architecture that organically integrates feature extraction from unstructured finite element data, efficient generation of contour maps, and intelligent extraction and reliability assessment of key measurement point data. While individual technical modules (such as neural networks, attention mechanisms, and physical information neural networks) have mature applications in their respective fields, how to organically arrange these modules according to data flow rules to form an end-to-end automated processing architecture from unstructured mesh data to labeled contour maps for the specific scenario of rendering contour maps of pipeline finite element analysis results remains an unsolved technical problem.
[0010] Therefore, how to construct a systematic method that can simultaneously achieve efficient cloud map rendering of finite element data and intelligent data extraction of key measurement points, in order to solve the technical problems of low efficiency and poor accuracy of cloud map rendering of pipeline finite element analysis results and inconvenience in extracting key measurement point data, has become an important technical problem that urgently needs to be solved. Summary of the Invention
[0011] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a training method and rendering method for a cloud map rendering model of pipeline finite element analysis results. By constructing a deep learning model trained offline, it achieves efficient mapping of finite element unstructured mesh data to cloud maps. Furthermore, it integrates virtual sensor annotation function in the rendering output, and synchronously generates physical field distribution cloud maps and virtual sensor numerical panels at key locations. This solves the technical problems of low rendering efficiency, poor accuracy, and inconvenient extraction of key measurement point data in pipeline finite element analysis result cloud map rendering.
[0012] This invention provides a method for training a cloud map rendering model of pipeline finite element analysis results, characterized by comprising: Acquire pipeline finite element analysis sample data and corresponding label data. The sample data includes node coordinate matrix sample, element connection relationship matrix sample, physical quantity value sample corresponding to each node in the node coordinate matrix sample, and key measurement point configuration file sample. The label data includes standard cloud map and standard virtual sensor annotation map. A cloud map rendering model based on deep learning is constructed, the model including a graph topology coding module, a feature enhancement module, a cloud map generation module, and a virtual sensor module; The cloud map rendering model is trained based on a multi-task loss function, which includes a cloud map rendering loss term and a virtual sensor annotation loss term. The cloud map rendering loss term is used to measure the difference between the predicted cloud map and the standard cloud map, and the virtual sensor annotation loss term is used to measure the difference between the predicted physical quantity value at each key measurement point and the corresponding physical quantity annotation value in the standard virtual sensor annotation map. With the goal of minimizing the loss term value of the multi-task loss term function, the parameters of the cloud map rendering model are updated through backpropagation to obtain the trained cloud map rendering model.
[0013] In one embodiment of the present invention, the graph topology encoding module is used to encode the node coordinate matrix sample, the cell connection relationship matrix sample, and the physical quantity numerical sample into an initial feature tensor; The feature enhancement module is used to perform channel attention weighting and spatial attention weighting on the initial feature tensor and output an enhanced feature tensor. The cloud map generation module is used to inversely map the enhanced feature tensor into a predicted cloud map with RGB three channels; The virtual sensor module is used to output predicted values of physical quantities at each key measurement point based on the enhanced feature tensor and the key measurement point configuration file sample.
[0014] In one embodiment of the present invention, the method further includes: performing data augmentation processing on the sample data under physical constraints, wherein the data augmentation processing includes at least one of the following methods: Random translation and / or rotation transformations are applied to the finite element mesh of the pipeline while maintaining the topology unchanged; Add random perturbations to the physical quantity values of nodes, and perform physical consistency checks on the perturbated data; Simulate Gaussian noise and / or salt-and-pepper noise; Randomly offset and add / remove from the configuration file of key measurement points.
[0015] In one embodiment of the present invention, the graph topology coding module includes a graph convolutional coding layer, a grid projection layer, and a convolutional feature extraction layer; The graph convolutional coding layer is used to perform graph convolution operations on the node feature matrix samples and the adjacency matrix samples to output node features. The node feature matrix samples are obtained by concatenating the node coordinate matrix samples and the physical quantity numerical samples. The adjacency matrix samples are constructed based on the unit connection relationship matrix samples. The grid projection layer is used to map the node features output by the graph convolutional coding layer to a regular two-dimensional grid space; The convolutional feature extraction layer is used to extract local spatial patterns on the regular two-dimensional grid space and output an initial feature tensor.
[0016] In one embodiment of the present invention, the graph convolutional coding layer adopts a graph convolutional network or a graph attention network, and the mesh projection layer adopts a spatial rasterization method based on finite element shape functions.
[0017] In one embodiment of the present invention, the feature enhancement module includes a channel attention submodule and a spatial attention submodule; The channel attention submodule is used to perform global average pooling and global max pooling on the initial feature tensor, and then multiply the pooled feature vector by the initial feature tensor channel by channel after processing by a shared fully connected layer to output a channel-weighted feature tensor. The spatial attention submodule is used to perform average pooling and max pooling on the channel-weighted feature tensor along the channel dimension. The pooled single-channel features are then processed by an activation function to output a spatial weight map. The spatial weight map is then multiplied pixel-by-pixel with the channel-weighted feature tensor to output an enhanced feature tensor.
[0018] In one embodiment of the present invention, the feature enhancement module further includes a mask prediction branch, which is used to perform convolution and activation processing on the channel weighted feature tensor output by the channel attention submodule to output a key region probability map. The mask prediction branch is trained with assisted supervision based on manually labeled key region mask tags. The training loss function of the mask prediction branch is a weighted sum of the binary cross-entropy loss term and the Dice loss term.
[0019] In one embodiment of the present invention, the cloud map generation module adopts a U-Net-type deconvolutional neural network structure; The encoder side of the cloud map generation module is the convolutional feature extraction layer in the graph topology coding module. The convolutional feature extraction layer generates multiple intermediate layer feature maps with different spatial resolutions during the feature extraction process. The decoder side of the cloud map generation module contains multiple deconvolutional layers, and the feature maps output by each deconvolutional layer have different spatial resolutions. The cloud map generation module concatenates the feature maps of each intermediate layer in the convolutional feature extraction layer with the output feature maps of the corresponding spatial resolution deconvolutional layer in the decoder by skip connections, and then upsamples them by pixel rearrangement upsampling to output the predicted cloud map.
[0020] In one embodiment of the present invention, the virtual sensor module includes a graph neural network interpolation model, a physical neural network reconstruction model, and an ensemble learning model; The graph neural network interpolation model is used to perform interpolation prediction based on the node feature information in the enhanced feature tensor and the measurement point location information in the key measurement point configuration file sample, and outputs the predicted value of the first physical quantity. The physical neural network reconstruction model is used to perform reconstruction prediction based on the measurement point location information in the key measurement point configuration file sample and in combination with physical conservation constraints, and output the predicted value of the second physical quantity. The ensemble learning model is used to fuse the predicted values of the first physical quantity and the second physical quantity, and output the predicted values of the physical quantity and uncertainty estimates at each key measurement point.
[0021] In one embodiment of the present invention, the cloud map rendering loss term includes a mean squared error loss term, a structural similarity loss term, and a physical consistency loss term; The mean squared error loss term is used to measure the difference between the pixel values of the predicted cloud map and the standard cloud map; The structural similarity loss term is used to measure the degree of structural similarity between the predicted cloud map and the standard cloud map; The physical consistency loss term is used to measure the difference between the color gradient of the predicted cloud map and the spatial gradient of the physical quantity numerical samples of the node, so as to constrain the color change trend of the cloud map to be consistent with the spatial change trend of the physical quantity.
[0022] This invention provides a method for rendering cloud maps of pipeline finite element analysis results, characterized by comprising: Obtain the original finite element analysis data of the pipeline to be rendered. The original data includes the node coordinate matrix, the element connection relationship matrix, the physical quantity values corresponding to each node, and the configuration file of key measurement points. The original data is preprocessed and transformed to obtain the node feature matrix and adjacency matrix; The node feature matrix and the adjacency matrix are input into the trained cloud map rendering model to perform forward inference, and a preliminary cloud map and intermediate physical quantity prediction values for each key measurement point are generated simultaneously; wherein, the cloud map rendering model is trained according to the above training method; Hierarchical adaptive calculations are performed on the intermediate physical quantity prediction values of each key measuring point to obtain the final physical quantity values of each key measuring point; The three-dimensional spatial coordinates of each key measuring point are mapped to the two-dimensional pixel coordinates of the preliminary cloud map. Based on the final physical quantity values of each key measuring point, virtual sensor visualization annotations are superimposed at the positions corresponding to the two-dimensional pixel coordinates to generate a target cloud map with virtual sensor annotations.
[0023] In one embodiment of the present invention, the three-dimensional spatial coordinates are determined based on the key measurement point configuration file and the node coordinate matrix.
[0024] In one embodiment of the present invention, the preprocessing and data transformation of the original data to obtain a node feature matrix and an adjacency matrix includes: The original data is cleaned, and the cleaned data is normalized. The normalized node coordinate matrix is concatenated with the physical quantity values to form the node feature matrix, and an adjacency matrix is constructed based on the unit connection relationship matrix.
[0025] In one embodiment of the present invention, the node coordinate matrix and the element connection relationship matrix together constitute a finite element model, and the hierarchical adaptive calculation of the intermediate physical quantity prediction values of each key measurement point includes: Select target key measurement points one by one from each key measurement point, and calculate the distance between the coordinates of the target key measurement point and the coordinates of each node in the finite element model to determine whether the target key measurement point coincides with the node in the finite element model; If they overlap, the physical quantity value of the node that overlaps with the coordinates of the target key measurement point will be taken as the final physical quantity value of the target key measurement point, and the hierarchical adaptive calculation process of the target key measurement point will be terminated. If they do not overlap, the smoothness ratio of the target key measuring points in the local area of the finite element model is calculated to determine whether the target key measuring points meet the smoothness condition. If the smooth condition is met, the graph neural network interpolation model in the cloud map rendering model is used to predict the key measurement points of the target to obtain a first prediction result, and the first prediction result and the preset benchmark interpolation result are used as the input of the ensemble learning model in the cloud map rendering model. If the smooth conditions are not met, multi-condition calculations are performed based on the element in the finite element model where the target key measurement point is located to determine whether the target key measurement point is located in a complex region. If the target is located in a complex area, the physical neural network reconstruction model in the cloud map rendering model is used to predict the key measurement points of the target to obtain a second prediction result. The second prediction result and the preset benchmark interpolation result are used as the input of the ensemble learning model in the cloud map rendering model. If it is not located in a complex region, the preset benchmark interpolation result will be used as the input of the ensemble learning model in the cloud map rendering model; For each key measurement point of the target, the ensemble learning model in the cloud map rendering model is used for fusion to output the final physical quantity value and uncertainty estimate of the key measurement point of the target.
[0026] In one embodiment of the present invention, the hierarchical adaptive calculation of the predicted intermediate physical quantities for each key measuring point includes: Select target key measurement points one by one from each key measurement point, and calculate the Euclidean distance between the coordinates of the target key measurement points and the coordinates of each node in the finite element model; If the Euclidean distance is less than the first preset threshold, it is determined that the target key measurement point coincides with the target node corresponding to the Euclidean distance, the physical quantity value of the target node is taken as the final physical quantity value of the target key measurement point, and the hierarchical adaptive calculation process of the target key measurement point is terminated. If the Euclidean distance is greater than or equal to the first preset threshold, then a local region is determined in the finite element model based on the target key measurement point, and the ratio of the maximum gradient norm to the average gradient norm of the local region is calculated as the first ratio, and the magnitude of the maximum gradient norm relative to the average physical quantity of the nodes in the local region is calculated as the second ratio. If the first ratio is less than the second preset threshold and the second ratio is less than the third preset threshold, then it is determined that the target key measurement point meets the smoothness condition, and the graph neural network interpolation model is used to predict the target key measurement point to obtain the first prediction result. If the first ratio is not less than the second preset threshold or the second ratio is not less than the third preset threshold, then it is determined that the target key measurement point does not meet the smoothing condition, and it is determined whether at least one of the following three conditions is met: whether the target key measurement point belongs to more than three different elements in the finite element model at the same time; whether the minimum value of the Jacobian determinant of the element in which the target key measurement point is located in the finite element model is less than the fourth preset threshold; and whether the ratio of the maximum value to the minimum value of the physical quantity of the node in the neighborhood of the target key measurement point is greater than the fifth preset threshold. If at least one of the three conditions is met, it is determined that the target key measurement point is located in a complex area, and the target key measurement point is predicted using the physical neural network reconstruction model to obtain a second prediction result; For each target key measurement point, the prediction result corresponding to the target key measurement point and the preset benchmark interpolation result of the target key measurement point are input into the ensemble learning model for fusion, and the final physical quantity value and uncertainty estimate of the target key measurement point are output. The prediction result includes a first prediction result and a second prediction result, and the preset benchmark interpolation result includes traditional shape function interpolation result and Kriging interpolation result.
[0027] In one embodiment of the present invention, the method further includes: calculating a confidence score for the key measurement point based on the uncertainty estimate, wherein the confidence score is obtained by weighted summation of the grid quality coefficient, gradient smoothness coefficient, physical rationality coefficient, and machine learning confidence coefficient; The display style of the virtual sensor label corresponding to the key measurement point is determined based on the confidence score.
[0028] The beneficial effects of this invention are as follows: By combining offline training with online inference in a deep learning architecture, an end-to-end intelligent mapping model from unstructured finite element mesh to color cloud map is constructed, which reduces the rendering time of a single frame cloud map from minutes to seconds, breaking through the efficiency bottleneck of traditional methods that require node-by-node traversal calculation.
[0029] Building upon graph topology encoding and physical perception feature enhancement, this study significantly improves the detail restoration accuracy and overall visual quality of cloud maps by utilizing graph neural networks, attention mechanisms, and physical consistency loss terms in stress concentration areas such as elbows and welds. Furthermore, a hierarchical adaptive heterogeneous computing framework is constructed, dynamically scheduling four strategies—direct reading, graph neural network interpolation, physical information neural network reconstruction, and ensemble learning—based on the measurement point location characteristics. This framework outputs uncertainty estimates and a four-dimensional confidence score, driving three levels of visualization feedback for virtual sensor annotations, enabling engineers to intuitively identify the data's reliability level.
[0030] This invention can be seamlessly integrated into the existing finite element analysis workflow without additional on-site testing. While effectively suppressing numerical noise interference, it also has strong generalization ability and engineering practicality, providing an efficient and reliable visualization tool for pipeline engineering design iteration and safety assessment. Attached Figure Description
[0031] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0032] Figure 1 This is a schematic diagram of the overall architecture of a pipeline finite element analysis result cloud map rendering system provided in one embodiment of the present invention; Figure 2 This is a flowchart illustrating a method for training a pipeline finite element analysis result cloud map rendering model according to an embodiment of the present invention. Figure 3 This is a flowchart illustrating a method for rendering cloud maps of pipeline finite element analysis results provided in one embodiment of the present invention. Detailed Implementation
[0033] To facilitate understanding of this application, a more complete description will be provided below with reference to the accompanying drawings, which illustrate embodiments of the present application. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of this application will be thorough and complete.
[0034] This invention provides a training method and rendering method for a cloud map rendering model of finite element analysis results for pipelines. It belongs to the field of energy and power and is applicable to the visualization of finite element analysis results and the intuitive presentation of engineering data for energy and power equipment such as power pipelines and plant pipe network systems. It includes two stages: offline training and online inference.
[0035] See Figure 1 The diagram shown is a schematic representation of the overall architecture of the pipeline finite element analysis result cloud map rendering system 100 of this invention. Figure 1 As shown, the system comprises three core layers: a data input layer 101, a deep learning rendering layer 102, and a result output layer 103. The connection relationship and data flow of each module are as follows: after preprocessing, the finite element raw data enters the deep learning cloud map rendering model, and cloud maps and virtual sensor annotations are output simultaneously.
[0036] The data input layer 101 is responsible for receiving the raw data of the pipeline finite element analysis, including the node coordinate matrix, the element connection relationship matrix, the physical quantity values corresponding to each node, and the key measurement point configuration file. It also performs data cleaning, normalization, and formatting to transform the unstructured mesh data into a standard input format that can be used by downstream modules.
[0037] The deep learning rendering layer 102 includes a graph topology coding module 1021, a feature enhancement module 1022, a cloud map generation module, and a virtual sensor module 1024, which is responsible for the intelligent mapping from unstructured grid data to cloud maps and measurement point values.
[0038] The result output layer 103 includes a cloud map output module 1031 and a virtual sensor annotation module 1032, which are responsible for the final presentation of cloud map output and virtual sensor annotation.
[0039] Among them, the graph topology coding module 1021, the feature enhancement module 1022, and the cloud map generation module are three sub-modules that undertake three progressive tasks: topology preservation, key feature enhancement, and pixel space mapping, respectively. At the same time, the virtual sensor module 1024 and the cloud map generation module 1023 receive the shared output of the feature enhancement module 1022 in parallel, forming a collaborative architecture with dual-path output of the same feature.
[0040] This invention establishes a system-level architecture that integrates unified encoding of unstructured data, enhancement of physical perception features, end-to-end cloud map generation, and collaborative output of intelligent measurement point data. Through extensive sample training in the offline phase, the model learns the complex nonlinear mapping relationship from finite element unstructured mesh data to the RGB pixel space of the cloud map. In the online phase, the cloud map can be generated with only a single forward inference, without the need for node-by-node color mapping calculation, thus achieving a deep integration of physical field visualization and key measurement point data extraction.
[0041] See Figure 2 As shown, the present invention provides a method for training a cloud map rendering model of pipeline finite element analysis results, characterized in that it includes: S11. Obtain finite element analysis sample data and corresponding label data for the pipeline. The sample data includes node coordinate matrix samples, element connection relationship matrix samples, physical quantity value samples corresponding to each node in the node coordinate matrix samples, and key measurement point configuration file samples. The label data includes standard cloud maps and standard virtual sensor annotation maps.
[0042] In the dataset construction phase, finite element analysis of pipelines is carried out using traditional pipeline finite element analysis software such as CAESAR II and Ansys, or other stress analysis software, and the analysis sample dataset is constructed based on the analysis results.
[0043] The sample data includes node coordinate matrix samples of the pipeline finite element model mesh, element connection relationship matrix samples, physical quantity numerical samples corresponding to each node such as stress, strain, thermal expansion, port thrust, temperature, etc., as well as configuration file samples of key measurement points.
[0044] The key measurement point configuration file sample is predefined by engineers according to engineering specifications and safety assessment requirements. It includes a list of key locations such as elbows, welds, tees, supports, ports, etc., and their corresponding node numbers or spatial coordinates.
[0045] The label data corresponding to the pipeline finite element analysis sample data includes standard cloud map RGB three channels corresponding to the original node analysis results of the pipeline finite element analysis, generated by traditional high-precision rendering methods, and standard virtual sensor annotation map, which is a reference image with virtual sensor icons and numerical annotations of key measuring points superimposed on the cloud map.
[0046] In addition, during the training phase, manual masking is required for the elbow, weld, and tee areas in the sample label cloud map to generate binary mask labels, which are used for the auxiliary supervised training of the prior mask learning branch in the feature enhancement module 1022.
[0047] In this embodiment of the invention, the sample data undergoes data augmentation processing under physical constraints. This data augmentation processing includes at least one of the following methods: randomly translating (translation amplitude not exceeding 10% of the model size) and / or rotating the finite element mesh of the pipeline (rotation angle not exceeding 30°) while maintaining the topology; adding random perturbations to the node physical quantity values, with the perturbation amplitude not exceeding 3% of the original values, and performing physical consistency verification on the perturbed data to ensure that the perturbed values satisfy the weak form constraints of the local equilibrium equations; simulating Gaussian noise (mean 0, standard deviation 1% of the stress value) and / or salt-and-pepper noise (density 0.5%), with the noise intensity set according to the statistical characteristics of the actual finite element software output error; and randomly offsetting (offset amount not exceeding 20% of the element size) and increasing / decreasing (increase / decrease ratio not exceeding 20%) the configuration files of key measurement points to enhance the model's adaptability to different measurement point configurations.
[0048] Specifically, for the nodal physical quantities after disturbance, check whether they satisfy the discrete form of the force balance equation, that is, the ratio of the norm of the difference between the product of the overall stiffness matrix and the displacement field after disturbance and the load vector to the norm of the load vector is less than a preset threshold (e.g., 5 × 10⁻⁶). - If the threshold is exceeded, the perturbation sample group is rejected and regenerated until the constraint is met.
[0049] The present invention can divide the pipeline finite element analysis sample dataset into a training set, a validation set, and a test set for model training. For example, the dataset can be divided into a training set, a validation set, and a test set in a ratio of 7:1.5:1.5.
[0050] S12. Construct a cloud map rendering model based on deep learning. The model includes a graph topology encoding module 1021, a feature enhancement module 1022, a cloud map generation module 1023, and a virtual sensor module 1024.
[0051] In this embodiment of the invention, the graph topology encoding module 1021 is used to encode the node coordinate matrix sample, the cell connection relationship matrix sample, and the physical quantity numerical sample into an initial feature tensor. Pipeline finite element data exists in the form of an unstructured mesh, and the connection relationships between nodes contain information about the pipeline's geometric topology and physical continuity. Traditional methods directly discard topological relationships and process nodes one by one, resulting in the loss of neighborhood information for critical parts such as elbows and welds. This module, targeting the characteristics of unstructured mesh data of pipeline finite elements, adopts a three-level combined architecture of "graph convolutional encoding, mesh projection, and convolutional feature extraction." The graph topology encoding module 1021 includes a graph convolutional encoding layer, a mesh projection layer, and a convolutional feature extraction layer. The graph convolutional coding layer is responsible for preserving topological relationships and performing feature aggregation on unstructured grids. Specifically, it performs graph convolution operations on node feature matrix samples and adjacency matrix samples to output node features.
[0052] Specifically, the graph convolutional coding layer is responsible for preserving topological relationships and performing feature aggregation on unstructured grids. This layer takes as input a node feature matrix and an adjacency matrix, where the node feature matrix samples... The adjacency matrix sample is obtained by concatenating the node coordinate matrix sample and the physical quantity numerical sample. The matrix is constructed based on the unit connection relationship matrix sample, where N is the number of nodes and M is the physical quantity dimension.
[0053] In detail, the graph convolutional coding layer supports two optional architectures: Graph Convolutional Network (GCN) and Graph Attention Network (GAT).
[0054] When using a graph convolutional network architecture, the propagation rule of the l-th layer is: the feature matrix of the current layer node is equal to the product of the normalized adjacency matrix and the feature matrix of the previous layer node and the learnable weight matrix, and then processed by the activation function. The normalized adjacency matrix is calculated by adding the self-connected adjacency matrix and its degree matrix, and the activation function is ReLU.
[0055] When using a graph attention network architecture, the attention coefficients of a node to its neighbors are calculated using a learnable attention weight vector and linearly transformed node features. After Softmax normalization, these coefficients are used to weighted aggregate neighbor features. The number of graph convolutional layers is configurable from 2 to 4, and the hidden layer dimensions are configurable from 64 to 256. In one specific embodiment, the graph convolutional coding layer uses a 3-layer graph convolutional network with hidden layer dimensions of 64, 128, and 256, respectively, and the activation function is ReLU.
[0056] The grid projection layer is responsible for mapping unstructured features to a regular grid space, specifically mapping the node features output by the graph convolutional coding layer to a regular two-dimensional grid space.
[0057] Specifically, the grid projection layer (i.e. the shape function rasterization bridging layer) maps the node features output by the graph convolutional coding layer, which are still located on the unstructured grid, to a regular two-dimensional grid space with a grid size of H×W, enabling subsequent convolutional neural network modules to process them efficiently.
[0058] This layer employs a spatial rasterization method based on finite element shape functions: for the center point of each pixel in the regular two-dimensional mesh, its spatial coordinates in the finite element model are queried in reverse to determine the element to which it belongs and the coordinates of its local parameters; the shape function of the element is used to interpolate the graph convolution output features of each node in the element to obtain the feature vector of the pixel.
[0059] Specifically, for each pixel center point in the regular two-dimensional grid Reverse query its spatial coordinates in the finite element model Determine its element and local parameter coordinates. ; Utilizing the shape function of this unit Graph convolution output features for the i-th node within a cell Interpolation is performed to obtain the pixel center point. eigenvectors :
[0060] in, Center point of the pixel The set of nodes belonging to the element. This rasterization process ensures that the spatial proximity of key features such as stress concentration regions is not destroyed, and the mapping relationship is uniquely determined by the finite element geometric discretization, requiring no additional learning.
[0061] To further preserve the features of regions with sharp physical quantity gradients (such as welds and elbows), gradient weighting enhancement is performed on the node features before rasterization. The node features output by graph convolution are weighted at the channel level according to the gradient magnitude of the physical quantities in the neighborhood of the node, so that nodes in high gradient regions can obtain higher responses in subsequent convolution feature extraction.
[0062] In one specific embodiment, the grid projection layer maps the node features output by the graph convolution to a regular grid space of 256×256.
[0063] The convolutional feature extraction layer is responsible for extracting local spatial patterns in the regular space, establishing a bridge between "unstructured finite metadata and regular image features", mapping finite element multidimensional data into a feature tensor of a unified dimension, and realizing the preservation of topological association information and the unified representation of spatial features. Specifically, it is used to extract local spatial patterns in the regular two-dimensional grid space and output the initial feature tensor.
[0064] Specifically, the convolutional feature extraction layer extracts local spatial patterns of physical quantity fields on a regular grid. This layer uses a stacked convolutional neural network, where each convolutional operation includes a convolutional layer, a batch normalization layer, and a ReLU activation function. The convolutional kernel size is 3×3, the stride is 1, and the padding is 1.
[0065] For medium-sized finite metadata (100,000 to 500,000 nodes), a three-layer stacked structure is adopted: the first layer has 32 to 64 output channels, followed by 2×2 max pooling; the second layer has 64 to 128 output channels, followed by 2×2 max pooling; the third layer has 128 to 256 output channels, without pooling layers, and finally outputs an initial feature tensor of fixed dimensions.
[0066] In this embodiment of the invention, in the finite metadata of the pipeline, key information (such as stress concentration areas, pipeline boundaries, etc.) is often spatially sparse but numerically significant, and numerical noise is inevitably mixed in the data. The feature enhancement module 1022 is used to enhance the feature response of key areas and suppress noise interference, improve the detail reproduction and anti-interference ability of the cloud map rendering, so that the subsequent cloud map generation module 1023 can more accurately reproduce the details of physical quantity distribution. This module receives the initial feature tensor output by the graph topology coding module 1021, performs channel attention weighting and spatial attention weighting on the initial feature tensor, and outputs the enhanced feature tensor to the cloud map generation module 1023 and the virtual sensor module 1024 simultaneously. The feature enhancement module 1022 adopts a CBAM attention mechanism improved for finite metadata of the pipeline, specifically including a channel attention submodule, a spatial attention submodule, and a mask prediction branch: The channel attention submodule is used to perform global average pooling and global max pooling on the initial feature tensor. After the pooled feature vector is processed by a shared fully connected layer, it is multiplied with the initial feature tensor channel by channel to output a channel-weighted feature tensor.
[0067] Specifically, the channel attention submodule performs global average pooling and global max pooling on the input feature tensor, inputs the two resulting feature vectors into a shared fully connected layer, processes them through the Sigmoid activation function, and then multiplies them channel by channel with the input feature tensor to achieve weighted enhancement of the channel dimension.
[0068] The calculation process is as follows: Global average pooling and global max pooling are performed on the input feature tensor Z_init to obtain two D-dimensional vectors; these two D-dimensional vectors are then input into a shared fully connected layer (containing one hidden layer with a dimension of D / r, where r is the reduction ratio, defaulting to 16), outputting two D-dimensional weighted vectors; the two weighted vectors are added element-wise, and the weights are obtained for each channel using the Sigmoid activation function; the weights are then multiplied channel-wise by the original feature map to obtain the channel-weighted feature tensor. In a specific embodiment, the reduction ratio r = 16.
[0069] The spatial attention submodule is used to perform average pooling and max pooling on the channel-weighted feature tensor along the channel dimension. The pooled single-channel features are then processed by an activation function to output a spatial weight map. The spatial weight map is then multiplied pixel-by-pixel with the channel-weighted feature tensor to output an enhanced feature tensor.
[0070] Specifically, the spatial attention submodule performs channel-weighted feature tensor average pooling and max pooling along the channel dimension, concatenates the two single-channel feature maps along the channel dimension, processes them through a convolutional layer and a sigmoid activation function, outputs a spatial weight map, multiplies the spatial weight map pixel by pixel with the channel-weighted feature tensor, and finally outputs the enhanced feature tensor.
[0071] The calculation process is as follows: average pooling and max pooling are performed on the channel-weighted feature tensor Z_channel in the channel dimension to obtain two H×W single-channel maps; the two single-channel maps are concatenated in the channel dimension to obtain an H×W×2 feature map; the two channels are compressed into one channel through a 7×7 convolutional layer (with 3 padding layers to keep the size unchanged); the spatial weight map is obtained by sigmoid activation; the spatial weight map is multiplied pixel by pixel with Z_channel to obtain the enhanced feature tensor Z_enhanced.
[0072] The mask prediction branch is used to perform convolution and activation processing on the channel weighted feature tensor output by the channel attention submodule to output a key region probability map; the mask prediction branch is trained with auxiliary supervision based on manually labeled key region mask labels, and the training loss function of the mask prediction branch adopts a weighted sum of binary cross-entropy loss and Dice loss.
[0073] Specifically, the lightweight mask prediction branch consists of a 1×1 convolutional layer and a sigmoid activation function. The input is the channel-weighted feature tensor output by the channel attention submodule, and the output is a single-channel probability map with the same spatial size as the input feature map. This represents the probability that each pixel location belongs to a critical area (elbow, weld, tee).
[0074] During the training phase, this branch performs supervised training based on manually labeled key area masks. It manually masks the elbow, weld, and tee areas in the sample label cloud map to generate binary mask labels. The training loss term for the mask prediction branch is a weighted sum of the binary cross-entropy loss term and the Dice loss term.
[0075] This auxiliary supervision, through additional gradient backpropagation, forces the network to automatically focus on the spatial distribution of key regions during the feature learning phase, replacing fixed manual masks and improving its generalization ability to different pipeline structures. During the inference phase, the output of this branch can be used for spatial localization priors in subsequent virtual sensor annotations.
[0076] In one specific embodiment, the weights of both the binary cross-entropy loss term and the Dice loss term are 1.0.
[0077] Through the above processing, this invention can significantly enhance the characteristic response of key areas such as stress concentration areas and pipe boundaries, and effectively suppress noise interference. It introduces a priori mask for pipe structure, assigns higher weights to stress concentration areas such as elbows and welds, and marks the location areas of key measuring points, providing spatial positioning priors for subsequent virtual sensor annotation.
[0078] In this embodiment of the invention, the cloud map generation module 1023 is used to inversely map the enhanced feature tensor into a predicted cloud map with RGB three channels, ensuring that the cloud map size and color distribution are adapted to engineering requirements, supporting rendering outputs with different precision and real-time requirements, and eliminating the checkerboard artifacts common in traditional upsampling methods (such as deconvolution) while ensuring generation accuracy. The cloud map generation module 1023 adopts a U-Net-type deconvolutional neural network structure; the encoder side of the cloud map generation module 1023 is the convolutional feature extraction layer in the graph topology coding module 1021, which generates multiple intermediate layer feature maps with different spatial resolutions during feature extraction; the decoder side of the cloud map generation module 1023 includes multiple deconvolutional layers, each followed by a batch normalization layer, and the feature maps output by each deconvolutional layer have different spatial resolutions.
[0079] The cloud image generation module 1023 uses skip connections to concatenate the feature maps of each intermediate layer in the convolutional feature extraction layer with the output feature maps of the corresponding spatial resolution deconvolution layer in the decoder, supplementing low-level spatial detail information. It then performs upsampling using a pixel-shuffle upsampling method to replace traditional deconvolution, thereby eliminating checkerboard artifacts. The final output size corresponds to the sample label cloud. Figure 1 The predicted cloud map.
[0080] In one specific embodiment, the encoder generates three intermediate layer feature maps with spatial resolutions of 256×256, 128×128, and 64×64; the decoder contains three deconvolutional layers, which concatenate the encoder feature maps with the decoder feature maps of the corresponding spatial resolutions through skip connections; the upsampling factor is 2; and the final output is a 256×256×3 RGB cloud map.
[0081] In practical engineering applications, engineers not only need to observe the overall distribution of the cloud map, but also need to accurately obtain specific values at key locations such as elbows, welds, and supports. The virtual sensor module 1024 in the system architecture receives the shared output of the feature enhancement module 1022 in parallel with the cloud map generation module 1023. Simultaneously, it processes key measurement point values through an independent hierarchical adaptive computing link, and finally performs spatial registration and fusion with the cloud map in the result output layer 103. As the output component of the rendering results, the virtual sensor module 1024 overlays virtual sensor visualization annotations at key measurement point locations on the basis of the cloud map generation, achieving an integrated presentation of the physical field distribution and key data.
[0082] In this embodiment of the invention, the virtual sensor module 1024 is used to output predicted values of physical quantities at each key measurement point based on the enhanced feature tensor and the key measurement point configuration file samples. The virtual sensor module 1024 includes a graph neural network interpolation model, a physical neural network reconstruction model, and an ensemble learning model. The graph neural network interpolation model is used to perform interpolation prediction based on the node feature information in the enhanced feature tensor and the measurement point location information in the key measurement point configuration file sample, and outputs the predicted value of the first physical quantity.
[0083] Specifically, the Graph Neural Network (GNN) interpolation model is used to interpolate and predict key measurement points located at non-node positions in regions with gentle gradients in physical quantities. This model uses GraphSAGE or a graph attention network as the encoder, takes the neighborhood subgraph of the measurement point as input, and outputs the predicted physical quantity value at the measurement point.
[0084] Specifically, a neighborhood subgraph of the measurement point is extracted (usually 3 to 5 hops), and node features (including coordinates, physical quantities, and distance to the measurement point) are constructed. These features are then aggregated using aggregation functions through multi-layer GraphSAGE message passing, supporting mean aggregation, max pooling aggregation, and LSTM aggregation. Mean aggregation is used by default. The predicted values are then output through a readout layer (pooling all node features) and an MLP prediction head. Distance decay weights are introduced when aggregating neighbor node features, assigning higher weights to closer neighbors.
[0085] In one specific embodiment, the graph neural network interpolation model uses a 3-layer GraphSAGE with a hidden layer dimension of 128, an aggregation function of mean aggregation, and a distance decay bandwidth parameter σ=0.5.
[0086] The Physics-Informed Neural Network (PINN) reconstruction model is used to reconstruct and predict the second physical quantity based on the measurement point location information in the key measurement point configuration file sample and in combination with physical conservation constraints.
[0087] Specifically, the physical information neural network reconstruction model is used to perform physical constraint-based reconstruction prediction of key measurement points located in complex regions. This model employs a hybrid architecture of a fully connected neural network and a Fourier feature network, adding a Fourier feature map before the input layer to map the input coordinates to a high-frequency space, thereby enhancing the network's ability to learn details of high-frequency physical fields.
[0088] Specifically, a fully connected neural network (FCN) is used with 4 to 6 hidden layers and 128 to 256 neurons per layer. The activation function is the tanh function, and Fourier feature mapping (FFM) is added before the input layer to improve the ability to learn high-frequency details.
[0089] The model embeds physical conservation constraints while fitting data: for mechanics problems, force equilibrium equations are embedded as soft constraints, and partial differential equation residual terms are added to the loss function; for thermodynamic problems, energy conservation equations are embedded; stress-strain relationship constraints are directly applied as hard constraints at the network output layer. Boundary conditions are embedded into the network through a penalty method (adding boundary terms to the loss function) or an exact satisfaction method. The total loss term includes a weighted sum of data loss, physical loss, and boundary condition loss terms.
[0090] In one specific embodiment, the physical information neural network reconstruction model adopts a 6-layer fully connected network with 256 neurons in each layer, the activation function is the tanh function, and Fourier feature maps (m=128) are added before the input layer.
[0091] The ensemble learning model is used to fuse the predicted values of the first physical quantity and the second physical quantity, and output the predicted values of the physical quantity and uncertainty estimates at each key measurement point.
[0092] Specifically, the ensemble learning model is used to fuse the prediction results of multiple base learners. The base learners include graph neural network interpolation models, physical information neural network reconstruction models, traditional shape function interpolation, and Kriging Gaussian process interpolation. The meta-learner employs XGBoost or Stacking strategies, taking the predictions, confidence levels, and measurement point type codes of each base learner as input, and outputting the final fused prediction and uncertainty estimate.
[0093] Dynamic weight allocation adaptively adjusts the weights of each base learner based on the measurement point type and regional characteristics. The weights of the physical information neural network are increased in weld seams, while the weights of the graph neural network are increased in smooth regions. Read values are directly used at nodes. Uncertainty quantification is achieved through Bayesian ensemble or Monte Carlo Dropout. In one specific embodiment, the ensemble learning model uses XGBoost as the meta-learner.
[0094] S13. The cloud map rendering model is trained based on a multi-task loss function, which includes a cloud map rendering loss term and a virtual sensor annotation loss term.
[0095] The cloud map rendering loss term measures the difference between the predicted cloud map and the standard cloud map, while the virtual sensor annotation loss term is a numerical reading loss term used to measure the difference between the predicted physical quantity value at each key measurement point and the corresponding physical quantity annotation value in the standard virtual sensor annotation map, as shown in the following formula:
[0096] in, The total loss of the multi-task loss term function. For cloud map rendering loss term, Label the loss term for the virtual sensor. For virtual sensor task weight coefficients, .
[0097] In this embodiment of the invention, the cloud map rendering loss term includes a mean squared error loss term, a structural similarity loss term, and a physical consistency loss term:
[0098] in, For cloud map rendering loss term, The mean squared error loss term measures the difference between the pixel values in the predicted contour map and the standard contour map. The structural similarity loss term measures the degree of structural similarity between the predicted contour map and the standard contour map. This is a physical consistency loss term, used to measure the difference between the color gradient of the predicted cloud map and the spatial gradient of the physical quantity numerical samples of the nodes, in order to constrain the color change trend of the cloud map to be consistent with the spatial change trend of the physical quantities. These are the weight coefficients for the mean squared error loss term, the structural similarity loss term, and the physical consistency loss term, respectively. .
[0099] This invention enables cloud map rendering and virtual sensor numerical prediction tasks to share the same deep feature space through multi-task joint training and physical consistency constraints, thereby achieving synergistic enhancement of the two tasks at the feature level, rather than simply splicing them together after independent training.
[0100] S14. With the goal of minimizing the loss term value of the multi-task loss term function, the parameters of the cloud map rendering model are updated through backpropagation to obtain the trained cloud map rendering model.
[0101] In one specific embodiment, the weight coefficients of the multi-task loss function are set as follows: α=0.4, β=0.4, γ=0.2, λ=0.2. The training strategy employs the Adaptive Moment Estimation (Adam) optimizer, with an initial learning rate of 1×10⁻⁶. -4 The batch size is 32, and the learning rate decays to 0.5 every 50 iterations. Training stops when the total loss term on the validation set does not decrease for 10 consecutive iterations. To address potential gradient conflicts between cloud map rendering and virtual sensor annotation tasks, a gradient clipping strategy is introduced—a global gradient norm upper limit, g_clip=1.0, is set. When the calculated total gradient norm exceeds this upper limit, the gradient is scaled proportionally to prevent gradient explosion and stabilize multi-task training. On a single NVIDIA V100 GPU, training converges after approximately 500 iterations, taking about 72 hours.
[0102] See Figure 3 As shown, the present invention provides a method for rendering cloud maps of pipeline finite element analysis results, characterized in that it includes: S21. Obtain the original data of the finite element analysis of the pipeline to be rendered. The original data includes the node coordinate matrix, the element connection relationship matrix, the physical quantity values corresponding to each node, and the configuration file of key measurement points.
[0103] The node coordinate matrix and the element connection matrix together constitute the finite element model.
[0104] S22. Preprocess and transform the original data to obtain the node feature matrix and adjacency matrix.
[0105] In this embodiment of the invention, the original data is cleaned and the cleaned data is normalized; the normalized node coordinate matrix is concatenated with the physical quantity values to form a node feature matrix, and an adjacency matrix is constructed based on the unit connection relationship matrix.
[0106] Specifically, the data cleaning uses a joint denoising algorithm based on median filtering and wavelet thresholding. The median filtering window size is 5, and the wavelet thresholding uses Daubechies wavelets with a decomposition layer of 3. The soft thresholding strategy can be adapted to different data quality scenarios.
[0107] Data normalization employs Z-score normalization or Min-Max normalization. For physical quantities such as stress, a relative normalization method based on the material's yield strength is used (stress value is normalized by dividing the material's yield strength).
[0108] Data formatting includes: constructing an adjacency matrix based on unit connection relationships, and concatenating the node coordinate matrix and the physical quantity numerical matrix into a node feature matrix.
[0109] In one specific embodiment, taking the CAESAR II analysis results of the main steam pipeline of a newly built power plant as an example, the original data contains approximately 250,000 nodes. The pipeline material is P91 steel with a yield strength of 550 MPa. After data cleaning, the stress values are normalized by dividing by 550 MPa. After data formatting, a node feature matrix (250,000 × 4) and an adjacency matrix (250,000 × 250,000, sparsely stored) are obtained.
[0110] S23. Input the node feature matrix and the adjacency matrix into the trained cloud map rendering model to perform forward inference, and simultaneously generate a preliminary cloud map and intermediate physical quantity prediction values for each key measurement point.
[0111] In this embodiment of the invention, the formatted data (node feature matrix and adjacency matrix) is input into the trained cloud map rendering model to perform forward inference, simultaneously generating a preliminary cloud map and intermediate physical quantity predictions for each key measurement point. At this time, all model parameters are frozen, and the data undergoes one forward propagation. The specific model forward inference process can be found in step S12 above, and will not be elaborated further here.
[0112] In one specific embodiment, formatted data is input into the trained cloud map rendering model, and a forward propagation is performed, which takes about 2.3 seconds, simultaneously generating a preliminary cloud map of 256×256 and intermediate physical quantity prediction values for all key measurement points.
[0113] S24. Perform hierarchical adaptive calculation on the intermediate physical quantity prediction values of each key measuring point to obtain the final physical quantity values of each key measuring point.
[0114] In detail, hierarchical adaptive numerical calculations are performed on the intermediate physical quantity prediction values of each key measuring point. Based on the location characteristics of each key measuring point, the corresponding calculation method is selected from multiple calculation methods to determine the physical quantity value at the key measuring point, thus obtaining the final physical quantity value of each key measuring point.
[0115] In this embodiment of the invention, target key measuring points are first selected one by one from each key measuring point. The distance between the coordinates of the target key measuring point and the coordinates of each node in the finite element model is calculated to determine whether the target key measuring point coincides with the node in the finite element model. If they overlap, the physical quantity value of the node that overlaps with the coordinates of the target key measurement point will be taken as the final physical quantity value of the target key measurement point, and the hierarchical adaptive calculation process of the target key measurement point will be terminated. If they do not overlap, the smoothness ratio of the target key measuring points in the local area of the finite element model is calculated to determine whether the target key measuring points meet the smoothness condition. If the smooth condition is met, the graph neural network interpolation model in the cloud map rendering model is used to predict the key measurement points of the target to obtain a first prediction result, and the first prediction result and the preset benchmark interpolation result are used as the input of the ensemble learning model in the cloud map rendering model. If the smooth conditions are not met, multi-condition calculations are performed based on the element in the finite element model where the target key measurement point is located to determine whether the target key measurement point is located in a complex region. If the target is located in a complex area, the physical neural network reconstruction model in the cloud map rendering model is used to predict the key measurement points of the target to obtain a second prediction result. The second prediction result and the preset benchmark interpolation result are used as the input of the ensemble learning model in the cloud map rendering model. If it is not located in a complex region, the preset benchmark interpolation result will be used as the input of the ensemble learning model in the cloud map rendering model; For each key measurement point of the target, the ensemble learning model in the cloud map rendering model is used for fusion to output the final physical quantity value and uncertainty estimate of the key measurement point of the target.
[0116] Specifically, the hierarchical adaptive numerical calculation classifies key measurement points into layers based on their location characteristics, with different numerical calculation methods corresponding to different layers. This includes the following four layers.
[0117] The first layer is the node direct reading layer: It selects target key measurement points one by one from each key measurement point and calculates the Euclidean distance between the coordinates of the target key measurement point and the coordinates of each node in the node coordinate matrix. If the Euclidean distance between any node and the target key measurement point is less than a first preset threshold (e.g., 10), the layer proceeds accordingly. -6If the target key measurement point is located on a node (in dimensionless coordinates), then the target key measurement point coincides with the target node corresponding to the Euclidean distance. The physical quantity value of the target node is directly used as the final physical quantity value of the target key measurement point, and the hierarchical adaptive calculation process of the target key measurement point is terminated.
[0118] The second layer is the smooth region interpolation layer: If the target key measurement point fails the judgment of the first layer (i.e., the Euclidean distance is greater than or equal to the first preset threshold), then a local region is determined based on the position of the target key measurement point in the finite element model (the set of nodes and elements covered by two hops outward from the element where the target key measurement point is located). The ratio of the maximum gradient norm G_max to the average gradient norm G_bar of the local region is calculated as the first ratio R_g = G_max / G_bar, and the magnitude of the maximum gradient norm relative to the physical quantity mean V_bar of the nodes in the local region is calculated as the second ratio G_max / V_bar. If the first ratio is less than the second preset threshold (e.g., 3.0) and the second ratio is less than the third preset threshold (e.g., 5%), then the target key measurement point is determined to meet the smooth condition. The trained graph neural network interpolation model is then called to predict the target key measurement point, and the first prediction result is obtained and output to the fourth layer.
[0119] The third layer is the complex region reconstruction layer: If the target key measurement point fails the judgment of the second layer (i.e., the first ratio is not less than the second preset threshold or the second ratio is not less than the third preset threshold), then it is determined whether the target key measurement point meets at least one of the following conditions: the target key measurement point belongs to more than three different elements in the finite element model at the same time; the minimum value of the Jacobian determinant of the element in which the target key measurement point is located in the finite element model is less than the fourth preset threshold (e.g., 0.1); the ratio of the maximum value to the minimum value of the physical quantity of the node in the neighborhood of the target key measurement point is greater than the fifth preset threshold (e.g., 10). If at least one of the above three conditions is met, it is determined that the target key measurement point is located in a complex region, the trained physical information neural network reconstruction model is called to predict the target key measurement point, a second prediction result is obtained, and the second prediction result is output to the fourth layer.
[0120] The fourth layer is the fusion layer: For key measurement points that have obtained the first prediction result from the second layer and the second prediction result from the third layer, the prediction results corresponding to each key measurement point are fused with the preset benchmark interpolation results (including traditional shape function interpolation results and Kriging interpolation results) into the trained ensemble learning model. For key measurement points that have neither the first nor the second prediction result (i.e., those not hit by the second and third layers), the preset benchmark interpolation results are input into the ensemble learning model. For each target key measurement point, the ensemble learning model outputs the final physical quantity value and uncertainty estimate for that target key measurement point.
[0121] In one specific embodiment, taking a key measuring point at a bend as an example, the coordinates of this measuring point are (12.5, 8.3, 5.1). First, the Euclidean distance between this coordinate and the coordinates of all nodes is calculated, and the minimum distance is 3.2 × 10⁻⁶. -4 (greater than the first preset threshold of 10) -6 The measurement point is determined not to be located on a node. The second layer of judgment is then performed: the local region of the measurement point (the cell and nodes within two hops of its neighborhood) is determined, the maximum gradient norm G_max = 2.3 MPa / m, the average gradient norm G_bar = 1.8 MPa / m, the first ratio G_max / G_bar = 1.28 (less than 3.0), the local physical quantity mean V_bar = 156 MPa, and the second ratio G_max / V_bar = 1.47% (less than 5%), satisfying the smoothness condition. A graph neural network interpolation model is called to predict, obtaining a first prediction result of 168.5 MPa. This prediction result, along with the traditional shape function interpolation result of 167.2 MPa and the Kriging interpolation result of 169.1 MPa, are input into the ensemble learning model, outputting the final physical quantity value of 168.3 MPa and the uncertainty estimate σ_final = 2.1 MPa.
[0122] S25. Map the three-dimensional spatial coordinates of each key measuring point to the two-dimensional pixel coordinates of the preliminary cloud map, and superimpose virtual sensor visualization annotations at the positions corresponding to the two-dimensional pixel coordinates according to the final physical quantity values of each key measuring point, so as to generate a target cloud map with virtual sensor annotations.
[0123] The three-dimensional spatial coordinates are determined based on the key measurement point configuration file and the node coordinate matrix.
[0124] This invention can calculate the confidence score of each key measurement point based on the uncertainty estimate output by the ensemble learning model. The confidence score is obtained by weighted summation of the grid quality coefficient, gradient smoothness coefficient, physical plausibility coefficient, and machine learning confidence coefficient.
[0125] in: For mesh quality coefficient, The gradient smoothness coefficient is... The physical rationality coefficient. For machine learning confidence coefficients, The weighted coefficients are divided into grid quality coefficient, gradient smoothness coefficient, physical plausibility coefficient, and machine learning confidence coefficient. The weighted coefficients can be set to the default value. Configurable.
[0126] In detail, The mesh quality coefficient is calculated based on the element aspect ratio AR and the Jacobian determinant J, and its value ranges from [0,1]. When the element shape is regular (AR is close to 1, J is close to 1), Approaching 1; when the element distortion is severe, reduce.
[0127] Gradient smoothness coefficient The calculation is based on the continuity of changes in the physical quantity within the neighborhood, with values ranging from [0,1]. The smaller the variance of the neighborhood gradient, the more continuous the change in the physical quantity. The higher.
[0128] Physical rationality coefficient The residuals are calculated based on PINN's PDE (Partial Differential Equation) residuals, with values ranging from [0,1]. Smaller residuals indicate that the predicted values conform more closely to the laws of physical conservation. The higher the value, the better. This applies to measurement points that do not use a physical information neural network model (such as measurement points processed in the first and second layers). Use the default value of 0.9.
[0129] Machine learning confidence coefficient Uncertainty Estimation Based on Ensemble Learning calculate, ,in, For uncertainty estimation, For example, the temperature parameter is... =0.5.
[0130] In this embodiment of the invention, the display style of the virtual sensor labels corresponding to each key measurement point is determined based on the confidence score. When the confidence score is greater than the first confidence threshold (e.g., 0.85), the virtual sensor icon is displayed with a solid border, and the final physical quantity value of the key measurement point is fully displayed, labeled "High Confidence"; when the confidence score is greater than or equal to the second confidence threshold (e.g., 0.6) and less than or equal to the first confidence threshold, the virtual sensor icon is displayed with a dashed border, and an approximate identifier (e.g., "~") is added after the value, labeled "Estimated Value"; when the confidence score is less than the second confidence threshold, the virtual sensor icon and value are displayed in a gray semi-transparent manner, displaying "Low Confidence Estimation" and suggesting the addition of a physical sensor.
[0131] In one specific embodiment, following the previous example, the measuring point at this bend... =0.92, =0.88, =0.90, =0.87. Confidence score = 0.2×0.92+0.2×0.88+0.3×0.90+0.3×0.87=0.887, which is greater than 0.85. It is displayed with a solid line border, showing the full value "168.3MPa" and marked "high confidence".
[0132] In this embodiment of the invention, the three-dimensional spatial coordinates of each key measurement point are determined according to the key measurement point configuration file and the node coordinate matrix. For key measurement points configured based on node numbers, the corresponding three-dimensional spatial coordinates are queried in the node coordinate matrix using that node number; for key measurement points configured based on spatial coordinates, the three-dimensional spatial coordinates are directly read from the key measurement point configuration file. The three-dimensional spatial coordinates of each key measurement point are then mapped to the two-dimensional pixel coordinates of the preliminary cloud map through projection transformation, establishing the correspondence between measurement points and pixels.
[0133] Based on the final physical quantity values of each key measuring point, virtual sensor visualization annotations are overlaid at the corresponding positions in the two-dimensional pixel coordinates. Specifically, this includes: drawing corresponding icons at the corresponding pixel positions according to the type information of the key measuring point; that is, elbow measuring points use arc icons with flow arrows, weld measuring points use double horizontal lines, support and hanger measuring points use triangular support icons, port measuring points use circular flange icons, and general measuring points use standard circular icons; the final physical quantity value of the key measuring point is displayed next to the icon, supporting automatic conversion between scientific notation and engineering units; the color of the virtual sensor icon is linked to the cloud map color mapping table, intuitively reflecting the relative magnitude of the physical quantity of the measuring point; when the measuring point value exceeds the preset safety threshold, the icon flashes or displays a warning border.
[0134] The threshold warning is implemented as follows: safety thresholds are preset by engineers in the key measuring point configuration file according to design specifications (such as ASME B31.1 power piping design specification). Taking stress as an example, the allowable stress of a certain elbow is 200MPa. When the final physical quantity value of the measuring point exceeds 200MPa, the virtual sensor icon flashes red (flash frequency of 2Hz), a warning border is displayed, and the safety status of the measuring point is marked as "dangerous" in the data panel. When the value is between 80% and 100% of the allowable stress, the safety status is marked as "warning"; below 80% is "normal".
[0135] In this embodiment of the invention, post-processing optimization of the preliminary cloud map includes: adjusting RGB color values through a lookup table, supporting engineering standard color schemes such as rainbow colors and thermal stress colors, as well as importing custom lookup tables; and using edge-preserving filtering algorithms (bilateral filtering or guided filtering) to smooth areas such as pipe boundaries and contour lines, eliminating jagged artifacts.
[0136] Post-processing optimization of virtual sensor annotations includes: anti-aliasing and shadow enhancement of virtual sensor icons to improve visual recognizability; and force-directed graph layout optimization, adjusting the positions of virtual sensor icons and numerical annotations to avoid overlap or occlusion of key areas of the cloud map. Force-directed graph layout optimization abstracts virtual sensor icons and numerical annotations as graph nodes, driving layout optimization through the mechanical balance between nodes. Algorithms such as the Fruchterman-Reingold algorithm (treating each virtual sensor icon as a charged particle, with Coulomb repulsion between nodes and Hooke's gravity between nodes and the region center, updating icon positions by iteratively solving the force balance equations of the particle system until the total system energy converges), the Kamada-Kawai algorithm (treating annotation elements as particles in a spring-mass system, optimizing the layout by minimizing the overall spring potential energy), or the adaptive damping force-directed algorithm (introducing an adaptive damping coefficient on top of the FR or KK algorithm to accelerate convergence and suppress oscillations) are used. During iteration, if the distance between any two annotation elements is less than the minimum safe distance (default 20 pixels), an additional repulsive force is applied to force them apart.
[0137] In this embodiment of the invention, the final output includes a main view, an auxiliary view, and an interactive interface. Specifically: The main view is a cloud map with virtual sensor annotations, and it supports high-resolution output such as PNG, JPG, and TIFF. The auxiliary view is an independent virtual sensor data panel, which lists the name and number of each key measuring point, the physical quantity value and unit, the calculation method identifier (direct reading / GNN interpolation / PINN reconstruction / integration fusion), confidence index, uncertainty estimation, corresponding coordinate position of the cloud map, safety status identifier (normal / warning / danger), and the percentage comparison with historical working conditions or standard limits, and supports table, trend chart and dashboard formats, and can be exported to CSV, Excel or JSON format; In summary, the present invention has the following beneficial effects: This invention utilizes an offline training-online inference deep learning paradigm to transform the traditional node-by-node color mapping computation process into a single neural network forward inference. For pipeline types and operating conditions already trained and covered, the online rendering stage does not require traversing nodes, significantly reducing the single-frame rendering time from several minutes to seconds compared to traditional methods, fully meeting the requirements of rapid iterative analysis in engineering.
[0138] The model trained in this invention preserves pipeline topology information through graph convolutional networks, enhances key region features by combining an improved CBAM attention mechanism, and constrains the consistency between color gradients and physical quantity spatial gradients through a physical consistency loss function. The generated contour maps exhibit continuous color transitions, preserve details in stress concentration areas, and significantly improve the matching degree between the contour maps and the actual physical quantity distribution.
[0139] This invention constructs a hybrid intelligent computing framework combining "traditional methods + machine learning + physical constraints." It learns topological sensing interpolation rules through a graph neural network interpolation model, achieving superior accuracy compared to traditional shape function interpolation in predicting measurement points within a unit. By embedding physical constraints such as force balance and energy conservation into the reconstructed model using a physical information neural network, it achieves predictions that meet engineering accuracy requirements in complex areas such as welds and tees. Through ensemble learning, it dynamically fuses prediction results from multiple models, combining the advantages of each method and simultaneously outputting uncertainty estimates and a four-dimensional confidence index. This allows engineers to intuitively judge the reliability level of each virtual sensor data, avoiding misjudgments of low-confidence estimates, and achieving an intelligent leap from "single numerical output" to "numerical value + uncertainty + confidence."
[0140] With the virtual sensor annotation module 1032, the model automatically identifies and annotates the precise physical quantity values of key locations (elbows, welds, supports, etc.) while rendering the cloud map, eliminating the need for manual point-by-point queries, significantly improving data extraction efficiency, and avoiding errors from manual readings.
[0141] By quantifying confidence levels in four dimensions—grid quality, gradient smoothness, physical plausibility, and machine learning uncertainty—engineers can intuitively identify the reliability level of each virtual sensor's data, avoiding misjudgments of low-confidence estimates and improving decision-making security.
[0142] Virtual sensor icons are linked to cloud map colors, intuitively reflecting the relative levels of physical quantities at key measurement points; independent data panels support rapid verification and report generation; threshold warning functions provide immediate alerts for dangerous conditions, significantly improving engineering diagnostic efficiency.
[0143] Through data augmentation methods such as geometric transformation, physical quantity perturbation, noise simulation, and randomization of measurement point configuration, and generalized training, the model can adapt to the rendering of finite metadata of pipelines with different pipe diameters, operating conditions, and key measurement point configurations, without the need for manual adjustment of the shading configuration. The denoising strategy of the preprocessing module complements the attention mechanism inside the model; the former processes known strong noise, while the latter suppresses residual weak noise, thus synergistically improving the output quality.
[0144] This invention is based entirely on existing pipeline finite element analysis results, eliminating the need for additional 3D modeling or on-site testing. Through standardized data interfaces, it can be integrated into existing software analysis workflows, and the output results can be directly used in technical reports, review presentations, and digital twin system demonstrations, significantly lowering the barrier to engineering applications.
[0145] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0146] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0147] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0148] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within the invention. No appended diagram markings in the claims should be construed as limiting the scope of the claims.
[0149] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any specific order.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A method for training a cloud map rendering model of pipeline finite element analysis results, characterized in that, include: Acquire pipeline finite element analysis sample data and corresponding label data. The sample data includes node coordinate matrix sample, element connection relationship matrix sample, physical quantity value sample corresponding to each node in the node coordinate matrix sample, and key measurement point configuration file sample. The label data includes standard cloud map and standard virtual sensor annotation map. A cloud map rendering model based on deep learning is constructed, the model including a graph topology coding module, a feature enhancement module, a cloud map generation module, and a virtual sensor module; The cloud map rendering model is trained based on a multi-task loss function, which includes a cloud map rendering loss term and a virtual sensor annotation loss term. The cloud map rendering loss term is used to measure the difference between the predicted cloud map and the standard cloud map, and the virtual sensor annotation loss term is used to measure the difference between the predicted physical quantity value at each key measurement point and the corresponding physical quantity annotation value in the standard virtual sensor annotation map. With the goal of minimizing the loss term value of the multi-task loss term function, the parameters of the cloud map rendering model are updated through backpropagation to obtain the trained cloud map rendering model.
2. The pipeline finite element analysis result cloud map rendering model training method according to claim 1, characterized in that, The graph topology encoding module is used to encode the node coordinate matrix sample, the cell connection relationship matrix sample, and the physical quantity numerical sample into an initial feature tensor. The feature enhancement module is used to perform channel attention weighting and spatial attention weighting on the initial feature tensor and output an enhanced feature tensor. The cloud map generation module is used to inversely map the enhanced feature tensor into a predicted cloud map with RGB three channels; The virtual sensor module is used to output predicted values of physical quantities at each key measurement point based on the enhanced feature tensor and the key measurement point configuration file sample.
3. The pipeline finite element analysis result cloud map rendering model training method according to claim 2, characterized in that, The graph topology coding module includes a graph convolutional coding layer, a grid projection layer, and a convolutional feature extraction layer; The graph convolutional coding layer uses a graph convolutional network or a graph attention network, and the grid projection layer uses a spatial rasterization method based on finite element shape functions. The graph convolutional coding layer is used to perform graph convolution operations on the node feature matrix samples and the adjacency matrix samples to output node features. The node feature matrix samples are obtained by concatenating the node coordinate matrix samples and the physical quantity numerical samples. The adjacency matrix samples are constructed based on the unit connection relationship matrix samples. The grid projection layer is used to map the node features output by the graph convolutional coding layer to a regular two-dimensional grid space; The convolutional feature extraction layer is used to extract local spatial patterns on the regular two-dimensional grid space and output an initial feature tensor.
4. The method for training a pipeline finite element analysis result cloud map rendering model according to claim 2, characterized in that, The feature enhancement module includes a channel attention submodule, a spatial attention submodule, and a mask prediction branch; The channel attention submodule is used to perform global average pooling and global max pooling on the initial feature tensor, and then multiply the pooled feature vector by the initial feature tensor channel by channel after processing by a shared fully connected layer to output a channel-weighted feature tensor. The spatial attention submodule is used to perform average pooling and max pooling on the channel-weighted feature tensor along the channel dimension, output a spatial weight map by passing the pooled single-channel features through an activation function, and multiply the spatial weight map with the channel-weighted feature tensor pixel by pixel to output an enhanced feature tensor. The mask prediction branch is used to perform convolution and activation processing on the channel weighted feature tensor output by the channel attention submodule, and output a key region probability map. The mask prediction branch is trained with assisted supervision based on manually labeled key region mask tags. The training loss function of the mask prediction branch is a weighted sum of the binary cross-entropy loss term and the Dice loss term.
5. The pipeline finite element analysis result cloud map rendering model training method according to claim 2, characterized in that, The cloud map generation module adopts a U-Net-type deconvolutional neural network structure; The encoder side of the cloud map generation module is the convolutional feature extraction layer in the graph topology coding module. The convolutional feature extraction layer generates multiple intermediate layer feature maps with different spatial resolutions during the feature extraction process. The decoder side of the cloud map generation module contains multiple deconvolutional layers, and the feature maps output by each deconvolutional layer have different spatial resolutions. The cloud map generation module concatenates the feature maps of each intermediate layer in the convolutional feature extraction layer with the output feature maps of the corresponding spatial resolution deconvolutional layer in the decoder by skip connections, and then upsamples them by pixel rearrangement upsampling to output the predicted cloud map.
6. The method for training a pipeline finite element analysis result cloud map rendering model according to claim 2, characterized in that, The virtual sensor module includes a graph neural network interpolation model, a physical neural network reconstruction model, and an ensemble learning model; The graph neural network interpolation model is used to perform interpolation prediction based on the node feature information in the enhanced feature tensor and the measurement point location information in the key measurement point configuration file sample, and outputs the predicted value of the first physical quantity. The physical neural network reconstruction model is used to perform reconstruction prediction based on the measurement point location information in the key measurement point configuration file sample and in combination with physical conservation constraints, and output the predicted value of the second physical quantity. The ensemble learning model is used to fuse the predicted values of the first physical quantity and the second physical quantity, and output the predicted values of the physical quantity and uncertainty estimates at each key measurement point.
7. A method for rendering cloud maps of finite element analysis results of pipelines, characterized in that, include: Obtain the original finite element analysis data of the pipeline to be rendered. The original data includes the node coordinate matrix, the element connection relationship matrix, the physical quantity values corresponding to each node, and the configuration file of key measurement points. The original data is preprocessed and transformed to obtain the node feature matrix and adjacency matrix; The node feature matrix and the adjacency matrix are input into the trained cloud map rendering model to perform forward inference, and a preliminary cloud map and intermediate physical quantity prediction values for each key measurement point are generated simultaneously; wherein, the cloud map rendering model is trained according to the training method of any one of claims 1 to 9; Hierarchical adaptive calculations are performed on the intermediate physical quantity prediction values of each key measuring point to obtain the final physical quantity values of each key measuring point; The three-dimensional spatial coordinates of each key measuring point are mapped to the two-dimensional pixel coordinates of the preliminary cloud map. Based on the final physical quantity values of each key measuring point, virtual sensor visualization annotations are superimposed at the positions corresponding to the two-dimensional pixel coordinates to generate a target cloud map with virtual sensor annotations.
8. The method for rendering cloud maps of pipeline finite element analysis results according to claim 7, characterized in that, The preprocessing and data transformation of the original data to obtain the node feature matrix and adjacency matrix includes: The original data is cleaned, and the cleaned data is normalized. The normalized node coordinate matrix is concatenated with the physical quantity values to form the node feature matrix, and an adjacency matrix is constructed based on the unit connection relationship matrix.
9. The method for rendering cloud maps of pipeline finite element analysis results according to claim 7, characterized in that, The node coordinate matrix and the element connection matrix together constitute the finite element model. The hierarchical adaptive calculation of the intermediate physical quantity prediction values of each key measurement point includes: Select target key measurement points one by one from each key measurement point, and calculate the distance between the coordinates of the target key measurement point and the coordinates of each node in the finite element model to determine whether the target key measurement point coincides with the node in the finite element model; If they overlap, the physical quantity value of the node that overlaps with the coordinates of the target key measurement point will be taken as the final physical quantity value of the target key measurement point, and the hierarchical adaptive calculation process of the target key measurement point will be terminated. If they do not overlap, the smoothness ratio of the target key measuring points in the local area of the finite element model is calculated to determine whether the target key measuring points meet the smoothness condition. If the smooth condition is met, the graph neural network interpolation model in the cloud map rendering model is used to predict the key measurement points of the target to obtain a first prediction result, and the first prediction result and the preset benchmark interpolation result are used as the input of the ensemble learning model in the cloud map rendering model. If the smooth conditions are not met, multi-condition calculations are performed based on the element in the finite element model where the target key measurement point is located to determine whether the target key measurement point is located in a complex region. If the target is located in a complex area, the physical neural network reconstruction model in the cloud map rendering model is used to predict the key measurement points of the target to obtain a second prediction result. The second prediction result and the preset benchmark interpolation result are used as the input of the ensemble learning model in the cloud map rendering model. If it is not located in a complex region, the preset benchmark interpolation result will be used as the input of the ensemble learning model in the cloud map rendering model; For each key measurement point of the target, the ensemble learning model in the cloud map rendering model is used for fusion to output the final physical quantity value and uncertainty estimate of the key measurement point of the target.
10. The method for rendering cloud maps of pipeline finite element analysis results according to claim 9, characterized in that, Also includes: The confidence score of the key measurement point is calculated based on the uncertainty estimate. The confidence score is obtained by weighted summation of the grid quality coefficient, gradient smoothness coefficient, physical rationality coefficient and machine learning confidence coefficient. The display style of the virtual sensor label corresponding to the key measurement point is determined based on the confidence score.
