AI-Powered Logistics Fleet Optimization System
DeepFleet-AI is an end-to-end, production-grade fleet management and route optimization platform built using Machine Learning, AWS Cloud, and React. It enables intelligent delivery routing, ETA prediction, and real-time fleet visibility using historical delivery data and live tracking.
- Python, Flask
- Scikit-learn, Pandas, NumPy, XGBoost
- Geopy, Haversine, Folium
- React.js, Tailwind CSS, Recharts
- AWS EC2, S3, CloudWatch, Lambda
- Docker, GitHub Actions
DeepFleet-AI/
βββ backend/
β βββ main.py # FastAPI entrypoint
β βββ routes/
β β βββ fleet.py
β β βββ auth.py
β βββ services/
β β βββ optimizer.py # Route optimization logic
β βββ models/
β β βββ delivery_model.py # SQLAlchemy models
β βββ utils/
β βββ geo_utils.py # Geolocation, Haversine formula
β
βββ ml/
β βββ model.py # Fleet routing ML model
β βββ train.py # Training script
β βββ predict.py # Inference logic
β βββ data/
β βββ delivery_logs.csv # Sample training data
β
βββ frontend/ # Optional React Dashboard
β βββ src/
β βββ components/
β βββ pages/
β βββ Dashboard.jsx
β
βββ docker/
β βββ Dockerfile
β βββ docker-compose.yml
β
βββ scripts/
β βββ seed_db.py # Populate DB
β βββ scheduler.py # Fleet update scheduler (Lambda)
β
βββ infrastructure/
β βββ terraform/ # AWS setup
β βββ sagemaker-deploy.tf
βββ api/ # Flask backend APIs
β βββ app.py # API entrypoint
β βββ routes/
β β βββ delivery_routes.py
β βββ utils/
β βββ helpers.py
βββ README.md
βββ requirements.txt - β Predict ETA (Estimated Time of Arrival) using ML
- β Route Optimization using Haversine/Mapbox APIs
- β Vehicle Type Classification
- β Data ingestion from CSV or REST
- β Scalable deployment with Docker
git clone https://github.com/hq969/DeepFleet-AI.git
cd DeepFleet-AIcd api/
python -m venv venv
source venv/bin/activate
pip install -r ../requirements.txt
python app.pycd frontend/
npm install
npm run devdocker build -t deepfleet-backend .
docker run -p 5000:5000 deepfleet-backendEndpoint: /predict_eta
POST Body:
{
"origin": [28.6139, 77.2090],
"destination": [28.5355, 77.3910],
"vehicle_type": "van"
}Response:
{
"eta_minutes": 42.5
}Sample delivery logs can be found in:
ml/data/delivery_logs.csv
You can expand this with more real-world logs.
- Integrate Mapbox/Google Directions API
- Add MongoDB or PostgreSQL for delivery log storage
- Real-time GPS data streaming via AWS Kinesis
- Harsh Sonkar β LinkedIn
MIT License. Free to use and modify with attribution.