Metro AI is an AI-powered intelligent metro ticketing and analytics platform designed to improve passenger experience, operational efficiency, and security in urban metro systems.
The platform combines machine learning, intelligent routing, fraud detection, QR-based ticketing, analytics, and AI-powered metro assistance to create a smarter metro ecosystem.
- QR-based ticket generation
- Entry and exit gate validation
- Automatic journey distance calculation
- Travel time estimation
- Secure ticket verification
Predicts station-level passenger demand using machine learning.
- Station
- Hour of day
- Weather conditions
- Event factor
- Month
- Weekend indicator
- Weekday number
- Interchange station indicator
- Predicted passenger count
- Current station load
- Crowd level (Low / Medium / High)
Detects suspicious travel behavior using machine learning and backend validation.
- Entry station
- Exit station
- Travel distance
- Expected travel time
- Actual travel time
- Travel ratio
- Time difference
- Interchange count
- Repeat usage
- Fraud probability
- Alert status
- Fraud reason
Gemini-powered metro assistant capable of:
- Route guidance
- Journey assistance
- Interchange navigation
- Platform guidance
- Bengaluru Metro support
Supports:
- Direct journeys
- Single interchange journeys
- Double interchange journeys
Current interchange support:
- Nadaprabhu Kempegowda Station Majestic
- Rashtreeya Vidyalaya Road
Features:
- Route segmentation
- Distance calculation
- Journey time estimation
- Interchange detection
Provides operational insights including:
- Total tickets issued
- Fraud alerts
- Passenger demand analytics
- Top stations
- Fraud-prone stations
- Live prediction monitoring
- Month
- Weekend indicator
- Weekday number
- Interchange station indicator
- Random Forest Regressor
- Gradient Boosting Regressor
- Extra Trees Regressor
- XGBoost Regressor
- Gradient Boosting Regressor
- Travel ratio
- Time difference
- Interchange count
- Random Forest Classifier
- Gradient Boosting Classifier
- Extra Trees Classifier
- XGBoost Classifier
- Extra Trees Classifier
- React.js
- Tailwind CSS
- React Router
- Recharts
- React Leaflet
- Node.js
- Express.js
- PostgreSQL
- FastAPI
- Scikit-learn
- Pandas
- NumPy
- Joblib
- Google Gemini
METRO/
β
βββ Frontend/
βββ Backend/
βββ ai-service/
βββ database/
βββ datasets/
βββ docs/
βββ README.md
git clone <repository-url>
cd METROcd Backend
npm install
npm run devcd Frontend
npm install
npm run devcd ai-service
pip install -r requirements.txt
uvicorn app.main:app --reloadConfigure PostgreSQL and update environment variables before starting the backend.
Passenger
β
Book Ticket
β
Demand Prediction
β
QR Generation
β
Ticket Issued
Entry Scan
β
Journey Tracking
β
Exit Scan
β
Fraud Detection Model
β
Alert Generation
User Query
β
Journey Context
β
Gemini Processing
β
Metro Guidance Response
- PostgreSQL Migration
- Enhanced Demand Prediction Pipeline
- Enhanced Fraud Detection Pipeline
- Feature Engineering & Model Benchmarking
- Intelligent Route Engine
- Gemini-Powered Metro Assistant
- Backend Optimization
- AI Service Integration
- End-to-End Prediction Pipeline
- Real-Time Analytics Dashboard