💬 Inspiration
Standard textbooks and traditional textual AI models often fail to capture the true visual essence of STEM (Science, Technology, Engineering, and Math) subjects. Complex physics simulations, advanced mathematical formulas, and deep data patterns are best learned when students can actually see them. We built STEM-Lens to bridge this massive gap between abstract textbook theories and intuitive visual learning.
⚙️ What it does
STEM-Lens is an intelligent AI visual tutor built specifically for students and educators. When a user inputs a complex STEM query, the core engine processes the request and breaks it down into clear, highly rigorous academic explanations. Crucially, instead of just generating plain text, STEM-Lens extracts structural data sequences and automatically generates dynamic plots, charts, and mathematical graphs to illustrate the concept visually in real time.
🛠️ How we built it
The application is entirely powered by Python. We used Streamlit to create a seamless, responsive, and minimalist user interface. The intelligence of the tutor is driven by the Google Gemini Pro API, which handles complex prompt parsing and data structuring. For the visual mapping and plotting components, we integrated robust Python data visualization libraries to render interactive graphs.
🏆 Challenges we ran into
One of the toughest challenges was ensuring that the AI model returns data in a perfectly structured, strict format (like JSON arrays) that our frontend can reliably parse and plot every single time without crashing. We solved this by implementing rigorous system instructions and advanced prompt engineering constraints within the API pipeline.
🎉 Accomplishments that we're proud of
We successfully built a functional, beautifully designed educational platform that combines world-class AI explanations with real-time visual tracking under tight hackathon timelines.
📚 What we learned
We gained deep insights into structuring LLM responses for dynamic visual components and mastering frontend layouts using Python Streamlit.
🚀 What's next for STEM-Lens
We plan to introduce interactive physics simulator toggles, LaTeX mathematical proof rendering, and an offline database for instantly caching common high-school STEM questions.
Built With
- gemini-api
- python
- streamlit
Log in or sign up for Devpost to join the conversation.