How-tos

Identifying congestion in London using Bluemix and Watson

Share this post:

In March, I took part in the Smarter Travel Transport Hack, representing IBM at the offices of Landor LINKS in London. During the event, I worked with Harry from Transport API on a challenge for Traveline to provide novel ways of determining bus disruptions for the UK. The app we built is now live on IBM Bluemix here.

So how did we do this? To begin with, we gathered bus geometry data from Transport API, to determine the exact locations of all bus stops, for every bus route and operator in the UK. We then gathered tweets containing the word ‘bus’ from locations close to the bus stops and used IBM Watson’s Alchemy API, which is a sentiment analysis tool to identify possible disruptions. We also used Transport for London’s API to obtain an image from every CCTV traffic camera in London, allowing us to train an IBM Watson Visual Recognition classifier. Using a small training set of just 20 images (10 congested and 10 not congested), CCTV traffic camera images can be classified as ‘Congested’ or ‘Not Congested’.

The screenshot below shows the London Bus Route 91 with a bounding box query around each bus stop to identify tweets and the various traffic cameras on the route. You can see that IBM Watson has classified the traffic conditions from this particular camera as “Congested” with a confidence score of 0.62 (62%).

For more information on the TransportHack (including details of a free Nandos) click here.

The code for the smarter bus disruption app is on GitHub here.

Since the Smarter Travel Hackathon, I’ve built an app for getting passengers to London Heathrow Airport, see here.

You can click anywhere on the map to receive public transport and road directions from the clicked point to London Heathrow. I extended the camera idea to include a live image, video feed and daytime classification. The code for this demo is also on GitHub.

IBM Watson API’s are only available through IBM Bluemix. To explore our catalogue of API’s and start building now, sign up for a 30 day trial today.

To learn how to integrate Bluemix into your existing environment, check out the Solution Guide.

Solution Guide

More How-tos stories
May 1, 2019

Two Tutorials: Plan, Create, and Update Deployment Environments with Terraform

Multiple environments are pretty common in a project when building a solution. They support the different phases of the development cycle and the slight differences between the environments, like capacity, networking, credentials, and log verbosity. These two tutorials will show you how to manage the environments with Terraform.

Continue reading

April 29, 2019

Transforming Customer Experiences with AI Services (Part 1)

This is an experience from a recent customer engagement on transcribing customer conversations using IBM Watson AI services.

Continue reading

April 26, 2019

Analyze Logs and Monitor the Health of a Kubernetes Application with LogDNA and Sysdig

This post is an excerpt from a tutorial that shows how the IBM Log Analysis with LogDNA service can be used to configure and access logs of a Kubernetes application that is deployed on IBM Cloud.

Continue reading