← Back to Projects

Project Links

View Source Code

Table of Contents

Hepatitis C Classification & Blood Biomarker Screening Project

Can machine learning detect asymptomatic liver disease from standard blood donor panels before irreversible damage occurs? This project answers that question — an end-to-end diagnostic pipeline that classifies patients across the hepatitis spectrum with a 0.945 F2-score (+4.76σ over baseline), built with Python, scikit-learn, and XGBoost.

🩸 Hepatitis C Classification & Blood Biomarker Screening (Machine Learning & Python)

Role: Machine Learning Engineer & Clinical Data Analyst

Tech Stack: Python 3.12, scikit-learn, XGBoost, Pandas, NumPy, Matplotlib, Imbalanced Classification

Overview

Developed and evaluated a supervised clinical diagnostic pipeline to screen blood donors and classify patients across five stages of liver disease (healthy blood donor, suspect donor, hepatitis, fibrosis, and cirrhosis) using 12 routine blood laboratory biomarkers.

Key Highlights & Technical Challenges

  • Clinical Metric Optimization (F2-Weighted Score): Prioritized recall over precision to minimize life-threatening false negatives (missing an active hepatitis infection), selecting a weighted F2 metric that rewarded catching asymptomatic cases and achieved a top score of 0.945 (+4.76 standard deviations above baseline).
  • Severe Class Imbalance Mitigation: Overcame an extreme 86.7% majority class (533 healthy donors vs. 7–30 cases per disease stage) by engineering custom stratified 60/20/20 train/validation/test splits and incorporating balanced class-weight penalties.
  • Resilient Missing Data Handling: Addressed missing measurements across 5 clinical laboratory tests by pairing reduced-feature subset modeling (for linear/margin classifiers) with XGBoost's native default-direction split routing.
  • Pathophysiological Model Interpretability: Validated decision boundaries using Permutation Importance and tree-intrinsic Gain metrics, confirming that liver enzymes (AST, GGT) and liver synthesis markers (CHE) drove predictions in direct alignment with clinical hepatology.

View Code on GitHub  |  Read Technical Report (PDF)