Topological Data Analysis of Time Series Data for B2B Customer Relationship Management

Rodrigo Rivera-Castro, Polina Pilyugina, Alexander Pletnev, Ivan Maksimov, Wanyi Wyz, Evgeny BurnaevarXiv 2019 · OpenReview

Abstract

Topological Data Analysis (TDA) is a recent approach to analyze data sets from the perspective of their topological structure. Its use for time series data has been limited to the field of financial time series primarily and as a method for feature generation in machine learning applications. In this work, TDA is presented as a technique to gain additional understanding of the customers' loyalty for business-to-business customer relationship management. Increasing loyalty and strengthening relationships with key accounts remain an active topic of discussion both for researchers and managers. Using two public and two proprietary data sets of commercial data, this research shows that the technique enables analysts to better understand their customer base and identify prospective opportunities. In addition, the approach can be used as a clustering method to increase the accuracy of a predictive model for loyalty scoring. This work thus seeks to introduce TDA as a viable tool for data analysis to the quantitate marketing practitioner.

The Problem: Moving Beyond Static Snapshots

In B2B sectors like cloud computing and digital procurement, understanding customer loyalty is notoriously difficult. Traditionally, marketers rely on the RFM framework: Recency, Frequency, and Monetary value. However, RFM is a "snapshot" that ignores the temporal evolution of behavior. Two customers might have identical RFM scores, but one could be a steady, long-term partner while the other is a "bursty" user who hasn't been seen in weeks. B2B data is often noisy and sparse, lacking clear seasonality, which causes standard forecasting models to fail. There is a critical need for methods that capture the structural patterns of customer activity over time.

Methodology: A Multi-Faceted ML Pipeline

The researchers propose a machine learning pipeline that transforms static RFM scores into dynamic time-series data. The pipeline evaluates three distinct feature engineering approaches:

  1. Baseline RFM: Standard RFM features fed into a Gradient Tree Boosting model (CatBoost).
  2. Time Series RFM: Generating time series for R, F, and M, then using K-Shape clustering to group customers by activity "shape."
  3. Topological RFM (The Novelty): Using TDA to analyze time series via delay embeddings and persistent homology. This identifies topological features (like loops or clusters) represented as "barcodes," which are then clustered to create structural customer personas.
The proposed machine learning pipeline incorporating traditional, time-series, and topological RFM features.

All features eventually feed into a CatBoost regressor to predict future demand or loyalty.

Datasets

The study validates its approach across four distinct datasets:

  • Bimbo: A public Kaggle dataset containing retail points for baked goods.
  • CDNow: A classic CRM benchmark tracking a customer cohort over 18 months.
  • B2B Hospitality Procurement: A newly introduced proprietary dataset covering goods procurement.
  • Cloud Computing Provider: A proprietary dataset documenting CPU booking times and durations.

Key Results and Performance Gains

The study used Root Mean Square Error (RMSE) to evaluate performance, where lower values indicate higher accuracy. The advanced temporal and topological methods consistently outperformed traditional heuristics.

Comparison of RMSE across different datasets and modeling approaches, highlighting the superior performance of TS RFM and TDA RFM.
  • Cloud Computing: Topological RFM (RMSE: 0.03) and Time Series RFM (RMSE: 0.05) vastly outperformed the "No RFM" baseline (RMSE: 3.56).
  • Bimbo (Retail): TDA-based features were game-changers, achieving an RMSE of 18.97, compared to 172 for standard RFM.
  • CDNow: Time Series RFM performed best (RMSE: 3), though TDA remained highly competitive.

Insights and Future Directions

The core insight is that the topology of a customer's journey—how engagement ebbs and flows—is more predictive than total spend. TDA is uniquely robust to noise and doesn't require perfectly aligned time series. Furthermore, TDA and K-Shape clustering allow for the creation of visual "centroids," providing an intuitive way for managers to understand segments like "The Fading Giant" versus "The Growing Startup."

While powerful, TDA is computationally expensive. Future work will focus on using "Optimal Transport" techniques to improve scalability for massive datasets and exploring "consensus clustering" to merge R, F, and M insights into single, unified customer profiles.

Summary updated

Abstract

Topological Data Analysis (TDA) is a recent approach to analyze data sets from the perspective of their topological structure. Its use for time series data has been limited to the field of financial time series primarily and as a method for feature generation in machine learning applications. In this work, TDA is presented as a technique to gain additional understanding of the customers' loyalty for business-to-business customer relationship management. Increasing loyalty and strengthening relationships with key accounts remain an active topic of discussion both for researchers and managers. Using two public and two proprietary data sets of commercial data, this research shows that the technique enables analysts to better understand their customer base and identify prospective opportunities. In addition, the approach can be used as a clustering method to increase the accuracy of a predictive model for loyalty scoring. This work thus seeks to introduce TDA as a viable tool for data analysis to the quantitate marketing practitioner.
BibTeX
@misc{riveracastro2019topological,
  author = {Rodrigo Rivera-Castro and Polina Pilyugina and Alexander Pletnev and Ivan Maksimov and Wanyi Wyz and Evgeny Burnaev},
  title = {{Topological Data Analysis of Time Series Data for B2B Customer Relationship Management}},
  year = {2019},
  eprint = {1906.03956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.03956},
}
Figure