๐ Inspiration
Every day, millions of people mix medications without knowing if it's safe. Online tools are overwhelming, text-heavy, and impersonal. A doctorโs advice would be ideal, but long wait times and rising healthcare costs make quick consultations increasingly difficult.
We wanted to create a faster, more personalized, and interactive solutionโone that simplifies drug safety, explains risks visually, and helps users make informed decisions instantly.
๐ What It Does
- User Profile Creation โ Users enter the medications they take and any allergies they have.
- Drug Interaction Search โ Users search for a new drug to check for possible interactions.
- Data-Driven Insights & Analytics โ The system leverages a database of 300K+ drug interactions, analyzing trends, common searches, and high-risk drug combinations to improve recommendations and response accuracy.
- Instant AI-Powered Insights โ The system provides:
- A clear, simplified text summary of any interactions.
- A generated video animation showing the *interaction details and narrated warnings * in an easily digestible manner.
- A clear, simplified text summary of any interactions.
- AI Chatbot for Further Discussion โ Users can ask questions about their medications and get real-time responses.
Our goal? Make medication safety easy to understand, personalized, and accessible in seconds.
๐ ๏ธ How We Built It
We combined Data Analysis, GenAI, cloud storage, and molecular visualization to make DrugLytics powerful and scalable:
- Dataset โ We used the DrugBank dataset (300K+ drug interactions).
- AI Multi-Agent System โ We built an AI multi-agent using Google Gemini to search for additional drug-related information and generate video content.
- Chatbot & Summaries โ OpenAI API (ChatGPT) powers both the chatbot and the simplified text summaries.
- Frontend & Backend โ Built with Streamlit (frontend) and Flask (backend), hosted on AWS EC2.
- Database & Caching โ We used MongoDB Atlas to store interaction search data and index frequently searched drugs for faster results.
- Molecular Visualization โ We used RDKit to convert SMILES strings (chemical structures) into 3D molecule renderings and then used Manim to animate the results.
- Cloud Storage for AI Videos โ Cloudflare R2 stores previously generated videos so users donโt have to wait for repeated searches.
- Secure Authentication โ We integrated Okta Auth0 for secure, user-specific medication tracking.
๐ฅ Challenges We Overcame
1๏ธโฃ Handling a Massive 300K+ Interaction Dataset Efficiently
- Problem: Searching through such a large dataset slowed down performance.
- Solution: We indexed common searches with MongoDB Atlas, making responses lightning-fast.
2๏ธโฃ Converting Drug Data into Visual, Engaging Content
- Problem: The dataset used SMILES strings, a text format for molecules thatโs hard to visualize.
- Solution: We used RDKit to generate 3D molecule structures and Manim to animate** them for video explanations.
3๏ธโฃ Speeding Up AI Video & Text Generation
- Problem: Generating a video and summary for every new interaction took too long.
- Solution: Cloudflare R2 caching + MongoDB Atlas indexing reduced wait times for frequently searched drugs.
4๏ธโฃ Ensuring Security for Usersโ Medication Data
- Problem: Users need to store personal medical information securely.
- Solution: We integrated Okta Auth0 for secure authentication and encrypted storage.
๐ฏ Accomplishments Weโre Proud Of
โ
Successfully integrated multiple AI models to create an intelligent, automated medical assistant.
โ
Indexed a massive medical dataset for real-time search capabilities.
โ
First-time use of Cloudflare R2, AWS EC2, and Okta Auth0โsuccessfully implementing cloud-first solutions.
โ
Developed a molecular animation system that converts raw chemical data into user-friendly, AI-generated videos.
๐ What We Learned
- How to optimize large-scale datasets for fast AI-driven querying.
- How to integrate multi-agent AI systems for enhanced search and video generation.
- How caching AI-generated media reduces infrastructure costs and improves performance.
- The power of combining AI, cloud storage, and GenAI to create a seamless, interactive user experience.
๐ฎ Whatโs Next for DrugLytics?
๐น More Personalization โ Users will be able to input age, gender, weight, and medical history for more precise recommendations.
๐น Medical Report Uploads โ Users will be able to upload PDF medical records, and AI will extract relevant drug interactions.
๐น Enhanced Video Summaries โ We'll refine AI-generated explanations to make them even simpler and easier to understand.
๐ Project Achievements
โ
We're using AI to improve healthcare education, helping patients make more educated health decisions.
โ
We were innovative in our use of generative AI and data analysis, using AI agents to turn complex workflows with chemical and video data into easy insights for users.
โ
We powered our frontend experience using Streamlit, making it smooth, fast, and user-friendly.
โ
We indexed high-traffic queries with MongoDB Atlas, prioritizing efficiency and yielding rapid search results from a large dataset.
โ
Usersโ medication data is stored securely with authentication and encryption using Okta Auth0.
โ
Our Flask backend is deployed on AWS EC2, ensuring high availability and performance.
โ
By storing videos in Cloudflare R2, we eliminated long AI generation times for repeat searches.
๐ Drug safety, simplified. Powered by AI. This is DrugLytics.
Built With
- amazon-web-services
- cloudflare
- flask
- gemini
- mongodb
- okta
- openai
- python
- streamlit

Log in or sign up for Devpost to join the conversation.