Basket-Sensitive Personalized Item Recommendation

Duc-Trong Le, Hady Wirawan Lauw, Yuan Fang

Abstract

Traditional recommender systems often fail to account for the immediate context of a user's current shopping session. This paper introduces the Basket-Sensitive Factorization Machine (BFM) and its constrained variant (CBFM) to address this gap. By modeling interactions between users, current basket items, and target items, these models provide highly personalized and context-aware recommendations. CBFM further incorporates a "same intent" constraint to handle variations in item addition sequences. Evaluations on three real-world datasets—TaFeng, BeiRen, and Foursquare—demonstrate that CBFM significantly outperforms standard factorization and association rule baselines in terms of HLU and Recall@10.

Introduction

Most recommendation engines are built on Matrix Factorization, which focuses on long-term user-item preferences. However, in retail and location-based services, purchases and visits are rarely independent. For instance, a user with flour and eggs in their basket is likely seeking complementary ingredients like sugar. This "basket-sensitive" context is often more predictive of immediate needs than historical data alone. While Association Rule Mining addresses item co-occurrence, it lacks personalization and struggles with unseen item combinations. This paper proposes a factorization-based approach that bridges long-term personalization with immediate session context.

Methodology

The authors propose two primary models to capture basket dynamics:

Basket-Sensitive Factorization Machine (BFM)

BFM extends the Factorization Machine framework by calculating recommendation scores based on four key association types:

  • User & Target Item: Long-term personal preference.
  • Basket Items & Target Item: Complementarity between the current cart and the next item.
  • Among Basket Items: Internal cohesion of the current basket.
  • User & Basket Items: Historical patterns of buying specific item sets.

Constrained BFM (CBFM)

CBFM addresses the fact that different item addition sequences can represent the same underlying intent. It introduces a "Same Intent" constraint, ensuring that different partial baskets leading to the same final set for a user receive similar likelihoods. Pointwise Mutual Information (PMI) is used to weight these constraints, prioritizing strongly correlated items. The models are optimized using Stochastic Gradient Descent (SGD) for high efficiency.

Experimental Evaluation

The models were tested on three datasets:

  1. TaFeng: Grocery retail transactions.
  2. BeiRen: Large-scale Chinese retail data.
  3. Foursquare: Daily check-in "baskets" in Singapore.

Preprocessing involved removing common "stop-word" items and filtering for active users.

Key Results

The experiments show that CBFM consistently achieves superior accuracy compared to BFM and traditional baselines.

Performance comparison of BFM and CBFM across the TaFeng, BeiRen, and Foursquare datasets as the constraint weight α varies.

As illustrated in the figure above, CBFM outperforms BFM across all metrics (HLU and Recall@10) and datasets. On the TaFeng dataset, CBFM reached a Recall@10 of 3.61%, compared to 3.41% for BFM and 2.72% for the Association Rule baseline. The parameter $\alpha$ represents the weight of the "Same Intent" constraint; performance typically peaks at an optimal $\alpha$, demonstrating the value of modeling intent consistency.

Furthermore, the models maintain low response times (10ms to 60ms), confirming their viability for real-time e-commerce applications.

Conclusion

By integrating immediate basket context with long-term user preferences, BFM and CBFM offer a more nuanced approach to recommendation. The "Same Intent" constraint in CBFM effectively captures the underlying goals of a shopping session, leading to significant performance gains. Future research could enhance these models by incorporating item hierarchies or temporal patterns across multiple sessions.

Summary updated

BibTeX
@inproceedings{le2017basket,
  author = {Duc-Trong Le and Hady Wirawan Lauw and Yuan Fang},
  title = {{Basket-Sensitive Personalized Item Recommendation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/286},
}
Figure