PHYSICS-INFORMED NEURAL NETWORKS MODIFICATION FOR SOLVING 2D SHALLOW WATER EQUATIONS

Authors

  • NURSYIVA IRSALINDA Faculty of Computer Science and Mathematics, Universiti Malaysia Terengganu, 21030 Kuala Nerus, Terengganu, Malaysia; Faculty of Science and Applied Technology, Universitas Ahmad Dahlan, Banguntapan 55191, Bantul, Yogyakarta, Indonesia
  • MAHARANI ABU BAKAR Faculty of Computer Science and Mathematics, Universiti Malaysia Terengganu, 21030 Kuala Nerus, Terengganu, Malaysia
  • NORIZAN MOHAMED Faculty of Computer Science and Mathematics, Universiti Malaysia Terengganu, 21030 Kuala Nerus, Terengganu, Malaysia

DOI:

https://doi.org/10.46754/jmsi.2026.06.003

Keywords:

Dynamic strategy, finite difference method, mesh refinement, Physics-Informed Neural Networks (PINN), 2D shallow water equations

Abstract

This study investigates the use of Physics-Informed Neural Networks (PINN) for solving the two-dimensional shallow water equations (SWE) on a flat bed and proposes a modified PINN with dynamic mesh-refinement strategy that adaptively increases the density of collocation points in critical or stiff regions such as propagating wave fronts and rapidly varying gradients. In the proposed framework, shallow-water physics is enforced as soft constraints in the loss, with initial and boundary conditions embedded to ensure a well-posed formulation without labelled targets. We evaluated fully connected architectures using the Adaptive Moment Estimation (Adam) and Limited-memory Broyden–Fletcher–Goldfarb–Shanno (L-BFGS) optimisation algorithms.  Fully connected neural networks are trained using a combination of Adam and L-BFGS optimisers, and a FDM solution is employed as a reference for quantitative comparison. The standard PINN and its dynamically refined variant are evaluated against the FDM benchmark in terms of convergence behaviour and predictive accuracy. The results show that the refined PINN concentrates collocation points in stiff regions, reduces errors near wave fronts, and achieves accuracy closer to FDM with faster convergence.

References

Bihlo, A., & Popovych, R. O. (2022). Physics-informed neural networks for the shallow-water equations on the sphere. Journal of Computational Physics, 456, Article 111024.

Cai, S., Wang, Z., Wang, S., Perdikaris, P., & Karniadakis, G. E. (2021). Physics-informed neural networks for heat transfer problems. Journal of Heat Transfer, 143(6), Article 060801.

Cuomo, S., Di Cola, V. S., Giampaolo, F., Rozza, G., Raissi, M., & Piccialli, F. (2022). Scientific machine learning through physics-informed neural networks: Where we are and what's next. Journal of Scientific Computing, 92(3), Article 88.

Farea, A., Yli-Harja, O., & Emmert-Streib, F. (2024). Understanding physics-informed neural networks: Techniques, applications, trends, and challenges. AI, 5(3), 1534–1557.

Gross, C., & Iwen, M. (2025). Sparse spectral methods for solving high-dimensional and multiscale elliptic PDEs. Foundations of Computational Mathematics, 25(3), 765–811.

Guo, J., Wang, H., Gu, S., & Hou, C. (2024). TCAS-PINN: Physics-informed neural networks with a novel temporal causality-based adaptive sampling method. Chinese Physics B, 33(5), Article 050701.

Irsalinda, N., Bakar, M. A., Harun, F. N., Surono, S., & Pratama, D. A. (2025). A new hybrid approach for solving partial differential equations: Combining physics-informed neural networks with cat-and-mouse based optimization. Results in Applied Mathematics, 25, Article 100539.

Jafarzadegan, K., Moradkhani, H., Pappenberger, F., Moftakhari, H., Bates, P., Abbaszadeh, P., & Duan, Q. (2023). Recent advances and new frontiers in riverine and coastal flood modeling. Reviews of Geophysics, 61(2). https://doi.org/10.1029/2022RG000788

Li, P. W., Fan, C. M., & Grabski, J. K. (2021). A meshless generalized finite difference method for solving shallow water equations with the flux limiter technique. Engineering Analysis with Boundary Elements, 131, 159–173.

Luo, K., Zhao, J., Wang, Y., Li, J., Wen, J., Liang, J., & Liao, S. (2025). Physics-informed neural networks for PDE problems: A comprehensive review. Artificial Intelligence Review, 58(10), 1–43.

Lyu, C., Masson, Y., Romanowicz, B., & Zhao, L. (2024). Introduction to the distributional finite difference method for 3D seismic wave propagation and comparison with the spectral element method. Journal of Geophysical Research: Solid Earth, 129(4), Article e2023JB027576.

Naser, M. Z., & Alavi, A. H. (2023). Error metrics and performance fitness indicators for artificial intelligence and machine learning in engineering and sciences. Architecture, Structures and Construction, 3(4), 499–517.

Nath, D., Neog, D. R., & Gautam, S. S. (2024). Application of machine learning and deep learning in finite element analysis: A comprehensive review. Archives of Computational Methods in Engineering, 31(5). https://doi.org/10.1007/s11831-024-10063-0

Pratama, D. A., Abo-Alsabeh, R. R., Bakar, M. A., Salhi, A., & Ibrahim, N. F. (2023). Solving partial differential equations with hybridized physic-informed neural network and optimization approach: Incorporating genetic algorithms and L-BFGS for improved accuracy. Alexandria Engineering Journal, 77, 205–226.

Raissi, M., Perdikaris, P., & Karniadakis, G. E. (2017). Physics informed deep learning (part I): Data-driven solutions of nonlinear partial differential equations. arXiv. https://arxiv.org/abs/1711.10561

Raissi, M., Perdikaris, P., Ahmadi, N., & Karniadakis, G. E. (2024). Physics-informed neural networks and extensions. arXiv. https://arxiv.org/abs/2408.16806

Wang, W., Zhang, H., Zhou, Z., & Yang, X. (2024). A fast compact finite difference scheme for the fourth-order diffusion-wave equation. International Journal of Computer Mathematics, 101(2), 170–193.

Zaniboni, F., Zanuttigh, B., Istrati, D., & Armigliato, A. (2025). Coastal flood: From modelling to risk assessment and mitigation. In Geohazards and disasters (pp. 131–155). https://doi.org/10.1111/jfr3.12204

Zhao, H., Hao, Y., Xu, W., & Li, C. (2024). Adaptive-sampling physics-informed neural network for viscoacoustic wavefield simulation. IEEE Geoscience and Remote Sensing Letters, 21, 1–5.

Published

24-06-2026