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
- π©Ί 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
π¦ 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
-
Python 3.9+
-
NumPy
-
Pandas
-
Custom Random Forest & Decision Tree implementation
-
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)
Bao Hoang
- π Computer Science Student @ Christopher Newport University
- π Yorktown, VA