IMPLEMENTATION OF LSTM (LONG SHORT TERM MEMORY) ALGORITHM TO PREDICT WEATHER IN CENTRAL JAVA

  • Rhedy Irwan Study Program in Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
  • Pulung Nurtantio Andono Study Program in Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
  • Farrikh Al Zami Study Program in Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
  • Filmada Ocky Saputra Study Program in Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
  • Rama Aria Megantara Study Program in Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
  • L. Budi Handoko Study Program in Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
  • Chaerul Umam Study Program in Informatics Engineering, Faculty of Computer Science, Universitas Dian Nuswantoro, Semarang, Indonesia
Keywords: Central Java, LSTM, MSE, RMSE, Weather Prediction

Abstract

Agro-indutrial agricultural production such as red onions in Indonesia has a very important share in driving Indonesia's economic growth, especially in Central Java province which contributed 28.15% of the total national red onion production in 2021. Weather conditions have a major influence on the red onion planting process until the red onions are ready to be harvested. In this study, the objective is to predict various types of weather such as rainfall, air temperature, and air humidity in seven districts in Central Java, namely Brebes, Temanggung, Demak, Boyolali, Kendal, Pati, and Tegal. To do this, the use of the LSTM (Long Short Term Memory) algorithm with its ability to store memory longer than RNN will be reliable for predicting various types of weather in the future. This research was developed with the CRISP-DM (Cross Industry Process Model for Data Mining) method which has a goal-oriented approach, this method is a mature and widely accepted method in Data Mining with various applications in Machine Learning. With the final results from 39 models by using the evaluation of the average value of train MSE 0.013, test RMSE 0.11, test MSE of 0.02, test RMSE 0.12 and succeed to predict 5 days or months ahead from the last data that is provided.

Downloads

Download data is not yet available.

References

P. N. Andono, F. O. Saputra, G. F. Shidik, and Z. A. Hasibuan, “End-to-End Circular Economy in Onion Farming with the Application of Artificial Intelligence and Internet of Things,” in 2022 International Seminar on Application for Technology of Information and Communication: Technology 4.0 for Smart Ecosystem: A New Way of Doing Digital Business, iSemantic 2022, 2022. doi: 10.1109/iSemantic55962.2022.9920447.

Y. H. Asnawi et al., “Engineering and Technology Challenges of the Energy Usage: An Estimation for Agro-Industrial in Indonesia,” in IOP Conference Series: Materials Science and Engineering, 2020. doi: 10.1088/1757-899X/874/1/012034.

F. Kharianti and N. A. B. Rahman, “An Analysis Behaviour Of Palm Sugar Traders In Mandailing Natal Based On Islamic Business Ethics Perspective,” J. Indones. Manag. JIM, vol. 2, no. 2, 2022, doi: 10.53697/jim.v2i2.615.

W. Sepriani and Yuliawati, “PENYERAPAN TENAGA KERJA OLEH SEKTOR PERTANIAN Tahun 2016-2021,” J. Samudra Ekon., vol. 6, no. 1, 2022.

S. I. Kusumaningrum, “Pemanfaatan Sektor Pertanian Sebagai Penunjang Pertumbuhan Perekonomian Indonesia,” Transaksi, vol. 11, no. 1, pp. 80–89, 2019.

Y. R. Kang et al., “Calorie restriction effect of heat-processed onion extract (ONI) using in vitro and in vivo animal models,” Int. J. Mol. Sci., vol. 19, no. 3, 2018, doi: 10.3390/ijms19030874.

L. Ricciardi et al., “Assessment of genetic diversity of the ‘acquaviva red onion’ (Allium cepa L.) apulian landrace,” Plants, vol. 9, no. 2, 2020, doi: 10.3390/plants9020260.

E. R. Araújo, D. P. Alves, and J. R. Knoth, “Weather-based decision support reduces the fungicide spraying to control onion downy mildew,” Crop Prot., vol. 92, pp. 89–92, 2017, doi: https://doi.org/10.1016/j.cropro.2016.10.022

P. B. Leelavinodhan, M. Vecchio, F. Antonelli, A. Maestrini, and D. Brunelli, “Design and implementation of an energy-efficient weather station for wind data collection†,” Sensors, vol. 21, no. 11, 2021, doi: 10.3390/s21113831.

M. Isip, R. Alberto, and A. Biagtan, “Forecasting anthracnose-twister disease using weather based parameters: geographically weighted regression focus,” Spat. Inf. Res., vol. 29, no. 5, 2021, doi: 10.1007/s41324-021-00386-6

N. K. Manaswi, Deep Learning with Applications Using Python. 2018. doi: 10.1007/978-1-4842-3516-4.

B. Kamala and B. Latha, “Process Mining and Deep Neural Network approach for the Prediction of Business Process Outcome,” in 2022 International Conference on Communication, Computing and Internet of Things, IC3IoT 2022 - Proceedings, 2022. doi: 10.1109/IC3IOT53935.2022.9767941.

E. Ivan and H. D. Purnomo, “FORECASTING PRICES OF FERTILIZER RAW MATERIALS USING LONG SHORT TERM MEMORY,” J. Tek. Inform. Jutif, vol. 3, no. 6, pp. 1663–1673, Dec. 2022, doi: 10.20884/1.jutif.2022.3.6.433

H. Chung and K. S. Shin, “Genetic algorithm-optimized long short-term memory network for stock market prediction,” Sustain. Switz., vol. 10, no. 10, 2018, doi: 10.3390/su10103765.

C. Hu, Y. Zhao, H. Jiang, M. Jiang, F. You, and Q. Liu, “Prediction of ultra-short-term wind power based on CEEMDAN-LSTM-TCN,” Energy Rep., vol. 8, pp. 483–492, 2022, doi: https://doi.org/10.1016/j.egyr.2022.09.171.

J. A. Solano, D. J. L. Cuesta, S. F. U. Ibáñez, and J. R. Coronado-Hernández, “Predictive models assessment based on CRISP-DM methodology for students performance in Colombia - Saber 11 Test,” in Procedia Computer Science, 2021. doi: 10.1016/j.procs.2021.12.278.

B. Zohuri, F. Mossavar-Rahmani, and F. Behgounia, “Chapter 26 - Python programming–driven artificial intelligence,” in Knowledge is Power in Four Dimensions: Models to Forecast Future Paradigm, B. Zohuri, F. Mossavar-Rahmani, and F. Behgounia, Eds., Academic Press, 2022, pp. 827–836. doi: https://doi.org/10.1016/B978-0-323-95112-8.00026-X.

B. Prashanth, M. Mendu, and R. Thallapalli, “Cloud based Machine learning with advanced predictive Analytics using Google Colaboratory,” Mater. Today Proc., 2021, doi: https://doi.org/10.1016/j.matpr.2021.01.800.

P. Deekshith and R. P. Singh, “Review on Advanced Machine Learning Model: Scikit-Learn,” Int. J. Sci. Res. Eng. Dev., vol. 3, no. 4, 2020.

A. G. Salman, Y. Heryadi, E. Abdurahman, and W. Suparta, “Single Layer & Multi-layer Long Short-Term Memory (LSTM) Model with Intermediate Variables for Weather Forecasting,” Procedia Comput. Sci., vol. 135, pp. 89–98, 2018, doi: https://doi.org/10.1016/j.procs.2018.08.153.

R. A. de Oliveira and M. H. J. Bollen, “Deep learning for power quality,” Electr. Power Syst. Res., vol. 214, p. 108887, 2023, doi: https://doi.org/10.1016/j.epsr.2022.108887.

T. Point, “TensorFlow Tutorial,” Tutor. Point Pvt Ltd, 2019.

C. François, “Why use Keras - Keras Documentation,” Keras.Io, 2018, [Online]. Available: https://keras.io/why-use-keras

X. Wei, L. Zhang, H.-Q. Yang, L. Zhang, and Y.-P. Yao, “Machine learning for pore-water pressure time-series prediction: Application of recurrent neural networks,” Geosci. Front., vol. 12, no. 1, pp. 453–467, 2021, doi: https://doi.org/10.1016/j.gsf.2020.04.011.

S. Cao, Y. Zeng, S. Yang, and S. Cao, “Research on Python Data Visualization Technology,” in Journal of Physics: Conference Series, 2021. doi: 10.1088/1742-6596/1757/1/012122.

M. Waskom, “seaborn: statistical data visualization,” J. Open Source Softw., vol. 6, no. 60, 2021, doi: 10.21105/joss.03021.

H. Chen and X. Chang, “Photovoltaic power prediction of LSTM model based on Pearson feature selection,” Energy Rep., vol. 7, pp. 1047–1054, 2021, doi: https://doi.org/10.1016/j.egyr.2021.09.167.

M. Yu, F. Xu, W. Hu, J. Sun, and G. Cervone, “Using Long Short-Term Memory (LSTM) and Internet of Things (IoT) for Localized Surface Temperature Forecasting in an Urban Environment,” IEEE Access, vol. 9, 2021, doi: 10.1109/ACCESS.2021.3116809.

D. Endalie, G. Haile, and W. Taye, “Deep learning model for daily rainfall prediction: case study of Jimma, Ethiopia,” Water Supply, vol. 22, no. 3, pp. 3448–3461, Nov. 2021, doi: 10.2166/ws.2021.391.

Published
2023-12-23
How to Cite
[1]
R. Irwan, “IMPLEMENTATION OF LSTM (LONG SHORT TERM MEMORY) ALGORITHM TO PREDICT WEATHER IN CENTRAL JAVA”, J. Tek. Inform. (JUTIF), vol. 4, no. 6, pp. 1347-1357, Dec. 2023.