Inspiration

Public transportation in cities like Accra is vital—but plagued by inefficiencies like poor visibility, delayed buses, and lack of real-time data. We wanted to solve this using AI, real-time tracking, and modern web technologies to create a truly smart transport system. The goal: build a full-stack, production-ready solution that’s more than a prototype—a working system that could be deployed tomorrow.

What it does

The Ghana AI Transport Optimization System is a real-time, full-stack public transport management platform designed to improve urban mobility in Accra. It:

  • Tracks live bus locations across 5 city routes
  • Visualizes passenger density with charts and heatmaps
  • Logs transport transactions securely using blockchain
  • Responds to voice commands using speech recognition
  • Ranks drivers using a gamified scoring system
  • Works on any device with a modern, responsive UI
  • Offers 3D satellite views and interactive map controls
  • Exports all data in CSV/JSON for analysis or reporting

How we built it

We used a combination of modern web, AI, and blockchain technologies:

Frontend: Leaflet.js for interactive mapping Chart.js for live analytics and visualization Bootstrap 5 for responsive design WebSocket for real-time updates Speech Recognition API for voice assistant

Backend: Python Flask for server logic Flask-SocketIO for live communication Pandas and NumPy for data processing Custom Blockchain module for secure transaction logging Scikit-learn for route optimization logic

Architecture: Modular and scalable file structure Real-time simulation engine API-driven dashboard with dynamic filtering

Challenges we ran into

  • Creating smooth and responsive real-time vehicle animation
  • Integrating multiple complex systems (blockchain, voice AI, charts) into one unified experience
  • Simulating realistic transport data and passenger behavior
  • Ensuring all features were not just visual but actually functional
  • Designing a dashboard that remains fast, even with frequent live updates

Accomplishments that we're proud of

  • Everything works – This isn’t a prototype; it’s a complete, interactive system
  • Built real-time vehicle tracking from scratch with smooth animations
  • Integrated a fully working blockchain ledger
  • Developed a speech-enabled assistant using native browser APIs
  • Created a digital twin of Accra for simulation and testing
  • Demonstrated 15% optimization in route efficiency
  • Developed a gamified experience that improves driver accountability
  • Designed a dashboard that looks great and runs fast on all devices

What we learned

  • How to integrate real-time WebSocket data for live vehicle movement
  • Built a blockchain module to simulate secure logging
  • Learned to use Leaflet.js and Chart.js effectively for dynamic UIs
  • Enhanced skills in Flask + SocketIO for real-time backend systems
  • Practiced UI/UX design that works seamlessly across devices
  • Built an interactive digital twin of a real city with live feedback loops

What's next for Ghana AI Transport Optimization System

  • City-wide pilot in Accra – We want to partner with local agencies to deploy this system
  • AI prediction model – Add machine learning to predict congestion and reroute in real-time
  • IoT Integration – Use actual GPS modules and bus sensors for live tracking
  • Cloud deployment – Deploy to AWS or Azure for scalability and public access
  • Open APIs – Let developers and transit agencies build on top of our platform
  • Open source release – Invite contributors to improve and expand the system

Built With

  • 3d
  • bootstrap-5
  • canvas-api
  • chart.js
  • css3
  • csv/json-export-map-&-visualization-tools:-openstreetmap
  • flask
  • heatmap-layer
  • html5
  • javascript-(es6+)-frontend-libraries:-leaflet.js
  • languages-&-frameworks:-python
  • numpy
  • pandas
  • satellite
  • scikit-learn-features-&-integrations:-blockchain-(custom-ledger)
  • speech-recognition
  • view
  • web-speech-api-backend-&-data:-flask-socketio
  • webrtc
Share this project:

Updates