Projects using Python in SuratProjects using Python in SuratFrostGuard AI β Cold Chain Monitoring & Predictive Rerouting
Overview
FrostGuard AI is a real-time cold-chain logistics platform built by Team Red Dragon during a hackathon. It monitors a simulated fleet of medical cargo trucks, predicts temperature breaches before they happen using trained ML models, and recommends the nearest cold-storage facility when a shipment is at risk β all rendered on a live geospatial dashboard.
Core Capabilities
Predictive Breach Detection: An Isolation Forest anomaly detector and a HistGradientBoosting-based forecaster (frost_ml.py (http://ml.py), trained via train_model.py (http://model.py)) flag abnormal temperature patterns and forecast breach risk 30 seconds ahead. The trained model is serialized once (frostguard_ml.joblib) and loaded at boot rather than retrained on every startup β keeping cold starts fast on resource-limited hosts.
Nearest-Facility Rerouting: A K-Nearest Neighbors model (scikit-learn) matches an at-risk truck's GPS position to the nearest of 16 cold-storage nodes across India, so operators get an immediate reroute recommendation rather than raw coordinates.
Cached Road Routing: Driving paths between cities are fetched from the OSRM routing engine and precomputed once (precompute_routes.py (http://routes.py) β routes_cache.json), removing a live external API dependency from the app's boot path.
Interactive Dashboard: main_dashboard.py (http://dashboard.py), built with Streamlit, gives operators a live map, fleet metrics, alerts, and a manual failure-injection tool for demoing breach scenarios.
Optional Standalone Services: api.py (http://api.py) (FastAPI) and Bridge.py (http://Bridge.py) (Flask) provide REST endpoints for telemetry ingestion, and Bridge.py (http://Bridge.py) includes a Discord webhook integration that posts an alert when a truck goes CRITICAL β opt-in via a DISCORD_WEBHOOK environment variable. These run independently of the main dashboard and aren't required for it to function.
Technologies: Python, Streamlit, scikit-learn (Isolation Forest, HistGradientBoosting, KNN), Docker, REST APIs, OSRM, Discord Webhooks. TextNow is an omnichannel customer engagement platform that unifies WhatsApp, Facebook, Instagram, email, Telegram, and web chat into one workspace. It also includes AI Studio, automation workflows, routing, broadcasts, and live agent handover, which makes it a full communication operations layer rather than a single-channel tool.