Skip to content

BaoNHoang/PatientDataPredictionModelAlpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Patient Disease Prediction System

A machine learning project that simulates and predicts disease progression in patients using a custom-built Random Forest algorithm β€” without relying on scikit-learn models.

The system:

  • Generates realistic patient medical records (cholesterol, blood pressure, glucose, BMI, etc.)
  • Predicts which disease a patient might develop after 1, 2, 5, and 10 years
  • Allows you to update patient data and re-evaluate predictions
  • Trains and reuses your own Random Forest model

πŸš€ Features

  • 🩺 Generate large, realistic dummy datasets of patients
  • πŸ€– Custom Decision Tree & Random Forest implementation (no external ML libraries)
  • πŸ•’ Predict diseases across multiple future years (1, 2, 5, 10)
  • πŸ” Update patient information dynamically
  • πŸ’Ύ Save and reuse trained models to skip retraining
  • πŸ“Š Evaluate model performance and accuracy

πŸ“‚ Project Structure

πŸ“¦ patient-disease-predictor
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ __pycache__/
β”‚   β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ treeUtility/
β”‚   β”‚   β”œβ”€β”€ node.py
β”‚   β”‚   β”œβ”€β”€ decisionTree.py
β”‚   β”‚   β”œβ”€β”€ randomForest.py
β”‚   β”œβ”€β”€ utility/
β”‚   β”‚   β”œβ”€β”€ generatePatientData.py
β”‚   β”‚   β”œβ”€β”€ patientManagementSystem.py
β”‚   β”œβ”€β”€ venv/
β”‚   β”œβ”€β”€ api_server.py
β”‚   β”œβ”€β”€ main.py
β”‚   β”œβ”€β”€ requirements.txt
β”‚
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ patients.csv
β”‚   β”œβ”€β”€ labels.csv
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ .next/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ dashboard/ 
β”‚   β”‚   β”‚   β”œβ”€β”€ page.js
β”‚   β”‚   β”œβ”€β”€ patients/ 
β”‚   β”‚   β”‚   β”œβ”€β”€ page.js
β”‚   β”‚   β”œβ”€β”€ home/ 
β”‚   β”‚   β”‚   β”œβ”€β”€ page.js
β”‚   β”‚   β”œβ”€β”€ favicon.ico
β”‚   β”‚   β”œβ”€β”€ globals.css
β”‚   β”‚   β”œβ”€β”€ layout.js
β”‚   β”‚   β”œβ”€β”€ page.js
β”‚   β”‚
β”‚   β”œβ”€β”€ node_modules/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ .gitignore
β”‚   β”œβ”€β”€ eslint.config.mjs
β”‚   β”œβ”€β”€ jsconfig.json
β”‚   β”œβ”€β”€ next.config.mjs
β”‚   β”œβ”€β”€ package-lock.json
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ postcss.config.mjs
β”‚   β”œβ”€β”€ README.md
β”‚
└── README.md

🧰 Tech Stack

  • Python 3.9+

  • NumPy

  • Pandas

  • Custom Random Forest & Decision Tree implementation

πŸ’‘ Future Improvements

  • Add time-series modeling for more accurate long-term predictions

  • Include more features like family history, smoking status, and exercise level

  • Integrate with a lightweight web UI

  • Add model persistence (save and load trained forests automatically)

πŸ§‘β€πŸ’» Author

Bao Hoang

  • πŸŽ“ Computer Science Student @ Christopher Newport University
  • πŸ“ Yorktown, VA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors