Analyzing and Predicting Purchase Intent in E-commerce: Anonymous vs. Identified Customers

Mariya Hendriksen, Ernst Kuiper, Pim Nauts, Sebastian Schelter, Maarten de RijkearXiv 2020

Abstract

Predicting real-time purchase intent is a critical challenge for e-commerce personalization, particularly when dealing with anonymous users who lack historical data. This paper presents a framework for bridging this gap by leveraging real-time session signals alongside historical features. By utilizing features such as page dwell time and device type, the proposed models improve purchase intent prediction for anonymous users by over 17% and achieve a 96% F1-score for identified customers.

Introduction

In the competitive landscape of e-commerce, identifying a customer's intent to purchase in real-time is the "holy grail" for personalization. Accurate predictions allow platforms to offer timely discounts, relevant recommendations, and tailored search results. However, a significant hurdle exists: the anonymous user. Research indicates that over 50% of web sessions on major retail platforms start anonymously, without a login or persistent cookie. Standard models that rely heavily on past shopping history struggle in these scenarios. This study explores how to characterize and predict intent for both identified and anonymous users by combining historical data with real-time "clickstream" behavior.

Methods and Feature Engineering

The authors frame purchase prediction as a classification task, evaluating various architectures including Random Forest, Gradient Boosted Decision Trees (GBDT), and Neural Networks. The core contribution is a robust feature engineering approach categorized into two types:

  1. Static/Baseline Features: Available at the start of a session, including day of the week, hour, device type (e.g., PC vs. Mobile), and entry channel.
  2. Dynamic Session Features: These evolve during the session, such as page dwell time (duration spent on a product), Markov page sequence scores (probability based on navigation order), and the total number of pages visited.
Relative importance of features for session-start (top), identified users (middle), and the impact of page count (bottom).

To avoid "predicting the past," the evaluation uses a buffer-based approach. Predictions are made at various steps (e.g., after 1 or 5 pages) within sessions that are at least 12 pages long, ensuring the model predicts intent before the final outcome is reached.

Dataset

The study utilizes a massive real-world dataset from a large European e-commerce platform, collected over four weeks in October 2019. The dataset comprises approximately 95.7 million sessions, of which 56.5% (54.1 million) were anonymous. The data tracks activity across 9.6 million identified users and five device types: PC, Smartphone, Tablet, Game Console, and TV.

Behavioral Insights

Analysis of the dataset revealed several key patterns in user behavior:

  • Session Length as a Proxy for Intent: Purchase sessions are significantly longer than non-purchase sessions. While casual browsers may exit after a few pages, buyers exhibit more persistent and focused browsing behavior.
  • Temporal Patterns: Contrary to expectations of weekend shopping, the most active purchase days were Tuesday, Wednesday, and Thursday. Shopping activity peaks in the evenings between 6 PM and 8 PM.
Distribution of purchase and non-purchase sessions by day of week.
  • Device Switching: Users frequently use smartphones or tablets for initial exploration but prefer PCs to finalize transactions. The PC demonstrated the highest standardized conversion rate, suggesting its role as the primary tool for closing sales.
  • Feature Dominance Shift: At the start of a session, static features like the day of the week are the primary predictors. However, as the session progresses, dynamic features like dwell time quickly become the dominant indicators of intent.

Key Results

The inclusion of engineered dynamic features significantly boosted model performance:

  • Anonymous Users: For anonymous sessions, dynamic features improved the F1-score by 17.54% over the production baseline.
  • Identified Users: For users with a known history, the models achieved a staggering F1-score of 96.20%. In this group, historical features (such as the number of previous orders) are dominant, and session-specific data provides only marginal improvements.
  • Model Comparison: Tree-based models (Random Forest, GBDT) and Neural Classifiers consistently outperformed simpler models like Logistic Regression, particularly in the complex anonymous setting.

Limitations and Future Work

While the results are promising, the study is limited to a single European retailer and a one-month timeframe (October). Shopping behavior during peak seasons like Black Friday or in different global markets may vary. Future research should include live A/B testing to validate if these offline predictions translate to increased conversion rates in real-time. Additionally, developing device-specific models could further refine intent signals, as user interactions differ significantly between mobile and desktop platforms.

Summary updated

BibTeX
@misc{hendriksen2020analyzing,
  author = {Mariya Hendriksen and Ernst Kuiper and Pim Nauts and Sebastian Schelter and Maarten de Rijke},
  title = {{Analyzing and Predicting Purchase Intent in E-commerce: Anonymous vs. Identified Customers}},
  year = {2020},
  eprint = {2012.08777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.08777},
}
Figure