Skip to main content
Log in

Decomposed intrinsic mode functions and deep learning algorithms for water quality index forecasting

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

The water quality index (WQI) serves as a global representation of river water quality (WQ). Existing studies related to the WQI have mainly focused on two aspects: (i) a WQI point estimation using multiple WQ inputs; and (ii) a one-step-ahead WQI forecasting with datasets of lower temporal resolution. These approaches, however, are limited in their ability to forecast future trends of the WQI for timely and prompt responses to pollution events. In this study, the deep learning algorithms, namely the long short-term memory (LSTM) and the gated recurrent unit (GRU), were selected for direct multi-step-ahead WQI forecasting. To enhance the capability of the models in capturing their temporal patterns, the input signal was pre-decomposed using the empirical mode decomposition (EMD) and variational mode decomposition (VMD) into several intrinsic mode functions (IMFs). The characteristics of these IMFs were then analyzed and used to ease model learning on capturing their temporal patterns. Our study shows that the selection of signal decomposition strategies significantly impact the model performance. Both deep learning algorithms offered comparable performances, with the VMD-LSTM exhibiting the lowest prediction errors (MAPE = 1.9237%) and the highest Kling–Gupta efficiency (KGE = 0.6761) over a two-month test period. To the best of our knowledge, this is the first paper that applies a direct forecast approach for the multi-step-ahead WQI forecasting, using the IMFs obtained from the EMD and VMD decompositions. The performance of the model was evaluated through a rolling forward setup to ensure its consistency across different test periods. The proposed modeling framework holds the potential to assist policymakers and stakeholders in decision-making, particularly in planning remedies and efficient water resource management.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data availability

The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

Abbreviations

AN:

Ammoniacal nitrogen

ANN:

Artificial neural network

ARIMA:

Autoregressive integrated moving average

BOD:

Biochemical oxygen demand

CNN:

Convolutional neural network

COD:

Chemical oxygen demand

DL:

Deep learning

DO:

Dissolved oxygen

EMD:

Empirical mode decomposition

GRU:

Gated recurrent unit

IoT:

Internet of things

KGE:

Kling–Gupta efficiency

LSTM:

Long short-term memory

MAE:

Mean absolute error

MAPE:

Mean absolute percentage error

MBE:

Mean bias error

MIMO:

Multiple-input-multiple-output

MSE:

Mean-squared error

pH:

Potential for hydrogen

RMSE:

Root mean-squared error

RNN:

Recurrent neural network

SD:

Standard deviation

SS:

Suspended solids

VMD:

Variational mode decomposition

WQ:

Water quality

WQI:

Water quality index

References

  1. Lu H, Ma X (2020) Hybrid decision tree-based machine learning models for short-term water quality prediction. Chemosphere 249:126169

    Article  Google Scholar 

  2. Gazzaz NM, Yusoff MK, Aris AZ, Juahir H, Ramli MF (2012) Artificial neural network modeling of the water quality index for Kinta River (Malaysia) using water quality variables as predictors. Mar Pollut Bull 64(11):2409–2420

    Article  Google Scholar 

  3. Hameed M, Sharqi SS, Yaseen ZM, Afan HA, Hussain A, Elshafie A (2017) Application of artificial intelligence (AI) techniques in water quality index prediction: a case study in tropical region Malaysia. Neural Comput Appl 28(S1):893–905

    Article  Google Scholar 

  4. Najah A, Teo FY, Chow MF, Huang YF, Latif SD, Abdullah S, Ismail M, El-Shafie A (2021) Surface water quality status and prediction during movement control operation order under COVID-19 pandemic: Case studies in Malaysia. Int J Environ Sci Technol 18(4):1009–1018

    Article  Google Scholar 

  5. Othman F, Alaaeldin ME, Seyam M, Ahmed AN, Teo FY, Ming Fai C, Afan HA, Sherif M, Sefelnasr A, El-Shafie A (2020) Efficient river water quality index prediction considering minimal number of inputs variables. Eng Appl Comput Fluid Mech 14(1):751–763

    Google Scholar 

  6. Chen Y, Cheng Q, Cheng Y, Yang H, Yu H (2018) Applications of recurrent neural networks in environmental factor forecasting: a review. Neural Comput 30(11):2855–2881

    Article  MathSciNet  Google Scholar 

  7. Wai KP, Yan Chia M, Hoon Koo C, Feng Huang Y, Chan Chong W (2022) Applications of deep learning in water quality management: a state-of-the-art review. J Hydrol, 128332. https://linkinghub.elsevier.com/retrieve/pii/S0022169422009040.

  8. AlDahoul N, Essam Y, Kumar P, Ahmed AN, Sherif M, Sefelnasr A, Elshafie A (2021) Suspended sediment load prediction using long short-term memory neural network. Sci Rep 11(1):7826

    Article  Google Scholar 

  9. Dong Q, Lin Y, Bi J, Yuan H (2019) An integrated deep neural network approach for large-scale water quality time series prediction. In: Conference proceedings - IEEE international conference on systems, man and cybernetics. October 2019 IEEE, 3537–3542.

  10. Qin H (2019) Comparison of deep learning models on time series forecasting: a case study of dissolved oxygen prediction. http://arxiv.org/abs/1911.08414

  11. Li, Wu H, Zhu N, Jiang Y, Tan J, Guo Y (2021) Prediction of dissolved oxygen in a fishery pond based on gated recurrent unit (GRU). Inf Proc Agric 8(1):185–193

    Google Scholar 

  12. Yan J, Liu J, Yu Y, Xu H (2021) Water quality prediction in the luan river based on 1-DRCNN and BiGRU hybrid neural network model. Water 13(9):1273

    Article  Google Scholar 

  13. Song T, Wang Z, Xie P, Han N, Jiang J, Xu D (2020) A novel dual path gated recurrent unit model for sea surface salinity prediction. J Atmos Ocean Technol 37(2):317–325

    Article  Google Scholar 

  14. Loc HH, Do QH, Cokro AA, Irvine KN (2020) Deep neural network analyses of water quality time series associated with water sensitive urban design (WSUD) features. J Appl Water Eng Res 8(4):313–332

    Article  Google Scholar 

  15. Zhou Y (2020) Real-time probabilistic forecasting of river water quality under data missing situation: deep learning plus post-processing techniques. J Hydrol 589:125164

    Article  Google Scholar 

  16. Xu R, Xiong Q, Yi H, Wu C, Ye J (2019) Research on water quality prediction based on SARIMA-LSTM: a case study of beilun estuary. In: Proceedings - 21st IEEE international conference on high performance computing and communications, 17th IEEE international conference on smart city and 5th IEEE international conference on data science and systems, HPCC/SmartCity/DSS 2019, pp 2183–2188

  17. Zhang YF, Fitch P, Thorburn PJ (2020) Predicting the trend of dissolved oxygen based on the kPCA-RNN model. Water (Switzerland) 12(2):585

    Google Scholar 

  18. Zhang H, Jin K (2020) Research on water quality prediction method based on AE-LSTM. In: Proceedings - 5th international conference on automation, control and robotics engineering, CACRE 2020, 602–606

  19. Tu J, Yang X, Chen C, Gao S, Wang J, Sun C (2019) Water quality prediction model based on GRU hybrid network. In: Proceedings - 2019 Chinese automation congress, CAC 2019, pp 1893–1898

  20. Marndi A, Patra GK (2020) Chlorophyll prediction using ensemble deep learning technique. Adv Intell Syst Comput 1119:341–349

    Article  Google Scholar 

  21. Maji U, Pal S (2016) Empirical mode decomposition vs. variational mode decomposition on ECG signal processing: a comparative study. In: 2016 international conference on advances in computing, communications and informatics (ICACCI). September 2016 IEEE, pp. 1129–1134.

  22. Mohanty S, Gupta KK, Raju KS (2014) Comparative study between VMD and EMD in bearing fault diagnosis. In: 2014 9th international conference on industrial and information systems (ICIIS). December 2014 IEEE, pp 1–6

  23. Wu S, Feng F, Zhu J, Wu C, Zhang G (2020) A method for determining intrinsic mode function number in variational mode decomposition and its application to bearing vibration signal processing. Shock Vib, pp 1–16. https://www.hindawi.com/journals/sv/2020/8304903/.

  24. Eze E, Ajmal T (2020) Dissolved oxygen forecasting in aquaculture: a hybrid model approach. Appl Sci Switzerland 10(20):1–14

    Google Scholar 

  25. Zhang X, Zhang Q, Zhang G, Nie Z, Gui Z, Que H (2018) A novel hybrid data-driven model for daily land surface temperature forecasting using long short-term memory neural network based on ensemble empirical mode decomposition. Int J Environ Res Public Health 15(5):1032

    Article  Google Scholar 

  26. Fijani E, Barzegar R, Deo R, Tziritis E, Konstantinos S (2019) Design and implementation of a hybrid model based on two-layer decomposition method coupled with extreme learning machines to support real-time environmental monitoring of water quality parameters. Sci Total Environ 648:839–853

    Article  Google Scholar 

  27. Dong L, Zhang J (2021) Predicting polycyclic aromatic hydrocarbons in surface water by a multiscale feature extraction-based deep learning approach. Sci Total Environ 799:149509

    Article  Google Scholar 

  28. Song C, Yao L, Hua C, Ni Q (2021) A novel hybrid model for water quality prediction based on synchrosqueezed wavelet transform technique and improved long short-term memory. J Hydrol 603:126879

    Article  Google Scholar 

  29. Yang H, Liu S (2021) A prediction model of aquaculture water quality based on multiscale decomposition. Math Biosci Eng 18(6):7561–7579. https://doi.org/10.3934/mbe.2021374

    Article  Google Scholar 

  30. Shao X, Kim CS (2020) Multi-step short-term power consumption forecasting using multi-channel LSTM with time location considering customer behavior. IEEE Access 8:125263–125273

    Article  Google Scholar 

  31. Menapace A, Zanfei A, Righetti M (2021) Tuning ANN hyperparameters for forecasting drinking water demand. Appl Sci 11(9):4290

    Article  Google Scholar 

  32. Huang NE, Shen Z, Long SR, Wu MC, Shih HH, Zheng Q, Yen N-C, Tung CC, Liu HH (1998) The empirical mode decomposition and the Hilbert spectrum for nonlinear and non-stationary time series analysis. Proc R Soc Lond Ser A Math Phys Eng Sci 454(1971):903–995. https://doi.org/10.1098/rspa.1998.0193

    Article  MathSciNet  Google Scholar 

  33. Dragomiretskiy K, Zosso D (2014) Variational Mode Decomposition. IEEE Trans Signal Process 62(3):531–544

    Article  MathSciNet  Google Scholar 

  34. Isham MF, Leong MS, Lim MH, Ahmad ZA (2018) Variational mode decomposition: mode determination method for rotating machinery diagnosis. J Vibroeng 20(7):2604–2621

    Article  Google Scholar 

  35. Han L, Zhang R, Wang X, Bao A, Jing H (2019) Multi-step wind power forecast based on VMD-LSTM. IET Renew Power Gen 13(10):1690–1700

    Article  Google Scholar 

  36. Wang C, Liu Z, Wei H, Chen L, Zhang H (2021) Hybrid deep learning model for short-term wind speed forecasting based on time series decomposition and gated recurrent unit. Complex Syst Model Simul 1(4):308–321

    Article  Google Scholar 

  37. Li Y, Li Y, Chen X, Yu J (2017) Research on ship-radiated noise denoising using secondary variational mode decomposition and correlation coefficient. Sensors 18(1):48

    Article  Google Scholar 

  38. Yang W, Peng Z, Wei K, Shi P, Tian W (2017) Superiorities of variational mode decomposition over empirical mode decomposition particularly in time–frequency feature extraction and wind turbine condition monitoring. IET Renew Power Gen 11(4):443–452. https://doi.org/10.1049/iet-rpg.2016.0088

    Article  Google Scholar 

  39. Chia MY, Huang YF, Koo CH, Ng JL, Ahmed AN, El-Shafie A (2022) Long-term forecasting of monthly mean reference evapotranspiration using deep neural network: a comparison of training strategies and approaches. Appl Soft Comput, 109221. https://linkinghub.elsevier.com/retrieve/pii/S1568494622004483.

  40. Cho H, Park H (2019) Merged-LSTM and multistep prediction of daily chlorophyll- a concentration for algal bloom forecast. IOP Conf Ser Earth Environ Sci 351(1):12020

    Article  Google Scholar 

  41. Liu D (2020) A rational performance criterion for hydrological model. J Hydrol 590:125488

    Article  Google Scholar 

  42. Knoben WJM, Freer JE, Woods RA (2019) Technical note: inherent benchmark or not? Comparing Nash-Sutcliffe and Kling-Gupta efficiency scores. Hydrol Earth Syst Sci 23(10):4323–4331

    Article  Google Scholar 

  43. Maharaj EA (2002) Comparison of non-stationary time series in the frequency domain. Comput Stat Data Anal 40(1):131–141

    Article  MathSciNet  Google Scholar 

  44. Silva PC, Severiano CA, Alves MA, Silva R, Weiss Cohen M, Guimarães FG (2020) Forecasting in non-stationary environments with fuzzy time series. Appl Soft Comput 97:106825

    Article  Google Scholar 

  45. Hong Y-Y, Yu T-H, Liu C-Y (2013) Hour-ahead wind speed and power forecasting using empirical mode decomposition. Energies 6(12):6137–6152

    Article  Google Scholar 

  46. Feng SW, Chai K (2020) An improved method for EMD modal aliasing effect. Vibroeng PROCEDIA 35:76–81

    Article  Google Scholar 

  47. Barzegar R, Aalami MT, Adamowski J (2020) Short-term water quality variable prediction using a hybrid CNN–LSTM deep learning model. Stochast Environ Res Risk Assess 34(2):415–433

    Article  Google Scholar 

  48. Hu Y, Wang N, Liu S, Jiang Q, Zhang N, Liang C (2020) Prediction of river water quality based on neural network model. In: 2020 IEEE 6th international conference on computer and communications, ICCC 2020, pp 2075–2079

  49. Xu D, Zhang Q, Ding Y, Zhang D (2022) Application of a hybrid ARIMA-LSTM model based on the SPEI for drought forecasting. Environ Sci Pollut Res 29(3):4128–4144

    Article  Google Scholar 

  50. Miller JD, Hutchins M (2017) The impacts of urbanisation and climate change on urban flooding and urban water quality: a review of the evidence concerning the United Kingdom. J Hydrol Reg Stud 12:345–362

    Article  Google Scholar 

  51. Whitehead PG, Wilby RL, Battarbee RW, Kernan M, Wade AJ (2009) A review of the potential impacts of climate change on surface water quality. Hydrol Sci J 54(1):101–123

    Article  Google Scholar 

  52. Cao J, Li Z, Li J (2019) Financial time series forecasting model based on CEEMDAN and LSTM. Phys A Stat Mech Appl 519:127–139

    Article  Google Scholar 

  53. An G, Tong Q, Zhang Y, Liu R, Li W, Cao J, Lin Y, Wang Q, Zhu Y, Pu X (2021) A parameter-optimized variational mode decomposition investigation for fault feature extraction of rolling element bearings. In: Chen Y (ed) Mathematical problems in engineering, 2021, 1–15. https://www.hindawi.com/journals/mpe/2021/6629474/

  54. Bi J, Lin Y, Dong Q, Yuan H, Zhou MC (2020) An improved attention-based LSTM for multi-step dissolved oxygen prediction in water environment. In: 2020 IEEE international conference on networking, sensing and control (ICNSC). 30 October 2020 IEEE, pp 1–6

Download references

Acknowledgements

This research was funded by Universiti Tunku Abdul Rahman (UTAR), Malaysia through the Universiti Tunku Abdul Rahman Research Fund under project number IPSR/RMC/UTARRF/2020-C2/K03. The authors are very grateful and appreciate very much the financial support provided. We extend our appreciation to the Selangor State Government for generously providing the WQI dataset used in this research. Their contribution was instrumental in our study and greatly enriched our findings.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chai Hoon Koo.

Ethics declarations

Competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Wai, K.P., Koo, C.H., Huang, Y.F. et al. Decomposed intrinsic mode functions and deep learning algorithms for water quality index forecasting. Neural Comput & Applic (2024). https://doi.org/10.1007/s00521-024-09698-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s00521-024-09698-8

Keywords

Navigation