๐Ÿ† 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

  1. User Profile Creation โ€“ Users enter the medications they take and any allergies they have.
  2. Drug Interaction Search โ€“ Users search for a new drug to check for possible interactions.
  3. 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.
  4. 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.
  5. 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.

Share this project:

Updates