Ocean particle image velocity measurement method based on unsupervised learning and attention mechanism
Through the None-FlowNet2SD-GCA neural network of unsupervised learning and improved CA attention mechanism, the problem of insufficient accuracy of the particle image velocity measurement method based on supervised learning in real scenes is solved, and high efficiency in seabed flow field detection is achieved. prediction, significantly better than traditional methods.
Patent Information
- Application Number
- CN202410650559.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-24
AI Technical Summary
The existing particle image velocimetry method based on supervised learning is difficult to obtain accurate results in real scenarios, and the difference between artificially synthesized data sets and real application scenarios limits the practicality of the model.
The unsupervised learning method is combined with the improved CA attention mechanism, and the particle image velocity is measured through the None-FlowNet2SD-GCA neural network. The unsupervised loss function and the improved attention module are used to improve the feature extraction capability of the model, which is suitable for submarine flow field detection. .
The prediction accuracy and stability of the model are significantly improved in complex flow field environments, which is superior to traditional PIV methods and methods based on supervised learning. It has potential advantages and prospects, especially in applications in real environments.
Smart Images

Figure CN118628759A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of ocean particle image speed measurement methods, and specifically relates to an ocean particle image speed measurement method based on unsupervised learning and attention mechanism. Background Art
[0002] Particle image velocimetry (PIV) technology is one of the mainstream measurement methods in experimental fluid mechanics. It can be used to detect flow fields in complex marine environments and to quantitatively measure marine flow fields. It can also be used to measure the flow volume of natural gas. Before using particle image velocimetry technology for detection, we need to sprinkle tracer particles into the detection environment and illuminate the environment. In the experiment, lasers are usually used to illuminate particles to obtain image information of the environment at the moment.
[0003] By comparing two images taken at adjacent time intervals, the flow field information of the environment at the moment can be inferred. There are two main traditional methods for calculating flow field information, namely the cross-correlation method and the variational optical flow method. The cross-correlation method sets two query windows in two adjacent frames of images and determines the displacement of particles by calculating the maximum cross-correlation. WIDIM (Window Deformation Iterative Multi-grid) efficiently implements flow field prediction using the cross-correlation method, but it only outputs a low-resolution flow field image. Horn and Schunck (HS) proposed the variational optical flow method, which has been proven to be able to calculate the flow field. It achieves flow field prediction by optimizing the solution and finding the minimization of the objective function. Compared with the cross-correlation method, this method can output a displacement field with a larger resolution, but its optimization process is very time-consuming. Li et al. proposed differential PIV, using the streamline segments of the stable flow to explain the curved trajectory of the particles, using the deformation vector field instead of the velocity field to distort the image, and keeping the same other processes as the traditional iterative PIV, which provides a new idea for measuring more complex flow fields.
[0004] The rapid development of deep learning has brought new research directions to PIV. It can transform the problem of calculating flow fields in traditional methods into the problem of predicting flow fields by artificial intelligence by inputting two frames of adjacent particle images. This belongs to the field of computer vision. Many scholars have devoted themselves to the research of using neural networks to predict flow fields, most of which are supervised learning methods. Rabault et al. verified from the conceptual level that neural networks can be competent for end-to-end prediction of flow fields. They performed end-to-end flow field prediction on models with convolutional neural networks and fully connected neural networks, but the quality of the final prediction results cannot be compared with traditional methods, and the application scenarios considered are relatively simple. Fan et al. proposed a particle image preprocessing method and designed a word bilateral convolutional network. The network used residual learning and batch normalization, and used the WIDIM algorithm to calculate the processed particle images to obtain a high-precision velocity field. Sehyeok et al. proposed a new architecture for predicting the rotor thrust of unmanned aerial vehicles. For the first time, a generative adversarial network was used for instantaneous flow field prediction, and then a deep convolutional neural network was used to predict the instantaneous rotor thrust from the flow field. The results showed that the architecture was 600 times faster than the cross-correlation PIV method. But its generalization ability may be limited. The lack of testing on different types of datasets may affect the practicality and applicability of the algorithm. Zhang et al. proposed an end-to-end convolutional neural network PIV PWCNet, which can reconstruct dense velocity fields from particle image pairs, thereby improving the accuracy and stability of the algorithm.
[0005] In the field of optical flow prediction, neural networks predict the moving image of an object at this moment by predicting the displacement between two frames of images, which coincides with flow field prediction. Many scholars have also applied optical flow networks to the prediction of particle images. FlowNetS and FlowNetC convolutional neural networks are the first neural networks proposed for optical flow estimation. FlowNet2 is an improvement on FlowNet, which provides more accurate optical flow estimation. In order to reduce the number of parameters of the neural network, a lightweight neural network, LiteFlowNet, was born. Compared with FlowNet, it has fewer parameters and can achieve good accuracy. Li et al. proposed a new network architecture, the cascade network. Each layer uses the same network structure to achieve coarse-to-fine prediction accuracy, and the final result is comparable to the traditional PIV method, but its computational cost is high, the computational efficiency is low, and it cannot produce high-resolution prediction results.
[0006] Cai et al. proposed a supervised learning-based method, which designed a flow field prediction model PIV-FlowNet-en based on FlowNet. This model can output a higher-resolution flow field from two adjacent frames of particle images. The model has been verified by synthetic data and experimental data. Compared with the cross-correlation-based method, the model has higher resolution and higher efficiency. Liang et al. proposed a deep particle tracking network DeepPTV, which learns efficient fluid flow motion from two continuous dense particle sets and evaluates the flow field from large scale to small scale, and finally obtains satisfactory accuracy. The high efficiency of the network also makes it a promising method for implementing estimation and real-time flow control.
[0007] The CA attention mechanism (Coordinate attention) is an attention mechanism proposed in 2021. It cross-integrates the spatial information and channel information of the feature map, fully utilizes the connection between spatial information and channel information, and further enhances the feature selection ability of the neural network. Summary of the invention
[0008] In recent years, the use of deep learning methods for flow field prediction has been successful, making it possible to use artificial intelligence to get rid of traditional detection methods. A large number of scholars use supervised learning-based methods to train network models that can be used to predict flow fields. However, for flow fields, it is difficult to obtain very accurate real results. The use of artificial synthetic data sets has become the most feasible alternative, but the difference between synthetic data sets and real application scenarios limits the practicality of the model. The present invention adopts an unsupervised learning method to solve the problem of no real results, proposes a particle image velocimetry model based on unsupervised learning, and uses an attention mechanism to improve the feature extraction ability of the model. It can be used for the detection of submarine flow fields, which plays a key role in marine development and submarine biological research.
[0009] In view of the shortcomings of the prior art, the present invention aims to propose an ocean particle image velocimetry method based on unsupervised learning and attention mechanism.
[0010] The present invention comprises the following steps:
[0011] Step 1: Prepare the dataset and perform preprocessing
[0012] The data set contains particle image pairs under flow field conditions, and the flow field conditions specifically include the following flow field types: uniform flow, horizontal flow, receding flow, cylindrical flow, DNS turbulence, SQG sea surface flow, JHTDB-channel flow, JHTDB-mhd1024 turbulence, and JHTDB-iso-tropic1024 turbulence;
[0013] Among them, DNS turbulence represents uniform and isotropic flow; SQG sea surface flow represents sea surface flow driven by the quasi-geostrophic model; JHTDB-channel channel flow represents channel flow in the Johns Hopkins Turbulence Database; JHTDB-mhd1024 turbulence represents magnetohydrodynamic turbulence in the Johns Hopkins Turbulence Database; JHTDB-iso-tropic1024 turbulence represents forced isotropic turbulence in the Johns Hopkins Turbulence Database;
[0014] Step 2: Construct an unsupervised loss function
[0015] The two adjacent particle image pairs I1 and I2 are used as the input of the None-FlowNet2SD-GCA neural network, and then the forward flow field F from I1 to I2 is predicted by the None-FlowNet2SD-GCA neural network. f =(u f ,v f ) T , where u f ,v f are the velocity field components in the horizontal and vertical directions in the forward flow field respectively;
[0016] The reverse flow field F from I2 to I1 is also used in the unsupervised loss function. b =(u b ,v b ) T , where u b , v b are the velocity field components in the horizontal and vertical directions in the reverse flow field;
[0017] The unsupervised loss function L(I1,I2,F f ,F b )=λ P L P +λ S L S +λ C L C ;
[0018] Among them, L P Represents the luminosity loss, L S represents the smoothing loss, L C represents consistency loss;
[0019] Step 3: Construct the None-FlowNet2SD-GCA neural network and train it using the dataset described in step 1 and the unsupervised loss function described in step 2;
[0020] The None-FlowNet2SD-GCA neural network includes an encoder network and a decoder network, denoted as NetC and NetE respectively;
[0021] NetC consists of 6 convolutional modules, each of which contains a convolutional layer and an activation function layer. An improved attention module is set between the second and third convolutional modules.
[0022] The improved attention module consists of 7 layers, the first layer is a residual layer, the second layer includes an average pooling layer in the height direction and the width direction, and a global average pooling layer, thereby adding global information of the feature map; in the third layer, the average pooling layer in the height direction and the width direction of the second layer is spliced with the global average pooling layer, and then a convolution operation is performed; in the fourth layer, the output of the third layer is normalized and batched, and then another convolution operation is performed. The fifth layer is a convolution layer, the sixth layer is a sigmoid activation function layer, and the last layer is a recalculated weight layer.
[0023] The NetE is set after NetC to further process the features of the two images extracted by NetC;
[0024] The NetE consists of 5 layers. The first layer performs a deconvolution operation on the 6th convolution module of the NetC, performs an upsampling operation on the prediction stream obtained, and splices it with the 5th convolution module of NetC. The second layer performs a deconvolution operation on the 1st layer of NetE, performs an upsampling operation on the prediction stream obtained, and splices it with the 4th convolution module of NetC. The third layer performs a deconvolution operation on the output result of the 2nd layer, performs an upsampling operation on the prediction stream obtained, and splices it with the 3rd convolution module of NetC. The fourth layer performs a deconvolution operation on the output of the 3rd layer, performs an upsampling operation on the prediction stream obtained, and splices it with the 2nd convolution module of NetC. The fifth layer performs a deconvolution operation on the output of the 4th layer, performs an upsampling operation on the prediction stream obtained, and splices it with the 1st convolution module of NetC, and obtains the output through convolution operation and upsampling operation.
[0025] The backbone network of the None-FlowNet2SD-GCA neural network is Flownet2SD; the NetC is a flow convolutional neural network using shared weights to extract features of two images; the NetC has a pyramid structure; the upsampling is to upsample the final flow field velocity estimation to the original resolution using bilinear interpolation; the input of the flow field velocity estimation from I1 to I2 is (I1, I2), and the input of the flow field velocity estimation from I2 to I1 is (I2, I1).
[0026] Preferably, in step 2, the luminosity loss is related to the following factors: the loss of forward estimation and the loss of reverse estimation, and the specific formula is as follows:
[0027]
[0028] Where P is the function that maps each pixel in the image to its grayscale value, ρ() is the generalized Charbonnier penalty function, ρ=(x 2 +ε 2 ) γ , ρ() is a differentiable convex function.
[0029] The smooth loss uses a second-order smoothness constraint, defined as follows:
[0030]
[0031] Among them, N represents 4 channel filters, namely the x direction, the y direction and the two diagonal directions. Four channel filters are used to calculate the convolution of the two flow components, namely u in the x direction and v in the y direction, and then the Charbonnier loss is calculated.
[0032] The consistency loss function is defined as:
[0033]
[0034] Preferably, γ is set to 0.45 and ε is set to 10 -3 .
[0035] The present invention has the beneficial effects:
[0036] The present invention proposes a particle image velocimetry model based on unsupervised learning, and strengthens the connection between the global space and channels of the attention mechanism, and finally applies it to the model, thereby improving the model and improving the model's ability to cope with complex flow field environments. The proposed unsupervised model optimized by the attention mechanism has obvious competitiveness compared with both traditional PIV methods and recent supervised learning-based methods, and even outperforms them in some complex flow field environments, and has potential advantages and prospects in real environment operations.
[0037] This paper uses FlowNet2SD as the basic network architecture of the model, uses the improved CA attention mechanism (GCA attention mechanism) to improve the feature selection ability of convolutional neural networks, and uses unsupervised learning methods to solve the problem that there is no standard answer to the data set in the real scene and the problem that the artificial synthetic data set cannot be well applied to the real scene, and obtains a higher accuracy rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a structural diagram of the GCA module used in the present invention;
[0039] Figure 2 It is the unsupervised loss calculation process in the present invention; DETAILED DESCRIPTION
[0040] The present invention will be further described below in conjunction with the accompanying drawings.
[0041] The present invention adopts an unsupervised learning method to solve the problem of no real results, proposes a particle image velocimetry model based on unsupervised learning, and uses an attention mechanism to improve the feature extraction ability of the model. It can be used for the detection of submarine flow fields, which plays a key role in marine development and submarine biological research. It includes the following steps:
[0042] Step 1: Prepare the dataset and perform preprocessing
[0043] The dataset used in this paper is provided by Cai et al. The dataset is a simulated dataset, which is a pair of particle images under various flow conditions artificially generated based on computational fluid dynamics. The dataset contains particle image pairs under 8 different types of flow conditions, including uniform flow, horizontal flow, etc. In this paper, 70% of the data is used for training, and the other 30% is used for testing.
[0044] Step 2: Customize the unsupervised loss function
[0045] We use two adjacent particle image pairs I1 and I2 as the input of the neural network, and then use the neural network to predict the forward flow field F from I1 to I2 f =(u f ,v f ) T , where u f ,v f are the velocity field components in the horizontal and vertical directions respectively.
[0046] The backward prediction from the second frame to the first frame is used in our unsupervised loss, which we define as: F b =(u b ,v b ) T .
[0047] (2.1) Luminosity loss
[0048] The photometric loss is related to the difference between the first image and the warped second image of the forward estimated flow field and the difference between the second image and the warped first image using the backward estimate. Therefore, the bidirectional photometric loss is defined as the sum of the two:
[0049]
[0050] Where P is the function that maps each pixel in the image to its grayscale value, ρ(·) is the generalized Charbonnier penalty function, ρ = (x 2 +ε 2 ) γ , which is a convex function with good differentiability and robustness. In this paper, we set γ to 0.45 and ε to 10 -3 .
[0051] (2.2) Smoothing loss
[0052] Some particles in the image are incomplete. Some particles are at the edge of the first frame, but not in the second frame. Some particles are not in the first frame, but at the edge of the second frame. To solve this problem, we introduce smoothness loss. To enhance the regularization effect, we use a second-order smoothness constraint:
[0053]
[0054] Among them, N represents 4 channel filters, which are in the x direction, y direction and two diagonal directions. Therefore, the process here first calculates the convolution of the two flow components (u in the x direction and v in the y direction) using four channel filters respectively, and then calculates their Charbonnier loss.
[0055] (2.3) Consistency loss
[0056] In the absolute correct case, the forward estimate and the backward estimate should be consistent, that is, F f and F b are numbers with the same absolute value but opposite signs. Therefore, the sum of the two should be zero. Therefore, the consistency loss function can be defined as:
[0057]
[0058] (2.4) Final loss function
[0059] The final loss function is the sum of the above three loss functions multiplied by the corresponding weights. The function is defined as:
[0060] L(I1,I2,F f ,F b )=λ P L P +λ S L S +λ C L C
[0061] Step 3: None-FlowNet2SD-GCA neural network for image feature extraction
[0062] (3.1) Flownet2SD model with attention mechanism
[0063]
[0064] Table 1: Flownet2SD network model structure with attention mechanism module
[0065] As shown in Table 1, this is the Flownet2SD network model structure with the attention mechanism module added. Because the neural network is too large, Table 1 does not show all the network layer structures, but mainly shows the added attention mechanism module.
[0066] (3.2) Improved CA attention mechanism
[0067] The CA attention mechanism considers attention in both the channel dimension and the spatial dimension. It can learn adaptive weights to make the model focus on more useful channel information. However, CA only combines the high and wide directions in the feature map with the channel information respectively, thereby splitting the global feature information in the same feature map, so that the connection between different pixels in the same feature map is not mined, which ultimately affects the classification performance. Therefore, we have improved the original CA attention mechanism structure and added a global average pooling layer to add the global information of the feature map. The global information of the feature map, the information in the high and wide directions, and the channels are combined to jointly explore the connection between feature maps. The specific structure is as follows: Figure 1 shown.
[0068] (3.3) Internal structure of unsupervised loss
[0069] Different from the previous supervised learning-based loss, the model proposed in this paper (None-flownet2SD-GCA) not only predicts the velocity from the first frame to the second frame for a pair of adjacent particle image frames, but also predicts the velocity from the second frame to the first frame, that is, forward prediction and reverse prediction. Figure 2 As shown, the blue part represents forward prediction and the green part represents backward prediction, in which we use a backbone network with shared weights. We use the results of forward prediction and backward prediction to finally obtain the unsupervised loss.
[0070] (3.4) Neural network structure
[0071] The model in this paper is named None-FlowNet2SD-GCA, and the backbone network used is Flownet2SD. It uses a flow convolutional neural network (NetC) with shared weights to extract features of two images. NetC has a pyramid structure. The decoder (NetE) then performs cascaded flow inference (convolution upsampling) with flow regularization. The final flow estimate is upsampled to the original resolution using bilinear interpolation. The input to the forward flow estimate is (I1, I2), and the backward flow is (I2, I1).
[0072] Step 4: Comparative analysis of experimental results
[0073] (4.1) Evaluation indicators
[0074] This paper uses the average endpoint error to measure the accuracy of the model flow field prediction. In order to make the comparison results clearer, this paper sets the error unit of AEE to 100 pixels. AEE can be described as the L2 norm of the difference between the flow field prediction result Fe and the standard result Fg. The formula is as follows:
[0075] AEE=||F e -F g ||2
[0076] (4.2) Ablation experiment
[0077] In order to prove the effectiveness of the proposed method, this paper uses the unsupervised learning model improved by the traditional CA attention mechanism and the unsupervised model not improved by the attention mechanism to compare with the proposed model in various types of flow fields. The specific results are shown in Tables 2 and 3.
[0078] Table 2: Average endpoint error of different models on the test dataset
[0079]
[0080]
[0081] Table 3: Average endpoint error of different models on the test dataset
[0082]
[0083] It can be observed from Tables 2 and 3 that the traditional CA attention mechanism is better than the unsupervised model without attention mechanism in the flow fields of backstep, cylinder, DNS_turbulence, JHTDB_channel and SQG, while it is slightly inferior to the model without attention mechanism for the remaining categories. The most obvious improvement is backstep, with an average endpoint error reduction of 0.4674. This shows that the CA attention mechanism has a significant improvement in the prediction of flow fields when facing relatively simple flow fields, but the prediction performance is not high when facing more complex flow environments. After applying the GCA attention mechanism, which improves the CA attention mechanism, to the model, the model is better than the model without attention mechanism and the model with traditional CA attention mechanism in the prediction of almost all categories of flow, and is inferior to the model without attention mechanism only in the uniform category. The two flow field categories with the most obvious improvement are backstep and SQG, which reduce the error by 0.6075 and 0.7331 respectively. This shows that the GCA attention mechanism proposed in this paper is effective in both simple and complex flow environments.
[0084] (4.3) Comparison between the proposed model and the traditional PIV method
[0085] Table 4: Comparison between the proposed model and the traditional PIV method in various flow fields
[0086]
[0087] Table 5: Comparison between the proposed model and the traditional PIV method in various flow fields
[0088]
[0089] From Tables 4 and 5, we can see that compared with the traditional correlation-based WIDIM method, the proposed method in this paper has poor prediction effect only in the simplest backstep type, but has obvious advantages in other types. This shows that the proposed method is significantly better than WIDIM when dealing with more complex flow field environments, which is particularly prominent in the flow fields of DNS_turbulence and SQG categories. Compared with the HS optical flow method, although the proposed method in this paper is only superior in the three categories of cylinder, DNS_turbulence, and JHTDB_channel, it is almost the same as the HS optical flow method in other categories. However, the HS optical flow method requires a lot of computing time for the optimization process, which also causes its poor performance at the time level. It is particularly difficult when facing real-time end-to-end prediction of underwater environments.
[0090] (4.4) Comparison between the proposed model and other deep learning methods
[0091] Table 6: Comparison of the proposed model and other deep learning methods in various flow fields
[0092]
[0093] Table 7: Comparison of the proposed model and other deep learning methods in various flow fields
[0094]
[0095] From Tables 6 and 7, we can see that compared with the UnLiteFlowNet-PIV model based on unsupervised learning, the proposed method has an advantage in all categories of flow fields. When compared with PIV-NetS, our model is only at a disadvantage in the flow field environment of the backstep category, and is superior in other categories. In the process of comparing with PIV-LiteFlowNet-en, the prediction performance of the proposed method in DNS_turbulence and JHTDB_channel categories is better than that of PIV-LiteFlowNet-en, and the proposed method in the prediction of other flow fields is almost equivalent to it. This shows that although we did not apply the standard results provided in the dataset during the training process, our model still has obvious advantages when compared with advanced supervised learning methods, especially in complex flow field environments. However, PIV-LiteFlowNet-en is a supervised learning method, and unsupervised methods have potential advantages when facing real underwater environments.
Claims
1. Ocean particle image velocimetry method based on unsupervised learning and attention mechanism, characterized in that: The method comprises the following steps: Step 1: Prepare the dataset and perform preprocessing The data set contains particle image pairs under flow field conditions, and the flow field conditions specifically include the following flow field types: uniform flow, horizontal flow, receding flow, cylindrical flow, DNS turbulence, SQG sea surface flow, JHTDB-channel flow, JHTDB-mhd1024 turbulence, and JHTDB-iso-tropic1024 turbulence; Among them, DNS turbulence represents uniform and isotropic flow; SQG sea surface flow represents sea surface flow driven by the quasi-geostrophic model; JHTDB-channel channel flow represents channel flow in the Johns Hopkins Turbulence Database; JHTDB-mhd1024 turbulence represents magnetohydrodynamic turbulence in the Johns Hopkins Turbulence Database; JHTDB-iso-tropic1024 turbulence represents forced isotropic turbulence in the Johns Hopkins Turbulence Database; Step 2: Construct an unsupervised loss function The two adjacent particle image pairs I1 and I2 are used as the input of the None-FlowNet2SD-GCA neural network, and then the forward flow field F from I1 to I2 is predicted by the None-FlowNet2SD-GCA neural network. f =(u f ,v f ) T , where u f ,v f are the velocity field components in the horizontal and vertical directions in the forward flow field respectively; The reverse flow field F from I2 to I1 is also used in the unsupervised loss function. b =(u b ,v b ) T , where u b ,v b are the velocity field components in the horizontal and vertical directions in the reverse flow field respectively; The unsupervised loss function L(I1,I2,F f ,F b )=λ P L P +λ S L S +λ C L C ; Among them, L P Represents the luminosity loss, L S represents the smoothing loss, L C Represents consistency loss Step 3: Construct the None-FlowNet2SD-GCA neural network and train it using the dataset described in step 1 and the unsupervised loss function described in step 2; The None-FlowNet2SD-GCA neural network includes an encoder network and a decoder network, denoted as NetC and NetE respectively; NetC consists of 6 convolutional modules, each of which contains a convolutional layer and an activation function layer. An improved attention module is set between the second and third convolutional modules. The improved attention module is composed of 7 layers, the first layer is a residual layer, the second layer includes an average pooling layer in the height direction and the width direction, and a global average pooling layer; in the third layer, the average pooling layer in the height direction and the width direction of the second layer is spliced with the global average pooling layer, and then a convolution operation is performed; in the fourth layer, the output of the third layer is normalized and batched and then another convolution operation is performed; the fifth layer is a convolution layer, the sixth layer is a sigmoid activation function layer, and the last layer is a recalculation weight layer; The NetE is set after NetC to further process the features of the two images extracted by NetC; The NetE is composed of 5 layers, the first layer is to perform a deconvolution operation on the 6th convolution module of the NetC, and perform an upsampling operation on the prediction stream obtained therefrom, and splice it with the 5th convolution module of NetC; the second layer is to perform a deconvolution operation on the 1st layer of NetE, and perform an upsampling operation on the prediction stream obtained therefrom, and splice it with the 4th convolution module of NetC; the third layer is to perform a deconvolution operation on the output result of the 2nd layer, and perform an upsampling operation on the prediction stream obtained therefrom, and splice it with the 3rd convolution module of NetC; the fourth layer is to perform a deconvolution operation on the output of the 3rd layer, and perform an upsampling operation on the prediction stream obtained therefrom, and splice it with the 2nd convolution module of NetC; the fifth layer is to perform a deconvolution operation on the output of the 4th layer, and perform an upsampling operation on the prediction stream obtained therefrom, and splice it with the 1st convolution module of NetC, and then obtain the output through convolution operation and upsampling operation; The backbone network of the None-FlowNet2SD-GCA neural network is Flownet2SD; the NetC is a flow convolutional neural network using shared weights to extract features of two images; the NetC has a pyramid structure; the upsampling is to upsample the final flow field velocity estimation to the original resolution using bilinear interpolation; the input of the flow field velocity estimation from I1 to I2 is (I1, I2), and the input of the flow field velocity estimation from I2 to I1 is (I2, I1).
2. The method for measuring the speed of ocean particles using images based on unsupervised learning and attention mechanism as claimed in claim 1, It is characterized in that In step 2, the luminosity loss is related to the following factors: the loss of forward estimation and the loss of reverse estimation. The specific formula is as follows: Where P is the function that maps each pixel in the image to its grayscale value, ρ() is the generalized Charbonnier penalty function, ρ=(x 2 +ε 2 ) γ , ρ() is a differentiable convex function; The smooth loss uses a second-order smoothness constraint, defined as follows: Among them, N represents 4 channel filters, namely the x direction, the y direction and the two diagonal directions. Four channel filters are used to calculate the convolution of the two flow components, namely u in the x direction and v in the y direction, and then the Charbonnier loss is calculated; The consistency loss function is defined as:
3. The method for measuring the speed of ocean particles using images based on unsupervised learning and attention mechanism as claimed in claim 2, It is characterized in that Set γ to 0.45 and ε to 10 -3 .
Citation Information
Patent Citations
Eye fundus image optic disk detection method based on HA-UNet network
CN115587967A
Blueberry fruit detection method based on improved YOLOv8 and transfer learning
CN117975134A
Fish school detection method and system thereof, electronic device and storage medium
US20240104900A1
Cited By
Multi-scale Res2RAFT particle image velocity measurement method based on global attention mechanism optimization
CN119716136A
A multi-scale res2raft particle image velocimetry method based on global attention mechanism optimization
CN119716136B
