Explainable Physics-Informed LSTM with Attention for Dissolved Oxygen Prediction in Aquaponics Systems
Journal: International Journal of Engineering and Manufacturing @ijem
Article in issue: 6 vol.16, 2026.
Free access
Accurate real-time prediction of dissolved oxygen (DO) concentration is critical for maintaining aquatic health in aquaponics systems. However, purely data-driven deep learning models often fail to capture the underlying physicochemical dynamics governing oxygen transfer and consumption, leading to physically inconsistent predictions and poor generalisation under distribution shift. This paper presents a novel Physics-Informed Neural Network (PINN) framework that integrates a two-film oxygen transfer model — including Arrhenius-corrected gas transfer kinetics and Benson–Krause saturation — as a differentiable physics loss within a stacked LSTM architecture augmented with multi-head self-attention and Integrated Gradients (IG) based post-hoc explainability. The proposed model jointly learns neural network weights and physically interpretable parameters (k_La, r_base) through a curriculum-based training strategy with a warmup–ramp–plateau physics weight schedule. We further incorporate Integrated Gradients for post-hoc explainability (XAI), providing transparent attribution maps over temporal input features. The framework is evaluated on a chronologically ordered aquaponics sensor dataset comprising approximately 10,000 hourly observations of water temperature and dissolved oxygen concentration. A comprehensive benchmark against five baseline architectures (Standard LSTM, BiLSTM, CNN-LSTM, TCN, Attention-LSTM) across five random seeds demonstrates that the proposed PINN-LSTM achieves an R² of 0.9890 ± 0.0008, MAE of 0.0932 ± 0.0038 mg/L, and NSE of 0.9885 ± 0.0009 — representing a 67.1% MAE reduction over the Standard LSTM baseline. Statistical significance is confirmed via Diebold–Mariano (p < 0.001) and Wilcoxon signed-rank tests (p < 0.05). Ablation analysis validates the contribution of each component: physics regularisation, attention mechanism, warmup scheduling, and Arrhenius temperature correction. Conformal prediction intervals achieve 91.4% empirical coverage at a 90% target with narrow prediction bands of 0.702 mg/L. The learned physics parameters (k_La = 0.342 ± 0.021 h⁻¹, r_base = 0.127 ± 0.018 mg/L/h) fall within established literature ranges, confirming physical plausibility.
Short address: https://sciup.org/15020846
IDS: 15020846 | DOI: 10.5815/ijem.2026.06.02