Mai Shan Yun Analytics Dashboard

Inspiration

Restaurant owners struggle with inventory management daily, leading to thousands of dollars wasted on spoiled ingredients or lost revenue from stockouts. After speaking with Mai Shan Yun restaurant managers, we discovered they were manually tracking 14 ingredients across spreadsheets, spending hours each week trying to predict when to reorder. We wanted to build an intelligent system that could automate this entire process and provide AI-powered recommendations that any manager could understand, regardless of their technical background.

What it does

Mai Shan Yun Analytics Dashboard is a comprehensive business intelligence platform that transforms restaurant operations through predictive analytics. It tracks real-time inventory levels for 14 core ingredients, generates three-month demand forecasts using linear regression models, and creates intelligent reorder alerts based on predicted usage rates rather than simple stock counts. The system features Claude AI integration that analyzes data patterns and provides personalized recommendations in plain language, telling managers exactly when to order, how much to order, and which suppliers to consolidate. Interactive visualizations display sales trends, seasonal patterns, and cost drivers across five dedicated dashboard pages.

How we built it

We built the platform using Streamlit for the web interface and Python for all data processing. The data pipeline starts by collecting six months of historical sales and shipment records from the restaurant POS system, processing over 10,000 order records and 168 ingredient usage data points. We implemented linear regression forecasting models with Pandas and NumPy to predict three-month demand, calculating R-squared confidence metrics and trend strength classifications for reliability. Plotly handles all interactive visualizations including line charts, bar graphs, pie charts, and heatmaps. The AI insights feature integrates Anthropic Claude 3.7 Sonnet through the OpenRouter API, feeding it contextual data about each ingredient including historical usage, forecast predictions, seasonal patterns, and current inventory status to generate actionable business recommendations.

Challenges we ran into

Handling multiple units of measurement across different ingredients proved tricky. Rice measures in grams, eggs in counts, and some items in pieces. We had to implement intelligent unit detection and display units inline everywhere to prevent confusion. The forecasting accuracy varied significantly between ingredients. Some like rice and noodles showed strong predictable trends with R-squared values above 0.8, while others like seasonal vegetables had weaker patterns below 0.3. We had to develop a classification system to communicate forecast reliability to users. Integrating Claude AI required careful prompt engineering to ensure the insights were genuinely useful rather than generic advice. We spent considerable time refining the context data structure and prompt format to generate specific, actionable recommendations with concrete numbers and timelines.

Accomplishments that we're proud of

We successfully reduced the manager's weekly inventory planning time from 4 hours to 15 minutes, a 94% reduction in manual work. The four-tier alert system (Critical, Urgent, Reorder Soon, Sufficient) prevented three stockouts in the first month of testing that would have affected high-revenue menu items. Our shipment optimization analysis identified delivery consolidation opportunities that saved $800 per month in delivery fees while maintaining identical safety stock levels. The AI insights feature generates comprehensive recommendations in under 10 seconds that managers without any data analysis experience can immediately understand and implement. Most importantly, we built the entire platform in a way that's easily adaptable to other restaurants, making it a scalable solution for the food service industry.

What we learned

We learned that domain knowledge is just as important as technical skills when building analytics platforms. Understanding restaurant operations, supplier relationships, and kitchen workflows was critical to designing features that actually solved real problems. We discovered that forecast accuracy matters less than forecast reliability communication. Managers don't need perfect predictions, they need to know which predictions to trust and which require safety buffers. The AI insights feature taught us the importance of providing context to language models. Generic prompts produce generic advice, but feeding Claude detailed context about ingredient patterns, seasonal trends, and cost drivers results in genuinely valuable recommendations. We also learned that data visualization choices significantly impact user adoption. Our initial designs used complex multi-axis charts that confused users, but switching to simple, focused visualizations with clear color coding dramatically improved engagement.

What's next for Mai Shan Yun Analytics

Our immediate priority is implementing automated email alerts so managers receive notifications about critical reorders without needing to check the dashboard daily. We plan to add multi-location support for restaurant chains, allowing centralized inventory management across multiple branches with location-specific forecasting. Integration with supplier APIs will enable automatic reorder placement, completely eliminating manual ordering for predictable items. We want to enhance the forecasting engine with advanced models like ARIMA and Facebook Prophet for improved accuracy, especially for seasonal items. A mobile app for iOS and Android will provide on-the-go monitoring and approval workflows. Longer term, we envision adding recipe cost calculators that track real-time dish profitability, waste tracking to identify specific spoilage patterns, weather data integration to adjust forecasts based on conditions, and customer sentiment analysis connecting social media feedback to operational decisions. The ultimate goal is becoming the complete operations intelligence platform for the restaurant industry.

Built With

Share this project:

Updates