Pertanika Journal of Science & Technology
Pertanika Journal Home Facebook
Pertanika · Universiti Putra Malaysia Press

Pertanika Journal of Science & Technology

Official journal of Universiti Putra Malaysia for scholarly work across science, engineering and related technologies.

e-ISSN 2231-8526 ISSN 0128-7680
Research article

Detecting Fake Reviews on Online Products with Machine Learning

P. Dhanalakshmi, Ummadi Janardhan Reddy, Ravikanth Garladinne, S. Ramachandra, E. R. Aruna, and Sharath Chandra Parashara

https://doi.org/10.47836/pjst.34.S3.03
KeywordsCount Vectoriser, fake review detection, Hashing Vectoriser, logistic regression, machine learning, natural language processing, random forest, support vector machine, TF-IDF
Article content

Abstract

Reviews play a crucial role in potential buyers' decision-making and enable companies to showcase the quality of their products. A growing number of deceitful reviews, published either intentionally or automatically as computer-generated, pose a significant threat to online review platforms. For consumers and companies, it is thus crucial to distinguish between reliable and deceptive online reviews. For this reason, the automatic classification of online reviews as being fake or genuine is a highly relevant text classification task. In this work, we present a framework that relies on the feature extraction from textual data, using Term Frequency–Inverse Document Frequency (TF-IDF) in combination with the vectorisation techniques Count Vectoriser and Hashing Vectoriser. The extracted feature vectors are then fed into three classification models: Support Vector Machine (SVM), Random Forest, and Logistic Regression. The Amazon review dataset was used for the experiments. The performance of all classifiers was measured using accuracy, precision, recall, and F1-score. Our results show that SVM performs best among the tested approaches, with TF-IDF in combination with the Count Vectoriser yielding strong results. By combining vectorisation with standard machine learning, our approach offers an efficient, easy-to-understand framework that is less complex than Deep Learning or Transformer-based approaches. Thus, classical machine learning methods can serve as a good starting point for automatically detecting and avoiding the display of fake online reviews across various applications, while also efficiently processing text with limited computational resources.