Rainfall prediction model in Semarang City using machine learning

Carissa Devina Usman, Aris Puji Widodo, Kusworo Adi, Rahmat Gernowo


The erratic distribution of rainfall greatly affects people's daily activities, especially in Semarang City, so it is necessary to predict rainfall. Correct prediction of rainfall can improve community preparedness in dealing with natural disasters. Algorithms for machine learning and data mining have been extensively utilized in research involving rainfall data from various regions. The primary objectives of this study are to find the best regression algorithm and use machine learning algorithms to predict rainfall in Semarang. The dataset used is daily rainfall data for the City of Semarang from the meteorological, climatological, and geophysical agency (BMKG). Machine learning algorithms such as multiple linear regression, random forest regression, and replicated neural networks will be used to conduct regression analysis on this dataset. The mean absolute error and Root mean squared error techniques are utilized to evaluate the performance of machine learning algorithms. With an error rate of 13.055 for root mean squared error (RMSE) and 6.621 for mean absolute error (MAE), the results of the research indicate that the performance of the neural network algorithm is superior to that of other algorithms.


Artificial neural network; Machine learning; Multiple linear regression; Rainfall prediction; Random forest regression

Full Text:


DOI: http://doi.org/10.11591/ijeecs.v30.i2.pp1224-1231


  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


The Indonesian Journal of Electrical Engineering and Computer Science (IJEECS)
p-ISSN: 2502-4752, e-ISSN: 2502-4760
This journal is published by the Institute of Advanced Engineering and Science (IAES) in collaboration with Intelektual Pustaka Media Utama (IPMU).

shopify stats IJEECS visitor statistics