KALEFormer a transformer based model integrating KMeans clustering and LDA for market basket analysis

The highly sparse and dynamic nature of e-commerce transactions presents a significant challenge for accurately predicting customer intent and composition of future purchases. While traditional Market Basket Analysis (MBA) and collaborative filtering models provide foundational insights, they often fail to integrate preference history, semantic and propensity features that could provide useful insights into user purchase behaviour. To address this, this study proposes KALEFormer (KMeans And LDA Enriched Transformer for Market Basket Analysis), an integrated framework that combines machine learning, natural language processing and deep learning to enhance predictions. Experiments are conducted on the UCI Online Retail dataset. Machine learning techniques are first used for data preprocessing, dimensionality reduction via PCA and customer segmentation via KMeans clustering. Latent thematic information is then captured by topic modelling on item descriptions via LDA and semantic item representations are derived using MiniLM sentence embeddings. These enriched signals are subsequently fused using an encoder-only transformer model to learn basket-level purchasing patterns. The objective is to enhance recommendation by jointly modelling customer tendencies and semantic context rather than relying solely on item co-occurrence. Evaluation results compared to state of the art models demonstrate that KALEFormer performs effectively even in a sparse recommendation, achieving the highest metrics: HR@k of 80.69% & 90.54% and NDCG@k of 38.01% & 35.16% for k = 10 and 50 respectively. Additional train–test analysis indicates stable generalization and ablation test confirms that the inclusion of contextual metadata features contributes to significant performance improvements.

Authors

Institutions

Publication Details

Journal
Discover Computing
Published
2026-04-22
DOI
https://doi.org/10.1007/s10791-026-10103-2
Primary Topic
Customer churn and segmentation
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

KALEFormer a transformer based model integrating KMeans clustering and LDA for market basket analysis

Manjula C. Belavagi, Ishan Surana, Ramyashree
Discover Computing
Customer churn and segmentation
article

KALEFormer a transformer based model integrating KMeans clustering and LDA for market basket analysis

Manjula C. Belavagi, Ishan Surana, Ramyashree
article en

Abstract

The highly sparse and dynamic nature of e-commerce transactions presents a significant challenge for accurately predicting customer intent and composition of future purchases. While traditional Market Basket Analysis (MBA) and collaborative filtering models provide foundational insights, they often fail to integrate preference history, semantic and propensity features that could provide useful insights into user purchase behaviour. To address this, this study proposes KALEFormer (KMeans And LDA Enriched Transformer for Market Basket Analysis), an integrated framework that combines machine learning, natural language processing and deep learning to enhance predictions. Experiments are conducted on the UCI Online Retail dataset. Machine learning techniques are first used for data preprocessing, dimensionality reduction via PCA and customer segmentation via KMeans clustering. Latent thematic information is then captured by topic modelling on item descriptions via LDA and semantic item representations are derived using MiniLM sentence embeddings. These enriched signals are subsequently fused using an encoder-only transformer model to learn basket-level purchasing patterns. The objective is to enhance recommendation by jointly modelling customer tendencies and semantic context rather than relying solely on item co-occurrence. Evaluation results compared to state of the art models demonstrate that KALEFormer performs effectively even in a sparse recommendation, achieving the highest metrics: HR@k of 80.69% & 90.54% and NDCG@k of 38.01% & 35.16% for k = 10 and 50 respectively. Additional train–test analysis indicates stable generalization and ablation test confirms that the inclusion of contextual metadata features contributes to significant performance improvements.

Discover ComputingVol. 29(1)
Manipal Academy of Higher Education (IN)
Zero hunger
Openalex Percentile: Top 14%
Customer churn and segmentation
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.