In the era of big data, the inherent temporal dynamics and evolving patterns of high-velocity streaming data present a significant challenge. This paper introduces the Adaptive Temporal Chinese Restaurant Process (AT-CRP), a novel nonparametric Bayesian approach for dynamic clustering of streaming data. The AT-CRP addresses the limitations of traditional clustering methods by modelling the full lifecycle of clusters, including birth, growth, and death, without requiring a fixed number of clusters. I derive an online variational inference algorithm for efficient real-time updates to cluster assignments, providing a structural approach for analyzing complex, evolving data streams. The method is validated on synthetic datasets and real-world NYC traffic data, including a month-long NYC traffic demand dataset and NYC traffic trip data. Experimental results demonstrate AT-CRP’s ability to extract domain-specific knowledge and capture meaningful temporal patterns in urban traffic dynamics. My approach outperforms existing methods in clustering accuracy and pattern detection, offering insights into evolving trends in traffic flow and demand. This work contributes to the field of data mining and pattern recognition by providing a flexible, scalable method for modelling and analyzing large-scale streaming data, with potential applications in urban planning, traffic management, and real-time decision support systems for smart cities.
References
[1]
Lu, J., Liu, A., Dong, F., Guo, J., Gama, J. and Zhang, G. (2019) Learning under Concept Drift: A Review. IEEE Transactions on Knowledge and Data Engineering, 31, 2346-2363.
[2]
MacEachern, S.N. (2000) Dependent Dirichlet Processes. Technical Report, Department of Statistics, The Ohio State University.
[3]
Zhu, X., Ghahramani, Z. and Lafferty, J. (2005) Time-Sensitive Dirichlet Process Mixture Models. Technical Report, Carnegie Mellon University.
[4]
Quintana, F., Mueller, P., Jara, A. and MacEachern, S. (2020) The Dependent Dirichlet Process and Related Models. https://doi.org/10.48550/arXiv.2007.06129
[5]
MacQueen, J. (1967) Some Methods for Classification and Analysis of Multivariate Observations. Proceedings of the 5th Berkeley Symposium on Mathematical Statistics and Probability, California, 21 June-18 July 1967, 281-297.
[6]
Duda, R., Hart, P. and Stork, D.G. (2001) Pattern Classification. 2 Edition, Wiley.
[7]
Saeedmanesh, M. and Geroliminis, N. (2017) Dynamic Clustering and Propagation of Congestion in Heterogeneously Congested Urban Traffic Networks. Transportation Research Part B: Methodological, 105, 193-211. https://doi.org/10.1016/j.trb.2017.08.021
[8]
Wickramasinghe, L., Leblanc, A. and Muthukumarana, S. (2023) Bayesian Inference on Sparse Multinomial Data Using Smoothed Dirichlet Distribution with an Application to COVID-19 Data. Model Assisted Statistics and Applications, 18, 207-226. https://doi.org/10.3233/mas-221411
[9]
Antoniak, C.E. (1974) Mixtures of Dirichlet Processes with Applications to Bayesian Nonparametric Problems. The Annals of Statistics, 2, 1152-1174. https://doi.org/10.1214/aos/1176342871
[10]
Chang, J., Lu, Y., Xue, P., Xu, Y. and Wei, Z. (2022) Automatic Channel Pruning via Clustering and Swarm Intelligence Optimization for CNN. AppliedIntelligence, 52, 17751-17771. https://doi.org/10.1007/s10489-022-03508-1
[11]
Saad, F. and Mansinghka, V. (2018) Temporally-Reweighted Chinese Restaurant Process Mixtures for Clustering, Imputing, and Forecasting Multivariate Time Series. Proceedings of the 21st International Conference on Artificial Intelligence and Statistics, Lanzarote, 9-11 April 2018, 755-764. https://proceedings.mlr.press/v84/saad18a.html
[12]
Blei, D.M., Griffiths, T.L. and Jordan, M.I. (2007) The Nested Chinese Restaurant Process and Bayesian Nonparametric Inference of Topic Hierarchies. JournaloftheACM, 57, 1-30. https://doi.org/10.1145/1667053.1667056
[13]
Blei, D.M., Jordan, M.I., Griffiths, T.L. and Tenenbaum, J.B. (2003) Hierarchical Topic Models and the Nested Chinese Restaurant Process. 2003 Proceedings of the 17th International Conference on Neural Information Processing Systems, Vancouver and Whistler, 8-13 December 2003, 17-24.
[14]
Wang, C. and Blei, D. (2009) Variational Inference for the Nested Chinese Restaurant Process. Advances in Neural Information Processing Systems 22, Vancouver, 7-10 December 2009.
[15]
Chen, J., Wei, L., Uliji, and Zhang, L. (2018) Dynamic Evolutionary Clustering Approach Based on Time Weight and Latent Attributes for Collaborative Filtering Recommendation. Chaos, Solitons&Fractals, 114, 8-18. https://doi.org/10.1016/j.chaos.2018.06.011
[16]
Ahmed, A., Hong, L. and Smola, A.J. (2013) The Nested Chinese Restaurant Franchise Process: User Tracking and Document Modeling. 2013 International Conference on Machine Learning (ICML), Atlan, 16-21 June 2013.
[17]
Nutakki, G.C. and Nasraoui, O. (2017) Clustering Data Streams with Adaptive Forgetting. 2017 IEEE International Congress on Big Data (BigData Congress), Honolulu, 25-30 June 2017, 494-497. https://doi.org/10.1109/bigdatacongress.2017.72
[18]
Huang, R., Zhu, F. and Heng, P. (2015) The Dynamic Chinese Restaurant Process via Birth and Death Processes. Proceedings of the AAAI Conference on Artificial Intelligence, 29, 2687-2693. https://doi.org/10.1609/aaai.v29i1.9546
[19]
Palaiokrassas, G., Voulodimos, A., Litke, A., Papaoikonomou, A. and Varvarigou, T. (2018) A Distance-Dependent Chinese Restaurant Process Based Method for Event Detection on Social Media. Inventions, 3, Article 80. https://doi.org/10.3390/inventions3040080
[20]
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R. and Dubourg, V. (2011) Scikit-Learn: Machine Learning in Python. Journal of Machine Learning Research, 12, 2825-2830.
[21]
Bergstra, J. and Bengio, Y. (2012) Random Search for Hyper-Parameter Optimization. Journal of Machine Learning Research, 13, 281-305.
[22]
Snoek, J., Larochelle, H. and Adams, R.P. (2012) Practical Bayesian Optimization of Machine Learning Algorithms. Advances in Neural Information Processing Systems 25, Nevada, 3-8 December 2012.
[23]
Li, L., Jamieson, K., DeSalvo, G., Rostamizadeh, A. and Talwalkar, A. (2017) Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimization. The Journal of Machine Learning Research, 18, 6765-6816.
[24]
Kohavi, R. (1995) A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection. International Joint Conference on Artificial Intelligence, 14, 1137-1145.
[25]
Hoffman, M.D., Blei, D.M., Wang, C. and Paisley, J. (2013) Stochastic Variational Inference. Journal of Machine Learning Research, 14, 1303-1347. http://jmlr.org/papers/v14/hoffman13a.html
[26]
Ghosh, J., Tan, A. and Luo, L. (2025) Online Bayesian Variable Selection and Bayesian Model Averaging for Streaming Data. Stat, 14, e70044. https://doi.org/10.1002/sta4.70044
[27]
Ranganath, R., Wang, C., David, B. and Xing, E. (2013) An Adaptive Learning Rate for Stochastic Variational Inference. Proceedings of the 30th International Conference on Machine Learning, Atlanta, 16-21 June 2013, 298-306. https://proceedings.mlr.press/v28/ranganath13.html
[28]
Broderick, T., Boyd, N., Wibisono, A., Wilson, A.C. and Jordan, M.I. (2013) Streaming Variational Bayes. arXiv: 1307.6769.
[29]
G?sgens, M.M., Tikhonov, A. and Prokhorenkova, L. (2021) Systematic Analysis of Cluster Similarity Indices: How to Validate Validation Measures. Proceedings of the 38th International Conference on Machine Learning, Online, 18-24 July 2021, 3799-3808. https://proceedings.mlr.press/v139/gosgens21a.html
[30]
Campello, R.J.G.B., Kr?ger, P., Sander, J. and Zimek, A. (2020) Density-Based Clustering. WIREsDataMiningandKnowledgeDiscovery, 10, e1343. https://doi.org/10.1002/widm.1343
[31]
Rousseeuw, P.J. (1987) Silhouettes: A Graphical Aid to the Interpretation and Validation of Cluster Analysis. Journal of Computational and Applied Mathematics, 20, 53-65. https://doi.org/10.1016/0377-0427(87)90125-7
[32]
Januzaj, Y., Beqiri, E. and Luma, A. (2023) Determining the Optimal Number of Clusters Using Silhouette Score as a Data Mining Technique. International Journal of Online and Biomedical Engineering, 19, 174-182. https://doi.org/10.3991/ijoe.v19i04.37059
[33]
Davies, D.L. and Bouldin, D.W. (1979) A Cluster Separation Measure. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1, 224-227. https://doi.org/10.1109/tpami.1979.4766909
[34]
Xie, C., Yu, D., Zheng, X., Wang, Z. and Jiang, Z. (2021) Revealing Spatiotemporal Travel Demand and Community Structure Characteristics with Taxi Trip Data: A Case Study of New York City. PLOSONE, 16, e0259694. https://doi.org/10.1371/journal.pone.0259694
[35]
NYC Taxi and Limousine Commission (2025) NYC Taxi and Limousine Commission Website. https://www.nyc.gov/site/tlc/index.page