Inspiration
Initially, we brainstormed the idea to follow the agricultural process to track food from Farm to Table. But after some quick research, we realized that the idea had been done before over and again. Instead, we were called to focus on an issue that has been talked about, but is still rampant today, counterfeit medications. We were hoping that through the power of blockchain, users can feel confident in their medications, PharmToTable.
What it does
PharmToTable is a decentralized pharmaceutical authentication and tracking system that uses blockchain technology and Google's Gemini AI to ensure medication integrity throughout the supply chain. Our system verifies medication authenticity using both blockchain records and AI analysis. Each medication transfer is recorded as an immutable blockchain transaction, creating a tamper-proof chain of custody that can be verified by any authorized party in the supply chain. This allows consumers to track their products from manufacturer to patient. With Gemini, a user can generate a user friendly map for easy convenience and help to identify potential risks or counterfeits.
How we built it
After we came to an agreement on PharmToTable, we started with designing the architecture on a whiteboard and split the work into our various expertise. We used Midnight as our basis of our Zero Knowledge Proof, Pinata for IPFS, and Gemini to analyze the blockchain and create visual tracking maps.
Challenges we ran into
During our weekend we ran into a few challenges. Balancing on-chain and off-chain data storage while maintaining security and efficient verification was difficult as we decided to use a Zero Knowledge Proof concept for security. Additionally, it is very difficult to model the supply chain of an industry like Big Pharma. Creating an intuitive user interface in such a short time and tying it all together was difficult in such a short time.
Accomplishments that we're proud of
We are proud of many things from our first hack-a-thon. We had our first experience working with Gemini API as well as Blockchain in general. We were able to create two separate front ends (mobile app and web browser) to show the experience on the manufacturer side as well as the user. We're incredibly proud that we were able to make so much progress in such a short turn around.
What we learned
The pharmaceutical supply chain is vastly more complex than initially anticipated. With the current abilities in AI, development is faster and easier than ever, but still requires research and some specialized knowledge to fully utilize. There are so many tools and libraries that can aid in quick development and AI can help find those tools
What's next for PharmToTable
Next for PharmToTable would be fully integrating Gemini with the blockchain. Other potential future work could expand on the additional unused features such as: the ability to process shipping documents and transfer receipts to extract key medication data and providing batch verification for large-scale medication authenticity checks.
Built With
- docker
- fastapi
- github
- google-cloud
- google-gemini
- midnight
- pinata
- python
- typescript
Log in or sign up for Devpost to join the conversation.