Friday, March 6, 2020

Detection of Deception by Speech Content

Detection of Deception by Speech Content

In here we are trying to detect deception by Speech Content (Text file). If you think someone's written message or someones's text files is cheating  us. Using this model we can measure that person lying or not.

FLOW DIAGRAM




We used Real Life Trial data to train model.

Create Data frame

Data frame of the training data set.

Feature Extraction 

  • To extract features first we used Bag Of Words method.

Ex:- 1) Good movie
        2) Not a good movie
        3)Did not like

V{Good, movie, Not, a, did, like }

  • Then we apply TF-IDF waiting. 
  • After apply TF-IDF waiting result look like this.


Building Model

       In here we train data using naive Bayes Classifier.

       Naive Bayes Algorithm is machine learning algorithm for classification problem it is primarily used for text classification.
This is simple and efficient algorithm

Then using pipeline method we can get prediction for every other data.






No comments:

Post a Comment