Copy Of Blog Image 6 1
Copy Of Blog Image 6 1
blogs/authors/brian-hall
Brian Hall
2022-05-25T09:05:54.000Z
eds-spotfire:topics/transportation,eds-spotfire:topics/visual-data-science
false

Machine learning and AI to process streaming video data in traffic webcams

Nobody loves traffic, except maybe data scientists.

In the short video below, the Spotfire team shows how a public video feed can be combined with some clever computer vision and streaming data science to track, classify, and analyze vehicle traffic."

This simple and replicable solution can minimize traffic jams, support traffic calming efforts, and optimize existing infrastructure — at a fraction of the cost.

This same approach can be replicated across many other applications, from airport security to farm management to factory safety. All that's needed is a streaming video source and Spotfire software.

Traffic calming using existing streaming video

Tracking, analyzing, and acting on traffic data has traditionally required expensive pressure sensors placed on the road or other costly and inconvenient solutions. Using a single publicly available video feed, the video's solution generates the same insights and automated alerts. These include:

7 8ba2 RnXQvZh PmhbLWvBp4o5a RxWTLXBcYAiFDGpz9rLb7xT5trD86mzAOayuQMHyWUbZ5D6xyyTDSchskMv1tdGFMHs4TbsqyZNW0A1lkI9AIdgkVg5vBY8t0HTV26IcxeprqtgiAqKVA

The methodology

Here's the step-by-step process used by the Spotfire team:

  1. Access an available public streaming video feed. In this example, it's a webcam showing a section of raised road in front of the iconic Sydney Harbor Bridge."
  2. Use OpenCV to grab the image and convert it from streaming video to streaming data.
  3. Put this data through a TensorFlow Neural Network, which evaluates and classifies each vehicle. Note: We trained this network by first identifying different vehicles manually. A neural network is an algorithm for machine learning meant to mirror how neurons in the human brain work.
  4. A Deep SORT algorithm was then used to track the movement of the vehicles over the designated space."
  5. Build logic to identify a point in time to make it practical to count each vehicle and capture its image automatically. Vehicle image information includes speed, class of vehicle, and direction, which provides additional insight. This is published to Apache Kafka and then sent to TIBCO Steambase to clean, format, and store the data.

Spotfire is used to display the analysis. Unlike other visualization tools, Spotfire can handle and display streaming data with real-time changes.

7 8ba2 RnXQvZh PmhbLWvBp4o5a RxWTLXBcYAiFDGpz9rLb7xT5trD86mzAOayuQMHyWUbZ5D6xyyTDSchskMv1tdGFMHs4TbsqyZNW0A1lkI9AIdgkVg5vBY8t0HTV26IcxeprqtgiAqKVA

Streaming data enables countless new opportunities

Internet-enabled devices, including sensors, cameras, purpose-built microchips, and other gadgets, continuously collect and transmit massive amounts of streaming data. Now, they can be used to create multiple new opportunities and even spur new business models. A few examples include:

Ultimately, this example shows how anyone can take streaming data and create immersive real-time dashboards to visualize what's happening — and even leverage automated case management tools to respond in real time. There are no limits to possible use cases.

Learn how to unlock the many valuable insights inside your video feed.