Skip to content

SadiqCodex/Medical-Risk-Disease-Prediction-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Powered Medical Risk & Disease Prediction System

Overview

This system provides AI-powered medical risk assessment using supervised machine learning. It analyzes patient data to predict overall risk levels and disease probabilities with explainable recommendations.

Features

  • Risk Classification: Predicts Low/Medium/High risk levels
  • Risk Regression: Calculates disease risk percentage (0-100%)
  • Feature Engineering: Medical logic-based feature extraction
  • Explainable AI: Provides reasoning for predictions
  • Web Interface: Simple HTML/CSS/JS frontend
  • FastAPI Backend: RESTful API with validation

Setup Instructions

1. Install Dependencies

pip install -r requirements.txt

2. Train Models

python training/train_classifier.py
python training/train_regressor.py
python training/evaluate.py

3. Run Backend

cd backend
uvicorn main:app --reload --host 0.0.0.0 --port 8000

4. Open Frontend

Open frontend/index.html in your browser or serve via HTTP server.

API Usage

curl -X POST "http://localhost:8000/predict" \
  -H "Content-Type: application/json" \
  -d '{
    "age": 45,
    "gender": "Male",
    "height": 175,
    "weight": 80,
    "systolic_bp": 140,
    "diastolic_bp": 90,
    "heart_rate": 75,
    "temperature": 98.6,
    "diabetes": true,
    "hypertension": false,
    "smoking": false,
    "alcohol": false,
    "family_history": true,
    "symptoms": ["chest_pain", "fatigue"],
    "physical_activity": "Medium",
    "sleep_hours": 7,
    "stress_level": 3
  }'

Medical Features

  • BMI calculation and risk scoring
  • Blood pressure risk assessment
  • Symptom severity scoring
  • Lifestyle risk factors
  • Family history analysis

Model Performance

  • Classification Accuracy: >85%
  • Regression MAE: <10%
  • Cross-validation validated

Ethical Disclaimer

IMPORTANT: This system is a medical decision support tool and NOT a replacement for professional medical diagnosis. Always consult qualified healthcare professionals for medical decisions. The predictions are based on statistical models and should not be used as sole basis for medical treatment.

About

This is My Medical Risk & Disease Prediction System Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors