Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Applying Machine Learning to Evaluate for Fibrosis in Chronic Hepatitis C

View ORCID ProfileAravind Akella, View ORCID ProfileSudheer Akella
doi: https://doi.org/10.1101/2020.11.02.20224840
Aravind Akella
Qualicel Global Inc., Huntington Station, NY 11746
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Aravind Akella
  • For correspondence: aravindbakella{at}gmail.com
Sudheer Akella
Qualicel Global Inc., Huntington Station, NY 11746
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Sudheer Akella
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Machine learning (ML) is proving to be an appealing analytical tool as modern medicine progresses towards preventative care. Clinical risk prediction models built using ML offer the potential for more effective diagnostic modalities without the need for invasive procedures. With such models, healthcare practitioners may be empowered towards a more preventative approach in management, thus improving clinical outcomes. The management of patients with chronic Hepatitis C is incomplete without considering the presence and extent of liver fibrosis, which is traditionally assessed with biopsy of liver tissue. Although non-invasive testing alternatives to liver biopsy are gaining popularity, they are considered limited due to inadequate accuracy and were designed to be complementary to liver biopsy. In this study, our aim is to build clinical risk models to predict the extent of fibrosis in patients with chronic Hepatitis C using ML algorithms. We developed nine ML algorithms based on an Egyptian cohort dataset, relying only on patient demographics and commonly-obtained serum laboratory values. One of our models was able to evaluate for fibrosis with an accuracy of 0.81, sensitivity of 0.95, and specificity of 0.73. Furthermore, most of our models outperformed many current diagnostic alternatives to liver biopsy for the evaluation of fibrosis in this patient population.

Introduction

Hepatitis C is a blood-borne infection of the liver caused by the hepatitis C virus (HCV), and is widely regarded as a medical and epidemiological challenge, with detection rates as low as 20% (Spearman et al. 2019). Hepatitis C may present with both an acute and chronic phase in a majority of patients, and include complications such as liver fibrosis and cirrhosis, liver failure, and even liver cancer. Diagnostic evaluation of fibrosis is essential in patients with chronic hepatitis C, as the presence of fibrosis indicates the onset of progressive disease, which may lead to cirrhosis and end-stage liver failure (Perrillo 1997). The extent of fibrosis is best assessed clinically by liver biopsy, which has been traditionally considered gold standard. After histological evaluation, results are classified using the METAVIR scoring system to help monitor the progression of fibrosis. The METAVIR scale ranges from F0, denoting no evidence of fibrosis, up to F4, indicating cirrhosis (see Castera et al. 2015).

Liver biopsy is an invasive procedure with potential clinical complications and results are subject to a variety of statistical errors (Tapper and Lok 2017). More recently, lesser invasive methods of evaluating fibrosis stage have been adopted due to low-cost, ease-of-use, and reproducibility (see e.g., Bedossa et al. 2015; Castera et al. 2015; Patel and Sebastiani 2020). Among them are an array of laboratory-derived indices, such as the ratio of aspartate aminotransferase (AST) to alanine aminotransferase (ALT), the AST-to-platelet ratio index (APRI), and the Fibrosis-4 index (FIB-4) (Bedossa et al. 2015). The performance of these tests to classify clinically significant liver fibrosis can be evaluated by accuracy, sensitivity, specificity, and the area under the receiver-operating curve (AUROC).

Given its scalability and flexibility, the application of machine learning (ML) to disease-specific patient datasets is increasingly being incorporated into predictions for risk stratification, diagnosis and classification, and survival (Ngiam and Khor 2019). Few studies thus far utilized ML algorithms to predict the extent of fibrosis with HCV patient datasets. One study involved data cleansing (Barakat et al. 2019); another established low sensitivities (Hashem et al. 2016); a third study (Wei et al. 2018) combined ML algorithms with existing blood-test-based scoring systems for detection of cirrhosis, but excluded fibrosis prediction. In this study, we apply nine popular ML algorithms to an openly available Egyptian cohort dataset to classify the extent of liver fibrosis. Furthermore, we assess the performance of ML algorithms in addition to clinically available serum laboratory testing.

Methods

Dataset

The Egyptian cohort dataset used in this study is downloaded from the repository maintained by the University of California Irvine (UCI) Center for Machine Learning and Intelligent Systems. The dataset contains anonymized diagnosis and treatment information of 1385 adult patients treated in Egyptian hospitals for 18 months. The dataset was presented in a Proceedings paper (Nasr et al. 2017) before being made available on the UCI repository. We used six of the dataset’s 29 features: age, body mass index (BMI), platelet count (Plat), aspartate transaminase in week 1 (AST1), alanine transaminase in week 1 (ALT1), and baseline histological staging (BHS), shown in Table 1. METAVIR fibrosis stage was converted to the corresponding integer, and is denoted as BHS for the purposes of organization.

View this table:
  • View inline
  • View popup
  • Download powerpoint
Table 1:

Summary of the selected features in the dataset

Machine Learning Algorithms

Prior to applying ML algorithms for predictive disease analysis, the algorithms require training using a dataset with a known outcome (known as “supervised learning”). A “learned” ML algorithm can then be applied to a dataset with an unknown outcome for disease state prediction. In our study, we trained the ML algorithms with a portion of the Egyptian HCV dataset (which includes liver biopsy results; the gold standard for fibrosis). We then applied the learned ML algorithm to the remainder of the Egyptian HCV dataset to distinguish significant fibrosis (F2, F3, and F4) from early or no fibrosis (F1) and compared the ML algorithm results with those of liver biopsy. The following ML algorithms are used in the present study:

  • Logistic Regression

  • Naïve Bayes

  • Decision Tree

  • Random Forest

  • Extreme Gradient Boosting

  • k-Nearest Neighbor

  • Support Vector Machine

  • Neural Networks

  • Ensemble Method

A detailed description of the ML algorithms was recently presented in an excellent review by Rashidi et al. (2019).

Applying the Machine Learning Algorithms

Figure 1 shows the steps involved in the application of the ML algorithms to the dataset. No data cleanup was performed as the downloaded dataset appeared clean, without missing or out-of-range values. Three copies of the dataset were cloned, one for each of three experiments (A, B, and C; see step 3 in Figure 1). In experiment A, the observations with non-significant fibrosis (F1) were retained as they are, and those with significant fibrosis (F2, F3, and F4) were grouped together. In experiment B, those with mild fibrosis (F2) were excluded from the group with significant fibrosis, thus combining those with advanced fibrosis (F3) and cirrhosis (F4). In experiment C, the significant fibrosis group included only the group with cirrhosis (F4). Due to class imbalance in experiments A and B, the data was oversampled by randomly duplicating the minority class in these experiments (step 4). Next, variables of the dataset were standardized (step 5), and model parameter (hyperparameter) selection was then performed for each of the ML algorithms using standard libraries (Bergstra 2012) followed by a 10-fold cross-validation wherever appropriate (Pedregosa 2011) (step 6). The dataset was then split into “train” and “test” datasets (step 7), and training the model with the train dataset (step 8) and getting an unbiased evaluation of the final model with the test dataset (step 9).

Figure 1:
  • Download figure
  • Open in new tab
Figure 1: Flowchart of the steps to build and evaluate ML classifier models. “n” indicates the number of observations (rows) in the dataset (see text for details).

Evaluating the Models

Four parameters (accuracy, sensitivity, specificity, and AUROC) were applied to evaluate the performance of each of our ML models. These parameters can be readily extracted from the confusion matrix computed for each of the models (Sidey-Gibbons and Sidey-Gibbons 2019).

  1. Accuracy: the proportion of correct predictions out of the total number of predictions Embedded Image

  2. Sensitivity: the proportion of correct positive predictions out of real positive instances Embedded Image

  3. Specificity: the proportion of correct negative predictions out of real negative instances Embedded Image

  4. AUROC: the estimated probability that a model ranks a randomly chosen positive instance higher than a randomly chosen negative instance.

In addition, the performance of our ML models were compared with the performance of various laboratory diagnostic testing that is currently available.

Results and Discussion

Model Evaluation

Figure 2 compares the four evaluation parameters (accuracy, sensitivity, specificity, AUROC) for six of the nine ML algorithms used in our study. Results from three other models are not shown as the values obtained were below 0.5. The evaluation parameters obtained in Experiments A and B are all in the range of 0.60 to 0.96, and generally hovered within 0.34 and 0.64 for Experiment C. Extreme Gradient Boosting (XGB) in Experiment A (XGB-A) performed exceptionally well, with accuracy of 0.81, AUROC of 0.84, sensitivity of 0.95, and specificity of 0.73.

Figure 2:
  • Download figure
  • Open in new tab
Figure 2:

Diagnostic evaluation of the extent of fibrosis in patients in the Egyptian HCV cohort dataset using various machine learning classification algorithms. Results shown are from six machine learning models: DT, Decision Tree; RF, Random Forest, XGB, Extreme Gradient Boosting; kNN, k-Nearest Neighbor; SVM, Support Vector Machine; Ens., Ensemble Method. The evaluation parameters plotted are Acc, accuracy; AUC, AUROC; Sen, sensitivity; Spe, specificity. The results corresponding to Experiment C using SVM were deemed unfit for evaluation and are excluded.

Comparison with Diagnostic Indices

By comparing the evaluation parameters obtained in our experiments with those corresponding to laboratory diagnostic tests (summarized by Chou and Wasson 2013; Castera et al. 2015), we are able to make direct analysis of the potential of applying ML models over current methods of diagnosis. Table 2 depicts the evaluation parameters for eight laboratory tests along with the evaluation parameters for Extreme Gradient Boosting (XGB) in Experiment A (XGB-A). When compared with laboratory testing methods, our model has both a higher sensitivity (0.95) and AUROC (0.84), as well as a significantly lower negative likelihood ratio (0.07). In addition, the specificity (0.73) and positive likelihood ratio (3.52) of our model fall within the ranges of values corresponding to current diagnostic testing.

View this table:
  • View inline
  • View popup
  • Download powerpoint
Table 2:

Comparison of evaluation parameters for XGB-A with laboratory diagnostic testing

Conclusions and Future Scope

In performing this study, we hoped to demonstrate that clinical risk prediction models built using ML can effectively detect the presence of liver fibrosis in patients with chronic hepatitis C. Our prediction models show improved sensitivity while maintaining similar specificity when compared with various modern laboratory-derived indices that are increasingly used in clinical settings in lieu of liver biopsy. By providing accurate diagnostic evaluation at a lower negative likelihood ratio, our ML-derived models could help clinicians practice preventative medicine by ensuring that less chronic hepatitis C patients with liver fibrosis are undiagnosed and, thus, mismanaged.

That being said, certain considerations should be taken into account in an attempt to further improve the diagnostic promise of our ML-derived models. Firstly, while there are eight confirmed genotypes of HCV that are broken down into further subtypes (Polaris Observatory HCV Collaborations 2017), the Egyptian dataset used in this study is limited to patients diagnosed with chronic hepatitis C due to viral genotype 4a. Furthermore, our models categorically assess for the presence of fibrosis in a binary fashion, whereas pathological analysis of liver tissue is typically classified using the METAVIR scale, which includes five categories to clearly distinguish between various stages of fibrosis. As a result, our models did not assess for cirrhosis; further studies should include data from other HCV cohorts and perhaps consider other disease features to clearly discern the disease state of the HCV patients. Despite the limitations, our study is a significant demonstration of the power of transformative features offered by the ML algorithms in biomedicine to help discern the disease states for clinical use.

Machine learning is increasingly proving to be of transformative value in medical decision-making. The use of ML algorithms as an initial diagnostic tool has the potential to improve the accuracy of disease detection while empowering healthcare practitioners with confidence and preventing potential harm to their patients. The promise of ML may be best realized when algorithms are released as open source, allowing for improved analysis as larger datasets encompassing several cohorts are incorporated, thus providing a self-sustaining model that is adaptable by the medical community.

Data Availability

The data and code are available on GitHub

https://github.com/aa54/HCV_Egy_ML

Acknowledgments

We thank Vibhor Kaushik for his assistance in programming using Python.

References

  1. ↵
    Barakat NH, Barakat SH, Ahmed N. Prediction and staging of hepatic fibrosis in children with hepatitis C virus: A machine learning approach. Healthc Inform Res. 2019; 25: 173–181 doi:10.4258/hir.2019.25.3.173
    OpenUrlCrossRef
  2. ↵
    Bedossa P, Patel K, Castera L. Histologic and noninvasive estimates of liver fibrosis. Clin Liver Dis. 2015; 6: 5–8 doi:10.1002/cld.481
    OpenUrlCrossRef
  3. ↵
    Bergstra J, Bengio Y. Random search for hyper-parameter optimization. J Mach Learn Res. 2012; 13: 281–305
    OpenUrl
  4. ↵
    Castera L, Yuen Chan HL, Arrese M, et al. EASL-ALEH Clinical Practice Guidelines: Non-invasive tests for evaluation of liver disease severity and prognosis. J Hepatol. 2015; 63: 237–264 doi:10.1016/j.jhep.2015.04.006
    OpenUrlCrossRefPubMed
  5. ↵
    Chou R, Wasson N. Blood tests to diagnose fibrosis or cirrhosis in patients with chronic hepatitis C virus infection: a systematic review. Ann Intern Med. 2013; 158: 807–20 doi: 10.7326/0003-4819-158-11-201306040-00005
    OpenUrlCrossRefPubMedWeb of Science
  6. ↵
    Hashem S, Esmat G, Elakel W, et al. Accurate prediction of advanced liver fibrosis using the decision tree learning algorithm in chronic hepatitis C Egyptian patients. Gastroenterol Res Pract. 2016; 2016 doi:10.1155/2016/2636390
    OpenUrlCrossRef
  7. ↵
    Nasr M, Elbahnasy K, Eleleimy M, Kamal S. A novel model based on non invasive methods for prediction of liver fibrosis. 2017 13th International Computer Engineering Conference (ICENCO). IEEE, 2017
  8. ↵
    Ngiam KY, Khor IW. Big data and machine learning algorithms for health-care delivery. Lancet Oncol. 2019; 20: e262–e273 doi:10.1016/S1470-2045(19)30149-4
    OpenUrlCrossRef
  9. ↵
    Patel K, Sebastiani G. Limitations of noninvasive tests for assessment of liver fibrosis. JHEP Reports. 2020; 2: 100067 doi:10.1016/j.jhepr.2020.100067
    OpenUrlCrossRef
  10. ↵
    Pedregosa F, Weiss R, Brucher M. Scikit-Learn: Machine learning in Python. J Mach Learn Res. 2011; 12: 2825–2830
    OpenUrlCrossRefPubMed
  11. ↵
    Perrillo RP. The role of liver biopsy in hepatitis C. Hepatology. 1997; 26:57S–61S doi: 10.1002/hep.510260710
    OpenUrlCrossRefPubMed
  12. ↵
    Polaris Observatory HCV Collaborators. Global prevalence and genotype distribution of hepatitis C virus infection in 2015:a modelling study. Lancet Gastroenterol Hepatol. 2017; 2: 161–76
    OpenUrl
  13. ↵
    Rashidi HH, Tran NK, Abb H, Betts EV, Howell LP, Green R. Artificial Intelligence and Machine Learning in Pathology : The Present Landscape of Supervised Methods. Acad Pathol. 2019; 6: 2374289519873088 doi:10.1177/2374289519873088
    OpenUrlCrossRef
  14. ↵
    Sidey-Gibbons JAM, Sidey-Gibbons CJ. Machine learning in medicine : a practical introduction. BMC Med Res Methodol. 2019; 4: 1–18 doi: 10.1186/s12874-019-0681-4
    OpenUrlCrossRef
  15. ↵
    Spearman CW, Dusheiko GM, Hellard M, Sonderup M. Hepatitis C. Lancet. 2019; 394: 1451–1466 doi:10.1016/S0140-6736(19)32320-7
    OpenUrlCrossRef
  16. ↵
    Tapper EB, Lok ASF. Use of liver imaging and biopsy in clinical practice. N Engl J Med. 2017; 377: 756–768 doi:10.1056/NEJMra1610570
    OpenUrlCrossRefPubMed
  17. ↵
    Wei R, Wang J, Wang X, et al. Clinical prediction of HBV and HCV related hepatic fibrosis using machine learning. EBioMedicine. 2018; 35: 124–132 doi:10.1016/j.ebiom.2018.07.041
    OpenUrlCrossRef
Back to top
PreviousNext
Posted November 04, 2020.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Applying Machine Learning to Evaluate for Fibrosis in Chronic Hepatitis C
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Applying Machine Learning to Evaluate for Fibrosis in Chronic Hepatitis C
Aravind Akella, Sudheer Akella
medRxiv 2020.11.02.20224840; doi: https://doi.org/10.1101/2020.11.02.20224840
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Applying Machine Learning to Evaluate for Fibrosis in Chronic Hepatitis C
Aravind Akella, Sudheer Akella
medRxiv 2020.11.02.20224840; doi: https://doi.org/10.1101/2020.11.02.20224840

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Gastroenterology
Subject Areas
All Articles
  • Addiction Medicine (349)
  • Allergy and Immunology (668)
  • Allergy and Immunology (668)
  • Anesthesia (181)
  • Cardiovascular Medicine (2648)
  • Dentistry and Oral Medicine (316)
  • Dermatology (223)
  • Emergency Medicine (399)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (942)
  • Epidemiology (12228)
  • Forensic Medicine (10)
  • Gastroenterology (759)
  • Genetic and Genomic Medicine (4103)
  • Geriatric Medicine (387)
  • Health Economics (680)
  • Health Informatics (2657)
  • Health Policy (1005)
  • Health Systems and Quality Improvement (985)
  • Hematology (363)
  • HIV/AIDS (851)
  • Infectious Diseases (except HIV/AIDS) (13695)
  • Intensive Care and Critical Care Medicine (797)
  • Medical Education (399)
  • Medical Ethics (109)
  • Nephrology (436)
  • Neurology (3882)
  • Nursing (209)
  • Nutrition (577)
  • Obstetrics and Gynecology (739)
  • Occupational and Environmental Health (695)
  • Oncology (2030)
  • Ophthalmology (585)
  • Orthopedics (240)
  • Otolaryngology (306)
  • Pain Medicine (250)
  • Palliative Medicine (75)
  • Pathology (473)
  • Pediatrics (1115)
  • Pharmacology and Therapeutics (466)
  • Primary Care Research (452)
  • Psychiatry and Clinical Psychology (3432)
  • Public and Global Health (6527)
  • Radiology and Imaging (1403)
  • Rehabilitation Medicine and Physical Therapy (814)
  • Respiratory Medicine (871)
  • Rheumatology (409)
  • Sexual and Reproductive Health (410)
  • Sports Medicine (342)
  • Surgery (448)
  • Toxicology (53)
  • Transplantation (185)
  • Urology (165)