Hamming Diversification Index: A New Clustering-Based Metric to Understand and Visualize Time Evolution of Patterns in Multi-Dimensional Datasets
Source abstract
Abstract
One of the most challenging problems in data analysis is visualizing patterns and extracting insights from multi-dimensional datasets that vary over time. The complexity of data and variations in the correlations between different features adds further difficulty to the analysis. In this paper, we provide a framework to analyze the temporal dynamics of such datasets. We use machine learning clustering techniques and examine the time evolution of data patterns by constructing the corresponding cluster trajectories. These trajectories allow us to visualize the patterns and the changing nature of correlations over time. The similarity and correlations of features are reflected in common cluster membership, whereas the historical dynamics are described by a trajectory in the corresponding (cluster, time) space. This allows an effective visualization of multi-dimensional data over time. We introduce several statistical metrics to measure duration, volatility, and inertia of changes in patterns. Using the Hamming distance of trajectories over multiple time periods, we propose a novel metric, the Hamming diversification index, to measure the spread between trajectories. The novel metric is easy to compute, has a simple machine learning implementation, and provides additional insights into the temporal dynamics of data. This parsimonious diversification index can be used to examine changes in pattern similarities over aggregated time periods. We demonstrate the efficacy of our approach by analyzing a complex multi-year dataset of multiple worldwide economic indicators.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Time Series Analysis and Forecasting · Data Mining Algorithms and Applications · Data Management and Algorithms
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Metropolitan College, Boston University, Boston, MA 02215, USA
References (47)
Show source-provided references
1. Clustering of time series data—A survey10.1016/j.patcog.2005.01.025 ↗
2. Aggarwal, C.C., and Reddy, C.K. (2014). Data Clustering: Algorithms and Applications, CRC.10.1201/b15410 ↗
3. A review on time series data mining10.1016/j.engappai.2010.09.007 ↗
4. Data clustering: 50 years beyond K-means10.1016/j.patrec.2009.09.011 ↗
5. Sure independence screening for ultrahigh dimensional feature space10.1111/j.1467-9868.2008.00674.x ↗
6. Aggarwal, C.C. (2015). Data Mining: The Textbook, Springer.10.1007/978-3-319-14142-8 ↗
7. Survey of clustering algorithms10.1109/TNN.2005.845141 ↗
8. A user-friendly guide to using distance measures to compare time series in ecology10.1002/ece3.10520 ↗
9. Algorithms for Hierarchical Clustering: An Overview
10. CategoricalTimeSeries.jl: A toolbox for categorical time-series analysis10.21105/joss.03733 ↗
11. Model-based clustering of categorical time series
12. Řezanḱová, H. (2009, January 24–29). Cluster analysis and categorical data. Proceedings of the 7th International Conference on Applied Statistics, Qingdao, China.
13. Clustering method for time-series images using quantum-inspired digital annealer technology
14. Error detecting and error correcting codes10.1002/j.1538-7305.1950.tb00463.x ↗
15. Comprehensive survey on distance/similarity measures between probability density functions
16. Ahmad, A., and Hashmi, S.S. (2022). Model-based clustering of categorical data based on the Hamming distance. arXiv.
17. Large changes in fiscal policy: Taxes versus spending10.1086/649828 ↗
18. The time consistency of optimal monetary and fiscal policies
19. A taxonomy and survey of dynamic graph visualization10.1111/cgf.12791 ↗
20. Munzner, T. (2014). Visualization Analysis and Design, CRC Press.10.1201/b17511 ↗
21. Hastle, T. (2018). Elements of Statistical Learning, Pearson.
22. Everitt, B., Landau, S., Leese, M., and Stahl, D. (2011). Cluster Analysis, Wiley. [5th ed.].10.1002/9780470977811 ↗
23. Ward’s Hierarchical Clustering Method: Clustering Criterion and Agglomerative Algorithm10.1007/s00357-014-9161-z ↗
24. Ali, M., Alqahtani, A., Jones, M.W., and Xie, X. (2021). Deep Time-Series Clustering: A Review. Electronics, 10.10.3390/electronics10233001 ↗
25. Chen, X., Xu, Z., Zhang, Q., Liu, X., and Zhao, J. (2024). Bridging the Gap: A Decade Review of Time-Series Clustering Methods. arXiv.
26. Statistical Analysis of Categorical Time Series of Atmospheric Elementary Circulation Mechanisms
27. Against quantiles: Categorization of continuous variables in epidemiologic research, and its discontents
28. Lee, J.G., Han, J., and Whang, K.Y. (2007, January 11–14). Trajectory clustering: A partition-and-group framework. Proceedings of the 2007 ACM SIGMOD International Conference on Management of Data, Beijing, China.10.1145/1247480.1247546 ↗
29. Bian, J., Tian, D., Tang, Y., and Tao, D. (2018). A survey on trajectory clustering analysis. arXiv.
30. A general methodology for n-dimensional trajectory clustering10.1016/j.eswa.2015.06.014 ↗
31. Jennings, W.G., and Piquero, A.R. (2023, January 11). Trajectory Methods in Criminology. Available online: https://www.oxfordbibliographies.com/view/document/obo-9780195396607/obo-9780195396607-0070.xml.
32. A temporal pattern mining approach for classifying electronic health record data10.1145/2508037.2508044 ↗
33. Mining recent temporal patterns for event detection in multivariate time series data
34. Batal, I., Fradkin, D., Harrison, J., Moerchen, F., and Hauskrecht, M. (2012, January 12–16). Mining recent temporal patterns for event detection in multivariate time series data. Proceedings of the 18th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Beijing, China.10.1145/2339530.2339578 ↗
35. Poličar, P.G., Žagar, L., and Zupan, B. (2024). Uncovering Temporal Patterns in Visualizations of High-Dimensional Data. arXiv.10.1007/s10994-025-06734-z ↗
36. Trajectory data mining: An overview10.1145/2743025 ↗
37. Tukey, J.W. (1977). Exploratory Data Analysis, Addison-Wesley.
38. Boriah, S., Chandola, V., and Kumar, V. (2008, January 24–26). Similarity measures for categorical data: A comparative evaluation. Proceedings of the 2008 SIAM International Conference on Data Mining, Atlanta, GA, USA.10.1137/1.9781611972788.22 ↗
39. Armingeon, K., Engler, S., Leemann, L., and Weisstanner, D. (2025, July 07). Comparative Political Data Set 1960–2022. Available online: https://cpds-data.org/.
40. Public debt and low interest rates10.1257/aer.109.4.1197 ↗
41. OECD (2025, July 07). General Government Debt. Available online: https://data.oecd.org/gga/general-government-debt.htm.
42. Federal Reserve Bank of St. Louis (2025, July 07). What Lessons Can Be Drawn from Japan’s High Debt-to-GDP Ratio?. Available online: https://www.stlouisfed.org/on-the-economy/2023/nov/what-lessons-drawn-japans-high-debt-gdp-ratio.
43. Trading Economics (2024, December 01). Norway Government Debt to GDP. Available online: https://tradingeconomics.com/norway/government-debt-to-gdp.
44. Box, G.E., and Jenkins, G.M. (1976). Time Series Analysis: Forecasting and Control, Holden-Day. [1st ed.].
45. Hyndman, R.J., and Athanasopoulos, G. (2018). Forecasting: Principles and Practice, OTexts. [2nd ed.].
46. Bishop, C. (2016). Pattern Recognition and Machine Learning, Springer.
47. Identifying Patterns of Situational Clustering and Contextual Variability in Criminological Data: An Overview of Conjunctive Analysis of Case Configurations10.1177/1043986216689746 ↗