Machine learning-based web application designed to assess stroke risk based on health and lifestyle factors. The system processes patient data through a CatBoost model to provide risk assessments, helping healthcare professionals identify potential stroke risks early for timely intervention.
Current implemented models evaluated:
1. Logistic Regression
2. XGBoost
3. CatBoost (selected as final model)
.python-version
file for the current required version)# On Windows (PowerShell)
irm https://astral.sh/uv/install.ps1 | iex
```
Clone the repository:
bash
git clone https://github.com/vytautas-bunevicius/stroke-risk-predictor.git
cd stroke-risk-predictor
Create and activate virtual environment:
bash
uv venv
source .venv/bin/activate # On Unix/macOS
# or
.venv\Scripts\activate # On Windows
Install dependencies:
bash
uv pip install -r requirements.txt
Clone the repository:
bash
git clone https://github.com/vytautas-bunevicius/stroke-risk-predictor.git
cd stroke-risk-predictor
Create and activate virtual environment:
bash
python3 -m venv venv
source venv/bin/activate # On Unix/macOS
# or
venv\Scripts\activate # On Windows
Install dependencies:
bash
pip install -r requirements.txt
Create .env
file in project root:
env
FLASK_ENV=development
MODEL_PATH=models/catboost_model.pkl
PORT=5000
Configure Google Cloud services:
Run the application locally:
python src/app.py
Visit http://localhost:5000
in your browser.
The application is deployed on Google Cloud Platform App Engine:
Configure deployment:
bash
gcloud config set project your-project-id
Deploy:
bash
gcloud app deploy
Run the test suite:
python -m pytest tests/
This project is released under the Unlicense. This means you can copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
See the UNLICENSE file for more details.