KRONOS is an advanced fleet management system powered by AI optimization and machine learning explainability. It provides real-time fleet scheduling, maintenance optimization, and transparent AI decision-making through SHAP explanations.
- OR-Tools Integration: Advanced constraint programming for optimal fleet scheduling
- Machine Learning: Predictive models for maintenance and operational decisions
- SHAP Explanations: Transparent AI reasoning with feature impact visualization
- Real-time Dashboard: Monitor vehicle status, schedules, and maintenance
- Dynamic Scheduling: Automated optimization based on constraints and priorities
- Historical Analytics: Track performance trends and decision outcomes
- Decision Transparency: See exactly why the AI made specific choices
- Feature Impact: Understand which factors influenced each decision
- Interactive Explanations: Explore AI reasoning through intuitive visualizations
- Python 3.8+ with pip
- Node.js 16+ with npm
- Git for version control
# Clone the repository
git clone https://github.com/ShaanNarendran/KRONOSButBetter.git
cd KRONOSButBetter
# Launch KRONOS (handles everything automatically)
./launch_kronos.sh# Clone the repository
git clone https://github.com/ShaanNarendran/KRONOSButBetter.git
cd KRONOSButBetter
# Launch KRONOS (double-click or run in Command Prompt)
launch_kronos.batThat's it! π
- Frontend: http://localhost:5173
- Backend API: http://localhost:5001
- AI Explanations: Menu (β‘) β Explainability
KRONOSButBetter/
βββ π Launch Scripts
β βββ launch_kronos.sh # Unix/macOS/Linux launcher
β βββ launch_kronos.bat # Windows launcher
β
βββ π§ AI Backend (KRONOSv3)
β βββ backend_v3/
β β βββ backend_run_rerun.py # Flask API server
β β βββ answer_final.py # Core optimization logic
β β βββ brain_make.py # ML model training
β β βββ *.csv, *.json # Training data & models
β
βββ π¨ React Frontend
β βββ src/
β β βββ App.jsx # Main dashboard
β β βββ ExplainabilityModal.jsx # AI explanations UI
β β βββ simulationUtils.js # API communication
β β βββ *.jsx, *.css # Components & styles
β
βββ βοΈ Configuration
βββ package.json # Frontend dependencies
βββ vite.config.js # Build configuration
βββ tailwind.config.js # Styling framework
# Backend setup
python3 -m venv .venv
source .venv/bin/activate
pip install flask flask-cors ortools numpy pandas scikit-learn shap
# Frontend setup
npm install
# Run backend (terminal 1)
cd backend_v3
python backend_run_rerun.py
# Run frontend (terminal 2)
npm run dev| Method | Endpoint | Description |
|---|---|---|
| POST | /run_full_simulation |
Execute 30-day fleet optimization |
| GET | /get_simulation_data |
Retrieve current simulation results |
| POST | /rerun_from_day |
Rerun simulation from specific day |
| GET | /get_explanations |
Get SHAP explanations for AI decisions |
KRONOS uses SHAP (SHapley Additive exPlanations) to make AI decisions transparent:
- TreeExplainer: Analyzes decision tree-based models
- Feature Impact: Quantifies how each input affects the decision
- Visual Explanations: Shows positive/negative feature contributions
- Decision Context: Provides readable explanations for each choice
- Fleet Utilization Factors: Vehicle availability, maintenance windows
- Cost Optimization: Operational costs vs. service quality trade-offs
- Constraint Satisfaction: How scheduling constraints influence decisions
- Risk Assessment: Factors affecting maintenance and safety priorities
- Flask: Lightweight web framework for API
- OR-Tools: Google's optimization toolkit
- SHAP: Machine learning explainability
- scikit-learn: ML models and preprocessing
- Pandas/NumPy: Data manipulation and analysis
- React 18: Modern UI library with hooks
- Vite: Fast build tool and dev server
- TailwindCSS: Utility-first styling framework
- Lucide React: Beautiful, consistent icons
- Constraint Programming: Complex scheduling optimization
- Ensemble Methods: Robust predictive modeling
- Feature Engineering: Domain-specific input processing
- Model Interpretability: SHAP-based explanations
KRONOS runs on all major operating systems:
- macOS/Linux: Use
./launch_kronos.sh - Windows: Use
launch_kronos.bat(double-click or run in Command Prompt) - All Platforms: Manual setup instructions provided for development
Both launch scripts provide identical functionality:
- β Automatic virtual environment creation
- β Dependency installation (Python + Node.js)
- β Service startup and health checks
- β Graceful shutdown handling
- β User-friendly status messages
- Optimize vehicle routing and scheduling
- Predict maintenance needs and costs
- Balance service quality with operational efficiency
- Coordinate multi-vehicle deliveries
- Minimize fuel costs and travel time
- Ensure regulatory compliance and safety
- Study AI explainability in real applications
- Analyze constraint optimization problems
- Explore human-AI interaction patterns
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test thoroughly (
./run_kronos.sh) - Commit with clear messages
- Push and create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- KRONOSv3: Backend optimization engine
- Google OR-Tools: Constraint programming framework
- SHAP Team: Machine learning explainability library
- React Community: Frontend development ecosystem
Built with β€οΈ for transparent, explainable AI in fleet management
π Star this repo | π Report Issues | π‘ Request Features