CityPulse:实时交通数据分析与拥堵预测
CityPulse: Real-Time Traffic Data Analytics and Congestion Prediction
AI总结:
CityPulse提出一种基于Docker、Kafka和Spark的实时交通分析流水线,通过临时存储层和轻量机器学习模块,在资源受限环境中实现每分钟超30万条记录的高吞吐拥堵预测。
摘要:
CityPulse是一个概念验证型大数据流水线,旨在利用可扩展的容器化组件实现实时城市交通分析,且不依赖物理传感器基础设施。该系统模拟摄取1100万条交通相关记录,这些记录代表车辆拥堵、GPS坐标和天气状况等城市现象。数据通过由ZooKeeper协调的Docker化Apache Kafka集群进行摄取,并使用Apache Spark Structured Streaming进行实时处理。为确保负载下的鲁棒性,该架构引入了一个临时数据存储层,在将Spark输出提交到集中式数据仓库之前对其进行缓冲。这一设计提高了写入效率、容错能力,并支持对中间结果进行批处理。精炼后的数据输入到一个轻量级机器学习模块,并通过Flask后端提供服务,前端基于React进行可视化和交互。压力测试表明,该系统在满负载条件下保持每分钟超过300,000条记录的吞吐量,而延迟仅增加10%。凭借其基于Docker的模块化部署,CityPulse为资源受限环境(尤其是喀麦隆等发展中地区)中的交通拥堵监测提供了一种经济高效且可复现的分析解决方案。
英文摘要:
CityPulse is a proof-of-concept big data pipeline designed to enable real-time urban mobility analytics using scalable, containerized components -- without reliance on physical sensor infrastructure. The system simulates the ingestion of 11 million traffic-related records representing urban phenomena such as vehicle congestion, GPS coordinates, and weather conditions. Data is ingested through a Dockerized Apache Kafka cluster, coordinated by ZooKeeper, and processed in real time using Apache Spark Structured Streaming. To ensure robustness under load, the architecture introduces a temporary data storage layer that buffers Spark output before committing it to a centralized data warehouse. This design improves write efficiency, fault tolerance, and enables batch processing of intermediate results. The refined data feeds into a lightweight machine learning module and is served through a Flask backend with a React-based frontend for visualization and interaction. Stress testing shows that the system maintains over 300,000 records per minute throughput with only a 10\% increase in latency under full load conditions. With its modular Docker-based deployment, CityPulse offers a cost-effective and reproducible analytics solution for traffic congestion monitoring in resource-constrained environments, particularly in developing regions like Cameroon.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。