Combining the Group Method of Data Handling with Firefly Algorithm for Rainfall Forecasting
DOI:
https://doi.org/10.11113/ijic.v16n1.677Keywords:
Group method of data handling, GMDH-FA, forecastingAbstract
Rainfall forecasting continues with the evolution of mixed and new research, where a variety of the same models have been suggested to make some improvements in prediction validity. However, at the same time there is a lack of models that seems to be single capable of handling all features of the data to the best of its ability, with multi-method selection difficult. One way to overcome this constraint is that model combination methods have rapidly emerged in time series forecasting, especially precipitation forecasting. These can be an array of simple but complex model pairs. This study proposes a rainfall forecasting framework for the work based on Group Method of Data Handling (GMDH) and Firefly Algorithm (FA). Forecasting is first of all done based on the GMDH (with polynomial transfer function, GMDH-Poly). Then the model is further enlarged with transfer functions (Sigmoid function, Tangent function, and Radial Basis Function). After that, FA is used to heuristically update the weights of each GMDH variant, taking into account the output from this optimisation for a better prediction. This proposed approach is applied in the case of rainfall data in Kuching, Sarawak for the years 2010–2019. The experimental results clearly show the hybrid GMDH-FA model significantly outperforms the standard GMDH model. In particular, GMDH-FA scoring RMSE, MAE and MAPE is 0.0550, 0.0455 and 24.0733 respectively, which is significantly lower than that of, GMDH-Poly (0.0981, 0.0761 and 47.3864) in testing data set.
References
Ivakhnenko, A. G. (1971). Polynomial theory of complex systems. IEEE Transactions on Systems, Man, and Cybernetics, 4, 364–378.
Tamura, H., & Kondo, T. (1978). Revised GMDH algorithm using prediction sum of squares (PSS) as a criterion for model selection. Transactions of the Society of Instrument and Control Engineers, 14(5), 519–524.
Tauser, J., & Buryan, P. (2011). Exchange rate predictions in international financial management by enhanced GMDH algorithm. Prague Economic Papers, 20(3), 232–249.
Ugrasen, G., Ravindra, H. V., Prakash, G. N., & Keshavamurthy, R. (2014). Estimation of machining performances using MRA, GMDH and artificial neural network in wire EDM of EN-31. Procedia Materials Science, 6, 1788–1797.
Danandeh Mehr, A. (2020). Seasonal rainfall hindcasting using ensemble multi-stage genetic programming. Theoretical and Applied Climatology. https://doi.org/10.1007/s00704-020-03438-3.
Janarthanan, R., Balamurali, R., Annapoorani, A., & Vimala, V. (2021). Prediction of rainfall using fuzzy logic. Materials Today: Proceedings, 37, 959–963.
Wu, J., & Zhou, J. (2009). Support vector regression based on particle swarm optimization and projection pursuit technology for rainfall forecasting. In 2009 International Conference on Computational Intelligence and Security.
Refonaa, J., Lakshmi, M., Srinivasa Rao, R. S. S., & Prasad, E. (2019). Rainfall prediction using genetic algorithm. International Journal of Recent Technology and Engineering (IJRTE), 8(2S3).
Onwubolu, G. C., Buryan, P., Garimella, S., Ramachandran, V., Buadromo, V., & Abraham, A. (2007). Self-organizing data mining for weather forecasting. In IADIS European Conference on Data Mining.
Jirina, M. (1994). The modified GMDH sigmoidal and polynomial neural net. IFAC Proceedings, 27(8), 611–613.
Kondo, T., & Pandya, A. S. (2003). Structural identification of the multi-layered neural networks by using revised GMDH-type neural network algorithm with a feedback loop. In SICE 2003 Annual Conference (Vol. 3, pp. 2768–2773). IEEE.
Narawi, A., Jawawi, D. N. A., & Samsudin, R. (2022). Rainfall forecasting using the group method of data handling model: A case study of Sarawak, Malaysia. In Lecture Notes on Data Engineering and Communications Technologies (Vol. 127, pp. 129–140). Springer.
Nourani, V., & Komasi, M. (2013). A geomorphology-based ANFIS model for multi-station modeling of rainfall-runoff process. Journal of Hydrology, 490, 41–55.
Yang, X. S. (2008). Nature-inspired metaheuristic algorithms. Luniver Press.
Yang, X. S. (2010). Firefly algorithm, stochastic test functions and design optimization. International Journal of Bio-Inspired Computation, 2(2), 78–84.
Yang, X. S., & He, X. S. (2013). Firefly algorithm: Recent advances and applications. International Journal of Swarm Intelligence, 1(1), 36–50.
Horng, M. H., Lee, Y. X., Lee, M. C., & Liou, R. J. (2011). Firefly meta-heuristic algorithm for training the radial basis function network for data classification and disease diagnosis. In Theory and New Applications of Swarm Intelligence (pp. 115–132).
Xiao, L., Shao, W., Liang, T., & Wang, C. (2016). A combined model based on multiple seasonal patterns and modified firefly algorithm for electrical load forecasting. Applied Energy, 167, 135–153. http://dx.doi.org/10.1016/j.apenergy.2016.01.050.
Mostafaeipour, A., Gol, A., & Qolipour, M. (2018). Prediction of air travel demand using a hybrid artificial neural network (ANN) with bat and firefly algorithms: A case study. The Journal of Supercomputing. https://doi.org/10.1007/s11227-018-2452-0.
Mahdavi-M., A., & Zounemat-K., M. (2019). A new integrated model of the group method of data handling and the firefly algorithm (GMDH-FA): Application to aeration modelling on spillways. Artificial Intelligence Review. https://doi.org/10.1007/s10462-019-09741-4.
Mohammadi, B. (2023). Modeling various drought time scales via a merged artificial neural network with a firefly algorithm. Hydrology, 10, 58. https://doi.org/10.3390/hydrology10030058.
Danandeh Mehr, A. (2020). Seasonal rainfall hindcasting using ensemble multi-stage genetic programming. Theoretical and Applied Climatology. https://doi.org/10.1007/s00704-020-03438-3.
Nitha, F., Adiwijaya, Annisa, S., & Kinasih, S. (2015). Comparative study of grammatical evolution and adaptive neuro-fuzzy inference system on rainfall forecasting in Bandung. In 2015 3rd International Conference on Information and Communication Technology (ICoICT). IEEE.
Aksoy, H., & Dahamsheh, A. (2009). Artificial neural network models for forecasting monthly precipitation in Jordan. Stochastic Environmental Research and Risk Assessment, 23, 917–931. https://doi.org/10.1007/s00477-008-0267-x.
Praveen, B., Talukdar, S., Shahfahad, Mahato, S., Mondal, J., Sharma, P., Islam, A. B. M. T., & Rahman, A. (2020). Analyzing trend and forecasting rainfall changes in India using nonparametrical and machine learning approaches. Scientific Reports, 10, 10342. https://doi.org/10.1038/s41598-020-67228-7.
Nayak, D. R., Mahapatra, A., & Mishra, P. (2013). A survey on rainfall prediction using artificial neural network. International Journal of Computer Applications, 72(16).
Danandeh Mehr, A., Nourani, V., Karimi Khosrowshahi, V., & Ghorbani, M. A. (2019). A hybrid support vector regression-firefly model for monthly rainfall forecasting. International Journal of Environmental Science and Technology, 16(1), 335–346.
Kueh, S. M., & Kuok, K. K. (2018). Forecasting long term precipitation using cuckoo search optimization neural network models. Environmental Engineering and Management Journal, 17(6), 1283–1291.
Suparta, W., & Samah, A. A. (2020). Rainfall prediction by using ANFIS time series technique in South Tangerang, Indonesia. Geodesy and Geodynamics, 11, 411–417.
Chiu, P. C., Selamat, A., Krejcar, O., Kuok, K. K., Herrera-Viedma, E., & Fenza, G. (2021). Imputation of rainfall data using the sine cosine function fitting neural network. International Journal of Interactive Multimedia and Artificial Intelligence. http://dx.doi.org/10.9781/ijimai.2021.08.013.
Rahman, A. U., Abbas, S., Gollapalli, M., Ahmed, R., Aftab, S., Ahmad, M., & Mosavi, A. (2022). Rainfall prediction using multiple linear regression model. In 2020 International Conference on Computer, Control, Electrical, and Electronics Engineering (ICCCEEE). IEEE.
Endalie, D., Haile, G., & Taye, W. (2022). Deep learning model for daily rainfall prediction: Case study of Jimma, Ethiopia. Water Supply, 22(3), 3448–3461.
Barrera-Animas, A. Y., Oyedele, L. O., Bilal, M., Akinosho, T. D., Delgado, J. M. D., & Akanbi, L. A. (2022). Rainfall prediction: A comparative analysis of modern machine learning algorithms for time-series forecasting. Machine Learning with Applications, 7, 100204.
Ahmed, H. A. Y., & Mohamed, S. W. A. (2021). Rainfall prediction using multiple linear regression model. In 2020 International Conference on Computer, Control, Electrical, and Electronics Engineering (ICCCEEE). IEEE.
Agrawal, A., Adke, A., Hood, V., Bambale, R., & Shelke, P. (2024). Forecasting rainfall utilizing simple linear regression. In 2024 ASU International Conference in Emerging Technologies for Sustainability and Intelligent Systems (ICETSIS) (pp. 1348–1352). IEEE.
AlBinHassan, N. M., & Wang, Y. (2011). Porosity prediction using the group method of data handling. Geophysics, 76(5), O15–O22.
Ghazanfari, N., Gholami, S., Emad, A., & Shekarchi, M. (2017). Evaluation of GMDH and MLP networks for prediction of compressive strength and workability of concrete. Bulletin de la Société Royale des Sciences de Liège, 86(Special Edition), 855–868.
Kock, A. B., & Teräsvirta, T. (2010). Forecasting with nonlinear time series models. CREATES Research Paper, 2010(1), 1–31.
Shabri, A., & Samsudin, R. (2014). A hybrid GMDH and Box-Jenkins model in time series forecasting. Applied Mathematical Sciences, 8(62), 3051–3062.
Danandeh Mehr, A. (2020). An ensemble genetic programming model for seasonal precipitation forecasting. SN Applied Sciences, 2(11), 18210.
Danandeh Mehr, A., Nourani, V., Karimi Khosrowshahi, V., & Ghorbani, M. A. (2019). A hybrid support vector regression-firefly model for monthly rainfall forecasting. International Journal of Environmental Science and Technology, 16, 335–346.
Danandeh Mehr, A. (2021). Seasonal rainfall hindcasting using ensemble multi-stage genetic programming. Theoretical and Applied Climatology, 143(1–2), 461–472.
Abdikafi, E. A., Abdihamid, M. T., & Abdisalam, A. A. (2025). Hybrid machine learning model for rainfall prediction using time-series data. International Journal of Engineering Trends and Technology, 73(6), 17–29.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 International Journal of Innovative Computing

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













