AIResearch AIResearch
Back to articles
Science

AI Predicts Customer Behavior More Accurately

New graph transformer method captures temporal patterns in relational data, improving predictions in e-commerce and healthcare by up to 8% while reducing computational costs.

AI Research
November 08, 2025
2 min read
AI Predicts Customer Behavior More Accurately

Businesses and healthcare providers rely on predicting customer and patient behavior, but existing artificial intelligence methods often miss crucial timing patterns in complex data relationships. A new approach called the Relational Graph Perceiver (RGP) addresses this limitation by better capturing how interactions evolve over time, leading to more accurate predictions across multiple domains.

The key finding is that RGP improves prediction accuracy by retrieving temporally relevant information beyond immediate connections in relational data. Traditional graph neural networks primarily focus on spatial relationships between entities, treating time as a constraint rather than an active signal. RGP specifically retrieves nodes that are temporally proximate but structurally distant, allowing the model to capture broader contextual patterns like market shifts or concurrent activities that influence behavior.

Methodologically, RGP combines three main components. First, a time-context sampler selects nodes based on their temporal proximity to reference events, independent of their direct connections. Second, a Perceiver-style encoder compresses both structural and temporal information into fixed-size representations using cross-attention mechanisms. Third, a flexible decoder enables multi-task learning across different prediction objectives without requiring separate output heads for each task.

Results analysis shows consistent performance gains across multiple benchmarks. On RelBench datasets, RGP achieved an average 2.2% improvement in Area Under ROC Curve (AUC) compared to the previous state-of-the-art method, with gains reaching 5.22% on the driver-dnf task and 3.75% on user-repeat prediction. For CTU benchmarks, RGP showed up to 8.19% improvement in F1 scores on the dallas dataset. The method also demonstrated computational efficiency, with cross-attention mechanisms requiring 2-6 times less computation than full self-attention while maintaining competitive performance.

Contextually, these improvements matter because they enable more reliable predictions in real-world scenarios. For e-commerce platforms, better user churn prediction (forecasting whether customers will stop transactions) helps retain valuable customers. In healthcare, more accurate study outcome predictions can improve patient care decisions. The method's ability to handle multiple tasks simultaneously makes it practical for large-scale applications where businesses need to predict various behaviors from the same underlying data.

Limitations identified in the paper include performance variations across different data characteristics. On some datasets like rel-f1, multi-task training led to performance drops due to sample imbalance between tasks. The method also shows reduced advantages in scenarios where tree-based methods like LightGBM perform well, particularly when predictive information is contained primarily within single tables rather than requiring cross-entity relationship modeling.

Original Source

Read the complete research paper

View on arXiv

About the Author

Guilherme A.

Guilherme A.

Former dentist (MD) from Brazil, 41 years old, husband, and AI enthusiast. In 2020, he transitioned from a decade-long career in dentistry to pursue his passion for technology, entrepreneurship, and helping others grow.

Connect on LinkedIn