Skip to content

Machine learning web application for predicting liver cirrhosis stages using clinical biomarkers

Notifications You must be signed in to change notification settings

Dharmik1602/Liver_Cirrhosis_Stage_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liver Cirrhosis Stage Detection - Flask App

A simple Flask web application for predicting liver cirrhosis stages using a pre-trained machine learning model.

Quick Start

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the Flask app:

    python app.py
  3. Access the app:

    • Open your browser and go to: http://localhost:5000
    • Fill in the patient data and click "Predict Stage"

API Usage

You can also use the JSON API endpoint:

curl -X POST http://localhost:5000/api/predict \
  -H "Content-Type: application/json" \
  -d '{
    "Prothrombin": 10.6,
    "Platelets": 251.0,
    "Albumin": 3.5,
    "Age_years": 50.7,
    "Bilirubin": 1.3,
    "Sex": "M",
    "Drug": "D-penicil"
  }'

Features

  • Simple web form for manual input
  • JSON API for programmatic access
  • Real-time predictions using pre-trained model
  • Probability scores for each stage
  • Clean, responsive UI

Project Structure

  • app.py - Main Flask application
  • models/ - Pre-trained model and preprocessor
  • src/ - Original ML scripts (training, preprocessing, etc.)
  • data/ - Training datasets

About

Machine learning web application for predicting liver cirrhosis stages using clinical biomarkers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors