Skip to content
ChainLearn Nexus

ChainLearn Nexus

Federated Learning for Secure Healthcare

Created on 26th February 2026

•

ChainLearn Nexus

ChainLearn Nexus

Federated Learning for Secure Healthcare

The problem ChainLearn Nexus solves

A privacy-preserving healthcare FL platform combining a Streamlit client app with MFA-secured authentication and a Flask + Flower server for federated learning across three disease models: Diabetes, Heart Disease, and Parkinson's.

Features
Federated Learning (Flower): Separate gRPC servers per model (Diabetes, Heart, Parkinson's) with SVM pipelines and SMOTE balancing.
API Server (Flask): Endpoints to fetch global models and upload client records, plus health/status endpoints.
Client App (Streamlit): Role-based app (Doctor, Receptionist, Patient) for predictions, report generation (PDF), data syncing to FL server, and viewing SQL records.
Security:
Passwords: SHA-256 + bcrypt layered hashing with per-user salt.
MFA (TOTP): QR-code onboarding; codes validated on login via pyotp.
Record integrity: SHA-256 per-field hashing and combined bcrypt integrity hash for stored test results.
Zero-Day Threat (ZDT) protections on the server: basic rate-limiting, temporary IP blocking, and attack logs.

Challenges we ran into

While building the privacy-preserving healthcare federated learning platform, I faced several key challenges. Setting up multiple Flower gRPC servers for separate disease models (Diabetes, Heart, Parkinson’s) required careful port management, model version control, and synchronization between client and server updates. Handling data imbalance using SMOTE within a federated setup was complex because preprocessing had to remain consistent across distributed clients. Implementing layered security (SHA-256 + bcrypt, per-user salts, and TOTP-based MFA) introduced authentication flow complexity, especially ensuring seamless QR onboarding and secure session handling in Streamlit. Maintaining record integrity with per-field hashing plus combined bcrypt verification increased storage and validation overhead. Additionally, implementing zero-day threat protections like rate limiting and IP blocking without affecting legitimate medical users required fine-tuning thresholds to avoid false positives while maintaining strong security.

Discussion

Builders also viewed

See more projects on Devfolio