A novel fuzzy expert system design to assist with peptic ulcer disease diagnosis

Abstract Peptic ulcer disease causes abdominal discomfort and pain. Helicobacter pylori bacteria, infection and long-term use of anti-inflammatory drugs are the most common causes of peptic ulcers. Untreated ulcers can lead to other more serious health complications. Gastric cancer is the second commonest cause of death from malignant disease. Speed performance is always quietly essential in detecting and treating peptic ulcer. Combining artificial intelligence with medical knowledge provides a faster and more accurate diagnosis. The main purpose of this study is to design a novel, inexpensive, reliable and quick Fuzzy Expert System for diagnosis of peptic ulcer disease. A data set of 101 Male adult Wistar rats with a weight range of 200–250 g were obtained from the Pasteur institute. Peptic ulcer induced by Indomethacin (50 mg/kg, 2 ml). A computational approach based on a Fuzzy Inference System (FIS) is suggested in this study for the evaluation of peptic ulcer. The Fuzzy Inference System was produced with Fuzzy C-Means and tuned using the Adaptive Neuro-Fuzzy Inference System model (ANFIS). In order to compare the two methods, the performance of the FIS was evaluated with a ROC curve that prepares the FCM accuracy of 90% and ANFIS accuracy of 85%. In conclusion, the Fuzzy Expert System can potentially increase the accuracy and efficiency of medical practices for peptic ulcer diseases to move towards more precision medicine and treatment. This applicable Fuzzy system may impact hospitals and health systems in improving efficiency and productivity, while reducing the cost of care. It can also be considered in medicine to reduce manual tasks and human error.

Abstract: Peptic ulcer disease causes abdominal discomfort and pain. Helicobacter pylori bacteria, infection and long-term use of anti-inflammatory drugs are the most common causes of peptic ulcers. Untreated ulcers can lead to other more serious health complications. Gastric cancer is the second commonest cause of death from malignant disease. Speed performance is always quietly essential in detecting and treating peptic ulcer. Combining artificial intelligence with medical knowledge provides a faster and more accurate diagnosis. The main purpose of this study is to design a novel, inexpensive, reliable and quick Fuzzy Expert System for diagnosis of peptic ulcer disease. A data set of 101 Male adult Wistar rats with a weight range of 200-250 g were obtained from the Pasteur institute. Peptic ulcer induced by Indomethacin (50 mg/kg, 2 ml). A computational approach based on a Fuzzy Inference System (FIS) is suggested in this study for the evaluation of peptic ulcer. The Fuzzy Inference System was produced with Fuzzy C-Means and tuned using the Adaptive Neuro-Fuzzy Inference System model (ANFIS). In order to compare the two methods, the performance of the FIS was evaluated with a ROC curve that prepares the FCM accuracy of 90% and ANFIS accuracy of 85%. In conclusion, Saeedreza Arab ABOUT THE AUTHOR Saeedreza Arab is a faculty member of the Computer Engineering Department, Higher Education Complex of Bam, Iran. He received a B. Sc. degree in computer science from Shahid Bahonar University, Kerman, Iran, in 2006, and an M.Sc. degree in Information Technology Engineering from Amirkabir University of Technology, Tehran, Iran, in 2011.He is currently a Ph.D. candidate of Information Technology Engineering, Islamic Azad University, Sabzevar, Iran. His main research interests include expert systems, data mining in big data, internet of things (IoT) and wireless sensor networks. He also participated in different national and international conferences, having presentations and posters as well. Several conference articles have been published by him in the field of fuzzy systems, localization in wireless sensor network, IoT and data mining. In this study he focused on designing a fuzzy expert system for the diagnosis of peptic ulcer disease. Designed system has been compared to the medical experts' knowledge as well as their medical-skills to achieve the best decision in the field of peptic ulcer disease.

PUBLIC INTEREST STATEMENT
Gastric ulcer is one of the most common diseases in society, but its physiopathology is not well understood. The progression of the disease and its penetration into other parts of the gastrointestinal tract can lead to gastric cancer. For this reason, researchers in laboratories are looking for different ways of curing the disease, in which experiments on the stomach of mice have been done to achieve the desired result. The length of the rats' stomach ulcer indicates the severity of their ulcer. Determination of the severity of gastric ulcer depends on many factors that are measured with inaccuracy and ambiguity. Therefore, it is necessary to have an intelligent system for the classification and determination of the severity of gastric ulcer under uncertainty by experts. Recently complementary multidisciplinary sciences such as medicine, computer diagnostic tools, artificial intelligence and fuzzy systems have increased accuracy to find out stage and type of various disease.

Introduction
Artificial intelligence in computer science identifies meaningful relationships in raw data. It assists scientists to solve almost impossible problems. Physicians spend too much time n engaging with patients to figure out solutions. Physicians are interested in determining whether the patient under checkup is showing signs of a benign or malignant type of illnesses (Pereira et al., 2019;Wilson et al.,). Initially, William B Schwartz was interested in the use of computing science in medicine to reach better results and decisions (Schwartz, 1970). So the idea of using a predictive computer system is not new, but so far, these systems are not sufficiently applicable in health centers specially in the ulcer disease area. It is complicated to reach conclusions about the patient's symptoms with complexities (Sittig et al., 1989). Critical decisions are made based on a set of observations and measurements. A physician evaluates all factors mentally to achieve the best diagnosis. However, there are various difficulties in analyzing a large amount of histopathologic and clinical information in the field of medicine (Donabedian, 2005). Therefore, complementary methods are required for a better diagnosis. New methods are suggested to the physicians by computer experts via machine learning methods to assist in decision-making procedures (Güvenir et al., 2004). These methods can be used to support diagnosing, treating and predicting outcomes in many medical situations. However, the concern is a shortage of scientists with both biomedical algorithm building proficiency and knowledge. Currently, due to cancer complication, the main purpose for such smart tools is in the scope of cancer recognition such as gastric cancer. Early detection of gastric ulcer facilitates the process of gastric cancer treatment. The use of an expert system along with physicians' knowledge will aid to treat cancer faster and reduce human errors (Matthijs et al., 2016). Over the past few decades, the computerized diagnostic tools, intended to aid the physician in making sense out of the welter of data (Abbass, 2002). Nowadays, the main topic of medical science is a diagnosis of illness based on several experiments (Fried et al., 1991). Multidisciplinary science stream such as medicine and computer diagnostic tools may increase accuracy to find out the stage and type of disease (Pena-Reyes & Sipper, 1999).
Promising progress is achieved through medicine, artificial neural network and fuzzy logic as a part of artificial intelligence (Torchio et al., 1989). Computer aided diagnostics (CAD) is a concept based on computer algorithms (Giger & MacMahon, 1996). CAD tools have become one of the key issues in medical imaging (Aghaei et al., 2017, March). CAD is a concept established by taking equally into account the knowledge of doctors and computer science, while automated computer diagnostics are a concept based solely on computer algorithms (Giger & MacMahon, 1996). Using CAD, the performance of computers should not be comparable to or better than the doctors, but doctors should complement each other. In fact, a wide number of CAD tools have been applied recently in the early detection of cancers (Doi, 2007). A novel classification algorithm, called Benefit Maximizing Classifier on Feature Projections (BCFP), is also used for gastric carcinoma tumor recognition. The domain contains studies and records of patients with a known diagnosis by gastroscopy results. The BCFP training algorithm input is a set of training instances describing subjects with known diagnosis. Regarding the training set of such records, the BCFP classifier learns how to distinguish a new case in the mentioned domain (Güvenir, 2003). Classification in the BCFP algorithm is based on voting among the individual predictions made on each feature. In gastric carcinoma, an ulcer can be indicator of different levels from 1 early to 9 end stage. The BCFP algorithm in the training phase learns classification rules which maximizes classification benefit (Güvenir, 2003). The BCFP algorithm tries to make a logical prediction by maximizing the profit at the query phase. A genetic algorithm is also applied to choose the relevant features. The BCFP algorithm gained high accuracy on the gastric carcinoma data set.
Medical technology is a range of tools that can enable health professionals to provide patients and society with a better quality of life. The medical technology reduces the length of hospitalization by performing early diagnosis, reducing complications, optimizing treatment and providing less invasive options. As a part of medical technology, this study evaluates the severity of peptic ulcer using a Fuzzy Expert System.
A peptic ulcer is one of the essential diagnosis concerns (Lanas & Chan, 2017). Peptic ulcer illness involving duodenal and gastric ulcer is the most common gastrointestinal disorderliness (Laine & Peterson, 1994;Umashanker & Shruti, 2011). A peptic ulcer is a lesion in the lining mucosa of the digestive tract, typically in the stomach or duodenum. It is caused by the digestive action of pepsin and stomach acid. Different factors such as Helicobacter pylori can cause gastrointestinal ulcers (Fashner & Gitu, 2015). Helicobacter pylori is a type of bacteria that can cause stomach infections and inflammation (Malfertheiner et al., 2017). Gastroenterologists decide based on diagnostic, therapeutic and monitoring problems (Quinlan, 1986). In health-care procedures diagnostic part is started by evaluating clinical data from physical examination and patient history. The diagnostic hypotheses given at this level are refined and ultimately confirmed with more information in the following part. Disease classes are defined as erosive gastritis, gastro-oesophagealreflux, chronic antral gastritis, and peptic ulcer (Umashanker & Shruti, 2011). Frequent use of drugs, smoking, alcohol, radiation therapy, and gastric cancer are among other causes of ulcers (Ramakrishnan & Salinas, 2007). Furthermore, it is important to note that suggested pharmaceutical products for gastric ulcers are not occasionally effective. To the best of our knowledge, numerous unfavorable symptoms are reported as a result of using them. Nowadays, the focus on herbal studies represents a high potential application of medicinal herbs in this field (Pena-Reyes & Sipper, 1999). It is valuable to diagnose disease according to the symptoms at an early stage to treat by either chemical or herbal medications.
Although other studies applied various computer techniques for quick and accurate decisionmaking of diseases, none of them has specifically examined peptic ulcers so far. Therefore, the goal of this study is to introduce an effective Fuzzy Expert System for fast and accurate diagnosis of ulcer diseases. The output of this project will actually be a promising application of computer technology, knowledge and human skill strengths in medical professionals.

Materials and methods
The research method and data collection in this study were conducting anatomical tests on the studied rats. Such data included the length of gastric ulcer from Tehran University of Medical Sciences, Iran.

Animals
Male adult Wistar rats with a weight range of 200-250 g were obtained from the Pasteur Institute, Iran. Animal experiments were performed in accordance with national guidelines for the use and care of laboratory animals and approved by the local animal care committee of Tehran University of Medical Sciences. In order to perform the experiments, the rats were fed with pre-made specific food as well as water. The rats were kept in an animal room at 25°C for 12 h of lighting and 12 h of darkness to adapt to the environment for 3 days. 24 h before starting the test, the animals were put in special cages with no straw. There was no access to the feces and urine of the animals.
During this period, the rats only drank water. The stomach of each animal was completely free from any food.

Chemical method of causing gastric ulcer
Peptic ulcer induced by Indomethacin. Indomethacin powder was prepared from DarouPakhsh company. Samples (rat) were given 1 h before the i.p. administration of Indomethacin as a nonsteroidal anti-inflammatory drug. It is suspended in saline (50 mg/kg, 2 ml) (Moghaddam et al., 2013).

Ulcer index measurement
In order to diagnose and determine ulcer intensity causing by Indomethacin, the stomachs of the rats were removed. Then the ulcer index was measured using loop and eye graticule. Data from this study included the length of the measured ulcers from the stomach of the rats being considered as input parameters. Ulcer index as an output parameter is defined as follows: W1: Each 5 petechia points were considered as a 1 mm ulcer and received factor 1 W2: The number of ulcers with lengths from 1 to 2 mm received factor 2 W3: The number of ulcers with lengths from 2 to 4 mm received factor 3 W4: The number of ulcers with lengths from 4 to 6 mm received factor 4 W5: The number of ulcers with lengths from 6 mm and above received factor 5 Using Equation 1, the severity of the rat gastric ulcer was calculated with respect to the created ulcers.
The intensity of the gastric ulcer was calculated using the above mentioned equation.

Data-sets
The number of studied samples in this study was 101. Regarding the effect of Indomethacin on the stomach of each rat, we have obtained a different number of data sets. So that in the stomach of some rats there are fewer ulcers and in others more ulcers. The range of final data has been extracted from 9 to 50 records with different lesion lengths from the stomach of each rat. Ulcer length was measured using loop and eye graticule. Data from this study included the length of the measured ulcers from the stomach of the rats being considered as input parameters. Table 1 indicates created ulcers in the stomach of five rats and calculating method as well.
The images of the damaged tissues of the stomach and created ulcers in Figure 1 were measured by eye graticule.

Histological studies
The images were obtained from multiple slides in a microscope sub-loop being required for the microscopic examination and comparison of the required groups. The number proportional to the histological observation is conventional. Highly severe bleeding was reported as +4, severe bleeding as +3, average bleeding as +2, and mild bleeding as +1 (Figures 2 and 3).  (4) +4 (1) +5 (1)

Fuzzy expert system
This section briefly explains the main components of a Fuzzy Expert System including: membership functions, fuzzy rule base, fuzzification and defuzzification. The FIS is a rule-based system that uses fuzzy logic, rather than Boolean logic, to reason the best results (Abraham, 2005). As depicted in Figure 4 basic structure of FIS includes four main components, including fuzzifier unit, fuzzy inference unit, defuzzifier unit and knowledge base Figure 4 (Pena-Reyes & Sipper, 1999).
Fuzzy set A can be determined as follows (Zadeh, 1994): The most important application of fuzzy logic is to deal with uncertainty (Neshat et al., 2008). When a problem has a dynamic behavior, fuzzy logic is a good solution (Neshat et al., 2008;Saritas et al., 2003). The first phase of Fuzzy Expert System designing is the determination of input/output variables (De Silva, 2018). There are one output variable and five input variables. Then Membership Function MF of all variables should be designed. Membership of objects to fuzzy sets is determined by membership functions (Kandel, 1991). In the first step, the input variables are described with their MFs. In the second step, the output variables with its membership functions are also introduced. Finally, in the last section, the rules of the system are presented (Adeli & Neshat, 2010).

Results and disscussion
Assessment of experimentally induced gastric ulcers is a complicated task because of their irregularly shaped and multiple incidences. For chemical-induced ulcer quantification, the cumulative length of all hemorrhagic erosion was described as the easiest form of ulcer index. The ulcer width has also been accounted. Ulcer index (mm) = length-width (Moghaddam et al., 2013). A Fuzzy Expert System for the recognition of peptic ulcer disease has been proposed in this study. The designed system has been evaluated and compared with the knowledge of the medical experts. Three experts assisted to design the system.

Input-output variables
Stomachs of rats were opened along the greater curvature. The gastric mucosal lesions were expressed in terms of ulcer index (UI) according to Peskar et al. (2002). Microscopic observation of the lesions in the glandular portion was examined for ulcer area by three investigators. The severity factor for each FIS input variable was defined according to the length of the lesions ( Table 2). The severity of mucosal lesions was scored as low, medium and high as described in section 2.3. Ulcer index was also considered as output variables of FIS in this project.

Methods
The Fuzzy Expert System for peptic ulcer diagnosis was implemented in the fuzzy logic toolbox in Matlab. Following methods have been applied according to the FIS to evaluate the intensity of peptic ulcer.
(1) Fuzzy C-Means Clustering FCM, applied in order to the automatic generation of the membership functions and scatter partitioning of the input space. The FCM starts with a preliminary guess for the cluster centers. It allows one piece of data to belong to two or more clusters. Which are supposed to mark the mean location of each cluster. The preliminary guess for these cluster centers is most in all likelihood wrong. The FCM assigns every data point a membership grade for each cluster. Clusters are identified by similarity measures including distance, connectivity, and intensity. With the aid of iteratively updating the cluster centers and the membership grades for every data point, FCM iteratively moves the cluster centers to the right location inside a data set. This iteration is based on minimizing an objective function that represents the distance from any given data point to a cluster center, weighted through that data point's membership grade. Fuzzy C-Means has been an essential tool for image processing in clustering objects in an image (Bezdek et al., 1984).
(2) Adaptive Neuro-Fuzzy Inference System ANFIS applied in order to the tuning of the membership functions and learning the FIS rules. The ANFIS utilizes a hybrid learning algorithm to recognize parameters of the Sugeno type fuzzy inference system. It integrates both neural networks and fuzzy logic principles and it has the potential to capture the benefits of both in a single framework. ANFIS applies a mix of the backpropagation method and the leastsquares method for training FIS membership function parameters to emulate a given training data set. ANFIS can also be invoked using an optional argument for model validation (Jang, 1993).
In the procedure of specifying the FIS parameter with the ANFIS model, a data set containing 101 Wistar male rats with diagnosed peptic ulcer. The data set was divided into two sections: 1. 30% for testing 2. 70% for training The membership functions and rules of the FIS for peptic ulcer risk evaluation were designed with Fuzzy C-Means FCM clustering via extracting the collection of rules. It can model the data behavior with ANFIS Toolbox and Fuzzy Logic Toolbox (Figures 5-9). Initially, the rule extraction technique used the FCM technique to specify the number of membership functions regarding consequent rules and antecedents. In the next step the ANFIS method was applied to set the FIS parameters. This part clarifies above-mentioned procedures.

Figure 8. Membership functions of 4 mm ≤ ulcer length ≤ 6 mm.
In Figures 5-9, each 5 petechia points were considered as a 1 mm ulcer is named as weight 1, the number of ulcers with lengths from 1 to 2 mm is named as weight 2, the number of ulcers with lengths from 2 to 4 mm is named as weight 3, the number of ulcers with lengths from 4 to 6 mm is named as weight 4 and the number of ulcers with lengths from 6 mm and above are named as weight 5. These figures show the membership functions of all input variables using Equation 3. This Equation represents the Gaussian function, and the fuzzy inference method based on the Sugeno model.
Results from FIS can be seen actually before and after training with the ANFIS method (Tables 3-8). At the evaluation process, the RMS error has been used as a performance measure (Lanas & Chan, 2017). The RMSE and the histogram of the errors on train and test data sets are shown in Figures 10-15.     Fuzzy Rules Base: This is an essential portion in the FIS, and in the fuzzy system quality of results depends on rules. In this section, the fuzzy rules base has been developed using the input variables, with "if-then" rules based on what has been demonstrated.
Consider some of the fuzzy rules given as follows: If (0≤ W1 ≤ 5) and (0≤ W2 ≤ 6) and(0≤ W3 ≤ 4) and (0≤ W4 ≤ 4) and (0≤ W5 ≤ 7) Then (Ulcer Index is Low).  Figure 15. This diagram shows the mean and variance and the error rate of the testing section. Arab et al., Cogent Engineering (2021) Figure 16 shows the method of inferring the rules entered into the system by the Sugeno model. The rows indicate the number of rules and the columns indicate the inputs. The red line in each column indicates the activation of the fuzzy sets involved in the rules according to the inputs given to the fuzzy inference system.

Expert opinion
Physicians need to manually identify features to detect ulcer diseases. The diagnosis process can be manipulated by providing adequate data, experiment and knowledge. Expert opinion is a relatively informal method that can be utilized to serve a variety of requirements and it can be utilized to assist any identification of illness (Morice et al., 2014;Tonelli, 1999). The experts with advanced knowledge are able to express their scientific-based opinion in a simple probabilistic fashion. In these study tables below were created by medical experts in the field of peptic ulcer issue (Tables 9-13). Comparison of achieved results and different membership functions are shown in Table 14 and Figures 17-21 respectively.

ROC analysis
Receiver Operating Characteristics (ROC) charts are a clear and useful opportunity to organize classifiers and visualizing their performance (Fawcett, 2006;Kannan & Vasanthi, 2019). The project began in the 1940s to interpret radio signals, used by radar receivers to analyze radar images during World War II. Since the early 1970s, the ROC has been found to be a useful tool for interpreting the results of medical tests and more. The ROC charts are recently use in medical decision-making and other cases. It has currently been accepted in data mining and machine learning research societies (Slaby, 2007).
In order to compare the two mentioned methods, the efficiency of the Fuzzy Expert Systems was evaluated using the ROC curves (Castanho et al., 2007;Zolghadri & Mansoori, 2007). Three metrics including specificity, sensitivity and area under the curve were applied for evaluation of FCM and ANFIS. Specificity and sensitivity were computed by finding the number of true negatives (TN), true positives (TP), false negatives (FN) and false positives (FP). TNs are correctly detected normalities (non ulcers) while TPs are correctly detected abnormalities (ulcers). FNs and FPs are the numbers of incorrect detections of abnormalities and normalities respectively. The two metrics are calculated as:    Results of the ROC curve for methods are shown in and Figures 22 and 24. The area under the ROC Curve, AUC is commonly used as a summary measure of diagnostic accuracy. According to the results the first curve is the ROC curve for FCM, and it shows an accuracy of 90%. The second curve is the ROC curve for ANFIS showing an accuracy of 85%.
ROC analysis provides accuracy indexes including area under the curve, max sensitivity cut-off point. The summary result of the ROC curves for methods are shown in Table 15. According to the results, it can be claimed the FCM Curve is better than the ANFIS curve.

Other fuzzy expert systems for diagnosis of disease
Fuzzy Expert Systems have been successfully used not only in health care but also in other areas. For damage detection of regular dams and irregular plates, a new approach has been proposed based on a combination of ANFIS with wavelet transform (Hamidian et al., 2018). Several studies on the analysis of the stability and synthesis of control laws have been undertaken for multiple models (Chadli & Borne, 2013;Maamri et al., 2018). The aims of another study were diagnosing, analyzing and learning the purpose of the prostate cancer diseases using the Fuzzy Expert System. Prostate-specific antigen, age and prostate volume have been considered as input parameters. Prostate cancer risk is the output of the suggested system. In most of the studies the Fuzzy Expert System is mentioned as a rapid, economical, and low risk as a comparison with traditional diagnostic systems (Saritas et al., 2003).
In another research, the proposed fuzzy system represented a promising approach for accurate predicting diabetes. The fuzzy verdict mechanism took the information collected from diabetic patients as inputs. Rules and physicians' knowledge were considered to predict the rate of diabetes. Results showed better accuracy as compared to other prediction approaches (Jain & Raheja, 2015). A prototype expert system in gastroenterology was developed in Itay. This system is capable of assisting physicians in the diagnosis of gastrointestinal disorders. The system consists of approximately 400 rules representing deductive knowledge. The prototype essentially works by doctor keys in the patient symptom data, general information, medical history and physical examination through a user interface. The system responds by identifying the organ and the disease by suggesting clinical examinations. The domain comprises of chronic pathologies of the digestive tract. Consideration has been given to the greater risk illnesses and those most frequently experienced in everyday practice. Knowledge in the scheme is structured as a search-tree of feasible diagnostics, with more general concepts at the top level and more particular concepts at the bottom level. Starting with the initial kernel of the system, errors in the regulations and the search strategy have been recognized by carrying out a sequence of tests on a big amount of already resolved instances related to illnesses in the implemented sub-domain (Terribile et al., 1991).
A portable, economic system has been created for cooling the brain as well. This system provides efficacy and safety in porcine models (Bakhsheshi et al., 2019). An endoscopy in medicine is a procedure where organs inside the body are looked at using an instrument called an endoscope (a flexible tube with a camera). The emergence of endoscopic imaging techniques allows access to novel developed computer-aided decision support systems (Liedlgruber & Uhl, 2011). A neural fuzzy-based evolutionary system has been proposed to diagnose acute abdominal pain without examining a specialist. The acute abdomen may be caused by a vascular occlusion, infection, inflammation or obstruction. The patient is asked by a computer-based diagnostic system as a multi-choice questionnaire. It can help user get accurate information about the diagnosis and treatment of acute pain, including appendicitis, pancreatitis, diverticulitis and obstructive bowel disease (Towell & Shavlik, 1994).
Definition functional or nonulcer dyspepsia pain is a term used to describe signs and symptoms of indigestion that have no obvious cause. Helicobacter pylori infection, gastritis, pathology and age are the cause and signs of nonulcer indigestion (Torchio et al., 1989). A successful method has been introduced for analysis and classification of symptoms of indigestion for 348 patients with nonulcer indigestion. (Lai et al., 1996). Capsule endoscopy or Wireless Capsule Endoscopy (WCE) is a technology developed in medicine that uses a tiny wireless camera to take pictures of the digestive tract, especially the small intestine. WCE as a complete computer-aided diagnostic system showed promising results with a classification accuracy of 91%. This method reduces data retrieval time, and also serves as a tool to help and train inexperienced physicians. (Charisis et al., 2013).
Cardiovascular disease affects millions of people annually. The fuzzy soft expert system developed was used to predict coronary artery disease using several symptoms. The fuzzy soft expert system developed could help the expert doctor to decide if drug therapy or intervention is needed (Hassan et al., 2017). Farahani et al. proposed a system consists of different modules including working memory, knowledge base, inference engine and user interface. The system took the risk factors and symptoms of lung cancer. In addition, to generate rules, domain expert knowledge was gathered. Type-2 Fuzzy Inference engine fired relevant rules under the appropriate condition and provided the probability of disease as the output of the system. The output of the system as a second opinion could assist physicians (Farahani et al., 2015).
Traditional diagnosis in medicine has lower accuracy compared to the combining of healthcare with artificial intelligence techniques. The wide acceptance of artificial intelligence in health-care relates to the complexities of modern medicine, which involves the acquisition and analysis of a copious amount of information. Physician decision can be a laborious and errorprone process. Medical artificial intelligence with their advanced computing ability is overcoming this limitation. Artificial intelligence helps physicians around the world make faster and better decisions. In the case of ulcer diseases physician should consider whole peptic ulcer symptoms caused by many other illnesses, such as a stomach virus, weakness, fatigue, vomiting blood and blood in the stool (Hwang et al., 2015). However, our suggested method as an economical measurement technique is accurate, rapid and novel to diagnose gastric cancer. It also can provide more data set of peptic ulcer since it can process the length of leisure and ulcer indexes quickly. In Iran, the mortality of stomach cancer is the first cause of death due to cancer in both sexes (Movahedi et al., 2009). Using this method gastric cancer can be detected at an early stage. Gastric cancer is the second cause of cancer-related deaths all over the world (Hwang et al., 2015). Patients with peptic ulcers and H. Pylori infection have a high risk of gastric cancer development. As the health-care system becomes more expensive and inaccurate, replacing the expensive elements in patient care and computer diagnostic solutions will be desired. Consequently, represented novel Fuzzy Expert System improves reliability, predictability, and consistency with higher quality. It is also patient safety and estimates better medicine cognition in the analysis of complicated peptic ulcer data. However, it is valuable to mention that while the application of computer science in the delivery of health-care has promising potential, some technical and ethical challenges still exist. Medical artificial intelligence in computer science is largely driven by computer scientists without any medical training. So it is strongly recommended to trigger research teamwork projects with technically focused and problem-oriented specialists in both medicine and computer field.

Conclusion
One of the important parts of medical science is concerned with disease prediction. Many health-care organizations particularly laboratory results are often associated with inaccurate and uncertain issues. It occurs due to wrong diagnose, medication errors and shortage of physicians compared to the increased number and needs of patients that require care. This has led to the development of computer diagnostic tools to help physicians and professionals to manage uncertainty. Stomach ulcers can be easily cured, but they can become severe without precise diagnosis and proper treatment. The purpose of this study was to propose a reliable Fuzzy Expert System for the diagnosis and prediction of gastrointestinal diseases more accurately and quickly. In this study the powerful fuzzy system allows doctors and patients to more easily access health records and assess patient's health data that is recorded over a period of time. Furthermore, the Fuzzy Expert System provides information for earlier ulcer cancer diagnoses and shorter time-lines for developing and testing new medications. It can also be used in pharmaceutical industries to speed ulcer drug development and clinical trials. Suggested Fuzzy Expert System can be considered as a unique technique to replace some of the human elements of clinical care. The Fuzzy Expert system in this project sounds promising, but similar health informatics projects are required to evaluate other diseases. Effective communication skills of engineers and physicians are demanded to improve the weak points of medical technology over time. Hopefully, in the near future, Fuzzy Expert System may able to detect ulcer cancer and other diseases earlier than possible via standard diagnostic methods, which could be lifesaving for patients.