NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Identifying E-Commerce Fraud Through User Behavior Data: Observations and Insights

Ziyi Zhang, Hang Yin, Susie Xi Rao, Xiao Yan, Zhurong Wang, Weiming Liang, Yang Zhao, Yinan Shan, Ruixuan Zhang, Yuhao Lin, Jiawei Jiang

Introduction

Traditional e-commerce fraud detection has long relied on static identifiers such as IP addresses, device IDs, shipping addresses, or email accounts. However, as fraudsters become more sophisticated, these "linking entities" are increasingly easy to fabricate or mask using proxies, bots, and stolen credentials. Account Takeover (ATO) and financial data theft continue to cost platforms billions annually, necessitating a shift toward more robust, non-spoofable detection methods.

This paper introduces the Multi-Modal Behavioral Transformer (MMBT), a framework that pivots from static data to behavioral biometrics. By analyzing how a user interacts with a platform—specifically their mouse trajectories and page-viewing habits—the system identifies patterns that are inherently difficult for hackers or automated scripts to replicate. MMBT treats mouse movements as screen-agnostic image patches and fuses them with browsing sequences, boosting fraud detection precision by up to 7% while maintaining sub-500ms latency in a live production environment.

The Multi-Modal Behavioral Transformer (MMBT)

The MMBT model is designed to learn from two distinct categories of user behavior: inner-page actions (mouse trajectories) and inter-page actions (browsing sequences).

Technical Innovations

  • Screen-Agnostic Mouse Patching: To handle the variability of screen sizes (from mobile to 4K monitors), the authors divide the screen into an $M \times N$ grid of "patches." Raw mouse coordinates are converted into a sequence of patch indices. This standardizes layouts across devices, making the trajectory data comparable regardless of the hardware used.
  • Multi-Tower Architecture: The model ingests four distinct sequences: patch indices (mouse movement), page dwell time, page ID, and item price (binned into 1500 equal-frequency buckets). Each sequence is processed by its own independent Transformer encoder to capture long-term dependencies.
  • Early Fusion Strategy: Embeddings from the four Transformer towers are normalized and fused via concatenation and averaging before being passed to a Multilayer Perceptron (MLP). The authors found that this "early fusion" outperformed late-stage probability averaging, as it allows the model to learn complex interactions between movement patterns and the content being viewed.

Behavioral Patterns: Fraudsters vs. Benign Users

Comparison of behavioral patterns between fraudsters and benign users. Identifying E-Commerce Fraud Through User Behavior Data: Observations and Insights, page 3

Comparison of behavioral patterns between fraudsters and benign users.

A core insight of this research is that fraudsters are highly purposeful and efficient. While legitimate users exhibit "hesitation"—hovering over images, scrolling through reviews, and spending minutes comparing items—fraudsters typically move their mice in direct, straight lines toward checkout buttons.

Furthermore, the item price sequence emerged as a critical feature. Fraudsters often target high-value items to maximize their return on investment (ROI), creating a distinct sequence of viewed prices that differs significantly from the varied browsing habits of a typical consumer. These "quick actions" and "specific purposes" create a behavioral signature that the MMBT model is uniquely equipped to detect.

Industrial Implementation and Results

The end-to-end industrial pipeline for online fraud detection and offline model training. Identifying E-Commerce Fraud Through User Behavior Data: Observations and Insights, page 5

The end-to-end industrial pipeline for online fraud detection and offline model training.

The system was evaluated on a proprietary industrial dataset containing over 3 million real transactional records, where 5% were confirmed fraudulent via chargeback events.

Key Performance Metrics

  • Accuracy: MMBT achieved an Average Precision-Recall (APR) of 66.09% and an AUC of 67.60%.
  • Precision: In a risk control context, minimizing false positives is vital. MMBT achieved a Precision@Recall=0.1 of 88.89%, outperforming state-of-the-art CNN baselines by nearly 7%.
  • Real-Time Deployment: The model was integrated into a Flink-based streaming pipeline. The 99th percentile (P99) latency for online inference is < 500 ms, with the final rule engine decision taking < 50 ms. This allows the platform to block transactions in real-time before the checkout process is finalized.

Conclusion and Future Work

While MMBT represents a significant leap in behavioral fraud detection, the authors noted challenges in using attention mechanisms for early fusion, as the rich mouse trajectory data tended to dominate the attention weights. Future work aims to expand this behavioral tracking to earlier stages of the user journey, such as registration and login, to catch fraudsters before they even reach the checkout page. By focusing on the "how" rather than the "who," e-commerce platforms can build a more resilient defense against evolving digital threats.

Summary updated

BibTeX
@article{zhang2025identifying,
  author = {Ziyi Zhang and Hang Yin and Susie Xi Rao and Xiao Yan and Zhurong Wang and Weiming Liang and Yang Zhao and Yinan Shan and Ruixuan Zhang and Yuhao Lin and Jiawei Jiang},
  title = {{Identifying E-Commerce Fraud Through User Behavior Data: Observations and Insights}},
  journal = {Data Sci. Eng.},
  year = {2025},
  doi = {10.1007/s41019-024-00275-6},
}
Figure