Artificial Intelligence • Computer Vision

Lagos Public Transport Classification

Solving localized context problems in computer vision using Transfer Learning.

Role

ML Engineer

Tech Stack

TensorFlow, Keras, Streamlit

Model

MobileNetV2 (CNN)

Output

ML Model / Web App

Accuracy

93.7%

The Context

Standard vehicle classification datasets (like COCO or ImageNet) often struggle with localized contexts like the yellow "Danfo" buses, "Keke" (tricycles), and "Okada" (bikes) specific to Lagos, Nigeria. This project aimed to build a model specifically fine-tuned for this environment.

Methodology

Data Collection & Preprocessing

Curated a custom dataset of Lagos transportation modes. Performed augmentation (rotation, zoom, flips) to prevent overfitting given the limited dataset size.

Model Architecture

Utilized Transfer Learning with MobileNetV2 as the base model. This was chosen for its lightweight architecture, making it suitable for potential mobile/edge deployment.

Results

The model achieved a Test Accuracy of 93.7%.

I deployed the model using Streamlit, creating a web interface where users can upload an image and get an instant prediction with confidence scores.

View on GitHub