ISSN : 1978-8282. Online ISSN: 2655-4275 Application of Recommendations for Diagnosis of Diseases in the Field of Hematology and Oncology With Forward Chaining Algorithm Abiel Filetus*1. Ricky Raymond2. Prittania Friska Octavia3. Halim Agung4 1,2,3,4 Fakultas Teknologi dan Desain Universitas Bunda Mulia E-mail: abielfiletus@gmail. com, 2rickyraymond71@gmail. com, 3prittaniafriska@gmail. halimagungubm@gmail. Abstract The COVID-19 pandemic has made many changes in everything, both from the industrial world and human habits. Illness is one of the things that cannot be postponed in its completion, so that people can consult a doctor to be able to recognize the disease suffered by the community In the past, consultations had to come to the hospital, nowadays there are innovations in the field of Information Technology that make it easier for people to consult. The expert system is one of the fastest growing innovations. The expert system is one of the fastest growing innovations. Forward chaining is one of the algorithms of an expert system to get a conclusion through existing facts / data based on predetermined rules. Forward chaining can provide good disease conclusions with a 100% percentage of 30 diseases and 15 test However, a diagnosis based on symptoms according to doctors only has a confidence level of 50-60%. So other assessment factors are needed to increase the percentage of these beliefs such as gender, age, medical history, supporting examinations, and others. Keywords Ai Forward Chaining. Expert System. Haversein Formula INTRODUCTION The COVID-19 pandemic has made drastic changes in people's lives, both in industry and others, to the psychological condition of the community. Many in the community are increasingly afraid and wary of going and wanting to get out of their homes. While the health problem is one thing that can not be delayed, so it requires quick and appropriate treatment. Consultation with a doctor is one of the best solutions to be able to recognize the health problems experienced. The Indonesian Ministry of Health has recommended for the public / patients who are lightly ill to postpone to the hospital to be able to break the chain of spread that is feared to occur in hospitals. So that activities in the hospital are recommended to be restricted and make consultations to the doctor to be reduced. Expert system is one of the solutions that can be offered to the community to be able to recognize the disease suffered by simply choosing and filling out what symptoms are felt and experienced without having to chat with a doctor. Every disease must have symptoms felt by the sufferer, as well as diseases in the field of hematology and oncology, which is a disease that attacks blood cells and cancer in the human body. In this study, researchers intend to see the effectiveness of forward chaining algorithms with the implementation of a recommendation application for disease diagnosis in the field of hematology and oncology that can help the public know what diseases they suffer through the symptoms that the community provides / input in the application. Vol. 14 No. 1 Ae February 2021 ISSN : 1978-8282. Online ISSN: 2655-4275 RESEARCH METHOD Expert System Expert systems are again programs that advise automatically that are designed to mimic thought processes and know from experts where to place for victims of major problems . Figure 1. the large components in the expert system. With a short sound . Figure 1. Expert System Components . Knowledge Base, contains specific facts and knowledge, as well as the rules used for those facts. Working Memory, contains facts of the problems to be searched during the session. Consists of 2 information, which is provided by the user and collected by the system. Inference Engine, as a giver of permission to retrieve data from the knowledge base and to run the system, and provide conclusions from the facts provided by the user with the rules on the knowledge base. User Interface, which is the view seen by the user. Forward Chaining Forward chaining is one of the two main methods of reasoning when using engine inference and can be logically described as a repeat application of ponens mode . set of inference rules and valid argument. The opponent of forward chaining is backwardchaining. The basic concept of this forward chaining algorithm, where data is known in the form of facts will be tested using logical operators to give a new decision / conclusion. So onwards until the results are considered correct / completed. The working system of this method is from the data / facts known / given, will be compared with every rule in the knowledge base that has been entered previously by both the administrator and predefine data. Haversein Formula The Haversein formula is an important equation in navigation, giving a large circular distance between 2 points on the surface of the ball (Eart. based on longitude and latitude . ya = acosA(Aycycnycu. O ycycnycu. O ycaycuyc. O ycaycuyc. coycuycuyci2 Oe ycoycuycuyci. A) O ycIA Haversein Formula Vol. 14 No. 1 Ae February 2021 ISSN : 1978-8282. Online ISSN: 2655-4275 Description: : The calculation of haversein formula in the form of distance . lat1 : latitude 1 long1 : longitude 1 lat2 : latitude 2 lat2 : latitude 2 : radius of the earth 6371 . RESULTS AND DISCUSSION The forward chaining process in the system of disease diagnosis experts in the field of Hematology and Oncology is shown in the source code below: Figure 2. Implementation of Source code forward chaining . In Figure 2, the program looks for diseases that patients may experience according to the symptoms included by the user. Then if no corresponding disease is found then the program will immediately return a JSON containing an empty array which means no data is Figure 3. Implementation of Source code forward chaining . In Figure 3, the program takes only the disease id data and the appropriate number of Vol. 14 No. 1 Ae February 2021 ISSN : 1978-8282. Online ISSN: 2655-4275 Figure 4. Implementation of Source code forward chaining . In Figure 4, the program retrieves data back to the database to retrieve the rule data that is all the symptoms that exist for a disease and the number of symptoms in the disease. Which will then be processed to calculate the percentage in the next image. Figure 5. Implementation of Source code forward chaining . In Figure 5, the program performs the process of calculating the percentage - percentage of a disease in accordance with the predetermined rule, namely the number of symptoms in a disease compared to the number of symptoms that are included by the user. Then filter the data and take only data that has a percentage rate of more than 70% only. Figure 6. Implementation of Source code forward chaining . In Figure 6, the program mapping data by separating the disease id that has passed the data filter process into separate variables with the percentage of disease. This is used for the process of retrieving data to the database which will be described in the next image. Vol. 14 No. 1 Ae February 2021 ISSN : 1978-8282. Online ISSN: 2655-4275 Figure 7. Implementation of Source code forward chaining . In Figure 7, the program again retrieves the data to the database for details of disease data that has gone through the data filter process. At this time the data was taken in as much detail as possible, ranging from the disease, the source, to all the symptoms of the disease. Figure 8. Implementation of Source code forward chaining . In Figure 8, the program performs the process of entering percentage data that can be seen on line 123. And in line 124 - 127 done the process of entering disease id data and percentage to one variable in the form of arrays that aim to be entered into the database as data from user consultation. And on line 129, the process of sorting data so that the data with the largest percentage is in the first array of the return JSON data API. The process of Haversein Formula in finding the nearest hospital in this system is shown in the source code below: Vol. 14 No. 1 Ae February 2021 ISSN : 1978-8282. Online ISSN: 2655-4275 Figure 9. Implementation of Source code haversein distance In Figure 9, the program performs the distance calculation process using the Haversein Formula algorithm starting from line 5 Ae 9 is the initialization of global variables in the class thrown by the one calling this function. Then on lines 28 Ae 30 is to change latitude or longitude to radians. In lines 32 Ae 34 is to do the calculation of rank 2 on the value thrown. And on line 18 - 26 which is the core of this algorithm, that is, first look for the difference from the distance latitude and longitude user with the hospital and converted into radians after that is done calculation Haversein Formula which is then returned in the form of double value. Vol. 14 No. 1 Ae February 2021 ISSN : 1978-8282. Online ISSN: 2655-4275 Table 1. System trial data results Vol. 14 No. 1 Ae February 2021 ISSN : 1978-8282. Online ISSN: 2655-4275 From table 1, it can be seen that the accuracy of expert systems for diagnosing diseases in the field of Hematology and Oncology is 100% where out of 15 test data there are 15 data that correspond to expert test results. But although the results of the expert system showed that 100% of the diagnosis results can not be simply caught raw that a person suffers from a disease diagnosed by the system, because according to the diagnosis expert only with symptoms can only convince experts by 50-60% only. CONCLUSION The conclusions of the authors through this study are as follows: System Of Disease Diagnosis Experts In the Field of Hematology and Oncology using Android-based Forward Chaining algorithm that has been created has a diagnosis accuracy rate of 100% with details of 30 diseases and 136 symptoms. This system will be optimal if one or a group of experts in this case the expert doctor has clearly defined every symptom of the disease. Haversein formula algorithm can calculate the distance between 2 locations based on latitude and longitude but only to a straight line. So when compared to Google Maps the results of distance calculations are not the same . or long distance. Because Google Maps calculates the distance based on the path that humans / vehicles can SUGGESTED The authors' suggestions on this study are as follows: To be able to try methods from other expert systems such as certainty factor to see which method is best in providing diagonsa. Other factors are needed in analyzing data such as age, gender, previous history of the disease, follow-up examination and so on. Because according to experts that diagnosis only using symptoms can only convince a doctor in making a diagnosis of 50-60%. To find the nearest hospital can use other algorithms. REFERENCES