Research Article, J Comput Eng Inf Technol Vol: 6 Issue: 5
Development of Knowledge Based System for Wheat Disease Diagnosis: A Rule Based Approach
Desalegn Aweke Wako*
Bahir Dar Institute of Technology, Bahir Dar University, Bahir Dar, Ethiopia
*Corresponding Author : Desalegn Aweke Wako, MSc
Faculty, Bahir Dar Institute of Technology, Bahir Dar University, Bahir Dar, Ethiopia
Received: April 18, 2017 Accepted: July 07, 2017 Published: July 12, 2017
Citation: Wako DA (2017) Development of Knowledge Based System for Wheat Disease Diagnosis: A Rule Based Approach. J Comput Eng Inf Technol 6:5. doi: 10.4172/2324-9307.1000181
Wheat production in Ethiopia is widely affected by diseases and attacked by a number of insect pests. Wheat disease diagnosis needs sufficient and knowledgeable agricultural experts to identify the diseases and describe the methods of treatment and protection at early stage of infestation. But, agricultural specialist assistance may not always available and accessible to every farmer when the need arises for their help. Hence, this study presents a rule based knowledge based system for wheat disease diagnosis in order to identify wheat disease timely and apply the control measures effectively. The system aims to provide a guide for research centers and development agents to facilitate the diagnostic process. To develop the system, data and knowledge are acquired from documented and non- documented sources. The acquired knowledge is modeled by using decision tree structure that represents concepts and procedures involved in the diagnosis of wheat disease. The system is developed using SWI Prolog programming language. The system has been tested and evaluated to ensure whether the performance of the system is accurate and the system is usable by research centers and development agents. The system has been registered overall performance of 87.78%. So, the developed system has potential to use as a decision tool for diagnosing and treating wheat disease.
Keywords: AI; Agriculture; KBS; Rule based reasoning; Wheat; Disease
Agriculture is the mainstay of the Ethiopian economy and the livelihoods of more than 80% of the citizens . Ethiopia is the largest wheat producer in sub-Saharan Africa, next to South Africa and wheat is the second most important source in total production next to maize and the third in area after maize and sorghum that plays a significant role in assuring food sufficiency . Despite the expansion of wheat in most parts of Ethiopia, the country is not self-sufficient in production and consequently a large quantity of wheat is imported every year to fill the gap. The national average of wheat in the country, which is 14 qt/ha, is 24%, is still below the average of South Africa yield and 48% below that of the world’s . This low production and productivity are mainly due to the diseases, frost drought, poor soil fertility, soil erosion, pests and problematic weeds .
According to Hailu , wheat production in Ethiopia is widely affected by diseases and pests. Such diseases and pests reduce yield, quality and marketability of the wheat crop. This problem needs sufficient and knowledgeable agricultural experts to identify the diseases and to describe the methods of treatment and protection at early stage of infestation. Unluckily, agricultural specialist assistance may not always available and accessible to every farmer when the need arises for their help. Moreover, there is a shortage of extension agents to provide quick and timely decision making as each agent has to serve on average 1090 farmers . To address such problems the application of information technology is important to deploy in agricultural area. Knowledge based system is one aspect of information technology which provides the appropriate management for diagnosing diseases attacking crop [6,7]. Knowledge Based System (KBS) is computer program that replicate the reasoning processes of a human expert in order to deliver a solution concerning a problem .
Hence, this study presents the development of rule based knowledge based system for wheat disease diagnosis that can provide advice for research centers and development agents to facilitate the diagnostic process. KBS can act as an expert on demand without wasting time, anytime and anywhere. With the proper utilization of knowledge, the knowledge based systems make decisions, recommendations and perform tasks based on user input, increase productivity and document rare knowledge by capturing scarce expertise and enhances problem solving capabilities in most flexible way .
There are many works in the literature that explains about knowledge based systems in the agriculture domain. Local research work shows that Berhanu  has developed a knowledge based system for coffee disease diagnosis and treatment. The study was focused on the development of KBS for coffee disease and pest control where it is intended for the diagnosis of common diseases and pests occurring in the coffee plant. A knowledge based system for cereal crop diagnosis and treatment is explored by Ejigu . The focus of the study was to address problems of common diseases occurring in cereal crop.
Moreover, internationally Hogeveen et al.  developed an integrated knowledge based system for dairy farms that serves diagnostic, problem solving, and advising role in controlling the health and production of a herd, including the financial consequences. King et al.  developed a knowledge based system for malting barley management. The system gives advice on fertilizer and water applications to maximize crop yield under strict quality constraints. Yelapure et al.  developed knowledge based system for tomato crop with special reference to pesticides. This system helps to identify the pests and to suggest pesticide treatment to control it.
To conclude, several studies have been developed in AI using knowledge based systems to reason out the solution of a particular problem. But, according to the researcher’s knowledge, there are no research conducted to design a knowledge based system for wheat disease diagnosis and treatment. Thus, in this study an attempt is made to develop a rule based knowledge system for wheat disease diagnosis and to test and evaluate its performance with the help of professional experts in the field.
Therefore, the proposed knowledge based system can assist domain experts during wheat disease diagnosis and treatments by providing advisory services. This work will also be used as an input for further disease diagnosing and management in agricultural industry.
Methodology of the Study
In this study, different procedures are followed in developing the proposed knowledge based system. These are: knowledge acquisition, knowledge modeling, knowledge Representation, Knowledge based system development for wheat disease diagnosis and Evaluation of the system.
The primary knowledge is needed for this study is acquired from Debre zeit Agricultural research center. Four domain experts are selected using purposive sampling techniques and interviewed to extract the tacit knowledge. Similarly, documented sources of knowledge are consulted on the area of crop protection and treatment from different sources such as agricultural books, journals, publications, internet sources, plant disease protection guidelines and training manuals are analyzed.
The acquired knowledge is modeled by using decision tree. Decision tree shows the relationships of the problem graphically and can handle complex situations in a compact form. Knowledge diagramming is often more natural to experts than formal representation methods and decision trees can easily be converted to rules. Decision tree is drawn using flow chart symbols as it is easier for many to read and understand. It helps to identify a strategy most likely to reach a goal and allow the addition of new scenarios.
After modeling the acquired knowledge by using decision tree, it is represented in a format that is both understandable by humans and executable on computers. Production rules are the most popular form of knowledge representation which is an easy way to understand and reasonably efficient in diagnosing problems. Knowledge is represented in the form of condition-action pairs: IF this condition (or premise or antecedent) occurs, THEN some action (or result or conclusion or consequence) will (or should) occur.
Prolog programming language is used to develop a rule based knowledge based system for wheat disease diagnosis. The reasons for selecting Prolog are the features and abilities of the language that incorporate it. Prolog is a declarative language and has the capacity to describe the real world. Because of its declarative semantics, built-in search, and pattern matching, Prolog provides an important tool for programs that process natural language.
To achieve the established objective of the study, the prototype system is extensively tested and evaluated to ensure that whether the performance of the system is accurate and the system is usable by research centers and development agents.
Wheat disease diagnosis KBS is designed based on rule based reasoning techniques. As shown in Figure 1, the model shows that, the knowledge is acquired from experts and documented knowledge sources. Potential sources of knowledge include domain experts, books, journal articles, proceedings, electronic sources and information available on the web. Then the acquired knowledge is effectively coded in the knowledge base by knowledge engineer. Knowledge base contains rule base from which the system draws conclusion through inference engine. The inference engine accepts query from the user via user interface and prompt the action in user understandable form if the goal is satisfied. A backward chaining technique is used as inference mechanism to search and extract the rules for specific type of wheat disease.
Proposed System User Interface
To interact with the system the user interface is needed. User interface is a bidirectional communication between the system and the user. It is the window through which the system is able to return information to the user.
Once the file ‘WDDKBS.pl’ is opened, the end-users can start wheat disease diagnosis by writing the word “advice” followed by full stop “.” and the welcome window is displayed along with the menu containing choices as shown in Figure 2. Then the system requests end-users to choose the infected part of the wheat. If a choice match, the system asks the users a series of questions and the users respond by saying “yes” or “no”. Based on the user’s response, the system provides conclusions for the users request through the user interface.
System Testing and Evaluation
Once a proposed knowledge based system is developed, it should be tested and evaluated to measure its performance in diagnosing wheat diseases and determined whether the system satisfies the requirements of its users and applicable in the domain area. Testing and evaluation of the prototype system is the final step that can assist the knowledge engineer to measure, if the objective of the proposed system is met or not. To check if the system fits its purpose, system testing and user acceptance testing are used.
User acceptance testing
In this paper, user acceptance testing is undertaken to assess the performance of the system from domain experts’ perspective and measure how well the system accomplished its tasks in the domain area. Researchers’ prepared checklists for domain experts to make evaluations and comments while interacting with the system. Thus, six domain experts are selected purposively from Debre zeit agricultural research center. For user acceptance testing, questionnaires are customized from Adane .
Finally, all experts are requested to evaluate the system based on a given questionnaire. The evaluators are given questionnaires which are answered as excellent, very good, good, fair and poor. For those questionnaires, the evaluators are given their judgment as shown in Table 1. For the purpose of analysis, values for all attributes are given as excellent=5, very good=4, good=3, fair=2 and poor=1. Based on the given scale, system evaluators provide a value for each closed ended questions. Thus, this method helps the researchers’ to examine the users’ acceptance based on their response. The user acceptance of the system is computed manually using Equation (1).
|No.||Evaluation Questions||Poor (1)||Fair (2)||Good (3)||Very good (4)||Excellent (5)||Average score||Average performance. %|
|1||Simplicity to use and interact with the prototype system||0||1||0||3||2||4.00||80|
|2||Efficiency in time||0||0||1||2||3||4.33||86.6|
|3||The accuracy of the prototype system in reaching decision to identify the wheat disease||0||0||1||3||2||4.17||83.4|
|4||Coverage of domain knowledge is sufficient||0||0||0||3||3||4.50||90|
|5||The ability of the prototype system in making right conclusions and recommendations||0||0||1||2||3||4.33||86.6|
|6||Contribution of the prototype system in the domain area||0||0||0||2||4||4.67||93.3|
Table 1: Domain expert performance evaluation.
Where, AveS average score, SV scale value, tnr total number of respondent and nr is number of respondent. To get the result of user acceptance average performance is calculated out 100%.
Where, NS is number of scale and Avp is average performance.
The average score of each questionnaire is calculated using the sum of values of excellent, very good, good, fair and poor and divided the sum by four as illustrated in equation (1).
Based on data indicated in Table 1, 33.33% of the evaluators scored the simplicity to use and interact with the prototype system criteria of evaluation as excellent, 50% as very good, and 16.67% as fair. One evaluator rate the simplicity to use and interact with the system as fair. Because, the evaluator wants to retrieve queries via user interface in his local language and wants the system to make decisions in his local language, so as to understand the decisions made by the system. The efficiency in time of the proposed system showed a greater rate of efficiency, in which 50% of evaluators rated the system as excellent, 33.33% as very good, and the rest 16.67% as good. 33.33% of the respondents rated the accuracy of the prototype system in reaching decision to identify the wheat disease as excellent, 50% as very good and 16.67% of them rated as fair.
And when asked if the prototype system incorporated sufficient knowledge to diagnose and treat wheat disease, 50% of the respondents rated the prototype system as excellent and 50% rated as very good. The ability of the prototype system in making right conclusions and recommendations, 50% is scored as excellent while 33.33% as very good and 16.67% of the respondent scored it with good. Similarly, concerning the contribution of the system in the domain area, 66.67% of the respondents gave the prototype system excellent while 33.33% rated the prototype system as very good.
As a result, based on the responses of six system evaluators, the average performance obtained is 4.33 on scale of 5. This value is the result obtained from the values assigned for each close ended question. The result indicates that about 86.65% of evaluators are satisfied by the performance of the knowledge based system. This implies that the developed prototype system performs well in making right advice on diagnosing and treating wheat disease.
Performance testing is the process of determining the accuracy of the developed system. The performance of the system is tested and validated using test case. A test case is a set of test inputs, execution conditions, and expected results developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement . Thus, a total of eighteen test cases are selected in order to validate the accuracy of a prototype knowledge based system. Test cases that have similar parameters with the prototype system are selected purposively. These cases are: root disease cases, leaf disease cases and grain disease cases. The testing procedure is carried out by system evaluators to classify the test cases as correctly diagnosed case or incorrectly diagnosed case and compare the decisions made by the system with that of the experts’ decision on those cases. Then system evaluators validate the numbers of correct decisions made by the system. The result of the comparison shows that the rule based system has made close decision in the process of diagnosing wheat disease as human expert do. As indicated in Table 2, the test case result provided by system evaluators showed that the proposed knowledge based system is 88.87% accurate in diagnosing wheat disease.
|Selected Cases||No. of cases selected for testing||CDC||IC.DC||Accuracy|
|Root disease cases||6||5||1||83.3%|
|Leaf disease cases||6||5||1||83.3%|
|Grain disease cases||6||6||0||100%|
Table 2: Performance testing.
In Table 2, few abbreviations are used. CDC stands for correctly diagnosed cases, IC.DC stands for incorrectly diagnosed cases.Eighteen test cases are selected purposively to validate the accuracy of the system and six cases are assigned for each disease cases. As a result, for root disease cases five of them are correctly diagnosed from the given six cases. Similarly, from the given six cases again five of them are diagnosed correctly for leaf disease cases. Finally, the system correctly diagnosed all the given cases for grain disease cases and it achieves the maximum performance. The result indicated that all the cases are directly similar with knowledge incorporated in the knowledge base.
Results and Discussion
As discussed in section VI under subsections A and B, the average evaluation result filled by the domain experts in the domain area is 86.65% and the accuracy of the prototype system is calculated as 88.87% respectively. The overall performance of the prototype system is 87.76%.
Depending on the results found the main strength of the prototype system are:
A. The system is promising and helps to solve problems in the areas where there is lack of experienced and skilled agriculture experts are available.
B. The system is helpful to solve problems accurately and timely with the help of accumulated knowledge in the knowledge base.
C. The system can reduce knowledge gap observed in agricultural professionals.
D. The system can act as a tool for knowledge sharing.
E. The system can help as knowledge sharing and training tool for DA (development agent) workers.
F. The system can improve the skill of DA workers in wheat disease identification and decision making.
G. Regardless of the strength of the system, the researchers have faced challenges. These challenges are:
H. Evaluators want to see the severity of the infestation levels of the affected part of the wheat crop.
I. Users who lack computer skills and access might not implement it.
J. The system needs to incorporate multiple languages to respond in their local language.
K. The performance of the prototype system depends directly on the quality of the knowledge acquired from domain experts. However, knowledge elicitation from domain experts are the most difficult task due to the tacit nature of persons, knowledge is difficult to transfer to another person by means of writing it down.
L. Language barriers and lack of adopted KBS technology in agricultural industry in Ethiopia hinders the system not to register high performance.
Conclusion and Future Work
In this paper, rule based knowledge based system is developed to diagnose wheat diseases. The system can serve as a knowledge sharing tool for inexperienced domain experts, especially for those in the remote areas with limited agricultural information. Moreover, the knowledge incorporated in the knowledge base contains all the necessary rules in order to diagnose wheat disease accurately.
The system provides advisory service for research centers and development agents to facilitate the diagnostic process. The system is evaluated using different evaluation methods and achieved 87.76% of the overall performance. The prototype system achieves a good performance and meets the objectives of the study. However, in order to make the system applicable in the domain area for diagnosis of wheat disease, the user interface should support local languages to meet the needs of local users and more research work must be done to incorporate high quality pictures which depict the symptoms in order to identify the damage level of the diseased part of the wheat crop.
The proposed tool has potential to use as a decision tool for diagnosing and treating wheat disease. However, it still needs a future validation with more cases. In addition, expert decision is regularly hard to measure with precise numerical data. So in the future, fuzzy set theory will need to be integrated in to a developed knowledge based system.
- Diao X, Belay F, Haggblade S, Alemayehu S, Kassu W (2007) Agricultural growth linkages in Ethiopia: Estimates using Fixed and flexible price models, Ethiopia, Pp: 1-41.
- Ethiopian Commodity Exchange Authority (2008) Understanding wheat: A review of supply and marketing issues, Addis Ababa, Ethiopia,
- Tesfaye T, Genet T, Desalegn T (2014) Genetic variability, heritability and genetic diversity of bread wheat (Triticum aestivum L.) genotype in western Amhara region. Wudpecker J Agri Res 3: 026-034.
- Hailu G (2003) Wheat production and research in Ethiopia. Institute of Agricultural Research, Addis Ababa, Ethiopia.
- Belay K, Abebaw D (2004) Challenges facing agricultural extension agents: Case study from south-western Ethiopia. African Development Bank 139-168.
- Ahmed R (2010) Expert system applications: Agriculture.
- Prasad G, Babu AV (2006) A study on various expert systems in agriculture. Georgian Electronic Sci J Comp Sci Telecommunications 4: 81-86.
- Sajja PS, Akerkar R (2010) Knowledge-based systems for development. Advanced Knowledge Based Systems: Model, Applications and Research 1: 1-11.
- Berhanu A (2012) Developing a Knowledge based system for coffee disease diagnosis and treatment. MSc Thesis, Addis Ababa University, School of Information Science, Addis Ababa, Ethiopia.
- Ejigu T (2012) Developing knowledge based system for cereal crop diagnosis and treatment. MSc Thesis, Addis Ababa University, School of Information Science, Addis Ababa, Ethiopia.
- Hogeveen H, Noordhuizekstassen EN, Schreinemakers JF, Brand A (1991) Our industry today development of an integrated knowledge based system for management support on dairy farms. J Dairy Sci 74: 12.
- King J, Broner I, Basham C (1991) Malting barley water and nutrient management knowledge-based system. Emerging Technologies, Div ASAE.
- Yelapure SJ, Jadhav SK, Babar VM (2011) Knowledge based system for tomato crop with special reference to pesticides. Int J Comp Appl (IJCA) 25.
- Adane N (2016) Localized knowledge based system for human disease diagnosis. Int J Inf Technol Comp Sci 8: 43-50.
- Laurie W (2010) Introduction to software engineering practices and methods, (7th edtn)