Unsupervised Learning of Particle Image Velocimetry

Mingrui Zhang, Matthew D. Piggott · DOI

Abstract

Particle Image Velocimetry (PIV) is a classical flow estimation problem which is widely considered and utilised, especially as a diagnostic tool in experimental fluid dynamics and the remote sensing of environmental flows. Recently, the development of deep learning based methods has inspired new approaches to tackle the PIV problem. These supervised learning based methods are driven by large volumes of data with ground truth training information. However, it is difficult to collect reliable ground truth data in large-scale, real-world scenarios. Although synthetic datasets can be used as alternatives, the gap between the training set-ups and real-world scenarios limits applicability. We present here what we believe to be the first work which takes an unsupervised learning based approach to tackle PIV problems. The proposed approach is inspired by classic optical flow methods. Instead of using ground truth data, we make use of photometric loss between two consecutive image frames, consistency loss in bidirectional flow estimates and spatial smoothness loss to construct the total unsupervised loss function. The approach shows significant potential and advantages for fluid flow estimation. Results presented here demonstrate that our method outputs competitive results compared with classical PIV methods as well as supervised learning based methods for a broad PIV dataset, and even outperforms these existing approaches in some difficult flow cases.

1. Introduction

Particle Image Velocimetry (PIV) remains a fundamental technique in experimental fluid mechanics, providing non-intrusive velocity field measurements by tracking tracer particles within a flow. Traditionally, this has been achieved through cross-correlation or variational optical flow methods. While effective, cross-correlation often yields sparse data, and variational methods can be computationally intensive.

The advent of deep learning has introduced supervised models that offer dense, rapid flow estimation. However, these models are constrained by the "Ground Truth Trap": the inherent difficulty in obtaining high-fidelity experimental labels. Consequently, supervised models are often trained on synthetic data, leading to a domain gap that hinders performance on complex, real-world turbulent flows. This paper introduces UnLiteFlowNet-PIV, the first unsupervised deep learning framework designed specifically for PIV, eliminating the need for labeled training data.

2. Methodology: UnLiteFlowNet-PIV

The UnLiteFlowNet-PIV architecture leverages a lightweight backbone (LiteFlowNet) but shifts the training paradigm from supervised to unsupervised. The model learns motion directly from image sequences by minimizing a composite loss function consisting of three primary components:

  • Photometric Loss ($L_P$): This loss ensures temporal consistency by warping the second frame back to the first using the predicted velocity field. A robust Charbonnier penalty function is employed to mitigate the impact of outliers and noise.
  • Spatial Smoothness Loss ($L_S$): To handle regions with sparse particle distribution or out-of-plane motion, a second-order smoothness constraint is applied. This encourages the velocity field to maintain physical continuity.
  • Bidirectional Consistency Loss ($L_C$): This constraint enforces that the forward flow (from frame $t$ to $t+1$) is the inverse of the backward flow (from $t+1$ to $t$), significantly improving robustness in complex flow regions.
Schematic representation of the directional constraints used in the unsupervised loss functions.

The network utilizes a pyramidal feature extraction stage (NetC) followed by a cascaded flow inference decoder (NetE), enabling the capture of both large-scale displacements and fine-grained turbulent structures.

3. Experimental Evaluation

The model was rigorously tested on a comprehensive synthetic PIV benchmark containing 15,050 image pairs across eight flow regimes, including uniform flow, back-step flow, cylinder flow, and sea surface flow (SQG). Notably, the model was also evaluated on high-complexity Direct Numerical Simulation (DNS) turbulence data.

3.1 Performance Metrics

In the challenging DNS-turbulence scenario, UnLiteFlowNet-PIV achieved an Average Endpoint Error (AEE) of 13.5. This performance significantly surpasses both the supervised PIV-LiteFlowNet (AEE: 19.6) and the classical WIDIM method (AEE: 30.4). These results suggest that unsupervised learning may be better suited for capturing the underlying physics of motion without being biased by synthetic label artifacts.

3.2 Computational Efficiency

Efficiency is a critical advantage of the proposed method. UnLiteFlowNet-PIV processed 500 image pairs (256x256 resolution) in approximately 10.17 seconds on a modern GPU. In contrast, classical methods like Horn-Schunck (HS) and WIDIM required 556.5 and 211.5 seconds, respectively, for the same task.

4. Discussion and Key Insights

The success of UnLiteFlowNet-PIV highlights several key findings:

  • Generalization: Unsupervised models demonstrate superior generalization on complex flows compared to supervised counterparts, likely due to their reliance on fundamental image-based constraints rather than specific synthetic labels.
  • Bidirectional Logic: Ablation studies confirmed that bidirectional consistency is vital for reducing errors in highly non-linear flows like SQG.
  • Visual Fidelity: Qualitative analysis shows that the model excels at resolving internal vortices and sharp flow boundaries, areas where traditional correlation-based methods often struggle with blurring.

5. Conclusion and Future Work

UnLiteFlowNet-PIV represents a significant step forward in PIV technology, offering a high-accuracy, real-time alternative to traditional and supervised methods without the burden of data labeling. Future research will explore deeper architectures and the application of this unsupervised approach to experimental data containing real-world artifacts such as non-uniform illumination and reflections.

Source Code: https://github.com/erizmr/UnLiteFlowNet-PIV

Summary updated

Abstract

Particle Image Velocimetry (PIV) is a classical flow estimation problem which is widely considered and utilised, especially as a diagnostic tool in experimental fluid dynamics and the remote sensing of environmental flows. Recently, the development of deep learning based methods has inspired new approaches to tackle the PIV problem. These supervised learning based methods are driven by large volumes of data with ground truth training information. However, it is difficult to collect reliable ground truth data in large-scale, real-world scenarios. Although synthetic datasets can be used as alternatives, the gap between the training set-ups and real-world scenarios limits applicability. We present here what we believe to be the first work which takes an unsupervised learning based approach to tackle PIV problems. The proposed approach is inspired by classic optical flow methods. Instead of using ground truth data, we make use of photometric loss between two consecutive image frames, consistency loss in bidirectional flow estimates and spatial smoothness loss to construct the total unsupervised loss function. The approach shows significant potential and advantages for fluid flow estimation. Results presented here demonstrate that our method outputs competitive results compared with classical PIV methods as well as supervised learning based methods for a broad PIV dataset, and even outperforms these existing approaches in some difficult flow cases. Codes and trained models are available at https://github.com/erizmr/UnLiteFlowNet-PIV.
BibTeX
@inproceedings{zhang2020unsupervised,
  author = {Mingrui Zhang and Matthew D. Piggott},
  title = {{Unsupervised Learning of Particle Image Velocimetry}},
  booktitle = {Isc Workshops},
  year = {2020},
  doi = {10.1007/978-3-030-59851-8\_7},
}
Figure