arXiv:2610.35710cs.LGOct 2026

Manuscript Offprint

arXiv:2610.35710

Detecting bus delays and service anomalies in Niterói with autoencoder latent feature representations

Matheus Germano, Claudio E. C. Campelo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Matheus Germano and Claudio E. C. Campelo

Systems and Computing Department, Federal University of Campina Grande (UFCG), Campina Grande, PB, Brazil

Abstract. Bus riders judge service by two failures: single trips that run late, and days on which the whole system misbehaves. We ask whether one unsupervised representation of raw GPS telemetry can serve both diagnoses on the NetMob 2026 Niterói bus dataset. An autoencoder compresses each trip into a 64-dimensional latent vector; the frozen encoder feeds supervised delay classifiers, and the reconstruction error serves as an anomaly score. Two findings are negative. First, the latent representation does not improve delay detection: gradient boosting on per-trip summary features reaches 0.846±0.0130.846 \pm 0.013 ROC-AUC against 0.838±0.0160.838 \pm 0.016 for the best latent setup, and the gap becomes significant once the preprocessing filters are relaxed. Second, two of the three external checks of the anomaly score were circular. Retraining without rainfall removes the rain association (5.4% against 5.0% flagged, p=0.84p = 0.84) and an apparent citywide disruption on 23 March. What survives is a day-level signal stable across three autoencoders (Spearman ρ≥0.96\rho \geq 0.96), driven mostly by day type, with degraded-telemetry days still separable within weekday and weekend strata. The alarm threshold limits detection more than the score does: a pooled percentile cut flags 5.7% of trips on the worst degraded day, while re-scaling within each bus line flags 29.3%. The delay model rests almost entirely on one feature, no latent dimension is individually interpretable, and 22 chronic line-directions carry half of all delayed trips.

1. INTRODUCTION

Riders judge a bus system by two failures: trips that run late, and days when service as a whole misbehaves; travellers value reliability on a par with travel time itself [1]. We ask whether a single unsupervised representation of raw GPS telemetry can support both diagnoses at once on the NetMob 2026 challenge data from Niterói [2]. Our approach transfers the latent feature representation learning pipeline of Duncan and Chen [3], originally built to detect internet censorship in network traffic: an autoencoder (AE) is trained to compress each trip into a low-dimensional latent vector, the frozen encoder then feeds lightweight supervised classifiers for delay detection, and the same AE's reconstruction error doubles as an unsupervised service anomaly score. Autoencoders are long established [4] and have been applied to anomalous bus trajectories [5]; here we reuse one label-free representation for both tasks. This is particularly useful when timetable-based comparisons are unreliable — for example, when schedule joins are missing or outdated, when service runs at variable intervals, or when trips are evaluated before they are complete.

References (27)