Code Monkey home page Code Monkey logo

whatsappchat_predictor's Introduction

Chat Authenticator Using LSTM

Project Overview

This project aims to determine whether a chat participant is a known or unknown person by analyzing their texting style. By leveraging Natural Language Processing (NLP) and Long Short-Term Memory (LSTM) models, we can predict the sender of a message based on their unique texting patterns.

Problem Statement

In today's digital communication landscape, ensuring the authenticity of the person we are chatting with is crucial for both personal security and professional integrity. This project addresses this issue by developing a model that can identify the texting style of chat participants.

Solution Developed

Data Collection and Preprocessing

  • Source: WhatsApp chat file.
  • Extraction: Extracted sender and message data.
  • Preprocessing: Converted messages to lowercase and saved them in a CSV file for further processing.

Tokenization and Sequence Padding

  • Tokenizer: Used Keras Tokenizer to convert text messages into sequences.
  • Padding: Applied sequence padding to ensure uniform input size for the model.

Label Encoding

  • Transformed sender labels into numerical values using LabelEncoder from sklearn.

Model Development

  • Architecture: Built an LSTM model using Keras.
    • Embedding layer
    • LSTM layer
    • Dense layer with sigmoid activation
  • Compilation: Compiled the model with binary_crossentropy loss and adam optimizer.

Model Training and Evaluation

  • Dataset: Split the dataset into training and testing sets.
  • Training: Trained the model on the training set.
  • Evaluation: Evaluated the model on the test set, achieving a promising accuracy.

Model Deployment

  • Saving: Saved the trained model using pickle.
  • Testing: Tested the model with new messages to validate its performance.

Future Goals

  • Integration with Messaging Apps: Integrate this solution into various messaging platforms to enhance user security.
  • Improvement and Scalability: Improve the model by incorporating more diverse datasets and advanced NLP techniques.
  • Real-time Analysis: Develop a real-time monitoring system for instant feedback on chat authenticity.

whatsappchat_predictor's People

Contributors

sinha532 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.