Zing Forum

Reading

Research on Hyperparameter Optimization of Fluid Dynamics Neural Networks: A Systematic Exploration of 648 Combinations

This article introduces an undergraduate thesis study that implements neural networks using PyTorch and pure NumPy, conducts a systematic search of 648 hyperparameter combinations on fluid dynamics simulation datasets, and explores the application of mini-batch gradient descent in scientific computing.

流体动力学神经网络超参数优化小批量梯度下降科学计算PyTorchNumPy交叉验证物理信息神经网络
Published 2026-07-13 02:18Recent activity 2026-07-13 02:33Estimated read 6 min
Research on Hyperparameter Optimization of Fluid Dynamics Neural Networks: A Systematic Exploration of 648 Combinations
1

Section 01

Introduction: Systematic Exploration of Hyperparameter Optimization for Fluid Dynamics Neural Networks

This study is an undergraduate thesis from the Department of Mathematics at TED University, focusing on hyperparameter optimization of fluid dynamics neural networks. It explores the application of mini-batch gradient descent in scientific computing through a systematic exploration of 648 hyperparameter combinations. The project provides dual implementations: PyTorch (automatic differentiation, GPU acceleration) and pure NumPy (transparent principles, teaching-friendly), and uses 5-fold cross-validation to evaluate model performance. The project source code is from the GitHub repository mbgd-fluid-dynamics-ann by user arincemir, released on July 12, 2026.

2

Section 02

Research Background: Computational Challenges in Fluid Dynamics and Machine Learning Intervention

The core challenges of fluid dynamics stem from the nonlinearity, multi-scale nature, high dimensionality, and boundary complexity of the Navier-Stokes equations. Traditional Computational Fluid Dynamics (CFD) methods (finite difference, finite volume, etc.) are highly accurate but computationally expensive. The intervention of machine learning provides new tools for fluid dynamics: surrogate models to accelerate predictions, reduced-order models to simplify parametric studies, super-resolution to improve grid accuracy, inverse problem solving to infer boundary conditions, etc.

3

Section 03

Technical Architecture and Hyperparameter Search Methods

Technical Architecture: Dual implementations—PyTorch version uses automatic differentiation and GPU acceleration to simplify training; pure NumPy version implements forward/backward propagation from scratch, facilitating understanding of the algorithm's essence. Hyperparameter Search: Explores 648 combinations covering network architecture (number of hidden layers, number of neurons, activation functions), optimization parameters (learning rate, batch size, optimizer type), and regularization parameters (L2 strength, Dropout ratio). A grid search strategy and 5-fold cross-validation (3240 training runs) are used to ensure robust results.

4

Section 04

Dataset: Features and Preprocessing of Fluid Dynamics Simulation Data

The dataset consists of simulated fluid dynamics data generated by CFD software such as OpenFOAM, including input features (spatial coordinates, time steps, boundary conditions, material properties) and output targets (velocity components, pressure fields, vorticity). Preprocessing steps include normalization, dimensionality reduction, and spatiotemporal sampling to adapt to neural network training.

5

Section 05

Experimental Result Analysis: Hyperparameter Sensitivity and Optimal Configuration

Hyperparameter Sensitivity: Learning rate is critical (too large leads to oscillation and divergence, too small results in slow convergence); batch size needs to balance efficiency and generalization (small batches have more noise but better generalization, large batches are faster but may have poor generalization); network depth must match task complexity (shallow networks underfit, deep networks are prone to overfitting). Optimal Configuration: The best configuration on the validation set is identified through evaluation using MSE, MAE, R², and physical constraint satisfaction. Result visualization includes comparisons between predicted fields and CFD results, error distribution analysis, and feature importance assessment.

6

Section 06

Limitations and Future Improvement Directions

Limitations: Simulated data is difficult to cover the complexity of real fluids, model generalization ability is limited, pure data-driven approaches may violate physical laws, and computational cost is high (648 ×5 training runs). Improvement Directions: Introduce Physics-Informed Neural Networks (PINNs) to incorporate Navier-Stokes equation constraints; use transfer learning to leverage simulated and real data; explore neural operators (e.g., FNO) to handle unstructured grids; use Bayesian optimization instead of grid search to improve efficiency.