Inspiration

medAi was inspired by the lack of patient ownership over medical data, particularly in underserved regions where health records are fragmented, insecure, or unavailable when needed. We wanted to create a system where individuals truly control their health information while benefiting from modern technologies like blockchain and artificial intelligence.


What it does

medAi is a decentralized healthcare platform that allows patients to securely store medical records, control access to their data, and receive AI driven insights from their health history. Records are stored on IPFS, ownership and permissions are enforced on chain, and AI analysis helps users understand trends and patterns in their medical data.


How we built it

The platform was built using a Web3 first architecture.

  • Frontend developed with React, Vite, and TailwindCSS
  • Smart contracts written in Solidity and deployed using Hardhat on the Base Sepolia testnet
  • Decentralized storage handled through IPFS
  • AI backend implemented in Python using Flask
  • Wallet based authentication and access control via RainbowKit

Medical files are uploaded to IPFS and referenced on chain using cryptographic hashes. Smart contracts manage ownership and access permissions, ensuring data integrity and security.


Challenges we ran into

We faced challenges designing secure yet flexible access control logic suitable for real healthcare use cases. Integrating AI analysis without compromising data privacy required careful architectural decisions. Coordinating interactions between the frontend, blockchain, backend services, and IPFS also presented complexity.


Accomplishments that we're proud of

We successfully built an end to end decentralized healthcare platform that combines blockchain, IPFS, and AI. Achievements include secure medical record ownership, permissioned data sharing, AI powered insights, and a user friendly Web3 interface suitable for real world adoption.


What we learned

Through this project, we gained hands on experience with decentralized application development, secure smart contract design, and integrating AI systems with blockchain infrastructure. We also developed a deeper appreciation for the ethical responsibility involved in handling sensitive medical data.


What's next for medAi

Future plans include expanding AI capabilities, improving scalability, deploying to a production network, and adding mobile support. We also aim to explore partnerships with healthcare providers to enable real world pilots and broader adoption.

Built With

Share this project:

Updates