An AI-powered healthcare analytics system that predicts patient health risk using machine learning and extends into an intelligent agent-based assistant for structured health recommendations.
Early detection of patient health risk is essential for preventive healthcare. Manual risk evaluation is time-consuming and often inconsistent.
This system automates risk assessment using traditional Machine Learning models and provides a scalable architecture for intelligent health guidance.
The project is divided into two milestones:
Predicts patient health risk using classical ML algorithms.
Extends the system using an agent workflow to generate structured health reports and recommendations.
Healthcare institutions require efficient systems to:
- Identify high-risk patients early
- Provide interpretable risk scores
- Assist in preventive healthcare planning
- Maintain consistency in evaluation
This project builds a structured ML-based risk prediction system and extends it into an intelligent decision-support assistant.
- Data cleaning & preprocessing
- Feature engineering
- Multiple ML models:
- Logistic Regression
- Decision Tree
- Random Forest
- Model comparison & evaluation
- Risk score generation (0–1 probability)
- Risk classification:
- Low Risk
- Medium Risk
- High Risk
- Confusion matrix & performance metrics
- Feature importance visualization
- Interactive Streamlit interface
- Public deployment
- Uses predicted risk output
- Generates structured health summary
- Provides preventive recommendations
- Suggests follow-up actions
- Medical disclaimer inclusion
- Optional Retrieval-Augmented Generation (RAG)
User Input
↓
Data Preprocessing
↓
Feature Engineering
↓
ML Model
↓
Risk Score + Category
↓
UI Display
User Input
↓
ML Risk Prediction
↓
Agent Workflow
↓
Knowledge Retrieval
↓
Structured Health Report
↓
UI Display / Download
Follow these steps to set up the project on your local machine.
- Python 3.11 - Ensure you have Python 3.11
- pip - Package installer for Python
git clone https://github.com/yourusername/Agentic-Health-Support-System.git
cd Agentic-Health-Support-SystemIt is recommended to create a virtual environment to avoid dependency conflicts.
python3 -m venv venv
source venv/bin/activatepython3 -m venv venv
venv\Scripts\activateInstall all required packages using the requirements.txt file:
pip install -r src/requirements.txtStart the Streamlit application:
streamlit run src/app.pyThe application will open in your default web browser at http://localhost:8501.
If needed, create a .env file in the project root with the following variables:
GROQ_API_KEY
Ensure the following directories exist with required data files:
data/- Contains training and test datasets
- Module not found errors: Make sure you've activated the virtual environment and installed all dependencies
- Port already in use: Use a different port with
streamlit run streamlit_app.py --server.port 8502