Work

A Comprehensive Analysis of Text Similarity Metrics and Vectorization Techniques for Content-Based Product Recommendation

Year: 2026
Type: article
Abstract: This paper proposes a benchmark analysis of various similarity metrics and text vectorization methods applied to content-based product recommendation systems in e-commerce. It presents an evaluation of four text vectorization techniques: Count Vectorizer, TF-IDF, Word2Vec, GloVe, combined with three similarity metrics: cosine similarity, Manhattan and Euclidean distances. Using a dataset of 10,002 Amazon product descriptions spanning over 20 categories and other additional product-related dataset for validation, we benchmark the accuracy and contextual relevance of content-based product recommendations. We selected three representative products from distinct categories (puzzles, longboards and costumes) as test cases. Results show that Word2Vec with cosine similarity consistently outperforms other methods, achieving the highest similarity score (0.906) and producing top-1 match accuracy for franchise-specific items. TF-IDF with Euclidean distance demonstrated strong performance in structured, lexically consistent categories, with average distances as low as 1.11 and 90% category alignment in the top-5 recommendations. GloVe, while competitive under cosine similarity (~0.813), underperformed with distance metrics due to higher vector magnitudes, recording average Manhattan distances above 150. Our analysis also includes qualitative relevance annotations and justifications for each top-10 recommendation per test case, confirming that dense embedding models like Word2Vec excel in capturing semantic nuance and brand-level similarity. Further, the evaluation is conducted on 500 randomly selected seed products from the two datasets, each producing top-10 recommendations. For each vectorizer-similarity combination, we computed: Precision@10, Recall@10, NDCG@10. This research contributes a benchmark across 12 vectorizer-similarity metric combinations.
Source: IEEE Access
Language: English
Open Access status: gold
Estimated APC paid: $2,075
OpenAlex ID: W7154147553
FWCI: 1.881
Cites: 77
Cited by: 1
Related to: 10