Predict. Simulate. Optimize.
An AI-powered decision support system designed to anticipate and mitigate supply chain disruptions at the port level through predictive analytics, simulation, and intelligent recommendations.
Global supply chains are increasingly vulnerable to disruptions caused by weather, congestion, and operational inefficiencies. Most existing systems are reactive, responding only after issues arise.
This project introduces a proactive intelligence pipeline that:
- Predicts congestion risk in advance
- Simulates operational impact
- Recommends optimal routing decisions
Forecasts congestion probability and risk levels using ML models.
Predicts future congestion and berth occupancy.
Estimates delay, queue size, and operational impact.
Runs simulation only when risk crosses a threshold.
Suggests optimal routes based on cost, delay, and risk.
Integrated flow: Prediction -> Simulation -> Recommendation.
User (Frontend) | v Frontend (Vercel) | v Backend API (FastAPI - Render) | v Intelligence Layer - Prediction Model (XGBoost) - Simulation Engine (SimPy) - Solution Engine (Gemma AI) | v Data Layer (PostgreSQL / Firebase) | v External AI (Google Gemma via OpenRouter)
User Input | v Prediction Model | v Risk Evaluation (Threshold) | | v v Low Risk High Risk | | v v Output Simulation Engine | v Solution Engine | v Final Output
- FastAPI (Python)
- Node.js (Express)
- XGBoost
- scikit-learn
- NumPy, Pandas
- SimPy
- PostgreSQL
- Firebase (Auth and storage)
- HTML, CSS, JavaScript
- Docker and Docker Compose
- Nginx (Reverse Proxy)
- Vercel (Frontend Hosting)
- Render (Backend Deployment)
- Firebase: authentication and real-time data storage
- Gemma (Google AI): intelligent recommendations and solution generation
- Frontend: Vercel
- Backend: Render (Dockerized FastAPI service)
- Database: PostgreSQL
- Auth and Data: Firebase
| Endpoint | Description |
|---|---|
| /run_pipeline | Full pipeline (prediction + simulation + recommendation) |
| /predict | Congestion prediction |
| /simulate | Delay and impact simulation |
| /recommend | Route recommendations |
{
"prediction": {
"congestion_probability": 0.92,
"risk_level": "HIGH"
},
"simulation": {
"estimated_delay_hours": 12.5,
"queue_size": 8
},
"recommendation": [
{
"route": "Route B",
"cost": 1200,
"delay_factor": 6.2
}
]
}- Logistics planning and optimization
- Port authority decision support
- Supply chain risk management
- Real-time disruption analysis
- Real-time data integration (weather, vessel tracking)
- Multi-port global network simulation
- Advanced time-series and deep learning models
- Scenario-based "what-if" analysis dashboard
- Full SaaS deployment