1. Introduction
Chronic hepatitis, liver cirrhosis, and hepatocellular cancer are all linked to hepatitis C, an infection of the liver triggered by the hepatitis C virus (HCV). Anti-HCV antibody frequency varies throughout nations, with reports of particularly high levels in Egypt. Individuals diagnosed with HCV must have liver fibrosis staging evaluation as part of their ongoing care. It is crucial for tracking the disease's forecasting, pinpointing when medication should begin, planning for its course, and anticipating the patient's reaction to any given intervention[1]–[3].
When it came to determining the severity of liver fibrosis, a liver biopsy was the method of choice. Nevertheless, the drawbacks of liver biopsies, such as their susceptibility to sample mistakes and their invasive its very nature, as well as their extremely expensive for most patients, particularly when done on a periodic basis for tracking the progression of disorders, pose a potential concern[4]–[6].
Because of the risks associated with biopsies, non-invasive approaches have become more popular in recent years as an option for assessing chronic liver disorders[7], [8].
The use of AI in the medical field is expanding quickly. More focus has been paid in the past few years to initiatives involving AI and health than a variety of others from the global economy. Artificial intelligence (AI) is used in the medical field for robotic diagnostic procedures and patient monitoring. If AI were used more often in prescribing medicine, it might automate a large portion of the procedure, freeing up time for doctors to focus on more complex cases[9], [10].
Data analysis and ML rely heavily on categorization to infer the categories into which various data objects may fall. Data mining is the process of using analytical tools to mine databases for useful insights and patterns that can then be used to make predictions[11]–[13].
Data is collected and then used by ML models to construct algorithms from which intelligent decisions may be made. In order to build models for forecasting from clinical files, for example, to ascertain whether or not a patient has Hepatitis C through clinical and biochemical data, numerous researchers have explored ML techniques in many fields during the past many years[14]–[16].
This study used ML models to predict the HCV. This study used two common ML models such as SVM and XGBoost. After applying these models there are some preprocessing data are applied such as deal with missing valued and encoding dataset. The missing values are filled with the mean of data. Then applying the two models to predict the HCV.
2. Hepatitis C virus
The Hepatitis C virus (HCV) is a pandemic virus that has affected people all over the world. Direct contact with blood or other bodily fluids from an infected individual is all that's needed for the virus to spread. Hepatitis C is a worldwide epidemic, as stated by the WHO. About 1.5 million individuals are infected with HCV every year, and the World Health Organization estimates that 58 million people worldwide have chronic HCV infection. When comparing the prevalence of this virus in wealthy nations like Europe and North America, poor developing countries like Asia and Africa have the highest rates. Moreover, the prevalence of chronic illnesses is greater in nations like Pakistan, China, and Egypt.
More research is required to determine the rate of HCV transmission among Egyptian healthcare providers. Healthcare workers (HCWs) are routinely monitored because of the high risk of exposure to various biological agents. Thus, in Egypt, those who work in healthcare and have frequent contact with patients are at a higher risk of contracting HCV and other blood-borne viruses [1, 2].
As a result, noninvasive technologies for HCV diagnosis are urgently needed. When it comes to analyzing medical phenomena, machine learning (ML) algorithms shine because of their ability to capture complicated and nonlinear correlations in clinical data. Machine learning (ML) methods, including as classification approaches, may be used to create a model for the diagnosis of HCV by determining which individuals are infected. However, the performance of the classifier might be hampered by the presence of incorrect qualities in the attribute set. In order to acquire a more condensed and important representation of the given information while ignoring any other superfluous or unnecessary aspects, feature selection specifies a subset of features or variables that characterize the data. Selecting the right features to include in a classifier is a strong approach to improve its performance and cut down on the time it takes to train a model.
The goal of ensemble learning, a kind of meta-machine learning, is to improve forecast performance by combining the outputs of many models. It's a versatile algorithm that makes predictions using supervised learning after being trained with a large number of separate models or inexperienced students. The most well-known ensemble techniques are bagging and boosting, although there are many more to choose from. Bagging techniques include random forest and additional tree algorithm, while boosting methods include gradient boosting, adaboost, and extreme gradient boosting. Although certain regular decision tree algorithms may generate better ensembles than purposeful ones, in principle ensembles are supposed to deliver more effective outcomes if the models are modified significantly.
3. Machine Learning Models
This section presented the two models of machine learning. Figure 1 shows the methodology of this work.
3.1 Support Vector Machine (SVM)
Vapnik's support vector machine (SVM) technique is a popular supervised AI model for a variety of tasks including data analysis, pattern recognition, statistical regression, and prediction. Estimation of the regression in the SVM model is based on a set of kernel functions that may implicitly transform the original, lower-dimensional input information into a higher-dimensional set of features. In contrast to traditional ANN models, which often exhibit several regional minima, the SVM provides a single solution due to the convexity of the optimality issue[17]–[19].
We can compute the function of approximation by:
Where ℎ(𝑦) refers to the high-D feature, t and w refer to weights of threshold and vector.
The minimization hazard function can be computed as:
Where f is a penalty variable, 𝐸𝑖 refers to desired variable.
The approximation function can be computed by including constraints of optimality and Lagrange multipliers as:
𝐾(𝑦, 𝑦𝑖) refers to function of kernel
The RBF can be computed as:
3.2 XGBoost
When it comes to implementing Gradient Boosting Machines, especially for K The categorization and Regression Trees, the Extreme Gradient Boosting (XGBoost) method introduced by Chen and Guestrin offers an innovative approach. In order to train a "powerful" learner, the method takes inspiration from the concept of "boosting," which involves combining the predictions of several "weak" learners. Over-fitting is avoided and computational resources are maximized thanks to XGBoost. This is achieved by minimizing the complexity of the goal functions that combine predictive and regularization terms while preserving the best possible computing efficiency. Additionally, XGBoost's functions automatically run parallel computations while training[20]–[22].
What follows is a description of how XGBoost uses additive training. To combat the shortcomings of a poor learner, a second model is assigned to the residuals obtained after the initial learner is applied to the entire set of data entered. This procedure for achieving a good fit is performed many times until the termination criteria are attained. When all the predictions from the many learners are added together, we get the model's final forecast.
The function of prediction stage can be computed as:
𝑃𝑠(𝑦𝑖) refers to the step t in learner.
The original function can be modified to prevent overfitting
4. Results
This section presented results in applying two methods in the HC dataset. Table 1 shows the sample of the dataset. The dataset contains 13 variables and 615 cases. Figure 2 shows the boxplot of the dataset.
From Table 1 there are missing values in the dataset. So this paper filled the missing valued by the mean value. Table 2 shows the sample of dataset after filling missing values. Then the category column is encoded into numeric values.
Figures 3 and 4 show the amount of patient and healthy persons, and size of male and female. From Figure 3 the amount of healthy persons greater than the amount of suspected patients. From Figure 4. The amount of male greater than the amount of female.
Figure 5 shows the heatmap between 13 features in the dataset. There is strong correlation between category variable and AST variable.
Then the dataset is divided into two groups train and test. The amount of train is 80% and the amount of test is 20%. Then fit the SVM and XGBoost models into the train and test dataset.
The confusion matrix of two models are shown in Figure 6. Figure 7 shows the accuracy score of two models. The XGBoost has greater accuracy then the SVM model.
5. Conclusion
Before the development of ML in the healthcare sector, diagnosing a patient's Hepatitis C Level required a battery of diagnostics. In order to pinpoint the exact phase of the illness, an individual must endure a battery of unneeded diagnostic procedures. The efforts and costs involved are too much for the patient. To conserve time and effort for everyone involved, including patients and clinicians, a diagnostic procedure that can determine how far along the disease's progression a given patient is would be very helpful. Forecasting of illnesses and categorization according to health information are two applications of ML methods and their numerous models. This paper applied two ML models SVM and XGBoost on the HCV dataset. This study perfumed some preprocessing steps such as filling in missing values with the mean data and encoding the category feature. The results showed the XGBoost model has more accuracy than the SVM model. The XGBoost gets 93.5% accuracy and SVM achieves 90.23% accuracy.