A method for constructing manifold neural operators based on regularized Laplacian
Through the manifold neural operator construction method based on regularized Lapulaski, the computational complexity problem of physical field prediction on complex geometric shapes is solved, accurate characterization and prediction of physical fields on complex geometric shapes are achieved, and the model is improved. efficiency and accuracy.
Patent Information
- Application Number
- CN202411225263.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-09-03
AI Technical Summary
When existing neural operator models deal with physical field prediction on complex geometric shapes, the computational complexity and parameter complexity are high, and it is difficult to accurately encode and decode non-smooth or discontinuous physical fields with high-frequency information.
The manifold neural operator construction method based on regularized Lapulaski is adopted. By calculating regularized Lapulaski and integrating geometric shape information and physical field data information, a manifold neural operator model is constructed, and through the physical field Data samples train model parameters to achieve accurate characterization and prediction of physical fields on complex geometric shapes.
Using a small amount of regularized Lapulaski to achieve accurate characterization and prediction of physical fields on complex geometric shapes reduces the computational complexity and parameter complexity of the model and improves prediction performance.
Smart Images

Figure CN118734458B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine learning, and in particular to a method for constructing a manifold neural operator based on a regularized Laplacian. Background Art
[0002] Many engineering problems involve physical field prediction problems, such as component solidification deformation field prediction for composite component solidification process optimization, and aircraft surface flow field prediction for aircraft aerodynamic shape optimization. Physical fields are functions defined on complex geometries. The essence of physical field prediction problems is to establish a mapping from function to function, which is called an operator in mathematics. Neural operator models can learn the mapping relationship between functions by designing a specific neural network architecture, which has attracted widespread attention in the fields of deep learning and AI for Science.
[0003] Existing neural operator models use fast Fourier transform or wavelet transform to equate operator learning problems to function learning problems in frequency domain space, which significantly reduces the complexity of the model and has been widely used. However, both fast Fourier transform and wavelet transform are defined in Euclidean space, and can only process functions on regular geometry, which is difficult to apply to complex geometric shapes commonly found in engineering. Patent CN116187386A proposes a neural operator construction method for complex geometric shapes, which can define the Laplace operator according to the discrete grid of complex geometric shapes, and calculate the eigenvalues and eigenfunctions of the Laplace operator. A finite number of Laplace operator eigenfunctions are taken as a set of bases in the order of eigenvalues from small to large, and the data defined on complex geometry can be encoded (similar to fast Fourier transform) and decoded (similar to inverse Fourier transform), so that the operator learning problem defined on complex geometry can be processed. The solution of the Laplace operator eigenfunction is only related to the geometric shape information. The truncated Laplace operator eigenfunction can effectively characterize low-frequency smooth functions. However, for physical fields containing high-frequency information, non-smooth physical fields or discontinuous physical fields, in order to accurately encode and decode, the number of Laplace operator eigenfunctions needs to be greatly increased, resulting in a significant increase in the computational complexity and parameter complexity of the operator model, making it difficult to train. Summary of the invention
[0004] The purpose of the present invention is to provide a method for constructing a manifold neural operator based on regularized Laplacian, which comprehensively considers geometric shape information and physical field data sample information to calculate the regularized Laplacian, and uses a small amount of regularized Laplacian to achieve accurate characterization of the physical field on complex geometric shapes and accurate prediction of the physical field on complex geometric shapes.
[0005] To achieve the above object, the present invention provides a method for constructing a manifold neural operator based on regularized Laplacian, the steps of which are as follows:
[0006] S1. Meshing a given complex geometric shape to obtain a data discrete grid, and obtaining an adjacency matrix and a mass matrix of nodes in the data discrete grid;
[0007] S2, obtaining multiple sets of physical field data samples defined on a given complex geometric shape, each set of data samples consisting of input data and output data;
[0008] S3, calculating the regularized Laplacian according to the acquired adjacency matrix, mass matrix and physical field data samples;
[0009] S4, constructing a manifold neural operator model based on regularized Laplacian;
[0010] S5. Train the parameters in the manifold neural operator model through the acquired physical field data samples.
[0011] Preferably, in S1, the data discrete grid is a triangular grid, a quadrilateral grid, a tetrahedral grid, a pentahedral grid or a hexahedral grid, the adjacency matrix of the nodes in the data discrete grid is a square matrix, the matrix elements represent the connection relationship between the nodes, the mass matrix of the nodes is a diagonal matrix, the diagonal elements represent the area or volume occupied by the nodes, and the number of grid nodes of complex geometric shapes is recorded as , then the adjacency matrix can be expressed as , then the mass matrix can be expressed as .
[0012] Preferably, in S2, the physical field data samples refer to field data with physical meaning defined on complex geometric shapes in engineering problems, including temperature fields, pressure fields, stress fields, strain fields, deformation fields, and geometric shape fields defined on the shape of components involved in the problem of curing deformation control of composite components, and velocity fields, pressure fields, stress fields, temperature fields, and geometric shape fields defined on the surface of aircraft involved in the problem of aerodynamic shape design of aircraft. The physical field data samples can be solved using finite element software or numerical solution algorithms corresponding to specific engineering problems or obtained through experiments. The number of physical field data samples is denoted as , then the input data of multiple sets of physical field data samples can be expressed as , the output data can be expressed as .
[0013] Preferably, in S3, the regularized Laplacian includes a regularized Laplacian matrix of the physical field input data and the regularized Laplacian matrix of the physics output data , The regularized Laplacian number is obtained by using an analytical method and an error basis augmentation method.
[0014] Preferably, the steps of calculating the regularized Laplacian using an analytical solution method include:
[0015] Taking into account the geometric information and physical field data reconstruction error, the minimization problem is constructed based on the adjacency matrix, mass matrix, and physical field data samples. The mathematical expression is:
[0016] ;
[0017] in, is the regularized Laplacian matrix, The first OK, is the regularized Laplacian matrix List, To balance the hyperparameters of data reconstruction loss and geometric information, the matrix Equal to the mass matrix or the identity matrix, considering the orthogonality of the regularized Laplacian matrix in terms of geometry is the mass matrix , considering the orthogonality of the regularized Laplacian matrix in Euclidean space is the identity matrix, when The first When the line is , the regularized Laplacian matrix of the physical field input data is obtained ;when Output data for the physics field When the line is , the regularized Laplacian matrix of the physical field output data is obtained .
[0018] Preferably, the step of calculating the regularized Laplacian using the error basis augmentation method comprises:
[0019] S1. Define the Laplace operator according to the adjacency matrix and the mass matrix, solve the Laplace operator eigenvector, sort them from small to large according to the eigenvalue, and take the first Laplacian ;
[0020] S2, calculating the Laplacian reconstruction error of the physical field input data and the physical field output data, and obtaining the physical field input error data and the physical field output error data;
[0021] S3. Calculate the POD (Proper Orthogonal Decomposition) basis of the input error data and the POD basis for outputting error data ,in , is the number of POD bases;
[0022] S4, Laplaski and POD-based Concatenate to form the regularized Laplacian matrix of the physics input data , Laplaski and POD-based The regularized Laplacian matrix of the physics output data is concatenated .
[0023] Preferably, the manifold neural operator model in S4 is composed of a channel dimensionality increase module, one or more input data frequency domain parameterization modules, an input and output frequency domain transformation module, one or more output data frequency domain parameterization modules, and a channel dimensionality reduction module which are connected in sequence.
[0024] Preferably, the channel dimension increasing module is used to increase the channel dimension of the data to increase the modeling capability of the manifold neural operator model, and the channel dimension reducing module reduces the channel dimension of the data to the original dimension. The channel dimension increasing module and the channel dimension reducing module are linear transformation, fully connected neural network or convolutional neural network.
[0025] Preferably, the processing of module input data by the input data frequency domain parameterization module, the input-output frequency domain transformation module and the output data frequency domain parameterization module includes the following steps: linear transformation, encoding, parameterization, decoding, nonlinear activation,
[0026] Linear transformation: linear transformation of the module’s input data;
[0027] Encoding: Use the regularized Laplacian to decompose the input data of the module to obtain a coefficient vector, that is, project the input data of the module on the regularized Laplacian, and use a set of coordinates obtained after projection as the coefficient vector;
[0028] Parameterization, using tensor product, fully connected neural network, convolutional neural network or multi-head attention mechanism neural network to map the coefficient vector obtained after encoding to obtain a set of new coefficient vectors;
[0029] Decoding, using the regularized Laplacian to reconstruct the parameterized coefficient vector, that is, calculating the regularized Laplacian multiplied by the corresponding coefficients in the coefficient vector and then summing them to obtain the decoded data;
[0030] Nonlinear activation: nonlinear activation functions are used to perform nonlinear processing on linearly transformed data and decoded data;
[0031] In some cases, a channel attention mechanism network is added as needed to apply weights to each channel of the data after nonlinear activation to enhance the expressiveness of the model.
[0032] Preferably, for the input data frequency domain parameterization module, both encoding and decoding use the regularized Laplacian matrix of the physical field input data; for the input and output frequency domain transformation module, encoding uses the regularized Laplacian matrix of the physical field input data, and decoding uses the regularized Laplacian matrix of the physical field output data; for the output data frequency domain parameterization module, both encoding and decoding use the regularized Laplacian matrix of the physical field output data.
[0033] Therefore, the present invention adopts the above steps to develop a method for constructing a manifold neural operator based on a regularized Laplacian, and calculates the regularized Laplacian by fusing the geometric information of complex geometric shapes and the data information of the physical field on the complex geometric shapes. It is possible to accurately characterize the physical field on the complex geometric shapes with a small amount of regularized Laplacian, and then construct a manifold neural operator model based on the regularized Laplacian, and train the model parameters through physical field data samples, thereby achieving accurate prediction of the physical field on the complex geometric shapes.
[0034] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for constructing a manifold neural operator based on regularized Laplacian of the present invention;
[0036] Figure 2 Schematic diagram of the structure of a manifold neural operator model according to an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of a process of processing input data by an input data frequency domain parameterization module, an input-output frequency domain transformation module, and an output data frequency domain parameterization module according to an embodiment of the present invention;
[0038] Figure 4 This is a diagram of the three-dimensional wing surface flow field prediction process according to an embodiment of the present invention, wherein (a) represents the wing surface grid, (b) represents the FFD control point data, and (c) represents the pressure field data. DETAILED DESCRIPTION
[0039] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.
[0040] Example
[0041] The three-dimensional wing surface flow field is predicted by using a regularized Laplacian-based manifold neural operator construction method proposed in the present invention. Figure 1 As shown, the following steps are included:
[0042] S1. Mesh a given complex geometric shape to obtain a data discrete grid, and obtain the adjacency matrix and mass matrix of the nodes in the data discrete grid.
[0043] The wing surface is meshed using triangular meshes using finite element analysis software to obtain a data discrete mesh. The part model after meshing includes 18285 mesh nodes, such as Figure 4 As shown in (a) in . According to the data discretized grid, the adjacency matrix and mass matrix of the node are obtained. The adjacency matrix represents the connection relationship between the nodes. The mass matrix is a diagonal matrix, and the diagonal elements represent the area occupied by the node. The method does not limit the type of mesh divided, and triangular mesh, quadrilateral mesh, tetrahedral mesh, pentahedral mesh, hexahedral mesh, etc. are all possible.
[0044] S2. Acquire multiple groups of physical field data samples defined on a given complex geometric shape, each group of data samples consisting of input data and output data.
[0045] In this embodiment, the input data is the geometric shape field of the wing surface, specifically the z-coordinates of all mesh nodes on the wing surface. The output data is the pressure field of the wing surface, specifically the pressure values of all mesh nodes on the wing surface. Figure 4 As shown in (b), the free-form deformation (FFD) technology is used to generate 200 sets of different geometric shape fields by changing the z coordinates of the FFD control points, and then 200 sets of corresponding pressure field data are obtained by aerodynamic simulation. Figure 4 As shown in (c), the open source software SU2 is used to perform aerodynamic simulation of the wing. The control equation is the steady-state Euler equation, the free stream Mach number is set to 0.8395, the free stream temperature is set to 288.15K, the free stream pressure is set to 101325.0Pa, and the wing pitch angle is set to 3.06 degrees.
[0046] S3. Calculate the regularized Laplacian according to the acquired adjacency matrix, mass matrix and physical field data samples.
[0047] In this embodiment, the adjacency matrix is , the mass matrix is , the input data of the physical field data sample is , the output data is , the regularized Laplacian is calculated by analytical solution, and the minimization problem is constructed according to the adjacency matrix, mass matrix, and physical field data samples. Specifically,
[0048] ;
[0049] in is the regularized Laplacian matrix to be solved, The first OK, is the regularized Laplacian matrix List, is 200, Set to the identity matrix, Set to 128, Set to 0.2.
[0050] S4: Constructing a manifold neural operator model based on regularized Laplacian. Figure 2 As shown, the manifold neural operator model consists of a channel dimension enhancement module, one or more input data frequency domain parameterization modules, an input and output frequency domain transformation module, one or more output data frequency domain parameterization modules, and a channel dimension reduction module which are connected in sequence.
[0051] like Figure 3 As shown, the processing of module input data by the input data frequency domain parameterization module, the input-output frequency domain transformation module and the output data frequency domain parameterization module includes the following steps: linear transformation, encoding, parameterization, decoding and nonlinear activation.
[0052] In this embodiment, the channel dimension of the input data is 1, and the channel dimension after the channel dimension upgrade module is 32. The number of regularized Laplacians of the physical field input data and the number of regularized Laplacians of the physical field output data are both 128. The number of frequency domain parameterized modules of the input data in the constructed manifold neural operator model is 1, and the number of frequency domain parameterized modules of the output data is 2. The channel dimension upgrade module is composed of a single hidden layer fully connected neural network, and the channel dimension reduction module is composed of a double hidden layer fully connected neural network. The linear transformation is implemented by convolution operation, and the nonlinear activation adopts the ReLU activation function. The parameterization adopts an attention mechanism neural network composed of a multi-head attention mechanism and a single hidden layer fully connected neural network, and the channel attention mechanism network adopts the SENet network.
[0053] S5: Train the parameters in the manifold neural operator model through the acquired physical field data samples.
[0054] The average relative L2 error of the physical field output data is used as the loss function, Adam is used as the optimization method, the batch size is set to 50, the number of iterations is set to 1000, and the parameters in the manifold neural operator model are trained through multiple groups of physical field data samples obtained in step 2 to complete the construction of the manifold neural operator.
[0055] To further illustrate the advantages of the regularized Laplacian-based manifold neural operator construction method described in the present invention, 100 sets of physical field data samples are generated as test data according to the data generation method described in step 2 to evaluate the predictive performance of the constructed manifold neural operator, and compared with the neural operator construction method for complex geometric shapes proposed in patent CN116187386A. The comparison of the average relative L2 error results on the training data and the test data is shown in Table 1.
[0056] Table 1 Error comparison table of training data and test data
[0057] ;
[0058] The results show that the regularized Laplacian-based manifold neural operator construction method proposed in the present invention can achieve better prediction performance.
[0059] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for constructing a manifold neural operator based on regularized Laplacian. Features: Here are the steps: S1. Meshing a given complex geometric shape to obtain a data discrete grid, and obtaining an adjacency matrix and a mass matrix of nodes in the data discrete grid; S2, obtaining multiple groups of physical field data samples defined on a given complex geometric shape, each group of data samples consisting of input data and output data, wherein the input data is the z-coordinates of all grid nodes on the wing surface, and the output data is the pressure values of all grid nodes on the wing surface; S3, calculating the regularized Laplacian according to the acquired adjacency matrix, mass matrix and physical field data samples; S4, constructing a manifold neural operator model based on regularized Laplacian; S5, training parameters in the manifold neural operator model through the acquired physical field data samples; In S3, the regularized Laplacian includes the regularized Laplacian matrix of the physical field input data and the regularized Laplacian matrix of the physics output data , is the number of regularized Laplacian, and the methods for calculating the regularized Laplacian include analytical solution method and error basis augmentation method; The steps to calculate the regularized Laplacian using the analytical solution method include: Taking into account the geometric information and physical field data reconstruction error, the minimization problem is constructed based on the adjacency matrix, mass matrix, and physical field data samples. The mathematical expression is: in, is the regularized Laplacian matrix, The first OK, is the regularized Laplacian matrix List, To balance the hyperparameters of data reconstruction loss and geometric information, the matrix Equal to the mass matrix or the identity matrix, when The first When the line is , the regularized Laplacian matrix of the physical field input data is obtained ;when Output data for the physics field When the line is , the regularized Laplacian matrix of the physical field output data is obtained ; The manifold neural operator model in S4 is composed of a channel dimension enhancement module, one or more input data frequency domain parameterization modules, an input and output frequency domain transformation module, one or more output data frequency domain parameterization modules, and a channel dimension reduction module connected in sequence; The channel dimension-increasing module is used to increase the channel dimension of the data, and the channel dimension-reducing module reduces the channel dimension of the data to the original dimension. The channel dimension-increasing module and the channel dimension-reducing module are linear transformation, fully connected neural network or convolutional neural network. The processing of module input data by the input data frequency domain parameterization module, the input-output frequency domain transformation module and the output data frequency domain parameterization module includes the following steps: linear transformation, encoding, parameterization, decoding, nonlinear activation, Linear transformation: linear transformation of the module’s input data; Encoding, decompose the input data of the module using regularized Laplacian to obtain a coefficient vector; Parameterization, using tensor product, fully connected neural network, convolutional neural network or multi-head attention mechanism neural network to map the coefficient vector obtained after encoding to obtain a new set of coefficient vectors; Decoding, reconstruct the parameterized coefficient vector using regularized Laplacian; Non-linear activation uses non-linear activation functions to perform non-linear processing on linearly transformed data and decoded data.
2. A method for constructing a regularized Laplacian-based manifold neural operator according to claim 1, Features: In S1, the data discretization grid is a triangular grid, a quadrilateral grid, a tetrahedral grid, a pentahedral grid or a hexahedral grid. The adjacency matrix of the nodes in the data discretization grid is a square matrix. The matrix elements represent the connection relationship between the nodes. The mass matrix of the nodes is a diagonal matrix. The diagonal elements represent the area or volume occupied by the nodes. The number of grid nodes of complex geometric shapes is recorded as , the adjacency matrix is expressed as , the mass matrix is expressed as .
3. A method for constructing a regularized Laplacian-based manifold neural operator according to claim 2, Features: In S2, the physical field data samples refer to the field data with physical meaning defined on complex geometric shapes in engineering problems. The number of physical field data samples is , the input data of multiple sets of physical field data samples are expressed as , the output data is expressed as .
4. A method for constructing a regularized Laplacian-based manifold neural operator according to claim 3, Features: The steps of calculating the regularized Laplacian using the error basis augmentation method include: S1. Define the Laplace operator according to the adjacency matrix and the mass matrix, solve the Laplace operator eigenvector, sort them from small to large according to the eigenvalue, and take the first Laplacian ; S2, calculating the Laplacian reconstruction error of the physical field input data and the physical field output data, and obtaining the physical field input error data and the physical field output error data; S3. Calculate the POD basis of input error data and the POD basis for outputting error data ,in , is the number of POD bases; S4, Laplaski and POD-based Concatenate to form the regularized Laplacian matrix of the physics input data , Laplaski and POD-based The regularized Laplacian matrix of the physics output data is concatenated .
5. A method for constructing a regularized Laplacian-based manifold neural operator according to claim 4, Features: For the input data frequency domain parameterization module, both encoding and decoding use the regularized Laplacian matrix of the physical field input data; for the input and output frequency domain transformation module, encoding uses the regularized Laplacian matrix of the physical field input data, and decoding uses the regularized Laplacian matrix of the physical field output data; for the output data frequency domain parameterization module, both encoding and decoding use the regularized Laplacian matrix of the physical field output data.
Citation Information
Patent Citations
Spectrum posture migration method
CN106484511A
Neural operator construction method for complex geometrical shape
CN116187386A
