Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. Identifying Types of Peanuts Diseases with Naive Bayes Method Ghulam Asrofi Buntoro1. Anas Fahmi1, and Indah Puji Astuti1 1Informatics Engineering. Faculty of Engineering. Universitas Muhammadiyah Ponorogo. Indonesia Corresponding author: Ghulam Asrofi Buntoro . -mail: ghulam@umpo. ABSTRACT Peanut plants are susceptible to various constraints that significantly hinder their productivity, with eight prevalent diseases posing serious threats to their health. The peanut plant is one of the important commodities in Indonesia. peanuts play a strategic role in supporting the country's economy and food, where peanuts are a source of protein and a source of vegetable oil. Many farmers, especially those new to peanut cultivation, often lack the necessary knowledge to identify and manage these diseases effectively. To address this gap, this study developed an expert system that employs the Naive Bayes method to facilitate the identification of peanut plant diseases. This system aims to provide farmers with accessible and accurate information regarding symptoms, disease types, and management strategies. The knowledge base for the expert system was constructed from data gathered from peanut farming experts, ensuring the reliability of the information provided. Testing of the system revealed consistent results with manual calculations, particularly in identifying Sclerotium stem rot disease with a probability value of 0. Additionally, the system successfully recognized leaf rust disease during its evaluation. By equipping farmers with a user-friendly tool for disease identification and management, this expert system seeks to enhance their understanding and response to peanut plant diseases, ultimately improving productivity and sustainability in peanut farming. The findings underscore the potential of integrating technology into agriculture to support farmers in overcoming challenges related to crop health. KEYWORDS Classification. Expert System. Naive Bayes. Peanut INTRODUCTION Talking about knowledge in the agricultural sector is one area that does not escape the need for knowledge, one of which is the application of knowledge in the process of cultivating peanut plants. Peanut plants are one of the most important commodities in Indonesia. Peanuts play a strategic role in supporting the country's economy and food, where peanuts are a source of protein and a source of vegetable oil . Peanuts are a type of secondary crop that is important to cultivate because, from an economic perspective, peanuts have high economic value for the Indonesian people. Several important factors that cause the low productivity of peanuts include drought, intercropping locations, pest plants, and pest and disease attacks. Pest and disease attacks on plants are the biggest problems that cause damage and reduce productivity in peanut plants . According to Ibnu. POPT Coordinator, one of the main diseases in peanut plants is leaf spot disease. This leaf spot disease attack on peanut plants causes a decrease in production results during the pod filling The total amount of yield loss during harvest can reach 50% and 12Ae22% for each variety, both local and superior varieties. To overcome the problem of groundnut disease, early detection is needed at an early stage of the VOLUME 07. No 01, 2025 DOI: 10. 52985/insyst. spread of peanut disease. One solution to overcome this problem that can be found is the creation of an expert system. Expert systems package and collect knowledge from an expert so that the system can be used by many people to solve all forms of problems in any field, or can be said to be a system whose working method is to collect knowledge and collect data from human knowledge to solve problems that usually require the expertise of a person. In the past, there has been research that has examined expert systems and diagnosed diseases in peanut plants with the title "DesktopBased Expert System for Diagnosing Diseases and Pests of Peanut Plants Using the Backward Chaining Method" . From the results of previous research, researchers have researched and designed an expert system in desktop form where the peanut plant system makes it easy to obtain precise information about symptoms, diseases, and how to control disease-ridden peanut plants. Based on the background above, researchers have tried and designed an expert system that can be used to identify diseases in peanut plants and provide information on how to treat them using the Naive Bayes method . Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. II. LITERATURE REVIEW OBSERVATION The desktop-based Peanut Plant Pest and Disease Diagnosis Expert System uses the Backward Chaining Method . can conclude from the analysis and application of the resulting expert system that it can simplify the process of obtaining accurate information about plant symptoms, diseases, and control measures. We are comparing two Android-based expert system methods for the detection of peanut diseases . The comparison of two expert system methods for identifying Android-based peanut plant diseases revealed that the framebased method produced a program that aligned with the objective, which was to produce solutions matching the input The frame base has a truth accuracy of 95. 83% and an error value of only 4. 16%, while the rule base has a truth accuracy of 51. 38% and an error value of only 48. Therefore, we can conclude that the frame base outperforms the rule base in accurately identifying diseases in peanuts. The study focuses on the identification of pests and diseases in peanut plants using Case-Based Reasoning and the KNearest Neighbor Algorithm . Based on the background above, the author will design an expert system that can be used to identify diseases in peanut plants with data from Ponorogo regional agriculture with Ponorogo agricultural experts to provide information on how to handle it using the Naive Bayes The observations were carried out to obtain disease data on peanut plants. The Ponorogo Regency agricultural service will process and utilize the observation data for its purposes. During the observation process, the researcher reached out to Mr. Samidi. Sp. Head of the pesticide management and agricultural financing section, who is an expert in developing this system. After sorting the disease data, symptoms, and treatment options, the experts assigned a value to each Apart from that, the researchers also carried out the process of collecting information related to peanut plant i. METHOD LITERATURE STUDY We conducted this stage to investigate and identify sources of knowledge relevant to the creation of an Android-based expert system for identifying diseases in peanut plants through the Naive Bayes method, which includes: Expert system Naive Bayes method Types of peanut plant diseases PHP . rogramming languag. Processes in system testing Naive Bayes is one of the algorithms and methods listed in classification techniques. Naive Bayes is a grouping method using probability and statistics that was coined by a British scientist. Thomas Bayes. The naive Bayes method, also known as the Bayes' Theorem, predicts potential future opportunities based on past events. This theorem uses formula . , as shown in . P(H|X) = P(X|H) y P(H) P(X) . Information: P(H|X) = Probability of hypothesis H based on situation P(X|H) = Probability value of disease symptoms P(H) = Probability of hypothesis H, contains the calculation of the sum of the results of multiplying the weight of the disease and the weight of the disease symptoms. P(X) = The probability value of the hypothesis VOLUME 07. No 01, 2025 DOI: 10. 52985/insyst. ASSESTMENT The researcher outlines the requirements for creating an expert system that uses the Naive Bayes method to identify peanut plant diseases during the needs assessment stage of system development. The need for analysis in this research is: Hardware requirements, including: A HP Laptop Processor Intel Core i5 8th Gen. Software requirements, including: A Windows 10 single-home operating system A PHP A MySQL A Visual Studio Code A Office 2016 A XAMPP Software Data needs, including: A Data on diseases, symptoms, and methods of controlling peanut plants. KNOWLEDGE ACQUISITION After analyzing the data, the expert system design has obtained peanut disease data, and in the next process of finding new peanut diseases, the admin can enter new data into the expert system. In this expert system design, the list of disease names in the table will be given a label P and a sequence number that has been automated. Here, code P1 is used to start the first sequence, code P2 is for the second sequence, and so For more details, see the list. table of peanut plant diseases TABLE I DISEASE CODE Disease Code Disease Name Leaf Spot Disease Leaf Rust Disease Gapong disease Striped Bacterial Wilt Disease Stripe Disease Peanut Stripe Virus Disease (P St V) Sclerotium Stem Rot Disease Devil's Broom Disease Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. From the types of peanut diseases above in Table I, we get the symptoms of diseases that may occur in peanut diseases. Here, the symptoms of the disease have not been divided according to the type of disease. To identify the symptoms of the disease in the system using the G1 code for the first sequence, the G2 code for the second sequence, and so on, to further explore and deepen it, we can see more clearly if we look at the list of disease symptoms and their coding in the peanut symptom code table in the following table: TABLE II SYMPTOM CODE Symptom Code Symptom Name There are brown spots on the leaves There are black spots on the leaves There are yellow spots on the leaves There are round spots on the leaves Leaves dry out easily On the underside of the leaves there are brown spots Leaves fall G35 G36 The stigma of the stigma turns towards the The leaves are small and dense By carefully and thoroughly observing the symptoms that appear on the peanut plants above in Table II, we can identify each peanut disease that infects it. The following is a table of combinations and weighting of each symptom that causes disease in peanut plants using Bayes' rule, the Bayes rule is used as a reference for an expert to determine the value of peanut disease symptoms. TABLE i WEIGHTING OF THE SYMPTOMS OF PEANUT DISEASE Relation Leaves fall off easily G10 G11 G12 G13 G14 G15 G16 G17 G18 G19 G20 G21 G22 G23 G24 G25 G26 G27 G28 G29 G30 G31 G32 G33 G34 G10 There are irregular spots on the surface of the leaves Rotten beans G11 The skin of the nuts has round black spots G12 Peanut skin is black G13 Bean seeds germinate G14 Drooping leaves G15 Roots rot and turn black G16 If the stem is cut there will be brown spots G17 Small nut seeds G18 G19 There is yellowish mucus if pressed/massaged Flower and bean seed growth is slow G20 The nuts are small and not clustered G21 Plants wilt G22 Rooting is much less G23 Some leaves turn upwards G24 Leaf size is smaller G25 Leaves are pressed downwards G26 Seeds have no color G27 The leaf surface is not smooth G28 Plants become stunted G29 Does not produce nuts G30 A collection of white spots appears G31 Bean seeds are purple G32 Leaves turn yellow overall G33 Plants sprout a lot G34 Short stem and branch segments VOLUME 07. No 01, 2025 DOI: 10. 52985/insyst. Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. Rule weight value for each symptom x disease weight ycEycE(X|H. y P(H. = . 3 x 0. 1 x 0. = 0. ycEycE X|H. y P(H. = . 8 x 0. 3 x 0. = 0. ycEycE(X|H. y P(H. = . 1 x 0. 1 x 0. = 0. ycEycE(X|H. y P(H. = . 3 x 0. 1 x 0. = 0. ycEycE(X|H. y P(H. = . 1 x 0. 8 x 0. = 0. ycEycE(X|H. y P(H. = . 1 x 0. 5 x 0. = 0. ycEycE(X|H. y P(H. = . 1 x 0. 1 x 0. = 0. ycEycE(X|H. y P(H. = . 1 x 0. 1 x 0. = 0. P(X) = Total of calculations P(X|H) y P(H) G35 G36 Assess Symptoms The next stage of the expert system is the calculation and how to get the disease weight. To find out the calculation and how to get the weight value, see Table i. The table is a calculation table to get the disease weight value. The Bayes method calculation method is done by adding the value of the disease symptoms divided by the total number of diseases TABLE IV CALCULATION OF DISEASE WEIGHT VALUES Disease Weight Value Leaf Spot Disease Leaf Rust Disease Gapong disease Striped Bacterial Wilt Disease Stripe Disease 6 :8 Peanut Stripe Virus Disease (P St V) Sclerotium Stem Rot Disease Devil's Broom Disease In the previous table, we have seen and learned how to calculate and how to get the weight value of the disease then in Table IV above, we can see how to Calculate the Disease Weight Value which is used as knowledge in building an expert system for detecting peanut because this weight value will later be used for decision making in the expert system for detecting peanut IV. RESULTS AND DISCUSSION NAyaVE BAYES METHOD Manual calculation process Naive Bayes In the symptom selection process, several symptoms are selected as follows: G5 Leaves Dry Easily G9 There are irregular spots on the leaf surface G22 Rooting is much less The disease weight value is obtained from the disease symptom value divided by the total number of diseases, for the process of calculating the disease weight value shown in Table I Ae Table IV. The regulatory weights for each symptom are obtained directly from experts, namely veterinarians. The probability value X in the multiplication value is obtained from the rule weight value for each symptom multiplied by the disease weight value using the formula: ycEycE. cUycU. y P(H): VOLUME 07. No 01, 2025 DOI: 10. 52985/insyst. P(X) = 0. 0008375 = 0. The value of ycEycE. ycUycU) in the result value is obtained from the multiplication value of each disease divided by the sum of the total multiplication values using . P(H|X) = P(X|H) y P(H) P(X) . P(H|X) = rule weight value for each symptom y disease weight value . sum of all possible value of hypothesis P(H. X) = P(X|H. P(H. = 0. P(X) P(H. X) = P(X|H. P(H. = 0. P(X) P(H. X) = P(X|H. P(H. = 0. P(X) P(H. X) = P(X|H. P(H. = 0. P(X) P(H. X) = P(X|H. P(H. = 0. P(X) P(H. X) = P(X|H. P(H. = 0. P(X) P(H. X) = P(X|H. P(H. = 0. P(X) P(H. X) = P(X|H. P(H. = 0. P(X) = 0. = 0. = 0. = 0. = 0. = 0. = 0. = 0. Based on the calculation results above, it can be concluded that from the selected symptoms, the one that gets the highest value refers to Leaf Rust disease with a value of 0. Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. DISCUSSION OF SYSTEM INTERFACE This website-based expert system was created using the PHP programming language and Visual Studio Code software as the text editor. Dashboard page In this section, the appearance of the important pages of the expert system for detecting peanut disease will be discussed. Figure 1 shows the main page display of the peanut disease detection expert system. On this main page there is a consultation menu, the consultation menu is used by users to conduct consultations to find out the symptoms and diseases of peanuts and also a brief explanation of peanut plants. Figure 3. Disease Pages. Symptoms Page The results of the development of the peanut disease symptom page can be seen in Figure 4, on this page there is a display of symptoms, where there is peanut disease symptom data. For the division of tasks where the admin can carry out the process of searching, reloading, adding, changing and deleting peanut disease symptom data. Figure 1. Main Page. Admin Page Discussion of important pages of the peanut disease expert on this page, we see the admin login display, on this page we can see that there is a disease, symptom, rule, password and exit menus as in Figure 2. This page is used by the expert system admin to enter the peanut disease expert system dashboard page. Figure 4. Symptom Pages. Rules Page To see the rules or add and change the rules of the peanut disease expert system, we can see in Figure 5, the rule display containing the peanut disease expert system rule data where the expert system admin can search, reload, add, change and delete peanut disease expert system data. Figure 2. Admin Pages. Disease Page On the important page of this peanut disease expert system, we can see in Figure 3 we see the display of the expert system admin dashboard page which contains a list of peanut disease codes and weights, where the admin can search, reload, add, change and delete data related to peanut diseases. VOLUME 07. No 01, 2025 DOI: 10. 52985/insyst. Figure 5. Rules Page. Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. Consultation Page Figure 6 is an important page of this peanut disease expert system, the contents of this page are in the form of a consultation display form, users can select the symptoms suffered by peanut plants. to make a diagnosis. Users must select at least one symptom. Then select a diagnosis to get the results of the peanut disease expert system consultation. Figure 8. Printed Pages. Figure 6. Consultation Page. Admin Page The following is a discussion of the peanut disease expert system admin page. On the peanut disease expert system admin display, we can see that there is a disease, symptom, rule, password and exit menus as in Figure 9. For those who are admins, they can make settings on all of these menus. For regular users, they can only consult on peanut diseases. Final Results Page In the final result display of the development of the peanut disease expert system, we can see as in Figure 7, the expert system user can see the results of the disease diagnosis based on the selected peanut disease symptoms using the Nayve Bayes calculation. Figure 9. Admin Pages. Figure 7. Result Page. Print Page On the print results page in the peanut disease expert system as in Figure 8, the goal is for peanut disease expert system users to document and print the results that have been obtained by selecting the print menu. In this menu, expert system users can print the results of the expert system's diagnosis of peanut diseases. Disease Page On this last page, it is an important page of the peanut disease expert system. In Figure 10, we can see that there is a peanut disease display containing disease data where the peanut admin can search, reload, add, change and delete data on the peanut disease expert system. While for users, the rules are only to be able to consult on peanut diseases. Figure 10. Disease Pages. VOLUME 07. No 01, 2025 DOI: 10. 52985/insyst. Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. NAIVE BAYES ALGORITHM TESTING TABLE IV NAyaVE BAYES ALGORITHM CALCULATION RESULTS Disease Name Leaf Spots Disease Weight Leaf Rust Gapong Bacterial Wilt Stripes Peanut Stripe Virus Sclerotium stem rot Devil's Broom Symptom Selected Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Leaves Easily Dry There are irregular spots/mosaics on the leaf surface Roots are much less Total Table IV shows the results of manual calculations from the Peanut Plant Disease Identification System website that has been built. From the results of the disease identification website and manual calculations that have been carried out, the system results are in accordance with the manual from the table above, it can be seen that Sclerotium stem rot disease gets the highest value, which is 44507, so the result of the expert system is Leaf Rust TABLE IV CONFUSION MATRIX RESULTS Leaf Spots Leaf Rust Gapong Bacterial Wilt Stripes Peanut Stripe Virus Sclerotium stem rot Devil's Broom Multiplication Result From Table IV, the results of the confusion matrix . that calculates the precision value or positive predictive value (PPV) and recall or true positive rate (TPR) to obtain the application performance value using. The precision value 5% and the recall value is 76%, and the application performance value is 76. Thus, the diagnosis results from the application can be used as an initial diagnosis and reference for further consultation with medical personnel. CONCLUSION Disease VOLUME 07. No 01, 2025 DOI: 10. 52985/insyst. Weight Rule The author's research concludes that a website-based expert system for peanut plant diseases, which utilizes the Naive Bayes algorithm, can identify eight peanut plant diseases and their 36 symptoms expertly. Comparison between the final results produced by the system using the Naive Bayes method and the results obtained from manual calculations show identical results. In addition, the results of manual calculations and the system produce the highest value of Leaf Rust disease, which is 0. 44507, so the results of the peanut disease expert system during testing are Sclerotium stem rot disease. At the time of testing, farmers had used this expert system to detect their peanut diseases. Further research suggestions include the application of expert systems to plant diseases that show several diseases and other symptoms, and the use of alternative methods to assess the accuracy of artificial intelligence algorithms in other expert systems. Ghulam Asrofi Buntoro, et. : Identifying Types of Peanuts Diseases A (April 2. COPYRIGHT This work is licensed under a Creative Commons Attribution-NonCommercialShareAlike 4. 0 International License. AUTHORS CONTRIBUTION Ghulam Asrofi Buntoro: Investigation. Original Draft Writing Preparation. Project Administration. Supervision. Validation. Review Writing & Editing. Anas Fahmi: Investigation. Software Visualization. Writing Original Draft Writing Preparation. Indah Puji Astuti: Formal Analysis. Conceptualization. Investigation. Methodology. Supervision. Validation. Review Writing & Editing. REFERENCES