Code Monkey home page Code Monkey logo

hackbj's Introduction

HackBJ Repository (HelloWorld)

Team

Children Emotion detector

We are HelloWorld!

We aim to help parents understand more about their children's emotions and mental well-being through seamless tracking of the emotions and FFT of the children.

Powered by OpenCV and Deep Learning.

Special thanks to:

Reference: https://github.com/petercunha/Emotion.git, StackOverFlow, SegmentFault

Installation and Execution

cd children-emotion python3 fft.py python3 emotions.py

The fft is to track the Fast Fourier Transform (High FF)

Cry signals can be described by their features within two common domains: (1) the time domain and (2) frequency domain. From either of the mentioned domains, a number of significant characteristics can be extracted (Scherer, 1982). In this section, we describe the different domain features applied at different levels of our work.

  1. Time-domain features a. Intensity. The intensity is also called the loudness, and it is related to the amplitude of the signal. It represents the amount of energy a sound has per unit area. The intensity is defined by the logarithmic measure of a signal section of length N in decibels as follows:

I=10  log (∑n=1Ns2(n)w(n)),

where w is a window function and s(n) is the amplitude of the signal.

Intensity is an essential feature widely used in different applications, such as music mood detection, and an accuracy rate of 99% is achieved, proving the good performance of intensity features.

This model is backed by the research paper by Scherer K. R. (1982). “ The assessment of vocal expression in infants and children,” in Measuring Emotions in Infants and Children.

The emotions is a computer vision to track emotions


Install these dependencies with `pip3 install <module name>`
-	tensorflow
-	numpy
-	scipy
-	opencv-python
-	pillow
-	pandas
-	matplotlib
-	h5py
-	keras

Once the dependencies are installed, you can run the project.
`python3 emotions.py`

To train new models for emotion classification

  • Download the fer2013.tar.gz file from here
  • Move the downloaded file to the datasets directory inside this repository.
  • Untar the file: tar -xzf fer2013.tar
  • Download train_emotion_classifier.py from orriaga's repo here
  • Run the train_emotion_classification.py file: python3 train_emotion_classifier.py

Deep Learning Model

The model used is from this research paper written by Octavio Arriaga, Paul G. Plöger, and Matias Valdenegro.

Model

Credit

  • Computer vision powered by OpenCV.
  • Neural network scaffolding powered by Keras with Tensorflow.
  • Convolutional Neural Network (CNN) deep learning architecture is from this research paper.
  • Pretrained Keras model and much of the OpenCV code provided by GitHub user oarriaga.

Future Improvement

Baby crying will last more than 93ms (Factor these facts to get more accurate baby cry detection)

hackbj's People

Contributors

dalsontws avatar jinmingteo avatar

Watchers

James Cloos avatar

Forkers

wan9wu

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.