Pest Forecaster: A Web-Based Machine Learning Framework for Climate-Sensitive Pest Risk Prediction

Authors

  • Paul Olotu* Department of Information Technology, Federal University of Technology, Akure. Nigeria
  • Olutayo Boyinbode Department of Information Technology, Federal University of Technology, Akure. Nigeria
  • Eyiowuawi Abdulateef Department of Information Technology, Federal University of Technology, Akure. Nigeria
  • Temitayo Balogun Department of Information System, Federal University of Technology, Akure. Nigeria

DOI:

https://doi.org/10.18178/JAAI.2026.4.2.94-103

Keywords:

pest outbreak, machine learning, XGBoost, sequential neural network

Abstract

The outbreak of pests is a severe problem in farming that leads to massive loss of crop varieties and poses a threat of food insecurity in the global context. Pest risk should be predicted early so that pests could be intervened in time and crops could be protected in a sustainable manner. The research aims at forecasting the occurrence of pests through machine learning, namely, XGBoost and a Sequential Neural Network (SNN). The models were trained using the historical agricultural data, which comprised of crop type, weather conditions and seasonal factors with the supplementary real-time weather data being incorporated with the OpenWeather API to provide real-time predictions. The preprocessing of data consisted of work with missing values, use of SMOTE to balance the classes (in the case of XGBoost) and scaling of features in the case of the neural network. The measures used to assess model performance were accuracy, precision, recall, F1-score, and confusion matrix. The findings revealed that the XGBoost model performed optimally in prediction, which gave good predictions in terms of feature importance where crop type and seasonality were the most highly important predictors. The Sequential Neural Network also had similar performance and could provide the complex relations between weather variables and pest occurrence. This work offers an addition to precision agriculture and helps to make better decisions related to sustainable pest management as it will include timely and precise predictions without the use of IoT devices or image data.

References

[1] Estay, S., Labra, F., & Vargas, H. (2009). Climate change effects on insect pest populations: A review of experimental evidence and population dynamics models. Ecological Modelling, 220(17), 2038–2046.

[2] Petrović, J., Dautbašić, M., & Perić, S. (2012). Predicting Gypsy Moth (Lymantria dispar L.) Outbreaks in Serbia Using Climate Data. Šumarski List, 136(5–6), 291–300.

[3] Olotu, P. K, Boyinbode O. K, Akintola, K, G, (2025). Review of a decentralized ensembled deep learning model for early detection and control of tomato plant diseases. Journal of Cryptography and Network Security, Design and Codes. 2(2025), 36–47.

[4] Nadeem, H., Khan, A., & Ahmad, S. (2022). Internet of Things (IoT) together with machine learning technology helps predict stem borer pest incidences in sugarcane cultivation. Computers and Electronics in Agriculture, 198, 107085.

[5] Nanushi, P., Sahoo, G. N., & Biswal, S. (2022). Artificial intelligence could forecast dengue outbreaks in the areas surrounding the Godavari River of India. Infectious Diseases of Poverty, 11(1), 1–12.

[6] Norton, G. A., & Coutinho, J. (2019). Interpretable machine learning models can detect pest outbreaks when applied to Helicoverpa armigera (cotton bollworm) outbreaks in Greece. Pest Management Science, 75(11), 3020–3030.

[7] Skendžić, S., Zovko, M., Živković, I. P., Lešić, V. & Lemić, D. (2021). The impact of climate change on agricultural insect pests. Insects, 12(5), 440.

[8] Olotu, P. K., Boyinbode O. K., Akintola, K. G. (2026). A decentralized federated ensemble deep learning model framework for detection of plant diseases. International Journal of Research in Engineering and Science (IJRES), 1(14), 215–222.

[9] Sharma, H. C. (2016). Integration of Artificial Intelligence (AI) into environmental monitoring to improve predictions of climate change impacts. Environmental Monitoring and Assessment, 188(12), 1–15.

[10] Singh, D., Singh, M., & Kaur, R. (2024). Ensemble-based machine learning models to predict pest infestations in Indian rice farming. Ecological Informatics, 79, 102431.

[11] Nichols, J. D., Kendall, W. L., & Boomer, G. S. (2019). Adaptive management of animal populations in the 21st century. Wiley Ecological Applications, 92(3), 951–969.

[12] Casellas, O., Aleixo, A., & Sylvestre, M. (2023). Early Detection of Infectious Disease Outbreaks: AI Potentials for Public Health. Rangahau Aranga: AUT Graduate Review, 3, 45–58.

Downloads

Published

2026-04-28

Issue

Section

Article