AI-driven Physics Informed Neural Network for Daily Temperature Forecasting with Constraint Aware Learning and Explainable Feature Attribution

Authors

  • Syed Azeem Inam Department of Artificial Intelligence and Mathematical Sciences, Sindh Madressatul Islam University, Karachi https://orcid.org/0000-0002-8876-0834
  • Hassan Hashim Department of Artificial Intelligence and Mathematical Sciences, Sindh Madressatul Islam University, Karachi, Pakistan
  • Syeda Nazia Ashraf Department of Computer Science, Sindh Madressatul Islam University, Karachi, Pakistan https://orcid.org/0009-0002-8554-2230
  • Syeda Wajiha Naim Department of Software Engineering, Sindh Madressatul Islam University, Karachi, Pakistan
  • Haider Rajput Department of Artificial Intelligence and Mathematical Sciences, Sindh Madressatul Islam University, Karachi, Pakistan https://orcid.org/0009-0006-9073-4471
  • Saddam Umer Department of Artificial Intelligence and Mathematical Sciences, Sindh Madressatul Islam University, Karachi, Pakistan https://orcid.org/0009-0004-6566-1587

DOI:

https://doi.org/10.21015/vtse.v13i4.2231

Abstract

The daily mean temperature prediction is essential to implement agricultural adaptation and disaster risk reduction strategies in countries with varied climatic regions like Pakistan. Traditional machine learning methods often had difficulty complying with thermodynamic constraints, limiting their practicality for temperature estimation. The study proposed a Physics-Informed Neural Network (PINN), which integrates data and governing thermal principles to overcome these limitations. Integrating thermal equilibrium conditions within the loss function inherently consolidates the thermodynamic coherence of the construction. The high-resolution meteorological data from the Badin, Dadu and Rohri observation networks are used to build domain-specific features. These include diurnal excursions of temperature and humidity, a cyclic year encoding and wind-humidity ratios that capture the nonlinear mesoscale thermodynamics of the system. The PINN shows strong predictive ability as compared to a benchmark linear regression, some ensemble algorithms, and feedforward networks (R2 = 0.9975 Badin, 0.9974 Dadu, 0.9949 Rohri). SHAP and LIME, used in feature importance quantification, help to identify temperature drivers. In Badin, wind regimes have the most influence, whereas in Dadu and Rohri, lingering time trends have the most impact. With a focus on physical plausibility and explainable AI, the proposed methodology combines the probabilistic advantages of statistical learning with the constraint-based approach of atmospheric physics. This leads to resilient and spatially flexible predictions of temperature in data-scarce regions. As the study shows, PINNs could become a game-changing operational meteorological forecast technology when observational networks are weak or lacking altogether.

References

S. A. Inam, S. M. H. Zaidi, A. A. Khan, and S. Ullah, “A Neural Network Approach to Carbon Emission Prediction in Industrial and Power Sectors,” Discover Applied Sciences, vol. 7, no. 6, p. 640, Jun. 2025, doi: 10.1007/s42452-025-07257-x.

S. A. Inam et al., “PR-FCNN: A Data-Driven Hybrid Approach for Predicting PM2.5 Concentration,” Discover Artificial Intelligence, vol. 4, no. 1, p. 75, Nov. 2024, doi: 10.1007/s44163-024-00184-7.

N. J. Lutsko, J. W. Baldwin, and T. W. Cronin, “The Impact of Large-Scale Orography on Northern Hemisphere Winter Synoptic Temperature Variability,” Journal of Climate, 2019, doi: 10.1175/JCLI-D-19-0129.1.

S. Bathiany, V. Dakos, M. Scheffer, and T. M. Lenton, “Climate Models Predict Increasing Temperature Variability in Poor Countries,” Science Advances, 2018, doi: 10.1126/sciadv.aar5809.

A. Rahujo, D. Atif, S. A. Inam, A. A. Khan, and S. Ullah, “A Survey on the Applications of Transfer Learning to Enhance the Performance of Large Language Models in Healthcare Systems,” Discover Artificial Intelligence, vol. 5, no. 1, p. 90, Jun. 2025, doi: 10.1007/s44163-025-00339-0.

Y. Sha, J. S. Schreck, W. Chapman, and D. J. Gagne, “Improving AI Weather Prediction Models Using Global Mass and Energy Conservation Schemes,” Jan. 2025.

T. Beucler et al., “Climate-Invariant Machine Learning,” Jan. 2024.

C.-Y. Lai, P. Hassanzadeh, A. Sheshadri, M. Sonnewald, R. Ferrari, and V. Balaji, “Machine Learning for Climate Physics and Simulations,” Aug. 2024.

Y. Verma, M. Heinonen, and V. Garg, “ClimODE: Climate and Weather Forecasting with Physics-informed Neural ODEs,” Apr. 2024.

M. Ur Rahim, M. Hussain, S. A. Inam, and H. Hashim, “Ignition Behavior of Supercritical Liquid Fuel in Combustion System,” Journal of Mechanics of Continua and Mathematical Sciences, vol. 16, no. 8, Aug. 2021, doi: 10.26782/jmcms.2021.08.00003.

S. A. Inam et al., “A Novel Deep Learning Approach for Investigating Liquid Fuel Injection in Combustion System,” Discover Artificial Intelligence, vol. 5, no. 1, p. 32, Apr. 2025, doi: 10.1007/s44163-025-00248-2.

G. J. Di Cecco and T. C. Gouhier, “Increased Spatial and Temporal Autocorrelation of Temperature Under Climate Change,” Scientific Reports, 2018, doi: 10.1038/s41598-018-33217-0.

M. H. Shojaei, H. Mortezapour, K. Jafarinaeimi, and M. Maharlooei, “An Estimation Method for Greenhouse Temperature Under the Influence of Evaporative Cooling System,” Journal of Thermal Engineering, 2021, doi: 10.18186/thermal.930907.

W. Li et al., “DeepPhysiNet: Bridging Deep Learning and Atmospheric Physics for Accurate and Continuous Weather Modeling,” Jan. 2024.

S. Dutta, N. Innan, S. Ben Yahia, and M. Shafique, “AQ-PINNs: Attention-Enhanced Quantum Physics-Informed Neural Networks for Carbon-Efficient Climate Modeling,” Sep. 2024.

I. Kurniawan, L. S. Silaban, and D. Munandar, “Implementation of Convolutional Neural Network and Multilayer Perceptron in Predicting Air Temperature in Padang,” Jurnal RESTI, 2020, doi: 10.29207/resti.v4i6.2456.

S. Shen, Y. Du, Z. Xu, X. Qin, and J. Chen, “Temperature Prediction Based on STOA-SVR Rolling Adaptive Optimization Model,” Sustainability, 2023, doi: 10.3390/su151411068.

S. A. Inam, H. Hashim, A. M. Awan, H. Rajput, and S. Umer, “A Novel Approach toward Windspeed Forecasting using an Advanced Deep Learning Framework with Explainable AI,” VFAST Transactions on Software Engineering, vol. 13, no. 3, pp. 198–210, Sep. 2025, doi: 10.21015/vtse.v13i3.2230.

S. A. Inam, H. Hashim, A. M. Awan, H. Rajput, and S. Umer, “Interpretable Physics-Informed Neural Network for Reliable Humidity Forecasting in Contrasting Climates of Sindh,” VAWKUM Transactions on Computer Sciences, vol. 13, no. 2, pp. 135–148, Oct. 2025.

Y. Cao et al., “Amalgamation of Geometry Structure, Meteorological and Thermophysical Parameters for Intelligent Prediction of Temperature Fields in 3D Scenes,” Sensors, 2022, doi: 10.3390/s22062386.

L. Borchert et al., “Skillful Decadal Prediction of Unforced Southern European Summer Temperature Variations,” Environmental Research Letters, 2021, doi: 10.1088/1748-9326/ac20f5.

W. Li et al., “DeepPhysiNet: Bridging Deep Learning and Atmospheric Physics for Accurate and Continuous Weather Modeling,” Jan. 2024.

J. Cifuentes, G. Marulanda, A. Bello, and J. Reneses, “Air Temperature Forecasting Using Machine Learning Techniques: A Review,” Energies, 2020, doi: 10.3390/en13164215.

S. S. Eide, M. A. Riegler, H. L. Hammer, and J. B. Bremnes, “Deep Tower Networks for Efficient Temperature Forecasting From Multiple Data Sources,” Sensors, 2022, doi: 10.3390/s22072802.

J. V. Ratnam et al., “Improving Seasonal Forecasts of Air Temperature Using a Genetic Algorithm,” Scientific Reports, 2019, doi: 10.1038/s41598-019-49281-z.

W. Li et al., “DeepPhysiNet: Bridging Deep Learning and Atmospheric Physics for Accurate and Continuous Weather Modeling,” Jan. 2024.

C.-Y. Lai et al., “Machine Learning for Climate Physics and Simulations,” Aug. 2024.

T. Beucler et al., “Climate-Invariant Machine Learning,” Jan. 2024.

R. Lam et al., “Learning Skillful Medium-Range Global Weather Forecasting,” Science, vol. 382, no. 6677, pp. 1416–1421, Dec. 2023, doi: 10.1126/science.adi2336.

R. Keisler, “Forecasting Global Weather with Graph Neural Networks,” Feb. 2022.

H. Shu, Y. Wang, W. Song, H. Guo, and Z. Song, “Forecasting the Future with Future Technologies: Advancements in Large Meteorological Models,” Apr. 2024.

Downloads

Published

2025-11-18

How to Cite

Inam, S. A., Hashim, H., Ashraf , S. N., Naim, S. W., Rajput, H., & Umer, S. (2025). AI-driven Physics Informed Neural Network for Daily Temperature Forecasting with Constraint Aware Learning and Explainable Feature Attribution. VFAST Transactions on Software Engineering, 13(4), 53–67. https://doi.org/10.21015/vtse.v13i4.2231