๐ MedChainAI
๐ Inspiration
Healthcare today struggles with three pressing problems: data fragmentation, privacy risks, and centralized control.
Patients do not truly own their medical data. Hospitals and clinics hold data in silos, preventing collaboration.
By combining Blockchain (for immutable consent + auditability) with Federated Learning (for AI without moving raw data), we envision a new healthcare paradigm where:
- Patients own and manage their records.
- Doctors access AI-powered clinical insights securely.
- Researchers collaborate globally without violating compliance.
Mathematically, Federated Learning aggregates model weights instead of raw data:
$$ w_{t+1} = \sum_{k=1}^{K} \frac{n_k}{n} w_t^k $$
This enables privacy-preserving model training across hospitals.
๐ก What it does
MedChainAI is a decentralized AI-powered healthcare platform.
- Patients โ control consent, view records, receive explainable AI health insights.
- Doctors โ dashboards, risk predictions, AI-driven decision support.
- Researchers โ train federated AI models on distributed data with compliance.
- Admins โ governance, monitoring, and regulatory alignment.
๐ Core Features:
- Blockchain-based consent management & audit trails
- Federated AI with secure aggregation + differential privacy
- Explainable AI (SHAP, LIME) for clinical trust
- Compliance-ready (HIPAA, GDPR, FDA alignment)
๐ ๏ธ How we built it
The system has four layers:
- Blockchain Layer
- Hyperledger Fabric + Smart Contracts
grantConsent(),revokeConsent(), immutable Audit Logs
- Federated Learning Layer
- TensorFlow Federated + PySyft
- Differential Privacy + Secure Aggregation
- Explainability via SHAP/LIME
- Backend Orchestration Layer
- Node.js + Express API
- AES-256 encryption + JWT Authentication
- PostgreSQL + MongoDB + Redis + IPFS for storage
- Frontend Layer
- React + TypeScript + TailwindCSS (WCAG 2.1 accessibility)
- Role-based dashboards for Patients, Doctors, Researchers, Admins
โ๏ธ Challenges we faced
- Ensuring federated learning convergence across heterogeneous hospital datasets
- Balancing blockchain performance vs. security (PBFT consensus)
- Translating complex HIPAA/GDPR/FDA rules into technical features
- Designing UI for both non-technical patients and expert researchers
- Integrating multiple layers (blockchain, AI, backend, frontend) securely
๐ Accomplishments
- Integrated Blockchain consent management with Federated AI orchestration
- Built a multi-role system for different healthcare stakeholders
- Developed privacy-first architecture ready for pilot deployment
- Embedded Explainable AI in clinical dashboards
- Created a scalable modular framework adaptable for hospitals worldwide
๐ What we learned
- Building permissioned blockchain networks for compliance
- Implementing federated learning with privacy guarantees
- Turning legal frameworks (HIPAA/GDPR) into code-level policies
- Designing inclusive UX for global healthcare users
- Importance of trustworthy AI in life-critical decisions
๐ฎ Whatโs next
- Pilot trials with hospitals & NGOs
- Integration with HL7 FHIR interoperability standards
- Edge AI for personalized, on-device training
- Privacy enhancements: Secure Multiparty Computation (SMPC)
- DAO-style community governance models for MedChainAI
- Path toward regulatory certification as a healthcare-grade technology
โจ MedChainAI is more than a hackathon projectโit is a patient-first, privacy-preserving healthcare vision powered by ethical AI & blockchain.
๐ Study Guide & Demo Links
- ๐ฅ YouTube Pitch Video
- ๐ฅ๏ธ Live Demo WebApp
- ๐ Project Website
- ๐ป GitHub Repository
Built With
- bold.new
- express.js
- firebase
- json
- node.js
- pysyft
- react
- tailwindcss
- typescript
- vite
Log in or sign up for Devpost to join the conversation.