GithubHelp home page GithubHelp logo

pothurajunavya / fake-reviews-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sayamalt/fake-reviews-detection

0.0 0.0 0.0 9.34 MB

Successfully developed a machine learning model which can predict whether an online review is fraudulent or not. The main idea used to detect the fake nature of reviews is that the review should be computer generated through unfair means. If the review is created manually, then it is considered legal and original.

Jupyter Notebook 100.00%

fake-reviews-detection's Introduction

Fake-Reviews-Detection

Problem Statement

Detection of fake reviews out of a massive collection of reviews having various distinct categories like Home and Office, Sports, etc. with each review having a corresponding rating, label i.e. CG(Computer Generated Review) and OR(Original Review generated by humans) and the review text.

Main task is to detect whether a given review is fraudulent or not. If it is computer generated, it is considered fake otherwise not.

Description

Description: The generated fake reviews dataset, containing 20k fake reviews and 20k real product reviews. OR = Original reviews (presumably human created and authentic); CG = Computer-generated fake reviews.

Python Libraries and Packages Used

  • Numpy
  • Pandas
  • Matplotlib.pyplot
  • Seaborn
  • Warnings
  • nltk
  • nltk.corpus
  • String
  • sklearn.naive_bayes
  • sklearn.feature_extraction
  • sklearn.model_selection
  • sklearn.ensemble
  • sklearn.tree
  • sklearn.linear_model
  • sklearn.svc
  • sklearn.neighbors

Techniques Used for Text Preprocessing

  • Removing punctuation character
  • Transforming text to lower case
  • Eliminating stopwords
  • Stemming
  • Lemmatizing
  • Removing digits

Transformers Used for Text Vectorization, Weighting and Normalization

  • CountVectorizer Bag of Words Transformer
  • TFIDF(Term Frequency-Inverse Document Frequency) Transformer

Machine Learning Algorithms Used

  1. Logistic Regression
  2. K Nearest Neighbors
  3. Support Vector Classifier
  4. Decision Tree Classifier
  5. Random Forests Classifier
  6. Multinomial Naive Bayes

Performance Overview of ML Models Leveraged

Support Vector Machines Classifier performed the most accurate predictions regarding the fake nature of reviews having a predictive accuracy of just over 88%, closely followed by Logistic Regression which had a prediction accuracy of a little more than 86%. Random Forests Classifier and Multinomial Naive Bayes algorithm predicted to a precision level of approximately 84%. However, the Decision Tree Classifier performed fake reviews prediction upto an accuracy of just over 73%. The worst performing algorithm was the K Nearest Neighbors algorithm which could only perform the predictions upto an accuracy level of nearly 58%.

License

CC-By Attribution 4.0 International

fake-reviews-detection's People

Contributors

sayamalt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.