If I have a video dataset of a specific action , how could I use them to train a classifier that could be used later to classify this action.
2 Answers
The question is very generic. In general, there is no foul proof way of training a classifier that will work for everything. It highly depends on the data you are working with.
Here is the 'generic' pipeline:
- extract features from the video
- label your features (positive for the action you are looking for; negative otherwise)
- split your data into 2 (or 3) sets. One for training, one for testing and the other optionally for validation
- train a classifier on the labeled examples (e.g. SVM, Neural Network, Nearest Neighbor ...)
- validate the results on the validation data, if that is appropriate for the algorithm
- test on data you haven't used for training.
You can start with some machine learning tools here http://www.cs.waikato.ac.nz/ml/weka/
Make sure you never touch the test data for any other purposes than testing
Good luck
-
if you have a reference ( tutorial or lecture to do every step will be great) Aug 19, 2012 at 22:14
-
Almost 10 years later, here's an updated answer.
- Set up a camera and collect raw video data
- Save it somewhere in form of single frames. Do this yourself locally or using a cloud bucket or use a service like Sieve API. Helpful repo linked here.
- Export from Sieve or cloud bucket to get data labeled. Do this yourself or using some service like Scale Rapid.
- Split your dataset into train, test, and validation.
- Train a classifier on the labeled samples. Use transfer learning over some existing model and fine-tune just the last few layers.
- Run your model over the test set after each training epoch and save the one with the best test set performance.
- Evaluate your model at the end using the validation set.
There are many repos that can help you get started: https://github.com/weiaicunzai/awesome-image-classification
The two things that can help you ensure best results include 1. high quality labeled data and 2. a diverse, curated dataset. That's what Sieve can help with!