Design and Implementation of an Expert System for Diagnosing Crop Diseases in Maize, Groundnut, and Millet

by Aliyu Musa Bade, Amina Fantami Mala

Published: April 17, 2026 • DOI: 10.51244/IJRSI.2026.1303000214

Abstract

Agriculture is a cornerstone of economic growth and food security in Nigeria, particularly in rural states such as Yobe where maize, groundnut, and millet are staple crops. Despite their importance, productivity is severely constrained by crop diseases caused by fungi, bacteria, viruses, and pests. These diseases account for significant yield losses, threatening farmers’ livelihoods and national food security. Traditional diagnostic methods are often slow, costly, and inaccessible to smallholder farmers, who also face challenges of misdiagnosis due to limited technical expertise and inadequate extension services. Consequently, there is a pressing need for affordable, reliable, and accessible diagnostic tools that can empower farmers to make informed decisions. This study addresses these challenges by designing and implementing a rule-based Expert System for diagnosing common diseases in maize, groundnut, and millet. The system integrates a knowledge base of symptoms and diagnostic rules with an inference engine capable of simulating expert reasoning. Using iterative prototyping, the system was developed, tested, and refined to ensure accuracy and usability. By guiding farmers through symptom-based questioning and providing timely recommendations for disease management, the system reduces dependency on scarce agricultural experts and enhances decision-making in rural communities. The significance of this research lies in its contribution to food security, digital agriculture, and the application of Artificial Intelligence in solving real-world agricultural problems. Beyond its practical utility for farmers, the project also demonstrates the academic relevance of expert systems in computer science, showcasing how knowledge-based reasoning can be applied to critical domains. Ultimately, the system provides a localized, accessible, and intelligent solution to crop disease diagnosis, supporting sustainable agricultural productivity and resilience in Nigeria’s farming communities.