SmartTray: Pick & Pack Intelligence

DEMO LINK: https://genuine-stroopwafel-c6215f.netlify.app/

Transforming Airline Catering Operations


💡 Inspiration

The inspiration for this project came from understanding the sheer scale and complexity of airline catering operations. With gategroup preparing 3.8M+ flights annually and serving 650M passengers worldwide, we realized that even small improvements in the Pick & Pack process could have massive global impact.

Three Critical Problems

Problem Impact
🚨 Invisible Errors Only surface when it's too late (on aircraft or after service)
⏱️ Variable Efficiency Same task takes 3.5-7 minutes depending on employee
🍷 Complex Decisions Manual interpretation of airline-specific SLAs for alcohol handling

We were inspired to build a solution that wouldn't replace humans, but rather empower them with intelligent, real-time guidance — transforming Pick & Pack from a reactive, error-prone process into a proactive, data-driven operation.


🎯 What it does

Our SmartTray Platform addresses all three pillars of the Smart Execution challenge:

1. 🍾 Intelligent Alcohol Bottle Detection

Using computer vision and AI-powered measurement, our system:

  • ✅ Automatically measures remaining alcohol content in returned bottles
  • ✅ Cross-references with airline-specific SLA rules
  • ✅ Makes instant decisions: keep, refill, add bottle, or discard
  • ✅ Includes a Gemini-powered assistant that recognizes bottles from images alone

How it works: The fill level is calculated by analyzing the depth and volume of liquid through computer vision, comparing current volume to total bottle capacity to get an accurate percentage.


2. ⚠️ Real-Time Error Detection

While staff operates, our platform continuously analyzes each step:

  • 📸 Computer vision validates product placement and correctness
  • 🔔 Instant alerts notify employees of mistakes immediately
  • No delays — errors are caught during the process, not after
  • ⚖️ Weight validation cross-checks theoretical vs. actual trolley weight

Smart Threshold: The system triggers alerts when the confidence score for product matching falls below 85%, ensuring high accuracy while minimizing false alarms.


3. 👷 Employee Efficiency & Data-Driven Coaching

We believe the heart of operations is the people. Our platform converts operational data into intelligent coaching:

Feature Benefit
📊 Performance Metrics Track precision, speed, protocol compliance
🎯 Real-time Dashboards Supervisors see bottlenecks instantly
💡 Personalized Suggestions Data-driven improvement recommendations
🎮 Gamification Keep engagement and motivation high

Efficiency Score: Combines three weighted factors: speed ratio (target time vs actual time), accuracy rate, and quality compliance score, giving a comprehensive view of employee performance.


🔗 Complete Integration

Everything is unified in one web experience, managing:

📦 Full inventory system
   └─> Trolley assignment to flight creation

🎯 Visual step-by-step guidance
   └─> Drawer filling instructions

⚖️ Weight validation
   └─> At packing stations

🛠️ How we built it

Tech Stack

Frontend

  • ⚛️ React with TypeScript for type safety
  • 🎨 TailwindCSS for rapid, responsive UI development
  • 🎲 Three.js for 3D visualization of trolley layouts
  • 📈 Chart.js for real-time performance dashboards

Backend

  • 🟢 Node.js + Express for API layer
  • 🐍 Python (FastAPI) for CV and ML inference services
  • 🐘 PostgreSQL for relational data (flights, inventory, SLAs)
  • 🔴 Redis for caching and real-time event streams

AI/ML

  • 👁️ OpenCV for computer vision preprocessing
  • 🎯 YOLOv8 for real-time object detection and bottle recognition
  • Google Gemini API for intelligent bottle identification from photos
  • 🧠 TensorFlow for custom fill-level estimation model
  • 📊 Scikit-learn for employee performance prediction

Infrastructure

  • 🐳 Docker for containerization
  • ☁️ Deployment-ready for Netlify (frontend) + cloud backend
  • 🔌 WebSockets for live supervision alerts

Architecture

┌─────────────────────────────────────┐
│   Frontend Dashboard                │
│   (React + Tailwind + Three.js)     │
└─────────────┬───────────────────────┘
              │
              ▼
┌─────────────────────────────────────┐
│   API Layer (Node.js + Express)     │
└─────────┬───────────────────────────┘
          │
          ├──────────► ┌──────────────────────┐
          │            │ CV Service           │
          │            │ (Python + YOLO)      │
          │            └──────────────────────┘
          │
          ├──────────► ┌──────────────────────┐
          │            │ Gemini API           │
          │            │ (Bottle Recognition) │
          │            └──────────────────────┘
          │
          ├──────────► ┌──────────────────────┐
          │            │ PostgreSQL Database  │
          │            └──────────────────────┘
          │
          └──────────► ┌──────────────────────┐
                       │ Redis Cache          │
                       │ (Real-time events)   │
                       └──────────────────────┘

Development Process

  1. 📚 Research Phase

    • Deep-dive into PDF documentation to understand airline catering workflows
  2. 🔬 Prototype CV Model

    • Built bottle detection and fill-level measurement using sample images
  3. ⚙️ SLA Rule Engine

    • Implemented decision logic that interprets airline-specific policies
  4. 🎨 Dashboard Development

    • Created supervisor and employee interfaces
  5. 🔗 Integration

    • Connected all services through REST APIs and WebSockets
  6. 🧪 Testing

    • Simulated real-world scenarios with mock data

🚧 Challenges we ran into

1. ⚡ Real-time Computer Vision Performance

Challenge Solution Result
Processing video streams with <100ms latency Model quantization + edge processing with WebGL 70% size reduction, 92% accuracy maintained

Technical Detail: Reduced YOLOv8 model size through INT8 quantization while maintaining high accuracy for production use.


2. 📋 Complex SLA Rule Interpretation

Challenge: Each airline has unique, sometimes contradictory rules for bottle handling

Solution: Built a flexible rule engine using JSON-based policy definitions

Example Rule Structure:

{
  "airline": "LX",
  "product": "Wine",
  "rules": {
    "fill_threshold": 60,
    "action_under": "add_bottle",
    "action_over": "keep",
    "reseal_allowed": true
  }
}

3. 🗂️ Data Scarcity

  • Challenge: No access to real bottle images or catering facility footage
  • Solution: Used synthetic data generation and transfer learning from pre-trained models
  • Innovation: Fine-tuned Gemini with descriptions from the PDFs to recognize airline catering products

4. 🔌 Integration Complexity

  • Challenge: Connecting CV services, databases, and real-time dashboards seamlessly
  • Solution: Implemented microservices architecture with clear API contracts and event-driven communication

5. 🎨 User Experience Design

  • Challenge: Making complex information actionable for employees under time pressure
  • Solution: Adopted color-coded alerts (🟢 green / 🟡 yellow / 🔴 red), audio cues, and minimalist UI showing only what's needed at each step

🏆 Accomplishments that we're proud of

✅ Complete Smart Execution Pillar
   └─> All 3 dimensions: Alcohol Handling, Error Detection, Employee Efficiency

✅ Working Prototype
   └─> Functional demo with bottle detection, real-time alerts, performance dashboards

✅ Real Innovation
   └─> Actual ML models integrated into a usable platform, not just a concept

✅ Scalability Design
   └─> Architecture ready to handle 200+ catering units globally

✅ Human-Centered
   └─> Focused on empowering employees, not replacing them

📚 What we learned

Technical Learnings

Area Key Insight
🎥 Computer Vision in Production Balancing accuracy vs. speed for real-time applications
🤖 Edge AI Running inference in-browser using TensorFlow.js for instant feedback
📊 Data Pipeline Design Structuring data flow from sensors → processing → visualization
🔌 API Design Creating robust, versioned APIs for microservices

Domain Learnings

  • 🏭 The incredible complexity of airline catering operations
  • 📋 How SLA variations between airlines create operational challenges
  • 👥 The importance of employee experience in repetitive, high-pressure environments
  • 🌱 Sustainability impact potential through waste reduction

Soft Skills

  • ⚡ Rapid prototyping under time constraints
  • 🎯 Translating business problems into technical solutions
  • 🎤 Presenting complex systems in simple, visual ways

🚀 What's next for SmartTray

Immediate Next Steps

  1. 🧪 Pilot Program

    • Partner with one gategroup unit to test in real operations
  2. 🔧 Hardware Integration

    • Connect with actual packing station cameras and scales
  3. 📱 Mobile App

    • Extend to handheld devices for mobile verification
  4. 📈 Advanced Analytics

    • Build predictive models for consumption patterns

Future Vision

Phase 2: Smart Intelligence Integration

📊 Consumption Prediction
   └─> Using historical flight data

📅 Expiration Date Management
   └─> With OCR and batch tracking

⏱️ Productivity Estimation
   └─> Models for schedule optimization

Phase 3: Global Scale

  • 🌍 Multi-language support for international units
  • 🤝 Federated learning to improve models across all locations without centralizing sensitive data
  • ⛓️ Blockchain for bottle provenance and compliance auditing

Phase 4: Industry Expansion

Adapt platform for:

  • 🏥 Hospital catering
  • 🚢 Cruise ships
  • 🎉 Events catering
  • 🔗 Create open API for integration with ERP systems

Key Metrics We'll Track

Metric Target
📉 Error Reduction 80% decrease in packing mistakes
⏱️ Time Savings 25% reduction in average packing time
♻️ Waste Reduction 40% cut in unnecessary bottle discards
😊 Employee Satisfaction 30% improvement in engagement scores

🌟 Built with ❤️ for HackMTY 2025

SmartTray: Making airline catering smarter, one trolley at a time

                    ___________
                   |           |
                   |  SMART    |
                   |   TRAY    |
                   |___________|
                   |  [====]   |
                   |  [====]   |
                   |  [====]   |
                   |___________|

Share this project:

Updates