Method and system for reconstructing missing information of damaged turbulent flow field
Through the combination of data preprocessing and neural network, a hybrid loss function is used for semi-supervised learning, which solves the problem of requiring a complete data set for turbulence field reconstruction in the existing technology, and achieves efficient and accurate reconstruction in damaged areas.
Patent Information
- Application Number
- CN202411148653.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-21
AI Technical Summary
The existing technology requires a complete flow field data set when reconstructing the turbulence field, and the reconstruction accuracy in the damaged area is low, especially in the case of complex multi-scale flow and large-area damage.
By generating the first mask and the second mask for data preprocessing, combining the generator network and the discriminator network, using a hybrid loss function for network training, the generator network extracts high-level features, and the discriminator network evaluates local details to achieve semi- Supervised learning to improve the reconstruction effect of damaged turbulence fields.
In the absence of a complete turbulence field data set, the damaged turbulence field can be reconstructed with high fidelity, which significantly improves the identification and generalization capabilities of damaged areas and ensures accurate reconstruction of flow field information from macro to micro scales.
Smart Images

Figure CN118657093B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a method and system for reconstructing missing information of a damaged turbulent flow field. Background Art
[0002] In fluid dynamics research and engineering applications, accurate measurement of turbulent field information is crucial for understanding complex flow phenomena. However, due to experimental measurement limitations, reconstructing incomplete flow field information is a common problem in important applications related to turbulence. Among them, particle image velocimetry (PIV) experiments are a typical example. Various factors may lead to missing flow field information during the measurement process, such as plane particle escape, shadows, or wall light reflection. In addition, oceanographic and meteorological observations also face similar problems, where bad pixels and cloud cover may lead to missing information. Depending on the degree of missing flow field information and the number of available samples, different methods can be used to reconstruct the full field description from the flow field measurement with missing information. If there are enough samples and the degree of incompleteness is limited, reconstruction techniques that rely on extracting flow features can be used, such as orthogonal mode decomposition (POD), dynamic mode decomposition (DMD) and their variants. However, most mode reduction methods rely on linear interpolation. When dealing with complex multi-scale flows (such as fully developed turbulence) and when the area of the damage area is large, the accuracy of reconstructing the missing information of the turbulent field using the above methods is low.
[0003] In recent years, deep learning technology, especially convolutional neural networks, has achieved great success in the field of computer vision and has gradually been applied to fields such as fluid dynamics, thanks to the powerful ability of deep neural networks to handle nonlinear problems. A typical example is the successful application of super-resolution frameworks based on generative adversarial networks (GANs) to turbulent flow and climate data to improve spatial resolution or fill in missing information in experimental measurements. Generative adversarial networks generate high-resolution and realistic flow field data through the adversarial process between generators and discriminators. A large amount of evidence shows that the introduction of discriminator networks significantly improves the accuracy of reconstructed flow fields. However, although convolutional neural networks can achieve good results in flow field reconstruction, most applications require a complete flow field dataset for training the flow field reconstruction framework, that is, a fully supervised learning model. Because it is difficult to obtain a large amount of complete flow field data in the actual measurement process, this leads to great limitations in the reconstruction of damaged turbulent fields using a fully supervised learning model in engineering practice. Summary of the invention
[0004] The present invention is completed in view of the above existing situation, and its purpose is to provide a method and system for reconstructing missing information of a damaged turbulent field. Through innovative data preprocessing methods, advanced neural network architecture and customized loss functions, it is possible to use only local information of the turbulent field for network training and reconstruct the damaged turbulent field with high fidelity in the absence of a complete turbulent field data set. In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
[0005] The present invention provides a method for reconstructing missing information of a damaged turbulent flow field, wherein the damaged turbulent flow field includes a damaged area and an intact area, and the method comprises:
[0006] Generate a first mask according to the shape and distribution of the damaged area, wherein the first mask is a binary image, including a 0-value area with a pixel value of 0 and a non-0 area with a pixel value of 1, and the 0-value area of the first mask covers all the damaged areas;
[0007] randomly generating a second mask according to the first mask, wherein a 0-value region of the second mask covers part of the intact region, and the 0-value regions of the first mask and the second mask do not overlap each other;
[0008] Superimposing the first mask and the damaged turbulent flow field to obtain a preprocessed first damaged turbulent flow field;
[0009] Inputting the first damaged turbulence field and the second mask into a generator network, outputting a complete first reconstructed turbulence field, and superimposing the first reconstructed turbulence field with the first mask to obtain a reconstructed second damaged turbulence field;
[0010] Calculate the loss function of the network framework and adjust the network parameters according to the second damaged turbulent field and the first damaged turbulent field;
[0011] Iterate the process from generating the second mask to calculating the loss function according to the second damaged turbulence field and the first damaged turbulence field and adjusting the network parameters until the network training converges;
[0012] The damaged turbulent field is preprocessed and then input into the trained and converged generator network to obtain a complete turbulent field.
[0013] In this case, the randomly generated second mask is used in the network training process, and the training is repeated and the network parameters are continuously adjusted until the loss function converges, so as to enhance the generator network's ability to recognize damaged areas and generalize to different forms of damage, significantly improving the reconstruction effect of the original damaged turbulent field.
[0014] Among them, according to the specific damaged turbulence field, the first mask is uniquely determined, and the second mask is randomly generated during the training process. The reconstruction effect is evaluated by comparing the damaged turbulence field and the complete turbulence field. The proportion of the 0-value area corresponding to the second mask is adjusted according to the reconstruction effect of the complete turbulence field.
[0015] Therefore, the reconstruction effect of the complete turbulence field can be significantly improved by adaptively adjusting the proportion of the 0-value area of the second mask.
[0016] The step of calculating the loss function of the network framework and adjusting the network parameters according to the second damaged turbulent field and the first damaged turbulent field specifically includes:
[0017] Compare the second damaged turbulent field with the first damaged turbulent field and calculate the traditional pixel mean square error loss function L pix ;
[0018] Calculate the adversarial loss function of the network framework L adv ;
[0019] The second damaged turbulence field and the first damaged turbulence field are input into a pre-trained network, and the pre-trained network sequentially sets the zeroth module, the first module, the second module, the third module, the fourth module and the fifth module, respectively calculating the feature mappings of the second damaged turbulence field and the first damaged turbulence field in the first module, the second module, the third module and the fourth module, and calculating the mean square errors MSE1, MSE2, MSE3 and MSE4 of the feature mappings of the corresponding modules, and then calculating the weighted average ;
[0020] The loss function is a hybrid loss function L final = αL pix + βL adv + γL fm ,in, α , β , γ is the weight coefficient.
[0021] In this case, the hybrid loss function combines the weighted average of the traditional pixel mean square error and the network-level feature map mean square error. The network-level feature map mean square error is used to evaluate the gap between the reconstructed turbulence field (the second damaged turbulence field) and the original turbulence field (the first damaged turbulence field) in the feature maps at different levels of the pre-trained network, thereby ensuring that the different spatial scale information of the reconstructed turbulence field and the original turbulence field remain consistent, overcoming the problem that the traditional pixel mean square error loss function alone can only ensure the reconstruction of large-scale turbulence structures. It not only considers the overall difference between the reconstructed turbulence field and the original turbulence field, but also evaluates the difference between the feature maps at different levels of the pre-trained network, thereby ensuring that the flow field information from macro to micro scales can be accurately reconstructed.
[0022] The generator network includes a downsampling module, a fast Fourier residual module, and an upsampling module. The downsampling module is used to perform feature extraction and dimensionality reduction operations on the input first damaged turbulent field. The fast Fourier residual module is used to extract high-level features of the turbulent field in the wavenumber space. The upsampling module is used to remap the high-level features back to the spatial size of the original flow field and restore detail information.
[0023] The step of inputting the first damaged turbulence field and the second mask into a generator network, outputting a complete first reconstructed turbulence field, and superimposing the first reconstructed turbulence field with the first mask to obtain a reconstructed second damaged turbulence field specifically includes:
[0024] The first damaged turbulence field and the second mask are calculated by the downsampling module, the fast Fourier residual module, and the upsampling module in sequence, and the first reconstructed turbulence field is output, and the first reconstructed turbulence field is superimposed with the first mask to obtain a reconstructed second damaged turbulence field;
[0025] The generator network compares the second damaged turbulent field with the first damaged turbulent field and calculates the traditional pixel mean square error loss function L pix .
[0026] In this case, the downsampling module reduces the spatial resolution of the input turbulent field data and extracts high-level flow field features. The fast Fourier residual module is conducive to improving the reconstruction effect of the high-wavenumber region information of the turbulent field. Through the deconvolution operation, the upsampling module can gradually increase the turbulent field data size and reduce the number of channels, thereby gradually restoring the details and structure of the turbulent field, and thus more accurately restore the structure of the damaged turbulent field.
[0027] Wherein, before the step of calculating the loss function of the network framework according to the second damaged turbulent field and the first damaged turbulent field and adjusting the network parameters, the method includes:
[0028] Inputting the second damaged turbulent flow field and the first damaged turbulent flow field into a discriminator network;
[0029] The discriminator network divides the second damaged turbulent flow field and the first damaged turbulent flow field into a plurality of local flow field regions;
[0030] The local flow field area is subjected to feature extraction and representation learning through the discriminator network;
[0031] The discriminator network calculates a local discrimination result according to each of the local flow field regions;
[0032] The local discrimination results are aggregated by an aggregation method and an overall discrimination result is calculated. The overall discrimination result is used to judge the authenticity of the second damaged turbulent flow field. The overall discrimination result is also used to calculate the adversarial loss function. L adv .
[0033] In this case, the local details of the reconstructed turbulent field (the second damaged turbulent field) can be evaluated and improved by the discriminator network, and acted on each iteration process to promote the generator network to generate more realistic flow field data.
[0034] The present invention also provides a system for reconstructing missing information of a damaged turbulent flow field, wherein the damaged turbulent flow field includes a damaged area and an intact area, and the system includes:
[0035] A data preprocessing module, configured to generate a first mask according to the shape and distribution of the damaged area, wherein the 0-value area of the first mask covers all the damaged area, and randomly generate a second mask according to the first mask, wherein the 0-value area of the second mask covers part of the intact area, and the 0-value areas of the first mask and the second mask do not overlap each other, and superimpose the first mask with the damaged turbulent field to obtain a preprocessed first damaged turbulent field;
[0036] A generator network module, configured to input the first damaged turbulence field and the second mask, and output a complete first reconstructed turbulence field, and superimpose the first reconstructed turbulence field with the first mask to obtain a reconstructed second damaged turbulence field;
[0037] A training module, calculating a loss function of a network framework according to the second damaged turbulence field and the first damaged turbulence field and adjusting network parameters, iterating a process from generating the second mask to calculating the loss function according to the second damaged turbulence field and the first damaged turbulence field and adjusting network parameters until network training converges;
[0038] The reconstruction module is used to input the damaged turbulence field into the generator network module after the training convergence of the network framework to obtain the complete turbulence field after preprocessing.
[0039] In this case, the randomly generated second mask is used in the network training process, and the training is repeated and the network parameters are continuously adjusted until the loss function converges, so as to enhance the generator network's ability to recognize damaged areas and generalize to different forms of damage, significantly improving the reconstruction effect of the original damaged turbulent field.
[0040] Among them, when the pixel mean square error or network-level feature map mean square error between the second damaged turbulent field and the first damaged turbulent field is less than a threshold, the network training reaches convergence.
[0041] Among them, it also includes a discriminator module for calculating the adversarial loss function of the network framework L adv ;
[0042] The generator network module is also used to compare the second damaged turbulent field with the first damaged turbulent field and calculate the traditional pixel mean square error loss function L pix ;
[0043] The training module includes the pre-trained network, and the zeroth module, the first module, the second module, the third module, the fourth module and the fifth module are set in sequence, and the feature mappings of the second damaged turbulent field and the first damaged turbulent field in the first module, the second module, the third module and the fourth module are calculated, and the mean square errors MSE1, MSE2, MSE3 and MSE4 of the feature mappings of the corresponding modules are calculated, and then the weighted average is calculated. ;
[0044] The loss function is a hybrid loss function L final = αL pix + βL adv + γL fm ,in, α , β , γ is the weight coefficient.
[0045] In this case, the hybrid loss function combines the weighted average of the traditional pixel mean square error and the network-level feature map mean square error. The network-level feature map mean square error is used to evaluate the gap between the reconstructed turbulent field and the original turbulent field in the feature maps at different levels of the pre-trained network, thereby ensuring that the different spatial scale information of the reconstructed turbulent field and the original turbulent field remain consistent. It overcomes the problem that the traditional pixel mean square error loss function alone can only ensure the reconstruction of large-scale turbulent structures. It not only considers the overall difference between the reconstructed turbulent field (the second damaged turbulent field) and the original turbulent field (the first damaged turbulent field), but also evaluates the difference between the feature maps at different levels of the pre-trained network, thereby ensuring that the flow field information from macro to micro scales can be accurately reconstructed.
[0046] The generator network module includes a downsampling module, a fast Fourier residual module, and an upsampling module. The downsampling module is used to perform feature extraction and dimensionality reduction operations on the input first damaged turbulent field. The fast Fourier residual module is used to extract high-level features of the turbulent field in the wavenumber space. The upsampling module is used to remap the high-level features back to the spatial size of the original turbulent field and restore detail information.
[0047] The first damaged turbulence field and the second mask are calculated by the downsampling module, the fast Fourier residual module, and the upsampling module in sequence, and the first reconstructed turbulence field is output.
[0048] In this case, the downsampling module reduces the spatial resolution of the input turbulent field data and extracts high-level flow field features. The fast Fourier residual module is conducive to improving the reconstruction effect of the high-wavenumber region information of the turbulent field. Through the deconvolution operation, the upsampling module can gradually increase the turbulent field data size and reduce the number of channels, thereby gradually restoring the details and structure of the turbulent field, and thus more accurately restore the structure of the damaged turbulent field.
[0049] Among them, the discriminator network module is used to input the second damaged turbulent field and the first damaged turbulent field, divide the second damaged turbulent field and the first damaged turbulent field into a number of local flow field areas, and the local flow field areas are feature extracted and represented by the discriminator network module. The discriminator network module calculates the local discrimination result according to each of the local flow field areas, summarizes the local discrimination results by an aggregation method and calculates the overall discrimination result, and the overall discrimination result is used to judge the authenticity of the second damaged turbulent field. The overall discrimination result is also used to calculate the adversarial loss function L adv .
[0050] In this case, the local details of the reconstructed turbulent field (the second damaged turbulent field) can be evaluated and improved by the discriminator network, and acted on each iteration process to promote the generator network to generate more realistic flow field data.
[0051] According to the method and system for reconstructing missing information of a damaged turbulent field provided by the present invention, the second mask randomly generated according to the first mask is used in the training process of the network, which significantly enhances the generator network's ability to identify damaged areas and generalize different forms of damage. The generative adversarial network architecture provided by the present invention combines the generator network with the discriminator network. The generator network can extract high-wavenumber features of turbulent field data, and the discriminator network can focus on evaluating and improving the local details of the reconstructed turbulent field. When calculating the loss function, a novel network-level error loss function is introduced, that is, a mixed loss function is used, which not only considers the overall difference between the reconstructed turbulent field and the original turbulent field, but also evaluates the difference between the feature mappings of the two at different levels of the pre-trained network, thereby ensuring that the flow field information from the macroscopic to the microscopic scale can be accurately reconstructed. This semi-supervised learning strategy makes it unnecessary for network training to rely on complete turbulent field data. By utilizing the local information of the turbulent field and the mask generated by the data preprocessing module, the present invention can achieve efficient network training and parameter optimization using only damaged turbulent field data. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram showing a process of a method for reconstructing missing information of a damaged turbulent flow field according to an embodiment of the present invention is shown;
[0053] Figure 2 A schematic diagram showing a first mask of a method for reconstructing missing information of a damaged turbulent flow field according to an embodiment of the present invention and a corresponding second mask with two different proportions of zero-value regions;
[0054] Figure 3 A schematic diagram showing the structure of a pre-trained network of a method for reconstructing missing information of a damaged turbulent flow field according to an embodiment of the present invention is shown;
[0055] Figure 4 A schematic diagram showing the structure of a generator network of a method for reconstructing missing information of a damaged turbulent flow field according to an embodiment of the present invention is shown;
[0056] Figure 5 A schematic diagram showing the division of local flow field regions in a method for reconstructing missing information of a damaged turbulent flow field according to an embodiment of the present invention is shown;
[0057] Figure 6 A schematic diagram of a discriminator network of a method for reconstructing missing information of a damaged turbulent flow field according to an embodiment of the present invention is shown;
[0058] Figure 7 A schematic structural diagram of a system for reconstructing missing information of a damaged turbulent flow field according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0059] Hereinafter, with reference to the accompanying drawings, the preferred embodiments of the present invention will be described in detail. In the following description, the same symbols are given to the same components, and repeated descriptions are omitted. In addition, the accompanying drawings are only schematic diagrams, and the ratio of the dimensions between the components or the shapes of the components may be different from the actual ones.
[0060] like Figure 1 As shown, the present invention provides a method for reconstructing missing information of a damaged turbulent flow field, wherein the damaged turbulent flow field includes a damaged area and an intact area, and the method includes:
[0061] 100. Generate a first mask according to the shape and distribution of the damaged area, wherein the first mask includes a 0-value area with a pixel value of 0 and a non-0 area with a pixel value of 1, and the 0-value area of the first mask covers all the damaged areas;
[0062] 101. Randomly generate a second mask according to the first mask, wherein the second mask includes a 0-value region with a pixel value of 0 and a non-0 region with a pixel value of 1, the 0-value region of the second mask covers part of the intact region, and the 0-value regions of the first mask and the second mask do not overlap each other;
[0063] 102. Superimpose the first mask and the damaged turbulent flow field to obtain a preprocessed first damaged turbulent flow field;
[0064] 103. Input the first damaged turbulence field and the second mask into a generator network, output a complete first reconstructed turbulence field, and superimpose the first reconstructed turbulence field and the first mask to obtain a reconstructed second damaged turbulence field;
[0065] 104. Calculate the loss function of the network framework according to the second damaged turbulent field and the first damaged turbulent field and adjust network parameters;
[0066] 105. Iterate the operation from randomly generating the second mask to calculating the loss function and adjusting the network parameters. In other words, repeat steps 101 to 105 until the network training converges;
[0067] 106. After preprocessing, the damaged turbulent field is input into the trained and converged generator network to obtain a complete turbulent field.
[0068] In this case, the randomly generated second mask is used in the network training process, and the training is repeated and the network parameters are continuously adjusted until the loss function converges, so as to enhance the generator network's ability to recognize damaged areas and generalize to different forms of damage, significantly improving the reconstruction effect of the original damaged turbulent field.
[0069] In this embodiment, when the pixel mean square error or network-level feature map mean square error between the second damaged turbulent field and the first damaged turbulent field is less than a threshold, the network training reaches convergence.
[0070] In this embodiment, according to the specific damaged turbulent field, the first mask is uniquely determined, and the second mask is randomly generated during the training process. The reconstruction effect is evaluated by comparing the damaged turbulent field and the complete turbulent field, and the proportion of the 0-value area corresponding to the second mask is adjusted according to the reconstruction effect of the complete turbulent field. Therefore, the reconstruction effect of the complete turbulent field can be significantly improved by adaptively adjusting the proportion of the 0-value area of the second mask.
[0071] In some examples, such as Figure 2 As shown, 200 is the first mask generated based on the damaged area of the original turbulent field. According to the specific damaged turbulent field, the first mask is uniquely determined, and the 0-value area of the first mask accurately covers all damaged areas in the flow field. Thus, accurate area indication is provided for subsequent flow field reconstruction. For ease of understanding, the 0-value area of the first mask 200 adopts a square shape of the same size. In some examples, the number, position and shape of the 0-value area of the first mask should be determined according to the damaged area of the original damaged turbulent field, and the shapes vary.
[0072] like Figure 2 As shown, 201 and 202 are second masks with different proportions of two types of 0-value areas corresponding to the first mask 200. The second mask (201 and 202) is randomly generated based on the first mask 200, wherein the proportion of 0-value areas can be appropriately adjusted according to the reconstruction effect. The 0-value areas of the first mask 200 and the second mask (201 and 202) do not overlap each other.
[0073] In this embodiment, the intact region is a region where the turbulent field structure is intact. The 0-value region of the second mask (201 and 202) is randomly distributed in the intact region of the turbulent field.
[0074] In some examples, network parameters can include weights and biases of filters and neurons.
[0075] In this embodiment, when the mean square error of the pixel points of the second damaged turbulent field and the first damaged turbulent field or the mean square error of the network-level feature map is less than a threshold, the network training reaches convergence. In other words, during the network training process, by setting a suitable threshold for the physical quantity of focus, the physical quantity can be the mean square error of the reconstructed turbulent field (the second damaged flow field) and the original turbulent field (the first damaged flow field) in the second mask 0 value area, when the physical quantity reaches the threshold, the training is considered to have converged.
[0076] In some examples, during the network training process, it is necessary to closely monitor the changes in the network's loss function and the reconstruction effect, and adjust the network structure and the weight of the loss function when necessary to ensure the final reconstruction quality.
[0077] In this embodiment, step 104 specifically includes:
[0078] Compare the second damaged turbulent field with the first damaged turbulent field and calculate the traditional pixel mean square error loss function L pix ;
[0079] Calculate the adversarial loss function of the network framework L adv ;
[0080] The second damaged turbulence field and the first damaged turbulence field are input into a pre-trained network, and the pre-trained network sequentially sets the zeroth module, the first module, the second module, the third module, the fourth module and the fifth module, calculates the feature mappings of the second damaged turbulence field and the first damaged turbulence field in the first module, the second module, the third module and the fourth module, and calculates the mean square error MSE1, MSE2, MSE3, MSE4 of each of the feature mappings, and then calculates the weighted average ;
[0081] The loss function is a hybrid loss function L final = αL pix + βL adv + γL fm ,in, α , β , γ is the weight coefficient.
[0082] In this case, the hybrid loss function combines the weighted average of the traditional pixel mean square error and the network-level feature map mean square error. The network-level feature map mean square error is used to evaluate the gap between the reconstructed turbulent field and the original turbulent field in the feature maps at different levels of the pre-trained network, thereby ensuring that the different spatial scale information of the reconstructed turbulent field and the original turbulent field remain consistent. It overcomes the problem that the traditional pixel mean square error loss function alone can only ensure the reconstruction of large-scale turbulent structures. It not only considers the overall difference between the reconstructed turbulent field (the second damaged turbulent field) and the original turbulent field (the first damaged turbulent field), but also evaluates the difference between the feature maps at different levels of the pre-trained network, thereby ensuring that the flow field information from macro to micro scales can be accurately reconstructed.
[0083] In some examples, such as Figure 3 As shown, the pre-trained network sequentially sets the zeroth module 300, the first module 301, the second module 302, the third module 303, the fourth module 304 and the fifth module 305. The second damaged turbulent field and the first damaged turbulent field are respectively input into the pre-trained network, and the feature map and mean square error MSE1 in the first module 301, the feature map and mean square error MSE2 in the second module 302, the feature map and mean square error MSE3 in the third module 303, and the feature map and mean square error MSE4 in the fourth module 304 are sequentially calculated. In this case, only the feature map and mean square error of the first module 301, the second module 302, the third module 303, and the fourth module 304 are calculated, which saves the calculation cost and highlights the high-level features of the turbulent field.
[0084] In this embodiment, the pre-trained network adopts the VGG-16 network model.
[0085] In some examples, such as Figure 4 As shown, the generator network 400 includes a downsampling module 402, a fast Fourier residual module 403, and an upsampling module 404. The downsampling module 402 is used to perform feature extraction and dimensionality reduction operations on the input first damaged turbulent field 401. The fast Fourier residual module 403 is used to extract high-level features of the turbulent field in the wave number space. The upsampling module 404 is used to remap the high-level features back to the spatial size of the original flow field and restore the detail information.
[0086] Step 103 specifically includes:
[0087] The first damaged turbulence field 401 and the second mask 201 are calculated by the downsampling module 402, the fast Fourier residual module 403, and the upsampling module 404 in sequence, and the first reconstructed turbulence field 405 is output, and the first reconstructed turbulence field 405 is superimposed with the first mask 200 to obtain a reconstructed second damaged turbulence field;
[0088] The generator network 400 compares the second damaged turbulent field with the first damaged turbulent field 401 and calculates the traditional pixel mean square error loss function L pix .
[0089] In this case, the downsampling module reduces the spatial resolution of the input turbulent field data and extracts high-level flow field features. The fast Fourier residual module is conducive to improving the reconstruction effect of the high-wavenumber region information of the turbulent field. Through the deconvolution operation, the upsampling module can gradually increase the turbulent field data size and reduce the number of channels, thereby gradually restoring the details and structure of the turbulent field, and thus more accurately restore the structure of the damaged turbulent field.
[0090] In some examples, the downsampling module consists of a series of convolutional layers and pooling layers, which reduce the spatial resolution of the input turbulent field data and extract high-level flow field features. Through multiple convolution and pooling operations, the downsampling module can gradually reduce the size of the turbulent field data and increase the number of channels to obtain a higher-level feature representation.
[0091] In some examples, the fast Fourier residual module may include multiple feed-forward network units similar to ResNet, and also include 2 fast Fourier convolutions (FFCs). The fast Fourier residual module is used to extract information about the turbulent field in the wavenumber space, which is beneficial to improve the reconstruction effect of the information in the high wavenumber region of the turbulent field.
[0092] In some examples, the upsampling module consists of a series of deconvolution layers and convolution layers. The upsampling module remaps the high-level features extracted by the residual module back to the spatial size of the original turbulent field and restores the detail information. Through the deconvolution operation, the upsampling module can gradually increase the turbulent field data size and reduce the number of channels, thereby gradually restoring the details and structure of the turbulent field.
[0093] In some examples, before step 104, the method further includes:
[0094] Inputting the second damaged turbulent flow field and the first damaged turbulent flow field into a discriminator network;
[0095] The discriminator network divides the second damaged turbulent flow field and the first damaged turbulent flow field into a plurality of local flow field regions;
[0096] The local flow field area is subjected to feature extraction and representation learning through the discriminator network;
[0097] The discriminator network calculates a local discrimination result according to each of the local flow field regions;
[0098] The local discrimination results are aggregated by an aggregation method and an overall discrimination result is calculated. The overall discrimination result is used to judge the authenticity of the second damaged turbulent flow field. The overall discrimination result is also used to calculate the adversarial loss function. L adv .
[0099] In this case, the local details of the reconstructed turbulent field (the second damaged turbulent field) can be evaluated and improved by the discriminator network, and acted on each iteration process to promote the generator network to generate more realistic flow field data.
[0100] In some examples, such as Figure 5 As shown, the turbulent field 501 is divided into a plurality of local flow field regions 5011. The turbulent field 501 includes the second damaged turbulent field and the first damaged turbulent field. In this embodiment, the turbulent field 501 is divided into 16 non-overlapping local flow field regions of the same size. In some examples, the local flow field regions may be overlapping or non-overlapping, and the size of each local flow field region may be adjusted according to the specific application.
[0101] In some examples, such as Figure 6 As shown, each local flow field area 5011 is subjected to feature extraction and representation learning through a discriminator network. The discriminator network 500 is composed of a plurality of convolutional layers 502. Each convolutional layer 502 uses a learnable convolution kernel to extract features of a local flow field area. Pooling layers, batch normalization layers, and activation functions (such as LeakyReLU) may be included between the convolutional layers 502. Thus, the representation and discrimination capabilities of the network may be enhanced. For each local flow field area 5011, the discriminator network 500 generates a local discrimination result. These local discrimination results may be binary classifications (true / false) or probability values, indicating the probability that the local flow field area is a real flow field. In this embodiment, the output of the discriminator network 500 is a two-dimensional array 503 containing binary labels. When the corresponding values of each local flow field region 5011 in the two-dimensional array 503 are all 1, it indicates that the authenticity of the reconstructed flow field is high. When the corresponding values of each local flow field region 5011 in the two-dimensional array 503 are all 0, it indicates that the authenticity of the reconstructed flow field is low.
[0102] In this embodiment, the discriminator network adopts the PatchGAN discriminator network. In this way, the local details and structural information of the turbulent field can be captured, so that the discriminator network can more carefully evaluate the authenticity of the reconstructed flow field. The PatchGAN discriminator network summarizes all local discrimination results through global pooling, fully connected layers or other aggregation methods. The final discrimination result is a score representing the authenticity of the flow field.
[0103] The present invention also provides a system 600 for reconstructing missing information of a damaged turbulent flow field. The damaged turbulent flow field includes a damaged area and an intact area. Figure 7 As shown, the system 600 includes:
[0104] A data preprocessing module 601 is used to generate a first mask according to the shape and distribution of the damaged area, wherein the 0-value area of the first mask covers all the damaged areas, and randomly generate a second mask according to the first mask, wherein the 0-value area of the second mask covers part of the intact area, and the 0-value areas of the first mask and the second mask do not overlap each other, and the first mask is superimposed on the damaged turbulent field to obtain a preprocessed first damaged turbulent field;
[0105] A generator network module 602 is used to input the first damaged turbulence field and the second mask, and output a complete first reconstructed turbulence field, and superimpose the first reconstructed turbulence field with the first mask to obtain a reconstructed second damaged turbulence field;
[0106] A training module 604 is provided for calculating a loss function of a network framework according to the second damaged turbulence field and the first damaged turbulence field and adjusting network parameters, and iterating the process from generating the second mask to calculating the loss function according to the second damaged turbulence field and the first damaged turbulence field and adjusting network parameters until the network training converges;
[0107] The reconstruction module 605 is used to input the damaged turbulence field into the generator network module after the network training converges, after preprocessing, to obtain a complete turbulence field.
[0108] In this case, the randomly generated second mask is used in the network training process, and the training is repeated and the network parameters are continuously adjusted until the loss function converges, so as to enhance the generator network's ability to recognize damaged areas and generalize to different forms of damage, significantly improving the reconstruction effect of the original damaged turbulent field.
[0109] In this embodiment, when the pixel mean square error or network-level feature map mean square error between the second damaged turbulent field and the first damaged turbulent field is less than a threshold, the network training reaches convergence.
[0110] In this embodiment, the system 600 further includes a discriminator module 603 for calculating the adversarial loss function of the network framework L adv .
[0111] The generator network module 602 is also used to compare the second damaged turbulent field with the first damaged turbulent field and calculate the traditional pixel mean square error loss function L pix ;
[0112] In this embodiment, if Figure 3 As shown, the training module 604 is configured with a pre-trained network. The pre-trained network sequentially sets the zeroth module 300, the first module 301, the second module 302, the third module 303, the fourth module 304 and the fifth module 305. The feature maps of the second damaged turbulent field and the first damaged turbulent field in the first module 301, the second module 302, the third module 303 and the fourth module 304 are calculated, and the mean square error MSE1, MSE2, MSE3 and MSE4 of each feature map are calculated, and then the weighted average is calculated. ;
[0113] The loss function is a hybrid loss function L final = αL pix + βL adv + γL fm ,in, α , β , γ is the weight coefficient.
[0114] In this case, the hybrid loss function combines the weighted average of the traditional pixel mean square error and the network-level feature map mean square error. The network-level feature map mean square error is used to evaluate the gap between the reconstructed turbulent field and the original turbulent field in the feature maps at different levels of the pre-trained network, thereby ensuring that the different spatial scale information of the reconstructed turbulent field and the original turbulent field remain consistent. It overcomes the problem that the traditional pixel mean square error loss function alone can only ensure the reconstruction of large-scale turbulent structures. It not only considers the overall difference between the reconstructed turbulent field (the second damaged turbulent field) and the original turbulent field (the first damaged turbulent field), but also evaluates the difference between the feature maps at different levels of the pre-trained network, thereby ensuring that the flow field information from macro to micro scales can be accurately reconstructed.
[0115] In this embodiment, the generator network module 602 configures the generator network. Figure 4As shown, the generator network 400 includes a downsampling module 402, a fast Fourier residual module 403, and an upsampling module 404. The downsampling module 402 is used to perform feature extraction and dimensionality reduction operations on the input first damaged turbulent field 401. The fast Fourier residual module 403 is used to extract high-level features of the turbulent field in the wavenumber space. The upsampling module 404 is used to remap the high-level features back to the spatial size of the original flow field and restore the detail information. The first damaged turbulent field 401 and the second mask 201 are calculated by the downsampling module 402, the fast Fourier residual module 403, and the upsampling module 404 in turn, and the first reconstructed turbulent field 405 is output. The first reconstructed turbulent field 405 is superimposed on the first mask 200 to obtain a reconstructed second damaged turbulent field.
[0116] In this case, the downsampling module reduces the spatial resolution of the input turbulent field data and extracts high-level flow field features. The fast Fourier residual module is conducive to improving the reconstruction effect of the high-wavenumber region information of the turbulent field. Through the deconvolution operation, the upsampling module can gradually increase the turbulent field data size and reduce the number of channels, thereby gradually restoring the details and structure of the turbulent field, and thus more accurately restore the structure of the damaged turbulent field.
[0117] In some examples, the downsampling module consists of a series of convolutional layers and pooling layers, which reduce the spatial resolution of the input turbulent field data and extract high-level flow field features. Through multiple convolution and pooling operations, the downsampling module can gradually reduce the size of the turbulent field data and increase the number of channels to obtain a higher-level feature representation.
[0118] In some examples, the fast Fourier residual module may include multiple feed-forward network units similar to ResNet, and also include 2 fast Fourier convolutions (FFCs). The fast Fourier residual module is used to extract information about the turbulent field in the wavenumber space, which is beneficial to improve the reconstruction effect of the information in the high wavenumber region of the turbulent field.
[0119] In some examples, the upsampling module consists of a series of deconvolution layers and convolution layers. The upsampling module remaps the high-level features extracted by the residual module back to the spatial size of the original flow field and restores the detail information. Through the deconvolution operation, the upsampling module can gradually increase the turbulence field data size and reduce the number of channels, thereby gradually restoring the details and structure of the turbulence field.
[0120] In some examples, the discriminator network module configures a discriminator network. The discriminator network is used to input the second damaged turbulent field and the first damaged turbulent field, and divide the second damaged turbulent field and the first damaged turbulent field into a number of local flow field regions. The local flow field regions are subjected to feature extraction and representation learning by the discriminator network module, and the discriminator network module calculates a local discrimination result based on each of the local flow field regions. The local discrimination results are summarized by an aggregation method and an overall discrimination result is calculated. The overall discrimination result is used to judge the authenticity of the second damaged turbulent field, and the overall discrimination result is also used to calculate the adversarial loss function L adv In this case, the local details of the reconstructed turbulent field (the second damaged turbulent field) can be evaluated and improved by the discriminator network, and act on each iteration process to promote the generator network to generate more realistic flow field data.
[0121] In some examples, such as Figure 5 As shown, the turbulent field 501 is divided into a plurality of local flow field regions 5011. The turbulent field 501 includes the second damaged turbulent field and the first damaged turbulent field. In this embodiment, the turbulent field 501 is divided into 16 non-overlapping local flow field regions of the same size. In some examples, the local flow field regions may be overlapping or non-overlapping, and the size of each local flow field region may be adjusted according to the specific application.
[0122] In some examples, such as Figure 6 As shown, each local flow field area 5011 is subjected to feature extraction and representation learning through the discriminator network 500. The discriminator network 500 is composed of multiple convolutional layers 502. Each convolutional layer 502 uses a learnable convolution kernel to extract features of the local flow field area. The convolutional layers 502 may include pooling layers, batch normalization layers, and activation functions (such as LeakyReLU), etc. In this way, the representation and discrimination capabilities of the network can be enhanced. For each local flow field area 5011, the discriminator network 500 generates a local discrimination result. These local discrimination results can be binary classifications (true / false) or probability values, indicating the probability that the local flow field area is a real flow field. In this embodiment, the output of the discriminator network 500 is a two-dimensional array 503 containing binary labels. When the corresponding values of each local flow field region 5011 in the two-dimensional array 503 are all 1, it indicates that the authenticity of the reconstructed flow field is high. When the corresponding values of each local flow field region 5011 in the two-dimensional array 503 are all 0, it indicates that the authenticity of the reconstructed flow field is low.
[0123] In this embodiment, the discriminator network adopts the PatchGAN discriminator network. In this way, the local details and structural information of the turbulent field can be captured, so that the discriminator network can more carefully evaluate the authenticity of the reconstructed flow field. The PatchGAN discriminator network summarizes all local discrimination results through global pooling, fully connected layers or other aggregation methods. The final discrimination result is a score representing the authenticity of the flow field. The above-described implementation does not constitute a limitation on the scope of protection of the technical solution. Any modifications, equivalent replacements and improvements made within the spirit and principles of the above-mentioned implementation methods should be included in the scope of protection of the technical solution.
Claims
1. A method for reconstructing missing information of a damaged turbulent flow field, characterized in that: The damaged turbulent flow field includes a damaged area and an intact area, and the method includes: generating a first mask according to the shape and distribution of the damaged area, wherein the first mask includes a 0-value area with a pixel value of 0 and a non-0 area with a pixel value of 1, and the 0-value area of the first mask covers all the damaged area; randomly generating a second mask according to the first mask, wherein the second mask includes a 0-value region with a pixel value of 0 and a non-0 region with a pixel value of 1, the 0-value region of the second mask covers part of the intact region, and the 0-value regions of the first mask and the second mask do not overlap each other; Superimposing the first mask and the damaged turbulent flow field to obtain a preprocessed first damaged turbulent flow field; Inputting the first damaged turbulence field and the second mask into a generator network, outputting a complete first reconstructed turbulence field, and superimposing the first reconstructed turbulence field with the first mask to obtain a reconstructed second damaged turbulence field; Calculate the loss function of the network framework and adjust the network parameters according to the second damaged turbulent field and the first damaged turbulent field; Iterate the process from generating the second mask to calculating the loss function according to the second damaged turbulent field and the first damaged turbulent field and adjusting the network parameters until the network training converges; The damaged turbulent field is preprocessed and then input into the trained and converged generator network to obtain a complete turbulent field.
2. The method for reconstructing missing information of a damaged turbulent flow field according to claim 1, characterized in that: According to the specific damaged turbulence field, the first mask is uniquely determined, and the second mask is randomly generated during the training process. The reconstruction effect is evaluated by comparing the damaged turbulence field and the complete turbulence field. The proportion of the 0-value area corresponding to the second mask is adjusted according to the reconstruction effect of the complete turbulence field.
3. The method for reconstructing missing information of a damaged turbulent flow field according to claim 1, characterized in that: The step of calculating the loss function of the network framework and adjusting the network parameters according to the second damaged turbulent field and the first damaged turbulent field specifically includes: Compare the second damaged turbulent field with the first damaged turbulent field and calculate the traditional pixel mean square error loss function L pix ; Calculate the adversarial loss function of the network framework L adv ; The second damaged turbulence field and the first damaged turbulence field are input into a pre-trained network, and the pre-trained network sequentially sets the zeroth module, the first module, the second module, the third module, the fourth module and the fifth module, calculates the feature mappings of the second damaged turbulence field and the first damaged turbulence field in the first module, the second module, the third module and the fourth module, and calculates the mean square errors MSE1, MSE2, MSE3 and MSE4 of the feature mappings of the corresponding modules, and then calculates the weighted average ; The loss function is a hybrid loss function L final = αL pix + βL adv + γL fm ,in, α , β , γ is the weight coefficient.
4. The method for reconstructing missing information of a damaged turbulent flow field according to claim 3, characterized in that: The generator network includes a downsampling module, a fast Fourier residual module, and an upsampling module, wherein the downsampling module is used to perform feature extraction and dimension reduction operations on the input first damaged turbulent field, the fast Fourier residual module is used to extract high-level features of the turbulent field in the wave number space, and the upsampling module is used to remap the high-level features back to the spatial size of the original turbulent field and restore detail information; The step of inputting the first damaged turbulence field and the second mask into a generator network, outputting a complete first reconstructed turbulence field, and superimposing the first reconstructed turbulence field with the first mask to obtain a reconstructed second damaged turbulence field specifically includes: The first damaged turbulence field and the second mask are calculated by the downsampling module, the fast Fourier residual module, and the upsampling module in sequence, and the first reconstructed turbulence field is output, and the first reconstructed turbulence field is superimposed with the first mask to obtain a reconstructed second damaged turbulence field; The generator network compares the second damaged turbulent field with the first damaged turbulent field and calculates the traditional pixel mean square error loss function L pix .
5. The method for reconstructing missing information of a damaged turbulent flow field according to claim 3, characterized in that: Before the step of calculating the loss function of the network framework according to the second damaged turbulent field and the first damaged turbulent field and adjusting the network parameters, the method includes: Inputting the second damaged turbulent flow field and the first damaged turbulent flow field into a discriminator network; The discriminator network divides the second damaged turbulent flow field and the first damaged turbulent flow field into a plurality of local flow field regions; The local flow field area is subjected to feature extraction and representation learning through the discriminator network; The discriminator network calculates a local discrimination result according to each of the local flow field regions; The local discrimination results are aggregated by an aggregation method and an overall discrimination result is calculated. The overall discrimination result is used to judge the authenticity of the second damaged turbulent flow field. The overall discrimination result is also used to calculate the adversarial loss function. L adv .
6. A system for reconstructing missing information of a damaged turbulent flow field, characterized in that: The damaged turbulent flow field includes a damaged area and an intact area, and the system includes: A data preprocessing module, used for generating a first mask according to the shape and distribution of the damaged area, wherein the first mask includes a 0-value area with a pixel value of 0 and a non-0 area with a pixel value of 1, and the 0-value area of the first mask covers all the damaged areas; randomly generating a second mask according to the first mask, wherein the second mask includes a 0-value area with a pixel value of 0 and a non-0 area with a pixel value of 1, and the 0-value area of the second mask covers part of the intact area, and the 0-value areas of the first mask and the second mask do not overlap with each other; superimposing the first mask with the damaged turbulent field to obtain a preprocessed first damaged turbulent field; A generator network module, configured to input the first damaged turbulence field and the second mask, and output a complete first reconstructed turbulence field, and superimpose the first reconstructed turbulence field with the first mask to obtain a reconstructed second damaged turbulence field; A training module, calculating a loss function of a network framework according to the second damaged turbulent field and the first damaged turbulent field and adjusting network parameters, iterating a process from generating the second mask to calculating the loss function according to the second damaged turbulent field and the first damaged turbulent field and adjusting network parameters until network training converges; The reconstruction module is used to input the damaged turbulence field into the generator network module after the training converges to obtain the complete turbulence field after preprocessing.
7. The system for reconstructing missing information of a damaged turbulent flow field according to claim 6, characterized in that: When the pixel mean square error or network-level feature map mean square error between the second damaged turbulent field and the first damaged turbulent field is less than a threshold, the network training reaches convergence.
8. The system for reconstructing missing information of a damaged turbulent flow field according to claim 6, characterized in that: It also includes a discriminator module for calculating the adversarial loss function of the network framework L adv ; The generator network module is also used to compare the second damaged turbulent field with the first damaged turbulent field and calculate the traditional pixel mean square error loss function L pix ; The pre-trained network configured by the training module sequentially sets the zeroth module, the first module, the second module, the third module, the fourth module and the fifth module, calculates the feature mappings of the second damaged turbulent field and the first damaged turbulent field in the first module, the second module, the third module and the fourth module, and calculates the mean square errors MSE1, MSE2, MSE3 and MSE4 of the feature mappings of the corresponding modules, and then calculates the weighted average value ; The loss function is a hybrid loss function L final = αL pix + βL adv + γL fm ,in, α , β , γ is the weight coefficient.
9. The system for reconstructing missing information of a damaged turbulent flow field according to claim 8, characterized in that: The generator network module includes a downsampling module, a fast Fourier residual module, and an upsampling module. The downsampling module is used to perform feature extraction and dimension reduction operations on the input first damaged turbulent field. The fast Fourier residual module is used to extract high-level features of the turbulent field in the wave number space. The upsampling module is used to remap the high-level features back to the spatial size of the original turbulent field and restore detail information. The first damaged turbulence field and the second mask are calculated by the downsampling module, the fast Fourier residual module, and the upsampling module in sequence, and the first reconstructed turbulence field is output.
10. The system for reconstructing missing information of a damaged turbulent flow field according to claim 8, characterized in that: The discriminator module is used to input the second damaged turbulent field and the first damaged turbulent field, divide the second damaged turbulent field and the first damaged turbulent field into a number of local flow field areas, and the local flow field areas are subjected to feature extraction and representation learning by the discriminator module. The discriminator module calculates a local discrimination result according to each of the local flow field areas, and summarizes the local discrimination results by an aggregation method and calculates an overall discrimination result, and the overall discrimination result is used to judge the authenticity of the second damaged turbulent field, and the overall discrimination result is also used to calculate the adversarial loss function L adv .
