Giter Club home page Giter Club logo

human-motion-recognition's Introduction

Human-Motion-Recognition

Human Motion Recognition using OneClass SVM (support vector machines)

OneClass SVM

I propose a motion recognition method using OneClass SVM (Support Vector Machines). The videoclips in the database are composed of frames on which I applied a filter called "Recursive filter". So the dataset is composed of filtered images. Using principal component analysis (PCA) the feature of human motion is extracted and then the OneClass SVM classifier is employed to classify the motion pattern which is in our case "WALKING" because we are using one class.

Recursive Filter

The method is based on recursive tracking and reducing noise in order to improve the tracking capability.

Preparing dataset

matrix_train = None
for image in os.listdir('/home/ahmed/Desktop/dataset1/train'):
    imgraw = cv2.imread(os.path.join('/home/ahmed/Desktop/dataset1/train', image), 0)
    imgvector = imgraw.reshape(160*120)
    try:
        matrix_train = np.vstack((matrix_train, imgvector))
    except:
        matrix_train = imgvector

Results !!!!

There are 3 status : "UNOCCUPIED" , "WALKING" and "THREAT" if the new data is different from the training set (which is walking)

This is the classification scheme where we can see the training (yellow dots) and testing (red dots) sets retain the same proportion and the the accuracy level of prediction is about 0.899/1.

Improvements !!!

As an Improvement, I have to add more classes to recognize more motions and push the accuracy more and more to 98%.

human-motion-recognition's People

Contributors

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