Coder Social home page Coder Social logo

nik1806 / sober_drunk_classification Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 300.98 MB

The project aims to build a classifier that can classify for an infrared image as sober or mild drunk or drunk.

Jupyter Notebook 100.00%
drunk classifier pytorch svm

sober_drunk_classification's Introduction

Task

The task is to build a classifier that can classify for a given image as sober or mild drunk or drunk. In order to train or test, u can consider all four, front, side etc. at once to classify whether drunk or sober.

About dataset

Attached is the data of 41 people, taken from IR sensor. For each person, there are 4 types of images taken: sober, 20 mins after drinking, 40 mins after drinking, 1hr after drinking 4 glasses of wine. For each type for each person, 4 images are taken: front face, side face, eyes, and hand palm.

Installing dependencies

I have used virtual environments for handling the dependencies. Run the following command:

pip install -r requirements.txt

About the repo

  • This repository explores and presents 2 different approaches to tackle the problem.
  1. Using transfer learning - based on concepts of deep learning - achieving an accuracy of 87.5% (More details inside drunk_classification_dl directory).
  2. Using rudimentary methods of feature extraction and separate classifier - based on classical machine learning - achieving an accuracy of 58% (More details inside drunk_classification_ml directory)

sober_drunk_classification's People

Contributors

nik1806 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

sober_drunk_classification's Issues

Need to utilise all four different images

Incorporating all 4 sub-class images to classify to further improve the accuracy.

One way could be merging images. (it won't be able to increase the dataset length)

another could be to use multiple classifiers and join the results at the end using FC layers. (Something similar to Adaboosting)

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.