Coder Social home page Coder Social logo

davidea / leadership-detection-struct-svm Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 4.0 17.66 MB

An algorithm to detect leaders in social groups, based on Structured Support Vector Machines.

License: MIT License

MATLAB 100.00%
structured-learning structured-svm crowd-analysis

leadership-detection-struct-svm's Introduction

Structural SVM leadership detection

This work is part of my machine learning assignment in my master's. The aim of the project was to understand the concept of structured learning, and to apply it to learn how to recognize leaders in social groups moving in a crowd of people.

In particular, my group and I developed this Matlab software that takes advantage of time-lag features, Pagerank graph analysis and Structural Support Vector Machines.

A detailed description of the algorithm can be found in this draft paper.

A demonstration video is available on YouTube.

How to run?

Just checkout the repository and run the main script, which will load data from the provided sample dataset, perform time lag feature extraction, training and testing on new data. Please note that, despite the frames depicting crowd movements are given, this is not a computer vision project and such images are used just for debugging purposes. In fact, training data is stored in two files:

  • data/trajectories.txt: stores the trajectories described by people in the following format:
frame_number pedestrian_id x_coord 0 y_coord 0 0 0
  • data/clusters.txt: stores social group information in each line, as a list of pedestrians ids.

leadership-detection-struct-svm's People

Contributors

davidea avatar

Stargazers

 avatar

Watchers

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