Pest Infestation Prediction System for Stored Beans Based on Machine Learning and IoT Sensors Strategy

Authors

  • Oluwaseun Adeniyi Ojerinde Federal University of Technology Minna image/svg+xml
  • Enesi Femi Aminu
  • Ayobami Ekundayo
  • Alfa Joshua Paul
  • Idris Mohammed Kolo

DOI:

https://doi.org/10.33003/fjs-2026-1015-5866

Keywords:

Buzzer, IoT Sensors, Machine Learning, Pest Infestation, Stored Beans, WhatsApp Notification

Abstract

Beans, though highly nutritious, are vulnerable to postharvest pest attacks, leading to significant food and economic losses. The traditional methods of mitigating the loss to pest attacks is tedious besides, efficiency becomes issues especially to climate factors. State of the art approaches such as Machine Learning techniques have been employed to deal with the challenges but not without room for improvement. Therefore, this study aim to design and implement a sensor-driven system capable of monitoring environmental conditions and predicting infestation risks in real time based on machine learning models. The system integrated three sensors: a DHT11 for temperature and humidity measurement, a soil moisture module for monitoring moisture content, and an ESP32 microcontroller as the processing unit. Data collected were processed and analyzed using a multivariate linear regression model, which established the relationship between temperature, humidity, and moisture content, and the probability of pest infestation. Whenever environmental conditions exceeded safe thresholds, the system triggered alerts through a buzzer, LED, and WhatsApp notification to the farmer. Performance evaluation of the system demonstrated strong predictive performance. The model achieved an accuracy of 92.4%, precision of 89.1%, recall of 93.6%, and an F1-score of 91.3%.These results indicate that the system is promising as would reliably predict infestation risks while minimizing false alarms.Thus, the developed system provides a practical, low-cost, and efficient solution for farmers to proactively manage bean storage conditions.This is by combining IoT sensors with machine learning for real-time notifications, as it has contributes to reducing postharvest losses and enhancing food security

References

Ahuja, S., Hr, M., Alam, I., & Rastogi, A. (2024). The Role of AI in Modern Farming : Precise Pest Management and Optimal Water Use. Int. J. Chem. Biochem. Sci, 25(13), 249–255.

Bagchi, P., Sawicka, B., Stamenkovic, Z., Barbaś, P., Pszczółkowski, P., Markovic, D., & Bhattacharjee, D. (2026). Advanced Machine Learning-Based Eco-Integrated Model for Predicting Late Blight In Multiple Cultivation Systems. Electronics and Energetics, 219 - 256.

Cileide Maria Medeiros Coelho, Cláudia de Mattos Bellato, Julio Cesar Pires Santos, Edwin Moises Marcos Ortega, S. M. T. (2007). Effect of phytate and storage conditions on the development of the ‘hard-to-cook’ phenomenon in common beans. Journal of the Science of Food and Agriculture, 87(7), 1237–1243.

Domingues, T., & Brandão, T. (2022). Machine Learning for Detection and Prediction of Crop Diseases and Pests : A Comprehensive Survey. Agriculture 1–23.

Fadiji, T., Bokaba, T., Fawole, O. A., & Twinomurinzi, H. (2023). Artificial Intelligence in Postharvest Agriculture: Mapping a Reseach Agender. Frontiers in Sustainable Food Systems, 1-23.

Forbanka, D. N. (2021). Post-Harvest Storage Practices and Insect Pests of Maize and Beans in the North West Region of Cameroon. African Entomology, 29(1), 133–141. https://doi.org/10.4001/003.029.0133

Galadima, Y. M., Abubakar, M., Umar, A., & Abubakar, H. (2026). Development Of Artificial Intelligence -Optimized Smart Seed Storage System With Integrated Bio-Environmental Monitoring For Agricultural Practices In Federal Polytechnic Bauchi. International Journal - AVS, 1-26.

Geleta, R. J., Roro, A. G., & Terfa, M. T. (2024). Phenotypic and yield responses of common bean (Phaseolus vulgaris l.) varieties to different soil moisture levels. BMC Plant Biology, 24(1), 1–15. https://doi.org/10.1186/s12870-024-04856-5

Hoque, A. (2024). Artificial Intelligence in Post-Harvest Drying Technologies : A Comprehensive Review on Optimization , Quality Enhancement , and Energy Efficiency. Int. J. Sci. Res. IJSR . 13(11), 493-502 https://doi.org/10.21275/SR241107163717

Jacobs, A., Bunindro, N., & Sahoo, D. (2020). Annals of Agricultural Sciences Traditional methods of food grains preservation and storage in Nigeria and. Annals of Agricultural Sciences, 64(2), 196–205. https://doi.org/10.1016/j.aoas.2019.12.003

Kariyanna, B., & Sowjanya, M. (2024). Smart Agricultural Technology Unravelling the use of artificial intelligence in management of insect pests. Smart Agricultural Technology, 8, 100517. https://doi.org/10.1016/j.atech.2024.100517

Kiptoo, G. J., Kinyua, M. G., & Kiplagat, O. K. (2019). Evaluation of phenolic content of common bean (Phaseolus vulgaris L.) in association to bean fly (Ophiomyia spp.) infestation. Int. J. Agron. Agric. Res14(3), 9–13.

Kotey, R. N., Odoom, D. A., Kumah, P., Akowuah, J. O., Donkor, E. F., Quartey, E. K., Sam, E. K., Owusu-kwarteng, J., Santo, K. G., Kwami-adala, F., & Boateng, D. O. (2022). Effects of Fermentation Periods and Drying Methods on Postharvest Quality of Cocoa ( Theobroma Cacao ) Beans in Ghana. Journal of Food Quality. 2022(1), 7871543 https://doi.org/10.1155/2022/7871543

Latha , B. (2025). IoT-Enabled Grain Storage Monitoring Framework for Predictive Spoilage Detection and Pest Control. Journal of Environmental Sustainability, Climate Resilience, and Agro-Ecosystems, 9-15.

Mallick, T. M., Biswas, S., Das, A. K., Saha, H. N., Chakrabarti , A., & Deb , N. (2023). Deep learning based automated disease detection and pest classification in Indian mung bean. Multimed Tools Appl, 12017–12041.

McGrath, M. J. (2022). A Primer of Pastoral Spanish, 16–20. https://doi.org/10.2307/j.ctv34h09jm.6

Mobolade, A. J., Bunindro, N., Sahoo, D., & Rajashekar, Y. (2019). Traditional methods of food grains preservation and storage in Nigeria and India. Annals of Agricultural Sciences, 64(2), 196–205. https://doi.org/10.1016/j.aoas.2019.12.003

Morales, E. F., & Escalante, H. J. (2022). A brief introduction to supervised, unsupervised, and reinforcement learning. In Biosignal processing and classification using computational learning and intelligence (pp. 111-129), https://doi.org/10.1016/B978-0-12-820125-1.00017-8

Mpisane, K., Kganyago, M., Munghemezulu, C., Price, R., & Nduku, L. (2025). A systematic review of remote sensing technologies and techniques for agricultural insect pest monitoring: lessons for locustana pardalina (Brown Locust) control in South Africa. Frontiers in Remote Sensing, 1-15.

Nasteski, V. (2017). An overview of the supervised machine learning methods. Horizons. b, 4(51-62), 56. https://doi.org/10.20544/HORIZONS.B.04.1.17.P05

Nyakuri, J.P., Nkundineza, C., Gatera, O., & Nkurikiyeyezu, K. (2024). State-of-the-Art Deep Learning Algorithms for Internet of Things-Based Detection of Crop Pests and Diseases: A Comprehensive Review. IEEE Access, 169824-169849.

Park, Y.-H., Choi, S. H., Kwon, Y.-J., Kwon, S.-W., Kang, Y. J., & Jun , T.-H. (2023). Detection of Soybean Insect Pest and a Forecasting Platform Using Deep Learning with Unmanned Ground Vehicles. agronomy, 1-16.

Rahman, S. M. (2024). Role of Artificial Intelligence in Pest Management. Current Topics in Agricultural Sciences, 7, 64-81. https://doi.org/10.9734/bpi/ctas/v7/2141B

Sadek, J. T., & Banian, M. A. (2019). Effect of the Infection of Callosobruchus Maculatus ( fab .) on the Proximate Composition of Legumes Grain. Plant Archiv 19, 75–77.

Sharma, U. C., Satya, S., & Hariprasad, P. (2021). Effect of Callosobruchus Maculatus Infestation on Nutritional Parameters of Urad ( Vigna mungo ) Beans. In Proc 11th Intern Conf Controlled Atm Fumi Stored Prod (CAF2020) 223–228.

Swarnkar, S., Rathore, Y., & Swarnkar, V. (2024). Machine learning models for early detection of pest infestation in crops: A comparative study. In Smart Agriculture, 147-162.

Tadesse, M. (2020). Post-Harvest Loss of Stored Grain , Its Causes and Reduction Strategies. Food Science and Quality Management, 96, 26-35.https://doi.org/10.7176/FSQM/96-04

Thai, H., Ko, H., & Huh, J. (2024). Coffee Bean Defects Automatic Classification Realtime Application Adopting Deep Learning. IEEE Access, 126503-126517.

Conceptual Framework of the Pest Infestation Prediction System

Downloads

Published

02-09-2026

How to Cite

Ojerinde, O. A., Aminu, E. F., Ekundayo, A., Paul, A. J., & Kolo, I. M. (2026). Pest Infestation Prediction System for Stored Beans Based on Machine Learning and IoT Sensors Strategy. FUDMA Journal of Sciences, 10(15), 108-118. https://doi.org/10.33003/fjs-2026-1015-5866

Most read articles by the same author(s)