Git Product home page Git Product logo

fake-news-detection's Introduction

Fake News Detection on Twitter

Automatic Fake News Spreader Profiling Detecting

This repository contains code and resources for a machine learning framework developed for the detection of fake news posts on the online social media platform Twitter. We have conducted classification experiments on both an English and a Spanish dataset to achieve reliable results.

Methodology

Our approach involved testing various methods and combinations to identify the best performing model for detecting fake news tweets. After careful evaluation, we found that the Gradient Boosting & Random Forest model, combined with features extracted from a TF-IDF approach, yielded the most accurate results.

Results

For the English dataset, our model achieved an accuracy score of 75.33% mean accuracy in detecting fake news tweets. Similarly, for the Spanish dataset, we achieved a mean accuracy of 77.66%.

Repository Structure

  • data/: This directory contains the English and Spanish datasets used for training and testing.
  • code/: This directory contains the Python scripts used to preprocess the data, train the models, and evaluate the performance.
  • models/: This directory contains the trained models saved in the pickle format.
  • results/: This directory contains the evaluation results and performance metrics of the models.

Getting Started

  1. Clone this repository:
    git clone https://github.com/your-username/fake-news-detection.git

fake-news-detection's People

Contributors

qc20 avatar

Watchers

 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.