Skip to main content
QUICK REVIEW

[Paper Review] Large Scale Estimation in Cyberphysical Systems using Streaming Data: a Case Study with Smartphone Traces

Timothy Hunter, Tathagata Das|arXiv (Cornell University)|Dec 14, 2012
Vehicular Ad Hoc Networks (VANETs)Engineering22 references3 citations
TL;DR

This paper proposes D-Streams, a streaming data processing model implemented in Apache Spark, to enable low-latency, large-scale estimation in cyberphysical systems. It applies an online Expectation-Maximization algorithm to estimate urban traffic using real-time smartphone GPS traces, achieving sub-second latency and scaling to tens of thousands of observations per second on a half-million-link road network.

ABSTRACT

Controlling and analyzing cyberphysical and robotics systems is increasingly becoming a Big Data challenge. Pushing this data to, and processing in the cloud is more efficient than on-board processing. However, current cloud-based solutions are not suitable for the latency requirements of these applications. We present a new concept, Discretized Streams or D-Streams, that enables massively scalable computations on streaming data with latencies as short as a second. We experiment with an implementation of D-Streams on top of the Spark computing framework. We demonstrate the usefulness of this concept with a novel algorithm to estimate vehicular traffic in urban networks. Our online EM algorithm can estimate traffic on a very large city network (the San Francisco Bay Area) by processing tens of thousands of observations per second, with a latency of a few seconds.

Motivation & Objective

  • To address the challenge of low-latency, large-scale state estimation in cyberphysical systems using streaming data.
  • To develop a scalable, real-time traffic estimation system for urban networks using smartphone GPS traces.
  • To demonstrate that D-Streams on Spark can support complex machine learning algorithms with low latency and high throughput.
  • To evaluate the performance of an online EM algorithm for estimating travel time distributions on large road networks.
  • To release open-source code and data to foster research in real-time traffic estimation and streaming systems.

Proposed method

  • The authors introduce D-Streams, a programming model that processes streaming data in small, discrete time intervals to balance scalability and low latency.
  • They implement D-Streams on Apache Spark, leveraging its in-memory computation and high-level API for distributed stream processing.
  • An online Expectation-Maximization (EM) algorithm is used to estimate travel time distributions by incrementally updating parameters from streaming GPS observations.
  • The method models link travel times as independent Gamma-distributed random variables and computes conditional densities given observed partial-link trajectories.
  • A data conversion step maps partial-link GPS readings to weighted observations on complete road links, accounting for vehicle stops at traffic lights.
  • The system is deployed on a cluster of commodity hardware, processing tens of thousands of observations per second with latency under a few seconds.

Experimental results

Research questions

  • RQ1Can D-Streams on Spark enable real-time, large-scale estimation in cyberphysical systems with sub-second latency?
  • RQ2How well does an online EM algorithm perform in estimating urban traffic states from streaming smartphone GPS data?
  • RQ3What is the impact of data volume and trajectory length on estimation accuracy for travel time distributions?
  • RQ4How do assumptions of independence between road links affect the accuracy of long-trajectory travel time predictions?
  • RQ5Can a simple, scalable system using commodity hardware outperform traditional batch processing for real-time traffic estimation?

Key findings

  • The system achieves sub-second latency and scales to process tens of thousands of GPS observations per second on a large urban road network (San Francisco Bay Area).
  • The online EM algorithm with sliding window processing (SlidingBig) achieves the best performance, particularly for medium-length trips (4–11 minutes).
  • L1 and L2 error metrics show that estimation accuracy is highest for short to medium travel times, with performance degrading for longer trajectories.
  • Log-likelihood results indicate that the model's predictive density deteriorates for longer trips, highlighting the limitations of independent link assumptions.
  • The relative error increases with trajectory length due to the complexity of mapping partial-link observations to full-link travel times.
  • Despite these limitations, the model performs robustly across different data settings, suggesting that even smaller data volumes could yield acceptable results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.