skip to main content

NH4 Modelling with ARIMA and LSTM

Magister Sains Data, Fakultas Sains dan Matematika, Universitas Kristen Satya Wacana, Indonesia, Indonesia

Received: 30 Dec 2023; Revised: 27 May 2024; Accepted: 9 Jul 2024; Available online: 11 Nov 2024; Published: 11 Nov 2024.
Editor(s): Budi Warsito

Citation Format:
Abstract

AI-Mining is a prototype designed to detect various environmental gases, including CO2, NH3, NH4, and hydrogen, alongside temperature, pressure, and humidity. This study emphasizes the importance of modeling NH4 time series data due to its critical role in environmental and health monitoring. Accurate NH4 predictions facilitate early pollution detection and timely greenhouse gas control interventions. The study investigates the effectiveness of AI-Mining in detecting and predicting gas levels, focusing on data collection and analysis. Initial data analysis employed the Autoregressive Moving Average (ARIMA) model, specifically ARIMA (1,1,1), described by the equation yt = 0.0311 - 0.0750yt-1 + 0.3842εt-1. Despite its use, ARIMA's Root Mean Square Error (RMSE) performance was found lacking compared to more advanced methods. Given the classification of the obtained data as big data and time series, the Long Short-Term Memory (LSTM) method was also applied. The LSTM model initially used two layers with tanh and relu activation functions, and its performance was further explored by adding a third layer and varying the number of neurons (64, 128, and 256). The Adam optimizer was consistently used across all LSTM variations. Results indicated that increasing layers and neurons did not significantly impact LSTM's performance, with RMSE values around 0.023. However, LSTM consistently outperformed ARIMA in prediction accuracy, highlighting its robustness and reliability. Consequently, the study recommends using LSTM for predicting other recorded data in AI-Mining, underscoring its superiority in handling complex environmental datasets.

Fulltext View|Download
Keywords: NH4; ARIMA; LSTM; RMSE; gas detection
Funding: Universitas Kristen Satya Wacana under contract Matching Fund 2022

Article Metrics:

  1. Contents, T. O. F. (2018). Author Information Pack. Advances in Accounting, 42, I–VIII. https://doi.org/10.1016/s0882-6110(18)30184-6
  2. Elshewey, A. M., Shams, M. Y., Elhady, A. M., Shohieb, S. M., Abdelhamid, A. A., Ibrahim, A., & Tarek, Z. (2023). A Novel WD-SARIMAX Model for Temperature Forecasting Using Daily Delhi Climate Dataset. Sustainability (Switzerland), 15(1), 1–15. https://doi.org/10.3390/su15010757
  3. Erman, M., Anand, S., Adil, Sahu, A., & Arqim, M. (2022). Comparisons of Autoregressive Integrated Moving Average (ARIMA) and Long Short Term Memory (LSTM) Network Models for Ionospheric Anomalies Detection: a Study on Haiti (Mw = 7.0) earthquake. Acta Geodaetica et Geophysica, 57, 195–213. https://doi.org/https://doi.org/10.1007/s40328-021-00371-3
  4. Feng, Y., Li, L. Z. X., Wu, J., Piao, S., Chen, A., & Zeng, Z. (2023). Earth greening mitigates hot temperature extremes despite the effect being dampened by rising CO 2 •. One Earth, 3322(23), 1–22. https://doi.org/https://doi.org/10.1016/j.oneear.2023.12.003
  5. Flores, J. H. F., Engel, P. M., & Pinto, R. C. (2012). Autocorrelation and partial autocorrelation functions to improve neural networks models on univariate time series forecasting. Proceedings of the International Joint Conference on Neural Networks, 10–13. https://doi.org/10.1109/IJCNN.2012.6252470
  6. Harris, R. I. D. (1992). Testing for unit roots using the augmented Dickey-Fuller test. Some issues relating to the size, power and the lag structure of the test. Economics Letters, 38(4), 381–386. https://doi.org/10.1016/0165-1765(92)90022-Q
  7. Ilya, S., Oriol, V., & Quoc V, L. A. (2014). Sequence to sequence learning with neural networks. NIPS’14: Proceedings of the 27th International Conference on Neural Information Processing Systems - Volume 2, 3104–3112. https://doi.org/10.5555/2969033.2969173
  8. Kumar, J., Goomer, R., & Singh, A. K. (2018). Long Short Term Memory Recurrent Neural Network (LSTM-RNN) Based Workload Forecasting Model for Cloud Datacenters. Procedia Computer Science, 125, 676–682. https://doi.org/10.1016/j.procs.2017.12.087
  9. Kumar, Y., Koul, A., Kaur, S., & Hu, Y. C. (2023). Machine Learning and Deep Learning Based Time Series Prediction and Forecasting of Ten Nations’ COVID-19 Pandemic. SN Computer Science, 4(1), 1–27. https://doi.org/10.1007/s42979-022-01493-3
  10. Malhi, G. S., Kaur, M., & Kaushik, P. (2021). Impact of climate change on agriculture and its mitigation strategies: A review. Sustainability (Switzerland), 13(3), 1–21. https://doi.org/10.3390/su13031318
  11. Nkongolo, M. (2023). Using ARIMA to Predict the Growth in the Subscriber Data Usage. Eng, 4(1), 92–120. https://doi.org/10.3390/eng4010006
  12. Ospina, R., Gondim, J. A. M., Leiva, V., & Castro, C. (2023). An Overview of Forecast Analysis with ARIMA Models during the COVID-19 Pandemic: Methodology and Case Study in Brazil. Mathematics, 11(14), 1–18. https://doi.org/10.3390/math11143069
  13. Parhusip, H. A., Trihandaru, S., Atyanta, N. R., Puspasari, M. D., Heriadi, A. H., & Santosa, P. P. (2023). Implementation of AI Using a Case Study of Hydrogen Gas From an AI-Mining Prototype. 2022-IEEE International Interdisciplinary Humanitarian Conference for Sustainability (IIHC-2022), 488–492. https://ieeexplore.ieee.org/document/10060066
  14. Paviglianiti, A., Randazzo, V., Villata, S., Cirrincione, G., & Pasero, E. (2022). A Comparison of Deep Learning Techniques for Arterial Blood Pressure Prediction. Cognitive Computation, 14, 1689–1710. https://doi.org/10.1007/s12559-021-09910-0
  15. Quan, F., Zhan, G., Zhou, B., Ling, C., Wang, X., Shen, W., Li, J., Jia, F., & Zhang, L. (2023). Electrochemical removal of ammonium nitrogen in high efficiency and N2 selectivity using non-noble single-atomic iron catalyst. Journal of Environmental Sciences (China), 125(March), 544–552. https://doi.org/10.1016/j.jes.2022.03.004
  16. Rhanoui, M., Yousfi, S., Mikram, M., & Merizak, H. (2019). Forecasting financial budget time series: Arima random walk vs lstm neural network. IAES International Journal of Artificial Intelligence, 8(4), 317–327. https://doi.org/10.11591/ijai.v8.i4.pp317-327
  17. Stein, L. Y., & Martin, G. K. (2016). The Nitrogen Cycle. Current Biology, 26(3), R94–R98. https://doi.org/https://doi.org/10.1016/j.cub.2015.12.021
  18. Weiß, C. H., Aleksandrov, B., Faymonville, M., & Jentsch, C. (2023). Partial Autocorrelation Diagnostics for Count Time Series. Entropy, 25(1), 1–21. https://doi.org/10.3390/e25010105
  19. Xayasouk, T., Lee, H. M., & Lee, G. (2020). Air pollution prediction using long short-term memory (LSTM) and deep autoencoder (DAE) models. Sustainability (Switzerland), 12(6). https://doi.org/10.3390/su12062570
  20. Zhang, R., Song, H., Chen, Q., Wang, Y., Wang, S., & Li, Y. (2022). Comparison of ARIMA and LSTM for prediction of hemorrhagic fever at different time scales in China. PLoS ONE, 17(1 January 2022). https://doi.org/10.1371/journal.pone.0262009
  21. Zhang, S., Lin, M., Zou, X., Su, S., Zhang, W., Zhang, X., & Guo, Z. (2020). LSTM-based air quality predicted model for large cities in China. Nature Environment and Pollution Technology, 19(1), 229–236

Last update:

No citation recorded.

Last update: 2024-11-11 21:12:32

No citation recorded.