International Journal of Fuzzy Logic and Intelligent Systems 2020; 20(4): 358-368
Published online December 25, 2020
https://doi.org/10.5391/IJFIS.2020.20.4.358
© The Korean Institute of Intelligent Systems
Ahmed Abd El-badie Abd Allah Kamel and Faten Abd El-Sattar Zahran El-Mougi
Department of Computer Science, Faculty of Specific Education, Mansoura University, Egypt
Correspondence to :
Ahmed Abd El-badie Abd Allah Kamel (ahmed_abdelbadie@mans.edu.eg)
This is an Open Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (http://creativecommons.org/licenses/by-nc/3.0/) which permits unrestricted noncommercial use, distribution, and reproduction in any medium, provided the original work is properly cited.
Decision support systems improve medical diagnosis and minimize diagnostic errors. Existing diagnostic systems are often complex and exhibit limited performance on liver diseases, particularly the liver cancer. This paper presents a fuzzy decision support system for helping students diagnose some human liver diseases in educational medical institutions. The proposed system aims to improve real medical diagnosis processes. The approach has three basic steps: 1) symptoms-based diagnosis, 2) liver function-based diagnosis, and 3) image processingbased diagnosis. The proposed system employs two artificial intelligence techniques: fuzzy logic and image processing. The first is used for diagnosing liver diseases based on the liver function tests, while the second is used for diagnosing liver diseases such as the liver cancer, hepatitis, liver cirrhosis, liver fibrosis, and fatty liver. The proposed system combines two methods: the Mamdani inference and simulation method used in the MATLAB17 fuzzy logic toolbox, and the gray level co-occurrence matrix, for extracting the features of the secondorder statistical texture of images acquired using computed tomography, magnetic resonance imaging, or ultrasound, for various liver diseases. Our results reveal a very good agreement between expert-made and system-made diagnoses, suggesting high accuracy.
Keywords: Decision support system, Fuzzy logic, Mamdani inference, Image processing, Liver diseases, Liver cancer
Decision support systems (DSSs) are very useful for patients and medical experts in making decisions. It is a health information technology system designed for supplying physicians and other health professionals with decision support[1]. Clinical decision support systems (CDSSs) refer to programs that assist physicians in making decisions and show the capabilities of sophisticated reasoning for improving clinical decision making, thereby encouraging more effective care practices. Researchers designed early CDSSs on expert systems to program computers with rules that would allow ?thinking? as expert clinicians, compared with patients[2]. The liver is one of the most important organs for medication detoxification and reckless elimination from the demolition and reconstruction of red blood cells (RBCs) in the form of bile, the structure of blood-clotting parts, and sugar storage as glycogen. Moreover, the ordinance of sugar and fat metabolism are necessary functions of this organ. It also has the ability to perform fat ?digestion and exert defense with respect to foodstuff-related microbes and toxins[3]. The death numbers associated with liver diseases have been rising. Proper examination of liver diseases is needed for therapeutics and for mitigating their effects on health. DSSs can help experts diagnose diseases and can usefully supplement laboratory tests.
In addition, using DSSs decreases the disease diagnostics cost, decreases the decision error rate, and is time-efficient[4].
Ahmad et al. suggested a novel multilayered Mamdani fuzzy inference system (Ml-MFIS) for diagnosing hepatitis B using a multi-layer Mamdani fuzzy inference system that classifies the different phases of hepatitis B, such as no hepatitis, severe hepatitis B virus (HBV), or chronic HBV. The reliability of the ML-MFIS expert system was 92.2%[5]. Ahmad et al. proposed a hybrid intelligent approach that combines information acquisition methods and adaptive neuro-fuzzy inference systems (ANFIS), to diagnose fatal hepatitis disease. The performance of that approach was assessed using statistical methods, and the best results of the system validity, specificity, and sensitivity were 95.24%, 91.7%, and 96.17%, respectively. The results revealed that the developed intelligent system had a good diagnostic performance and could be used as a tool to diagnose hepatitis[6]. Mirmozaffari presented an expert system using an expert system shell for diagnosing the liver disease. In addition, block and Mockler charts were used, providing important information to the expert system[7]. Singh et al. suggested to use principal component analysis (PCA) and k-nearest neighbors (KNN) clustering for examining patients’ data. Their model combined feature extraction and classification steps, performed by PCA and KNN, respectively. The results were compared using statistical metrics, including positive and negative predictive values [8]. Hashmi and Khan proposed a fuzzy control model for diagnosing a disease related to the human liver. The relative error between the simulated and calculated values was under 1.8%, which was deemed acceptable[9]. Satarkar and Ali designed a fuzzy expert system to diagnose cirrhosis, which is the most common disease of the liver. This system was based on the sequential combination of the Bononcini score, including aspartate transaminase (AST), alanine transaminase (ALT) ratio, platelet count, and international normalized ratio (INR). The results showed that using fuzzy logic in designing the system enhanced the system’s reasoning, even in the face of imprecise data. Incorporation of fuzzy logic into the expert system improved the system’s performance[10]. Kim et al. introduced a method for determining the benefit signs from sensor arrays that had enormous sensing points, and the diagnosis of the liver cancer was done using machine learning algorithms, such as fuzzy neural networks and neural networks. Their results showed that the system could report the liver cancer with the accuracy of 99.19% using 132 aptamers dependent on neural networks, and with the accuracy of 98.19% using 226 aptamers dependent on a fuzzy neural network[11]. Neshat et al. proposed a fuzzy Hopfield neural network for inferring the acuteness hepatitis. Their system used a fuzzy Hopfield neural network (HNN), and its performance was compared with that of a multilayer perceptron (MLP) neural network. Training was performed using a radial basis function (RBF) network, standard back propagation, the structure trained using the orthogonal least squares (OLS) algorithm, general regression neural networks (GRNNs), Bayesian networks with na?ve dependence and feature selection (BNNF), Bayesian networks with na?ve dependence (BNND), and HNNs. The results showed that the system had excellent performance, and the accuracy to diagnose the severity of hepatitis was 92.05%[12]. Adeli et al. introduced a hybrid method for diagnosing hepatitis diseases. The proposed method comprised two steps: 1) feature selection and 2) classification. Feature selection was performed using a genetic algorithm (GA) as an intelligent method for selecting features to reduce the overall number of used features. For classification, a basic intelligent classification method, ANFIS, was employed. The performance of the proposed method was compared with those of other methods from literature, in terms of the classification accuracy[13].
The above review suggests that most existing studies are mainly based on symptom diagnostics, while some studies used images for diagnosis. This makes our proposed system more distinctive and unique, as it allows to combining symptoms and images for diagnosis, and introduces diversity in the use of methodologies, algorithms, and tools for design.
The proposed system consists of three basic steps: 1) symptom-based diagnosis, 2) liver function test-based diagnosis, and 3) image processing-based diagnosis. Figure 1 shows the framework of the proposed system.
Knowledge base in this study was based on the following stages:
Basic information about liver diseases and their associated symptoms was obtained using a database that contained records about patients with liver diseases that were previously diagnosed by more than one medical domain expert, at Mansoura University Hospital, Department of Internal Diseases. Figure 2 shows the flowchart for diagnosing the symptoms.
Through personal interviews with doctors and their opinions about the most important liver diseases, a new dataset called “diagnosing liver diseases” was created for the proposed system.
Data preprocessing was performed by removing missing values, ensuring that there are no incorrect data entered, and selecting the attributes of the dataset that consisted of 100 instances derived from the database of the hospital including fourteen symptoms, listed in Table 1.
The database file was converted to a comma-separated value (CSV) file, and was used as a ?training dataset, where the data-mining process was performed in the Waikato environment for ?knowledge analysis (WEKA 3.7), an open-source Java-based platform. This platform contains many machine learning algorithms for mining data, including clustering, classification, data pretreatment, visual interactive analysis, and association rule mining [14]. Figure 3 shows a snapshot of the training dataset called “diagnosing liver diseases.”
The classification algorithm J48 was used for building the decision tree and its rules.
The decision tree, shown in Figure 4, has six leaves, and the overall tree size is 11.
(1) IF yellow_tint_to_skin_or_eyes=Yes THEN Disease=“sick_with_liver_disease”
(2) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= Yes THEN Disease=“sick_with_liver_disease”
(3) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=Yes THEN Disease=“sick_with_other_disease”
(4) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=No ∧ Belly_pain=Yes THEN Disease=“sick_with_other_disease”
(5) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=No ∧ Belly_pain=No ∧ Vomiting=Yes THEN Disease=“sick_with_other_disease”
(6) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=No ∧ Belly_pain=No ∧ Vomiting=No THEN Disease=“normal”
These rules were strengthened by drawing on the expertise of a number of domain experts, and adding four more rules, bringing the number of rules to 10.
(7) IF yellow_tint_to_skin_or_eyes=Yes ∧ Dark_urine=Yes ∧ Ascites=Yes ∧ Paled_stool=Yes ∧ Itchy_skin=Yes ∧ Legs_swelling=Yes THEN Disease =“sick_with_liver_disease”
(8) IF Fever=Yes ∧ Joint_pain=Yes ∧ Fatigue=Yes THEN Disease=“sick_with_other_disease”
(9) IF Fatigue=Yes ∧ Itchy_skin= Yes ∧ THEN Disease=“Normal”
(10) IF yellow_tint_to_skin_or_eyes=Yes ∧ Belly_pain=Yes ∧ Ascites=Yes ∧ Stomach_ache=Yes ∧ Poor_appetite=Yes ∧ Nausea=Yes THEN Disease=“sick_with_liver_disease”
The laboratory virtual instrument engineering workbench (LabVIEW17) is a platform for system design and a development environment that utilizes a visual programming language[15]; this environment was utilized in the present work. Figure 5 shows the block diagram for symptom-based diagnosis.
A graphical user interface (GUI) was developed, for facilitating the presentation of an appropriate diagnosis. Figure 6 shows the front panel of the GUI for symptom-based diagnosis.
Basic information about liver function tests was obtained using a database that contained records pertaining to liver disease patients previously diagnosed by more than one domain expert at Mansoura University Hospital, Department of Internal Diseases. Figure 7 shows the flowchart of the liver function test-based diagnosis process.
The rationale of the fuzzy logic approach was laid out by Professor Lotfi Ahmad Zadeh, at the University of Berkeley, California, in his seminal paper “Fuzzy Sets”. Fuzzy logic is a multi-valued logic that originates from the theory of fuzzy groups, for approximate reasoning. It naturally lends itself to treating linguistic information and subjective features in real-world problems[1]. This approach summarizes information with approximate behavior and describes the possible solutions in the form of fuzzy sets rather than fixed numbers[3].
A typical process of disease diagnosis has many levels of uncertainty and imprecision[16]; an example is shown in Figure 7.
In our current fuzzy DSS design, there are six input (crisp) variables and one output (crisp) variable.
Fuzzification refers to the process of transforming a crisp set into a fuzzy group. The process transforms the values of crisp input into linguistic concepts, using convenient membership functions. Table 2 lists the fuzzy set ranges of inputs, and figure 8 shows the fuzzy logic designer for the proposed system.
The inference engine and the rule base have to be specified as well. After input fuzzification, groups of corresponding input fuzzified values are passed through the inference engine that handles inputs using the rules defined by the rule base. The rule base was defined by domain experts at Mansoura University Hospital, Department of Internal Diseases. In addition, an analytical laboratory was named by Dr. Farha El-Shennawi, Mansoura, Egypt. The rule base comprises 10 rules that define the percentage risk of liver damage (low risk, medium risk, and high ?risk), based on the input variables. Figure 9 shows the? rules in the rule editor.
Next, the defuzzification process takes place. In the output of the fuzzy inference process, there can be a fuzzy set that is gained by the structure of the fuzzy sets output by every rule. For practical applications, it should be linked to the crisp scope by the defuzzifier, using continent membership functions. The system uses the Mamdani model for inference, including the determination of the consequence as an output fuzzy set. The output fuzzy set and the aggregation method between rules are minimum for connecting the output fuzzy set; therefore, the method of fuzzification is min-max and the method of defuzzification is centroid. Figure 10 shows the resulting rules of the proposed system.
Finally, the output variable identifies the risk status of patients with liver cancer diseases. The value of the output variable is in the 0–100 range, capturing low risk, medium risk, and high-risk regimes.
This approach seeks to enhance images acquired using cameras or sensors on satellites, space probes, or medical imaging devices[17]. Image processing is another important component ?of the proposed system, and can be divided into two main phases: 1) the training phase and 2) the testing phase, as shown in Figure 11.
In the training phase, image acquisition, image pre-processing, and image feature extraction are performed.
In the image acquisition step, images associated with liver diseases are classified as computed tomography (CT), magnetic resonance imaging (MRI), or ultrasound, depending on the acquisition device. The images for the training pocess were acquired at the Department of Radiology at Mansoura ?University, radiology centers Eleman and Elmogi in Mansoura, ?and were also downloaded from publicly available repositories on the Internet.
The acquired images were presented to ?five domain experts, for reviewing their classification and dividing them into six classes. Table 3 lists samples of some liver disease images.
During the image pre-processing step, the images are resized ?and enhanced, which helps to alleviate the effects of noise and corruption. Figure 12 shows the GUI for diagnosis using some liver disease images, including the query image and the five images most similar to the query image.
At its completion, this step yields the disease name, retrieved images related to the query image, and the percentage of similarity between a query image and images in the database.
The feature extraction technique for images is based on the gray level co-occurrence matrix (GLCM), which is a classical technique that affects image recognition, image retrieval, image segmentation, and image classification[18].
The main four extracted features using the GLCM are:
• Contrast
Contrast is a local difference computed on the GLCM. This is exemplified by a linear reliance on the gray levels of neigh boring pixels. The contrast measure is defined by
where i and j are the vertical and horizontal cell coordinates, respectively, and p is the cell value.
• Homogeneity
Homogeneity is a very important feature. It uses the inverse of the contrast weight-to-weight values. In addition, it measures the level of uniformity of the non-zero entries in the GLCM.
Energy represents the opposite of the entropy, and is a measure of local homogeneity. Simply put, this feature quantifies the texture uniformity:
In the above, i and j are the row and column numbers in the GLCM.
• Correlation is defined as
where
The previous features can be included in the next feature vector:
where FV
The above steps are performed until all of the chest X-ray images are considered. Then, all of the obtained patterns are saved in a database for pattern learning.
During the testing phase, a query image is received for analysis. Then, the features of this image are extracted into a query feature vector:
The WED technique is used for the matching process, which comprises the following steps:
- Finding the WED among the QFV and all vectors FV
- The formula of the WED measure is demonstrated as follows[19]:
where
The WED values are sorted.
- The output is the image that yields the smallest WED value.
The proposed system was implemented in Visual
To test and evaluate the performance of the proposed system, 30 patients with liver disease were presented to three domain experts for diagnosis. They were diagnosed using the proposed system, and the system’s diagnoses were compared to the experts’ diagnoses. Table 4 lists the basic evaluation metrics for diagnosing some liver diseases. Table 5 shows the confusion matrix.
Accuracy is the overall accuracy for image-based diagnosis.
The proposed system can be used for confirming doctors’ decisions. According to the experimental results, the system achieves high ?accuracy, which increases the efficiency of the system and its validity for use. Previous studies mostly employed symptom-based diagnostics, while others focused on images in the diagnostic process. These observations make the currently proposed system more distinctive and unique, owing to its ability to use both the disease symptoms and images for diagnosis, and owing to its diversity in the use of methodologies, ?algorithms, and tools for design. In addition, the proposed system has a simple and easy GUI.
The system’s performance can be improved in future work by extending and designing a large knowledge base for other liver diseases, extending the currently ?proposed system to other fields, categorizing, integrating image processing, sound processing, and knowledge base in building a diagnostic fuzzy decision support system.
Table 1. Symptoms of the proposed liver diseases..
No. | Symptoms | Value |
---|---|---|
1 | Belly pain | Yes/No |
2 | Dark urine | Yes/No |
3 | Fatigue | Yes/No |
4 | Fever | Yes/No |
5 | yellow tint to skin or eyes | Yes/No |
6 | Joint pain | Yes/No |
7 | Poor appetite | Yes/No |
8 | Nausea | Yes/No |
9 | Vomiting | Yes/No |
10 | Stomach ache | Yes/No |
11 | Ascites | Yes/No |
12 | Legs swelling | Yes/No |
13 | Paled stool | Yes/No |
14 | Itchy skin | Yes/No |
Table 2. Fuzzy set ranges of inputs.
No. | Inputs | Description | Fuzzy sets | Range |
---|---|---|---|---|
1 | Alanine Aminotransferase | A_L_T | nothing | |
normal | 7–55 | |||
high | ||||
2 | Aspartate Aminotransferase | A_S_T | nothing | |
normal | 8–48 | |||
high | ||||
3 | Alkaline Phosphatase | A_L_P | nothing | |
normal | 40–129 | |||
high | ||||
4 | Bilirubin | - | nothing | |
normal | 0.1–1.2 | |||
High | ||||
5 | Prothrombin time | P_T | nothing | |
normal | 9.4–12.5 | |||
high | ||||
6 | Albumin | - | nothing | |
normal | 3.5–5 | |||
Low(damage | high) |
Table 3. Example liver disease images..
No. | Images | Class name |
---|---|---|
1 | Chronic hepatitis | |
2 | Fatty liver | |
3 | liver Cancer | |
4 | Liver cirrhosis | |
5 | Liver fibrosis | |
6 | Normal |
Table 4. Basic evaluation metrics for diagnosing some liver diseases.
Disease name | TP | TN | FP | FN | Precision | Sensitivity | Specificity | F-measure |
---|---|---|---|---|---|---|---|---|
Hepatitis | 9 | 50 | 0 | 1 | 1.00 | 1.00 | 1.00 | 1.00 |
Liver cirrhosis | 8 | 50 | 0 | 2 | 1.00 | 1.00 | 1.00 | 1.00 |
Liver fibrosis | 10 | 50 | 0 | 0 | 1.00 | 1.00 | 1.00 | 1.00 |
Fatty liver | 10 | 49 | 1 | 0 | 0.91 | 0.91 | 0.91 | 0.91 |
Liver cancer | 10 | 39 | 1 | 0 | 0.91 | 0.91 | 0.91 | 0.91 |
Normal | 10 | 50 | 1 | 0 | 0.91 | 0.91 | 0.91 | 0.91 |
Average | 0.95 | 0.95 | 0.95 | 0.95 |
Table 5. Confusion matrix for diagnosing some liver diseases.
Hepatitis | Liver cirrhosis | Liver fibrosis | Fatty liver | Liver cancer | Normal | |
---|---|---|---|---|---|---|
Hepatitis | 9 | 0 | 0 | 1 | 0 | 0 |
Liver cirrhosis | 0 | 8 | 0 | 0 | 1 | 1 |
Liver fibrosis | 0 | 0 | 10 | 0 | 0 | 0 |
Fatty liver | 0 | 0 | 0 | 10 | 0 | 0 |
Liver cancer | 0 | 0 | 0 | 0 | 10 | 0 |
Normal | 0 | 0 | 0 | 0 | 0 | 10 |
E-mail: ahmed abdelbadie@mans.edu.eg
E-mail: faten com1@mans.edu.eg
International Journal of Fuzzy Logic and Intelligent Systems 2020; 20(4): 358-368
Published online December 25, 2020 https://doi.org/10.5391/IJFIS.2020.20.4.358
Copyright © The Korean Institute of Intelligent Systems.
Ahmed Abd El-badie Abd Allah Kamel and Faten Abd El-Sattar Zahran El-Mougi
Department of Computer Science, Faculty of Specific Education, Mansoura University, Egypt
Correspondence to:Ahmed Abd El-badie Abd Allah Kamel (ahmed_abdelbadie@mans.edu.eg)
This is an Open Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (http://creativecommons.org/licenses/by-nc/3.0/) which permits unrestricted noncommercial use, distribution, and reproduction in any medium, provided the original work is properly cited.
Decision support systems improve medical diagnosis and minimize diagnostic errors. Existing diagnostic systems are often complex and exhibit limited performance on liver diseases, particularly the liver cancer. This paper presents a fuzzy decision support system for helping students diagnose some human liver diseases in educational medical institutions. The proposed system aims to improve real medical diagnosis processes. The approach has three basic steps: 1) symptoms-based diagnosis, 2) liver function-based diagnosis, and 3) image processingbased diagnosis. The proposed system employs two artificial intelligence techniques: fuzzy logic and image processing. The first is used for diagnosing liver diseases based on the liver function tests, while the second is used for diagnosing liver diseases such as the liver cancer, hepatitis, liver cirrhosis, liver fibrosis, and fatty liver. The proposed system combines two methods: the Mamdani inference and simulation method used in the MATLAB17 fuzzy logic toolbox, and the gray level co-occurrence matrix, for extracting the features of the secondorder statistical texture of images acquired using computed tomography, magnetic resonance imaging, or ultrasound, for various liver diseases. Our results reveal a very good agreement between expert-made and system-made diagnoses, suggesting high accuracy.
Keywords: Decision support system, Fuzzy logic, Mamdani inference, Image processing, Liver diseases, Liver cancer
Decision support systems (DSSs) are very useful for patients and medical experts in making decisions. It is a health information technology system designed for supplying physicians and other health professionals with decision support[1]. Clinical decision support systems (CDSSs) refer to programs that assist physicians in making decisions and show the capabilities of sophisticated reasoning for improving clinical decision making, thereby encouraging more effective care practices. Researchers designed early CDSSs on expert systems to program computers with rules that would allow ?thinking? as expert clinicians, compared with patients[2]. The liver is one of the most important organs for medication detoxification and reckless elimination from the demolition and reconstruction of red blood cells (RBCs) in the form of bile, the structure of blood-clotting parts, and sugar storage as glycogen. Moreover, the ordinance of sugar and fat metabolism are necessary functions of this organ. It also has the ability to perform fat ?digestion and exert defense with respect to foodstuff-related microbes and toxins[3]. The death numbers associated with liver diseases have been rising. Proper examination of liver diseases is needed for therapeutics and for mitigating their effects on health. DSSs can help experts diagnose diseases and can usefully supplement laboratory tests.
In addition, using DSSs decreases the disease diagnostics cost, decreases the decision error rate, and is time-efficient[4].
Ahmad et al. suggested a novel multilayered Mamdani fuzzy inference system (Ml-MFIS) for diagnosing hepatitis B using a multi-layer Mamdani fuzzy inference system that classifies the different phases of hepatitis B, such as no hepatitis, severe hepatitis B virus (HBV), or chronic HBV. The reliability of the ML-MFIS expert system was 92.2%[5]. Ahmad et al. proposed a hybrid intelligent approach that combines information acquisition methods and adaptive neuro-fuzzy inference systems (ANFIS), to diagnose fatal hepatitis disease. The performance of that approach was assessed using statistical methods, and the best results of the system validity, specificity, and sensitivity were 95.24%, 91.7%, and 96.17%, respectively. The results revealed that the developed intelligent system had a good diagnostic performance and could be used as a tool to diagnose hepatitis[6]. Mirmozaffari presented an expert system using an expert system shell for diagnosing the liver disease. In addition, block and Mockler charts were used, providing important information to the expert system[7]. Singh et al. suggested to use principal component analysis (PCA) and k-nearest neighbors (KNN) clustering for examining patients’ data. Their model combined feature extraction and classification steps, performed by PCA and KNN, respectively. The results were compared using statistical metrics, including positive and negative predictive values [8]. Hashmi and Khan proposed a fuzzy control model for diagnosing a disease related to the human liver. The relative error between the simulated and calculated values was under 1.8%, which was deemed acceptable[9]. Satarkar and Ali designed a fuzzy expert system to diagnose cirrhosis, which is the most common disease of the liver. This system was based on the sequential combination of the Bononcini score, including aspartate transaminase (AST), alanine transaminase (ALT) ratio, platelet count, and international normalized ratio (INR). The results showed that using fuzzy logic in designing the system enhanced the system’s reasoning, even in the face of imprecise data. Incorporation of fuzzy logic into the expert system improved the system’s performance[10]. Kim et al. introduced a method for determining the benefit signs from sensor arrays that had enormous sensing points, and the diagnosis of the liver cancer was done using machine learning algorithms, such as fuzzy neural networks and neural networks. Their results showed that the system could report the liver cancer with the accuracy of 99.19% using 132 aptamers dependent on neural networks, and with the accuracy of 98.19% using 226 aptamers dependent on a fuzzy neural network[11]. Neshat et al. proposed a fuzzy Hopfield neural network for inferring the acuteness hepatitis. Their system used a fuzzy Hopfield neural network (HNN), and its performance was compared with that of a multilayer perceptron (MLP) neural network. Training was performed using a radial basis function (RBF) network, standard back propagation, the structure trained using the orthogonal least squares (OLS) algorithm, general regression neural networks (GRNNs), Bayesian networks with na?ve dependence and feature selection (BNNF), Bayesian networks with na?ve dependence (BNND), and HNNs. The results showed that the system had excellent performance, and the accuracy to diagnose the severity of hepatitis was 92.05%[12]. Adeli et al. introduced a hybrid method for diagnosing hepatitis diseases. The proposed method comprised two steps: 1) feature selection and 2) classification. Feature selection was performed using a genetic algorithm (GA) as an intelligent method for selecting features to reduce the overall number of used features. For classification, a basic intelligent classification method, ANFIS, was employed. The performance of the proposed method was compared with those of other methods from literature, in terms of the classification accuracy[13].
The above review suggests that most existing studies are mainly based on symptom diagnostics, while some studies used images for diagnosis. This makes our proposed system more distinctive and unique, as it allows to combining symptoms and images for diagnosis, and introduces diversity in the use of methodologies, algorithms, and tools for design.
The proposed system consists of three basic steps: 1) symptom-based diagnosis, 2) liver function test-based diagnosis, and 3) image processing-based diagnosis. Figure 1 shows the framework of the proposed system.
Knowledge base in this study was based on the following stages:
Basic information about liver diseases and their associated symptoms was obtained using a database that contained records about patients with liver diseases that were previously diagnosed by more than one medical domain expert, at Mansoura University Hospital, Department of Internal Diseases. Figure 2 shows the flowchart for diagnosing the symptoms.
Through personal interviews with doctors and their opinions about the most important liver diseases, a new dataset called “diagnosing liver diseases” was created for the proposed system.
Data preprocessing was performed by removing missing values, ensuring that there are no incorrect data entered, and selecting the attributes of the dataset that consisted of 100 instances derived from the database of the hospital including fourteen symptoms, listed in Table 1.
The database file was converted to a comma-separated value (CSV) file, and was used as a ?training dataset, where the data-mining process was performed in the Waikato environment for ?knowledge analysis (WEKA 3.7), an open-source Java-based platform. This platform contains many machine learning algorithms for mining data, including clustering, classification, data pretreatment, visual interactive analysis, and association rule mining [14]. Figure 3 shows a snapshot of the training dataset called “diagnosing liver diseases.”
The classification algorithm J48 was used for building the decision tree and its rules.
The decision tree, shown in Figure 4, has six leaves, and the overall tree size is 11.
(1) IF yellow_tint_to_skin_or_eyes=Yes THEN Disease=“sick_with_liver_disease”
(2) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= Yes THEN Disease=“sick_with_liver_disease”
(3) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=Yes THEN Disease=“sick_with_other_disease”
(4) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=No ∧ Belly_pain=Yes THEN Disease=“sick_with_other_disease”
(5) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=No ∧ Belly_pain=No ∧ Vomiting=Yes THEN Disease=“sick_with_other_disease”
(6) IF yellow_tint_to_skin_or_eyes=No ∧ Legs_swelling= No ∧ Joint_pain=No ∧ Belly_pain=No ∧ Vomiting=No THEN Disease=“normal”
These rules were strengthened by drawing on the expertise of a number of domain experts, and adding four more rules, bringing the number of rules to 10.
(7) IF yellow_tint_to_skin_or_eyes=Yes ∧ Dark_urine=Yes ∧ Ascites=Yes ∧ Paled_stool=Yes ∧ Itchy_skin=Yes ∧ Legs_swelling=Yes THEN Disease =“sick_with_liver_disease”
(8) IF Fever=Yes ∧ Joint_pain=Yes ∧ Fatigue=Yes THEN Disease=“sick_with_other_disease”
(9) IF Fatigue=Yes ∧ Itchy_skin= Yes ∧ THEN Disease=“Normal”
(10) IF yellow_tint_to_skin_or_eyes=Yes ∧ Belly_pain=Yes ∧ Ascites=Yes ∧ Stomach_ache=Yes ∧ Poor_appetite=Yes ∧ Nausea=Yes THEN Disease=“sick_with_liver_disease”
The laboratory virtual instrument engineering workbench (LabVIEW17) is a platform for system design and a development environment that utilizes a visual programming language[15]; this environment was utilized in the present work. Figure 5 shows the block diagram for symptom-based diagnosis.
A graphical user interface (GUI) was developed, for facilitating the presentation of an appropriate diagnosis. Figure 6 shows the front panel of the GUI for symptom-based diagnosis.
Basic information about liver function tests was obtained using a database that contained records pertaining to liver disease patients previously diagnosed by more than one domain expert at Mansoura University Hospital, Department of Internal Diseases. Figure 7 shows the flowchart of the liver function test-based diagnosis process.
The rationale of the fuzzy logic approach was laid out by Professor Lotfi Ahmad Zadeh, at the University of Berkeley, California, in his seminal paper “Fuzzy Sets”. Fuzzy logic is a multi-valued logic that originates from the theory of fuzzy groups, for approximate reasoning. It naturally lends itself to treating linguistic information and subjective features in real-world problems[1]. This approach summarizes information with approximate behavior and describes the possible solutions in the form of fuzzy sets rather than fixed numbers[3].
A typical process of disease diagnosis has many levels of uncertainty and imprecision[16]; an example is shown in Figure 7.
In our current fuzzy DSS design, there are six input (crisp) variables and one output (crisp) variable.
Fuzzification refers to the process of transforming a crisp set into a fuzzy group. The process transforms the values of crisp input into linguistic concepts, using convenient membership functions. Table 2 lists the fuzzy set ranges of inputs, and figure 8 shows the fuzzy logic designer for the proposed system.
The inference engine and the rule base have to be specified as well. After input fuzzification, groups of corresponding input fuzzified values are passed through the inference engine that handles inputs using the rules defined by the rule base. The rule base was defined by domain experts at Mansoura University Hospital, Department of Internal Diseases. In addition, an analytical laboratory was named by Dr. Farha El-Shennawi, Mansoura, Egypt. The rule base comprises 10 rules that define the percentage risk of liver damage (low risk, medium risk, and high ?risk), based on the input variables. Figure 9 shows the? rules in the rule editor.
Next, the defuzzification process takes place. In the output of the fuzzy inference process, there can be a fuzzy set that is gained by the structure of the fuzzy sets output by every rule. For practical applications, it should be linked to the crisp scope by the defuzzifier, using continent membership functions. The system uses the Mamdani model for inference, including the determination of the consequence as an output fuzzy set. The output fuzzy set and the aggregation method between rules are minimum for connecting the output fuzzy set; therefore, the method of fuzzification is min-max and the method of defuzzification is centroid. Figure 10 shows the resulting rules of the proposed system.
Finally, the output variable identifies the risk status of patients with liver cancer diseases. The value of the output variable is in the 0–100 range, capturing low risk, medium risk, and high-risk regimes.
This approach seeks to enhance images acquired using cameras or sensors on satellites, space probes, or medical imaging devices[17]. Image processing is another important component ?of the proposed system, and can be divided into two main phases: 1) the training phase and 2) the testing phase, as shown in Figure 11.
In the training phase, image acquisition, image pre-processing, and image feature extraction are performed.
In the image acquisition step, images associated with liver diseases are classified as computed tomography (CT), magnetic resonance imaging (MRI), or ultrasound, depending on the acquisition device. The images for the training pocess were acquired at the Department of Radiology at Mansoura ?University, radiology centers Eleman and Elmogi in Mansoura, ?and were also downloaded from publicly available repositories on the Internet.
The acquired images were presented to ?five domain experts, for reviewing their classification and dividing them into six classes. Table 3 lists samples of some liver disease images.
During the image pre-processing step, the images are resized ?and enhanced, which helps to alleviate the effects of noise and corruption. Figure 12 shows the GUI for diagnosis using some liver disease images, including the query image and the five images most similar to the query image.
At its completion, this step yields the disease name, retrieved images related to the query image, and the percentage of similarity between a query image and images in the database.
The feature extraction technique for images is based on the gray level co-occurrence matrix (GLCM), which is a classical technique that affects image recognition, image retrieval, image segmentation, and image classification[18].
The main four extracted features using the GLCM are:
• Contrast
Contrast is a local difference computed on the GLCM. This is exemplified by a linear reliance on the gray levels of neigh boring pixels. The contrast measure is defined by
where i and j are the vertical and horizontal cell coordinates, respectively, and p is the cell value.
• Homogeneity
Homogeneity is a very important feature. It uses the inverse of the contrast weight-to-weight values. In addition, it measures the level of uniformity of the non-zero entries in the GLCM.
Energy represents the opposite of the entropy, and is a measure of local homogeneity. Simply put, this feature quantifies the texture uniformity:
In the above, i and j are the row and column numbers in the GLCM.
• Correlation is defined as
where
The previous features can be included in the next feature vector:
where FV
The above steps are performed until all of the chest X-ray images are considered. Then, all of the obtained patterns are saved in a database for pattern learning.
During the testing phase, a query image is received for analysis. Then, the features of this image are extracted into a query feature vector:
The WED technique is used for the matching process, which comprises the following steps:
- Finding the WED among the QFV and all vectors FV
- The formula of the WED measure is demonstrated as follows[19]:
where
The WED values are sorted.
- The output is the image that yields the smallest WED value.
The proposed system was implemented in Visual
To test and evaluate the performance of the proposed system, 30 patients with liver disease were presented to three domain experts for diagnosis. They were diagnosed using the proposed system, and the system’s diagnoses were compared to the experts’ diagnoses. Table 4 lists the basic evaluation metrics for diagnosing some liver diseases. Table 5 shows the confusion matrix.
Accuracy is the overall accuracy for image-based diagnosis.
The proposed system can be used for confirming doctors’ decisions. According to the experimental results, the system achieves high ?accuracy, which increases the efficiency of the system and its validity for use. Previous studies mostly employed symptom-based diagnostics, while others focused on images in the diagnostic process. These observations make the currently proposed system more distinctive and unique, owing to its ability to use both the disease symptoms and images for diagnosis, and owing to its diversity in the use of methodologies, ?algorithms, and tools for design. In addition, the proposed system has a simple and easy GUI.
The system’s performance can be improved in future work by extending and designing a large knowledge base for other liver diseases, extending the currently ?proposed system to other fields, categorizing, integrating image processing, sound processing, and knowledge base in building a diagnostic fuzzy decision support system.
Schematic of the proposed system.
Flowchart of symptom-based diagnosis.
Snapshot of the training dataset.
Decision tree for extracted rules using the J48 algorithm.
Block diagram of instances used in the symptom-based diagnosis.
The front panel of the GUI for symptom-based diagnosis.
Fuzzy logic flowchart for the liver function test-based diagnosis process.
Fuzzy logic designer.
The rule editor.
The resulting rules of the proposed system.
Flowchart for diagnosing liver disease images.
GUI for diagnosing liver disease images.
GUI of the proposed system.
Table 1 . Symptoms of the proposed liver diseases..
No. | Symptoms | Value |
---|---|---|
1 | Belly pain | Yes/No |
2 | Dark urine | Yes/No |
3 | Fatigue | Yes/No |
4 | Fever | Yes/No |
5 | yellow tint to skin or eyes | Yes/No |
6 | Joint pain | Yes/No |
7 | Poor appetite | Yes/No |
8 | Nausea | Yes/No |
9 | Vomiting | Yes/No |
10 | Stomach ache | Yes/No |
11 | Ascites | Yes/No |
12 | Legs swelling | Yes/No |
13 | Paled stool | Yes/No |
14 | Itchy skin | Yes/No |
Table 2 . Fuzzy set ranges of inputs.
No. | Inputs | Description | Fuzzy sets | Range |
---|---|---|---|---|
1 | Alanine Aminotransferase | A_L_T | nothing | |
normal | 7–55 | |||
high | ||||
2 | Aspartate Aminotransferase | A_S_T | nothing | |
normal | 8–48 | |||
high | ||||
3 | Alkaline Phosphatase | A_L_P | nothing | |
normal | 40–129 | |||
high | ||||
4 | Bilirubin | - | nothing | |
normal | 0.1–1.2 | |||
High | ||||
5 | Prothrombin time | P_T | nothing | |
normal | 9.4–12.5 | |||
high | ||||
6 | Albumin | - | nothing | |
normal | 3.5–5 | |||
Low(damage | high) |
Table 3 . Example liver disease images..
No. | Images | Class name |
---|---|---|
1 | Chronic hepatitis | |
2 | Fatty liver | |
3 | liver Cancer | |
4 | Liver cirrhosis | |
5 | Liver fibrosis | |
6 | Normal |
Table 4 . Basic evaluation metrics for diagnosing some liver diseases.
Disease name | TP | TN | FP | FN | Precision | Sensitivity | Specificity | F-measure |
---|---|---|---|---|---|---|---|---|
Hepatitis | 9 | 50 | 0 | 1 | 1.00 | 1.00 | 1.00 | 1.00 |
Liver cirrhosis | 8 | 50 | 0 | 2 | 1.00 | 1.00 | 1.00 | 1.00 |
Liver fibrosis | 10 | 50 | 0 | 0 | 1.00 | 1.00 | 1.00 | 1.00 |
Fatty liver | 10 | 49 | 1 | 0 | 0.91 | 0.91 | 0.91 | 0.91 |
Liver cancer | 10 | 39 | 1 | 0 | 0.91 | 0.91 | 0.91 | 0.91 |
Normal | 10 | 50 | 1 | 0 | 0.91 | 0.91 | 0.91 | 0.91 |
Average | 0.95 | 0.95 | 0.95 | 0.95 |
Table 5 . Confusion matrix for diagnosing some liver diseases.
Hepatitis | Liver cirrhosis | Liver fibrosis | Fatty liver | Liver cancer | Normal | |
---|---|---|---|---|---|---|
Hepatitis | 9 | 0 | 0 | 1 | 0 | 0 |
Liver cirrhosis | 0 | 8 | 0 | 0 | 1 | 1 |
Liver fibrosis | 0 | 0 | 10 | 0 | 0 | 0 |
Fatty liver | 0 | 0 | 0 | 10 | 0 | 0 |
Liver cancer | 0 | 0 | 0 | 0 | 10 | 0 |
Normal | 0 | 0 | 0 | 0 | 0 | 10 |
Abdul Kareem and Varuna Kumara
International Journal of Fuzzy Logic and Intelligent Systems 2024; 24(1): 30-42 https://doi.org/10.5391/IJFIS.2024.24.1.30Alhanouf Alburaikan, Hamiden Abd El-Wahed Khalifa, and Muhammad Saeed
International Journal of Fuzzy Logic and Intelligent Systems 2023; 23(3): 365-374 https://doi.org/10.5391/IJFIS.2023.23.3.365Christine Musanase, Anthony Vodacek, Damien Hanyurwimfura, Alfred Uwitonze, Aloys Fashaho, and Adrien Turamyemyirijuru
International Journal of Fuzzy Logic and Intelligent Systems 2023; 23(2): 214-228 https://doi.org/10.5391/IJFIS.2023.23.2.214Schematic of the proposed system.
|@|~(^,^)~|@|Flowchart of symptom-based diagnosis.
|@|~(^,^)~|@|Snapshot of the training dataset.
|@|~(^,^)~|@|Decision tree for extracted rules using the J48 algorithm.
|@|~(^,^)~|@|Block diagram of instances used in the symptom-based diagnosis.
|@|~(^,^)~|@|The front panel of the GUI for symptom-based diagnosis.
|@|~(^,^)~|@|Fuzzy logic flowchart for the liver function test-based diagnosis process.
|@|~(^,^)~|@|Fuzzy logic designer.
|@|~(^,^)~|@|The rule editor.
|@|~(^,^)~|@|The resulting rules of the proposed system.
|@|~(^,^)~|@|Flowchart for diagnosing liver disease images.
|@|~(^,^)~|@|GUI for diagnosing liver disease images.
|@|~(^,^)~|@|GUI of the proposed system.