Code Monkey home page Code Monkey logo

lierhero's Introduction

Lier Detection using DeepLearning Technology

A lie detector based on Pytorch for a 2022 R&E school project.

loss

Introduction

lie detector

I sometime play the lie game with my brother and sister. This equipment looks like real lie detector. But the fundamental law is simple. I'd like to improve this lie detector using Deep learning Technology.

Presumption

I set up presumption that a lie relates with our face and our heart rate. Because when I lie, my heart beats fast and my facial expression is changed.

I tracked face expression with Mediapipe FaceMesh model and heart rate with Arduino Sensor.

Collecting Data

I made the UI for data collecting using Flask webpage. This webpage is quite simple but essential for training. Using this UI, I get the image and heart rate numeric figure during lying and not lying.

Model Training

MODEL V1

I made simple Linear Net with Pytorch. I will experiment many type of models to improve the performance.

model_v1

MODEL V1-2

The performance of this model didn't improve because of some reasons.

The factors are like this.

  • We don't reflect facial expression position data.
  • We don't preprocess landmark position.

Solution I think.

  • BatchNormalization
  • Dropout Network

I changed some features of the network. And train again it.

model_v1-2

v1 Model Result

loss

MODEL V2

I made Neural Network with Convolutional Network becauase linear net doesn't reflect the facial expresssion emotion. But this network doesn't working well too...

model_v2

lierhero's People

Contributors

nandoras avatar yoonhero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sshuster

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.