Enhanced Solution for the Advection–Diffusion–Reaction Equation Using the Physics-Informed Neural Network Technique
Abstract
1. Introduction
2. The Advection–Diffusion–Reaction Equation Problem Formulation
Maximum Principle
3. The Physics-Informed Neural Networks Formulation
3.1. The Neural Network Approximation
3.2. The Physics-Based Residual Formulation
3.3. The Loss Function Construction
3.3.1. The Partial Differential Equation Residual Loss Function
3.3.2. Initial Condition Loss Function
3.3.3. Boundary Condition Loss Function
3.3.4. The Physics-Informed Neural Network Training Process
4. The Crank–Nicolson Finite Difference Method
4.1. Mathematical Representation of CNFDM
4.1.1. Consistency Analysis for the 1D ADR Equation
4.1.2. Stability Analysis
5. Results and Discussion
5.1. Results for the CNFDM, PINNs and Exact Solutions at t = 0.085
5.2. Results for the CNFDM, PINNs and Exact Solutions at t = 0.170
5.3. Results for the CNFDM, PINNs and Exact Solutions at t = 0.255
5.4. Results for the CNFDM, PINNs and Exact Solutions at t = 0.340
5.5. Results for the CNFDM, PINNs and Exact Solutions at t = 0.425
5.6. Results for the CNFDM, PINNs and Exact Solutions at t = 0.510
5.7. Results for the CNFDM, PINNs and Exact Solutions at t = 0.595
5.8. Results for the CNFDM, PINNs and Exact Solutions at t = 0.680
5.9. Results for the CNFDM, PINNs and Exact Solutions at t = 0.765
5.10. Results for the CNFDM, PINNs and Exact Solutions at t = 0.85
5.11. Results for the CNFDM, PINNs and Exact Solutions at x = 0.0
5.12. Results for the CNFDM, PINNs and Exact Solutions at x = 1.0
5.13. Results for the CNFDM, PINNs and Exact Solutions at x = 2.0
5.14. Results for the CNFDM, PINNs and Exact Solutions at x = 3.0
5.15. Results for the CNFDM, PINNs and Exact Solutions at x = 4.0
5.16. Results for the CNFDM, PINNs and Exact Solutions at x = 5.0
5.17. Results for the CNFDM, PINNs and Exact Solutions at x = 6.0
5.18. Results for the CNFDM, PINNs and Exact Solutions at x = 7.0
5.19. Results for the CNFDM, PINNs and Exact Solutions at x = 8.0
5.20. Results for the CNFDM, PINNs and Exact Solutions at x = 9.0
5.21. Results for the CNFDM, PINNs and Exact Solutions at x = 10.0
6. Conclusions
- This research successfully executed a PINNs framework and the CNFDM to approximate the solution of the governing ADR equation.
- The comparison between CNFDM and PINNs in solving the ADR equation shows that both methods reach a high degree of accuracy; however, their performance traits vary notably in different time frames and spatial contexts.
- The CNFDM consistently demonstrates flawless accuracy at the boundary x = 0.0 throughout all time levels and shows outstanding performance during the initial time phases, especially when the solution profile is smooth and has a gentle slope. Moreover, CNFDM provides an outstanding benefit in computation, finishing the simulation in only one second, unlike the considerably greater computational expense required by PINNs.
- The CNFDM error progressively increases across the inner region as time goes on and the solution becomes sharper, especially at later time points, indicating a gradual decrease in both accuracy and spatial consistency. PINNs, on the other hand, show low, constrained, and reliable error levels at the majority of interior spatial locations, even over time and under difficult solution conditions. This highlights their exceptional long-term dependability, resilience to error buildup, and ability to adjust to intricate spatiotemporal dynamics.
- These findings recommend the use of CNFDM for problems that call for quick computations, quick evaluations, and accurate boundary control, particularly where the boundaries are the primary emphasis or the solution is smooth. However, situations with steep gradients, long-term simulations, and accuracy in the interior domain where stability and consistency over time are essential and better suited for PINNs.
- Future studies may look at hybrid models that combine the speed and boundary precision of CNFDM with the long-term accuracy and robustness of PINNs. Furthermore, using transfer learning, domain decomposition, or adaptive loss weighting to improve PINNs could lower computational costs without sacrificing accuracy. To improve the evaluation of physical interpretability, efficiency, and scalability, more research could extend the use of PINNs to higher-dimensional ADR equations and parameter identification.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| Abbreviations: | |
| ADR | Advection–Diffusion–Reaction Equation |
| PINNs | Physics-Informed Neural Networks |
| NSFD | Non-Standard Finite Difference |
| CPU time | Computational time |
| Nomenclature: | |
| x | Spatial variable |
| t | time variable |
| Change in spatial variable | |
| Change in time variable |
References
- Rubio, A.; Zalts, A.; El Hasi, C. Numerical solution of the advection–reaction–diffusion equation at different scales. Environ. Model. Softw. 2008, 23, 90–95. [Google Scholar] [CrossRef] [Scilit]
- Guenneau, S.; Petiteau, D.; Zerrad, M.; Amra, C.; Puvirajesinghe, T. Transformed Fourier and Fick equations for the control of heat and mass diffusion. AIP Adv. 2015, 5, 053404. [Google Scholar] [CrossRef] [Scilit]
- Aris, R. On the dispersion of a solute in a fluid flowing through a tube. Proc. R. Soc. Lond. Ser. A Math. Phys. Sci. 1956, 235, 67–77. [Google Scholar] [CrossRef] [Scilit]
- Taylor, G. Dispersion of soluble matter in solvent flowing slowly through a tube. Proc. R. Soc. Lond. Ser. A Math. Phys. Sci. 1953, 219, 186–203. [Google Scholar] [CrossRef] [Scilit]
- Crank, J. The Mathematics of Diffusion; Oxford University Press: Oxford, UK, 1979. [Google Scholar]
- El Arabi, I.; Chafi, A.; Alami, S. Numerical simulation of the advection-diffusion-reaction equation using finite difference and operator splitting methods: Application on the 1D transport problem of contaminant in saturated porous media. E3S Web Conf. 2022, 351, 01003. [Google Scholar] [CrossRef] [Scilit]
- Jerves, A. An analysis of classical techniques for consistent stabilisation of the advection–diffusion–reaction equation finite element solution. Int. J. Comput. Fluid Dyn. 2020, 34, 315–332. [Google Scholar] [CrossRef] [Scilit]
- Rawat, R.; Pandey, C.; Kumar, B.; Thije Boonkkamp, J. A Finite Volume Complete Flux Scheme for Time Fractional ADR Equation. 2023. Available online: https://istam.iitkgp.ac.in/resources/2023/proceedings/Abstract/PA0271.pdf (accessed on 6 September 2023).
- Raissi, M.; Perdikaris, P.; Karniadakis, G. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef] [Scilit]
- Karniadakis, G.; Kevrekidis, I.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-informed machine learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef] [Scilit]
- Cuomo, S.; Di Cola, V.; Giampaolo, F.; Rozza, G.; Raissi, M.; Piccialli, F. Scientific machine learning through physics–informed neural networks: Where we are and what’s next. J. Sci. Comput. 2022, 92, 88. [Google Scholar] [CrossRef] [Scilit]
- Dwivedi, V.; Srinivasan, B. Physics Informed Extreme Learning Machine (PIELM)—A rapid method for the numerical solution of partial differential equations. arXiv 2019, arXiv:1907.03507. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Yao, W.; Peng, W.; Zhou, W. Bayesian Physics-Informed Extreme Learning Machine for Forward and Inverse PDE Problems with Noisy Data. Neurocomputing 2023, 549, 126425. [Google Scholar] [CrossRef] [Scilit]
- Alamdari, B.; Tang, Y.; Erricolo, D.; Sneed, L. A Comprehensive Review of GPR Data Analysis for Bridge Deck Evaluation: From Conventional Methods to Emerging Artificial Intelligence Approaches. J. Nondestruct. Eval. 2025, 45, 15. [Google Scholar] [CrossRef] [Scilit]
- Ren, Y.; Zhang, J.; Xia, Y.; Wang, R.; Xie, F.; Guan, J.; Zhang, H.; Zhou, S. Regression-based conditional independence test with adaptive kernels. Artif. Intell. 2025, 347, 104391. Available online: https://www.sciencedirect.com/science/article/pii/S0004370225001109 (accessed on 1 July 2025). [CrossRef] [Scilit]
- Qian, S.; Chen, Y.; Wang, W.; Zhang, G.; Li, L.; Hao, Z.; Wang, Y. Physics-guided deep neural networks for bathymetric mapping using Sentinel-2 multi-spectral imagery. Front. Mar. Sci. 2025, 12, 1636124. Available online: https://www.frontiersin.org/journals/marine-science/articles/10.3389/fmars.2025.1636124 (accessed on 26 August 2025). [CrossRef] [Scilit]
- Kamyab, S.; Azimifar, Z.; Sabzi, R.; Fieguth, P. Deep learning methods for inverse problems. PeerJ Comput. Sci. 2022, 8, e951. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chen-Charpentier, B.; Kojouharov, H. An unconditionally positivity preserving scheme for advection–diffusion reaction equations. Math. Comput. Model. 2013, 57, 2177–2185. [Google Scholar] [CrossRef] [Scilit]
- Kopp, R. Pontryagin maximum principle. Math. Sci. Eng. 1962, 5, 255–279. [Google Scholar]
- Wu, T.; Xu, X. Semi-global stabilization of parabolic PDE–ODE systems with input delay and saturation. Int. J. Syst. Sci. 2025, 1–19. [Google Scholar] [CrossRef] [Scilit]
- Xu, X.; Li, B. PDE-based observation and predictor-based control for linear systems with distributed infinite input and output delays. Automatica 2024, 170, 111845. Available online: https://www.sciencedirect.com/science/article/pii/S000510982400339X (accessed on 26 August 2025). [CrossRef] [Scilit]
- Crank, J.; Nicolson, P. A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type. Math. Proc. Camb. Philos. Soc. 1947, 43, 50–67. [Google Scholar] [CrossRef] [Scilit]























| Hidden Layers | Neurons per Layer | Activation | Error | CPU Time |
|---|---|---|---|---|
| 2 | 40 | Tanh | 1 h 20 min | |
| 2 | 80 | Tanh | 2 h 30 min | |
| 3 | 80 | Tanh | 3 h 40 min | |
| 2 | 80 | ReLU | 2 h 15 min |
| Error | Convergence Rate | |
|---|---|---|
| − | ||
| Collocation Points | Error | Convergence Rate |
|---|---|---|
| 1000 | − | |
| 2000 | ||
| 4000 | ||
| 8000 |
| Position (x) | CNFDM Error | PINNs Error |
|---|---|---|
| 0.0 | ||
| 1.0 | ||
| 2.0 | ||
| 3.0 | ||
| 4.0 | ||
| 5.0 | ||
| 6.0 | ||
| 7.0 | ||
| 8.0 | ||
| 9.0 | ||
| 10.0 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Lekaba, T.; Ndou, N.; Muzhinji, K.; Moyo, S. Enhanced Solution for the Advection–Diffusion–Reaction Equation Using the Physics-Informed Neural Network Technique. Mathematics 2026, 14, 1194. https://doi.org/10.3390/math14071194
Lekaba T, Ndou N, Muzhinji K, Moyo S. Enhanced Solution for the Advection–Diffusion–Reaction Equation Using the Physics-Informed Neural Network Technique. Mathematics. 2026; 14(7):1194. https://doi.org/10.3390/math14071194
Chicago/Turabian StyleLekaba, Thabo, Ndivhuwo Ndou, Kizito Muzhinji, and Simiso Moyo. 2026. "Enhanced Solution for the Advection–Diffusion–Reaction Equation Using the Physics-Informed Neural Network Technique" Mathematics 14, no. 7: 1194. https://doi.org/10.3390/math14071194
APA StyleLekaba, T., Ndou, N., Muzhinji, K., & Moyo, S. (2026). Enhanced Solution for the Advection–Diffusion–Reaction Equation Using the Physics-Informed Neural Network Technique. Mathematics, 14(7), 1194. https://doi.org/10.3390/math14071194

