Close

Second results with object detector using Histogram of Oriented Gradients (HOG) and Linear Support Vector Machines (SVM)

A project log for Elephant AI

a system to prevent human-elephant conflict by detecting elephants using machine vision, and warning humans and/or repelling elephants

Neil K. SheridanNeil K. Sheridan 03/24/2017 at 21:424 Comments

This time I used 700 negative images from the CalTech256 dataset, which included images of animals (chimps, llamas, gorillas, kangaroos, horses, elks, etc.), in addition to the mostly landscapes and urban scenes I'd used from the CalTech101 dataset last time. I actually had around 5300 images in this dataset, so these 700 were selected pseudo-randomly from the set. In addition, I did hard-negative mining. But it kept crashing the machine I was using in OracleVM, so I only did it for 5 images!

Next I trained the object detector using the 700 negative images, the positive elephant images (from the CalTech 101 dataset), and the hard-negative images. Would the false-positive rate improve? Would we still detect cows and rhinos?!

Unfortunately yes, it detected the rhino again!

And even worse, it detected an elk! The elks were part of the negative training set. Although we don't know if they were used, since we selected 700 negative-training images randomly from a dataset of ~5300.

At least it didn't detect a tractor!

And it was still detecting elephants, no false-negatives!

It really wasn't so bad considering that I only used 700 negative training images, and hard-negative mining on just 5 images!!! The entire training from feature-extraction, thru hard-negative mining, to training the object detector, took around 1hr. It is going to take much longer than that to train an efficacious object detector using HOG and SVM!

Discussions

davedarko wrote 04/02/2017 at 03:22 point

I still wouldn't be so sad about that Rhino being detected, they seem equally dangerous. But I understand its not part of your goal, so good luck! Great job!

  Are you sure? yes | no

Neil K. Sheridan wrote 04/02/2017 at 19:41 point

hehe, yes they are dangerous! I wouldn't like to be chased by one! Thanks :-)

  Are you sure? yes | no

Neil K. Sheridan wrote 03/24/2017 at 23:37 point

Of course :-) Isn't it just!

  Are you sure? yes | no

Thomas wrote 03/24/2017 at 22:56 point

ML is hard. Please keep it up!

  Are you sure? yes | no