Skip to content

A privacy-preserving AI system for early diabetes prediction using distributed machine learning across healthcare institutions.

License

Notifications You must be signed in to change notification settings

ManNjoro/federated_learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Federated Learning for Diabetes Detection

License Python Node.js

A privacy-preserving system that enables hospitals to collaboratively train diabetes prediction models without sharing patient data.

Features

  • 🛡️ Privacy-first: Data never leaves local hospitals
  • 🤝 Collaborative: Multiple institutions improve model together
  • 🏥 Clinical UI: Doctor-friendly dashboard with explanations
  • Fast predictions: <500ms inference via ONNX runtime

Quick Start

Prerequisites

  • Python 3.9+
  • Node.js 18+

Installation

# Clone repo
git clone https://github.com/ManNjoro/federated_learning.git
cd federated_learning

# Set up Python
python -m venv venv
source venv/bin/activate  # Linux/MacOS
# venv\Scripts\activate  # Windows
pip install -r requirements.txt

# Set up frontend
cd frontend
npm install

# Start backend (Flask + Flower)
cd backend
python flower.py

# In new terminal - start frontend
cd frontend
npm run dev

Access: http://localhost:5173 # Your port could be different

🌐 Usage

For Hospitals

  • Upload anonymized patient data through the admin interface
  • Participate in federated training rounds
  • Monitor local model performance

For Clinicians

  • Enter patient symptoms through the dashboard
  • View real-time diabetes risk predictions
  • See explainable AI insights

📸 Screenshots

Dashboard

Dashboard

Patient Data Upload

Patient Data Upload

Model Training

Model Training

📜 License

MIT License - See LICENSE for details.

📬 Contact

For questions or collaborations, please open an issue or contact [elijohnmwoho@gmail.com].

About

A privacy-preserving AI system for early diabetes prediction using distributed machine learning across healthcare institutions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published