A PIV flow field data filling method based on convolutional neural network
Through the method based on convolutional neural network, the problem of missing data in PIV experiments is solved. Numerical simulation and experimental data are used to train the model to achieve efficient and accurate supplement of flow field data, avoiding the lack of accuracy and data bias of traditional methods. Numerically solved problems, demonstrating good identification capabilities and robustness.
Patent Information
- Application Number
- CN202210522115.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-05-13
AI Technical Summary
In fluid experiments, the existing technology is difficult to effectively solve the data missing problem caused by the experimental model blocking the light path, wall reflection and uneven particle distribution in the PIV experiment. Especially in the case of missing particles and light path blocking, the traditional method is not accurate. The accuracy is insufficient and data recovery is biased toward numerical solutions.
Using a method based on convolutional neural networks, a large number of numerical simulation results and a small amount of experimental flow field results are used to build a deep learning model, adjust the neural network structure and hyperparameters, generate a data set for training, and verify the network through simulation and experimental data The gap-filling performance enables efficient supplementation of flow field data.
It achieves efficient and accurate reconstruction of flow field data, saves time, avoids the impact of missing particles and light path occlusion on the gap filling results, and shows good recognition ability and robustness.
Smart Images

Figure CN115034039B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of experimental measurement technology, and specifically relates to a PIV flow field data gap filling method based on convolutional neural network. Background Art
[0002] Particle image velocimetry (PIV) is a common non-contact measurement method that can achieve non-interference measurement during the experiment and obtain physical quantities of the entire field. It is widely used in fluid test measurements. 2D2D-PIV is currently the most common PIV, which is mainly composed of tracer particles, imaging system and image processing system. The technical principle of PIV is not complicated. First, the tracer particles are evenly distributed throughout the flow field, and then the laser is used to illuminate the area in the flow field to be measured. The motion trajectory of the particles is recorded using a high-speed camera. Finally, image processing technology is used to obtain the velocity vector of each particle by calculating the displacement of the particle and the exposure time of the camera, thereby drawing a velocity field. Therefore, in a PIV experiment, a complete optical path and tracer particles cannot be obtained. However, in the experiment, it is often encountered that the experimental model blocks the light path, the tracer particles near the wall cannot be photographed due to wall reflection, and the particles are unevenly distributed in the flow field due to viscosity and other effects, resulting in the lack of or no particles in some areas, etc., resulting in data loss. This is a very common but important problem that needs to be solved in the field of experimental fluid mechanics.
[0003] At present, the existing technology uses the method of correcting the displacement field to deal with the situation where the traditional method is not accurate enough when the particle has a large span displacement, aiming to solve the problem of calculation accuracy, but this is limited to the case where there is no particle missing. There is also a method of combining a small part of the experimental data with most of the numerical fitting data through a neural network to complete the recovery process from local experimental flow field data to global experimental flow field data, which is similar to a data assimilation method, and the result is more inclined to the numerical solution rather than the experimental data.
[0004] Machine learning has been frequently applied in the field of fluid mechanics in recent years due to its ability to solve nonlinear problems. Among them, convolutional neural networks can mine deep features and have many applications in the field of image recognition and can be applied to the post-processing of experimental data. Summary of the invention
[0005] Technical issues to be solved:
[0006] In order to avoid the shortcomings of the prior art, the present invention provides a PIV flow field data filling method based on convolutional neural network. With the help of a large number of numerical simulation results and a small number of experimental flow field results, the method adopts convolutional neural network to supplement the experimental flow field with missing information into a complete experimental flow field.
[0007] The technical solution of the present invention is: a PIV flow field data gap filling method based on convolutional neural network, characterized by the following specific steps:
[0008] Step 1: Build a convolutional neural network for data filling;
[0009] Step 2: Adjust the structure and hyperparameters of the neural network to improve the accuracy of data filling;
[0010] Step 3: Generate a dataset for neural network training;
[0011] Step 4: Use the simulation data set in step 3 to test the network's gap filling performance on the simulation data;
[0012] Step 5: Use the experimental dataset to verify the network’s data filling performance in real scenarios.
[0013] A further technical solution of the present invention is: in the step 1, a deep learning model is built based on a convolutional neural network. Assuming that the lth layer is a convolutional layer, the convolution calculation formula of the jth feature map of the lth layer is as follows:
[0014]
[0015] Where k is the convolution kernel, b is the bias, and x l-1 and x l They are the data of the (l-1)th layer and the lth layer respectively. f(*) is the nonlinear operation after the convolution operation, using the ReLU function:
[0016] f(x)=max(0,x).
[0017] A further technical solution of the present invention is: in the step 2, the structure and hyperparameters of the neural network are adjusted in the following way: first, a network with a parameter amount much larger than the amount of training data is constructed, and a network with a large parameter amount will overfit during the training process; then, the network parameter amount is gradually reduced to find a network with high network accuracy and no overfitting; finally, some hyperparameters in training are adjusted to find the best results under different hyperparameters as the network model used in this method.
[0018] A further technical solution of the present invention is that the hyperparameters adjusted in the training include the size of the batch data, the initial value of the learning rate, and the mode and parameters of the learning rate reduction.
[0019] A further technical solution of the present invention is: in step 3, numerical simulation is used to obtain a data set for network training, and experimental data is used as a data set for neural network testing.
[0020] A further technical solution of the present invention is: the numerical simulation method uses a lattice Boltzmann LBM solver to solve the NS equations, and the solution of the incompressible equations follows the He-Luo model, and the control equation is as follows:
[0021]
[0022]
[0023] The three-dimensional flow field data of the working conditions corresponding to the experiment are obtained, and these flow field data are sliced into two-dimensional data to imitate the data obtained by the PIV experiment, and saved as the total data set for network training. 5000 instantaneous flow fields are required for neural network training.
[0024] A further technical solution of the present invention is: in the test in step 4, data at random positions in the test set are artificially erased to simulate the data missing situation in the real situation, a test data set under unified working conditions not included in the training data is established, and the repair result of the network is observed.
[0025] A further technical solution of the present invention is: in step 5, an experimental environment consistent with the simulation setting is built, 2D2C test images are obtained using PIV technology, and the results are processed using PIVLab to obtain the flow field under experimental conditions; the experimental data set is used as input to verify the performance of the network model, the physical accuracy and physical interpretability of the observation results.
[0026] Beneficial Effects
[0027] The beneficial effects of the present invention are:
[0028] 1. Compared with the traditional PIV flow field data gap filling method, the present invention can save a lot of time in data gap filling due to the offline training mode of machine learning itself.
[0029] 2. Since the present invention uses simulation data to train the neural network, the influence of particle missing or light path blocking on the filling result can be avoided.
[0030] 3. The PIV data filling method based on convolutional neural network established in the present invention can efficiently and accurately reconstruct flow field data. The results show that the model has good recognition ability and robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of the present invention;
[0032] Figure 2 It is a structural diagram of the convolutional neural network in the present invention;
[0033] Figure 3 It is a specific implementation method of the present invention;
[0034] Figure 4 It is the result of applying the present invention to the instantaneous flow field of the channel turbulence data. DETAILED DESCRIPTION
[0035] The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, but should not be construed as limiting the present invention.
[0036] This embodiment and a PIV flow field data filling method based on convolutional neural network, Figure 1 Shown is a flow chart of the present invention, comprising the following steps:
[0037] The first step is to build a convolutional neural network for data filling. Figure 2 As shown. Building a deep learning model based on a convolutional neural network, assuming that the lth layer is a convolutional layer, the convolution calculation formula for the jth feature map of the lth layer is as follows:
[0038]
[0039] Where k is the convolution kernel, b is the bias, and x l-1 and x l are the data of the (l-1)th layer and the lth layer respectively. f(*) is the nonlinear operation after the convolution operation, and the ReLU function is generally used:
[0040] f(x) = max(0, x)
[0041] The model in this invention refers to the published GoogleNet. While deepening the network, the network is also widened, and asymmetric convolution is used to lighten the network model, making it easier to train. The idea of ResNet is also used to avoid problems such as gradient explosion during the calculation process of the model, thereby improving the calculation efficiency.
[0042] The second step is to adjust the structure and hyperparameters of the neural network to improve the accuracy of data filling. The structure and hyperparameters of the network are the most important factors affecting network performance. First, build a network with a parameter amount that is much larger than the amount of training data. A network with a large parameter amount will overfit during the training process. Then gradually reduce the network parameter amount to find a network with high network accuracy and no overfitting. Finally, adjust some hyperparameters in the training, such as the size of the batch data, the initial value of the learning rate, the way and parameters of the learning rate reduction, etc., to find the best results under different hyperparameters as the network model used in this method.
[0043] The third step is to generate a data set for neural network training. Since the experiment has a high uncertainty, the present invention uses numerical simulation to obtain a data set for network training, and uses the experimental data as a data set for neural network testing. The numerical simulation method uses a lattice Boltzmann (LBM) solver to solve the NS equations. The solution of the incompressible equation follows the He-Luo model, and the control equation is as follows:
[0044]
[0045]
[0046] The three-dimensional flow field data of the working conditions corresponding to the experiment are obtained, and these flow field data are sliced into two-dimensional data to simulate the data obtained by the PIV experiment, and saved as the total data set for network training. Generally, about 5,000 instantaneous flow fields are required for neural network training.
[0047] The convolutional neural network used in the present invention belongs to supervised learning in machine learning, and the input data and its corresponding true value are required as supervision. Here, the two-dimensional flow field obtained by the numerical simulation method is used as the true value, and the data at certain positions in the true value are artificially erased as the input of the network training to imitate the result of random missing particles during the PIV experiment. The position is selected at random, but the size and shape of the erased data area must be consistent with each other. The true value and the instantaneous flow field of the corresponding erased data are used as the output and input of the network to form a training set, a verification set and a test set, respectively, to ensure that the data in the three data sets do not contain each other.
[0048] The fourth step is to use the simulation data set to test the network's gap filling performance on the simulation data. Use the test set obtained through simulation data in the third step to verify the final performance of the network. Artificially erase the data at random positions in the test set to simulate the data missing situation in the real situation, establish a test data set under unified working conditions that are not included in the training data, and observe the network's repair results.
[0049] The fifth step is to use the experimental data set to verify the data gap filling performance of the network in real scenarios. Build an experimental environment consistent with the simulation settings, use PIV technology to obtain 2D2C test images, and use PIVLab to process the results to obtain the flow field under experimental conditions. Use the experimental data set as input to verify the performance of the network model, the physical accuracy and physical interpretability of the observation results.
[0050] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and purpose of the present invention.
Claims
1. A PIV flow field data filling method based on convolutional neural network, characterized in that The specific steps are as follows: Step 1: Build a convolutional neural network for data filling; Step 2: Adjust the structure and hyperparameters of the neural network to improve the accuracy of data filling; the way to adjust the structure and hyperparameters of the neural network is: first, build a network with a parameter amount that is much larger than the amount of training data. A network with a large parameter amount will overfit during the training process; then, gradually reduce the network parameter amount to find a network with high network accuracy and no overfitting; finally, adjust some hyperparameters in training to find the best results under different hyperparameters as the network model used in this method; Step 3: Generate a dataset for neural network training; Numerical simulation is used to obtain a data set for network training, and experimental data is used as a data set for neural network testing; the numerical simulation method uses a lattice Boltzmann LBM solver to solve the NS equations, and the solution of the incompressible equation follows the He-Luo model. The control equation is as follows: Obtain the three-dimensional flow field data of the working conditions corresponding to the experiment, slice these flow field data into two-dimensional data to imitate the data obtained by the PIV experiment, and save them as the total data set for network training. 5000 instantaneous flow fields are required for neural network training; Step 4: Use the simulation data set in step 3 to test the network's gap filling performance on the simulation data; Step 5: Use the experimental dataset to verify the network’s data filling performance in real scenarios.
2. The PIV flow field data filling method based on convolutional neural network according to claim 1 is characterized in that: In step 1, a deep learning model is built based on a convolutional neural network. The layer is a convolutional layer, then Tier The formula for the convolution calculation of a feature map is as follows: in, is the convolution kernel, is the bias, and Respectively Layer and Layer data, It is a nonlinear operation after the convolution operation, using the ReLU function: 。 3. The PIV flow field data filling method based on convolutional neural network according to claim 2 is characterized in that: The hyperparameters adjusted during the training include the size of the batch data, the initial value of the learning rate, and the method and parameters of the learning rate decrease.
4. The PIV flow field data filling method based on convolutional neural network according to claim 1 is characterized in that: In the test in step 4, data at random positions in the test set are artificially erased to simulate the data missing situation in the real situation, and a test data set under unified working conditions not included in the training data is established to observe the repair result of the network.
5. The PIV flow field data filling method based on convolutional neural network according to claim 1 is characterized in that A further technical solution of the present invention is: in step 5, an experimental environment consistent with the simulation setting is built, 2D2C test images are obtained using PIV technology, and the results are processed using PIVLab to obtain the flow field under experimental conditions; the experimental data set is used as input to verify the performance of the network model, the physical accuracy and physical interpretability of the observation results.
