r/science • • Jun 26 '12

Google programmers deploy machine learning algorithm on YouTube. Computer teaches itself to recognize images of cats.

https://www.nytimes.com/2012/06/26/technology/in-a-big-network-of-computers-evidence-of-machine-learning.html
2.3k Upvotes

559 comments sorted by

View all comments

Show parent comment

9

u/spoolio Jun 26 '12 edited Jun 26 '12

The thing is, recognizing cats was actually a previously unsolved hard problem in computer vision.

(Edit: Now that I have seen the link to the paper, I should say that it is an unsolved hard problem in computer vision. The NYTimes hype aside, this result is an incremental improvement at object detection that still has very low accuracy compared to a human.)

-1

u/[deleted] Jun 26 '12

Oh, wise sage, please tell me what made previous cascaded feature detection algorithms unusable upon the almighty cat?

1

u/spoolio Jun 26 '12

Living things are hard. Known algorithms are still really bad at them. See this comment for citations.

Now. I don't know if that's the problem they're solving (the article is of course light on details), or if the Google algorithm is just picking up on other features of the video besides the cat to figure out that there's a cat.

2

u/[deleted] Jun 27 '12 edited Jun 27 '12

I think you're confusing what you're claiming.

First off, it's not that living things are hard, it's that classifiers working on any inputs where there's a significant amount of feature overlap between different classifiers, or where a wide variety of features can be used to classify the same object type, isn't easy. "Recognizing cats" isn't the problem; differentiating between cats and things that look like cats is. If differentiation is the problem, why not say that recognizing dogs is a hard problem in CV? Your distinction was completely arbitrary. We've had feature detectors for over a decade which could operate in real-time with acceptable false negative rates. The same problem occurs when trying to tell a banana from a plantain, a bicycle from a motorcycle (especially when there's a rider on them), or a golf ball from Epcot center, perspective notwithstanding. So, it's not a problem with "detecting cats", it's a problem with detecting things with a variety of features which should be detected by the same (cascade of) classifier(s), from a variety of reference points, and differentiating them from any other things that might be considered as having similar features. Detecting cats wasn't a "previously unsolved" problem, nor does this solution "solve" the problem as you present it. At all. Unless you believe 75% accuracy with no detail on the source of inaccuracies is a solution to a problem, where other approaches are not solutions at all.

There's also no indication that I can see from the paper, nor the article, that the detector does a good job of differentiating dogs from cats. Can you point out where it does? I skimmed over it, and did a search for anything relating to false positive rates, dogs, statistics behind their accuracy data, etc. There was nothing. It has better accuracy than alternate methods, but there's no indication that it was due to a decrease in false negatives, an increase in both true positives and false negatives but the rate of increase of false negatives was lower than that of true positives, or whether there was an increase in true positives which offset an increase in false positives. Can you tell me which was the case? The negative samples in the training set described in Zhang's paper make no mention of whether they were constructed from samples where the false positive was due to samples containing other animals. Considering the distinction isn't made in the paper, I highly doubt it was the case.

Besides, we're already seeing publications where not only the species, but breed are being determined with reasonable accuracy, so "cats vs. dogs" isn't a particularly unique wall in computer vision. It's just a convenient method of describing advances in detectors that apply to the infinite number of other cases where such a distinction is difficult.

The major breakthrough in this research has little to do with detecting cats, and everything to do with creating a feature detector using unsupervised learning with no context whatsoever given. That's being practically ignored.

So, again. What's specifically hard about detecting cats that isn't applicable to literally thousands of other cases of object detection?

1

u/CantRememberMyUserID Jun 26 '12

Like balls of string and laser dots and various household objects open halfway? Must be a cat in there!!

-5

u/jp007 Jun 26 '12 edited Jun 26 '12

Any technique is not specific to cats. Labeling it as such makes me think you don't know what you're talking about.

It's any image broken down into it's base parts cross referenced with comment text, anchor text, anything that they can get their hands on that has some kind of reference to it. They build image-to-word associations, and then can analyze an image, see if it matches a feature set that is precalculated to be associated to the word 'cat' and then bada-boom. Magic to the NY Times.

3

u/SpockLivesOn Jun 26 '12

Semantics. What he was saying is that the technique had never been done before in which a computer could recognize an image and define it by our standards.

1

u/[deleted] Jun 26 '12

What kind of rebuttal to a softball of an argument is that? You conceded that something was "semantics" when the paper clearly indicates that no metadata could even possibly be used as part of the training algorithm.

-4

u/jp007 Jun 26 '12

There are dozens of papers that describe various techniques that do this in one way or another, or a combination thereof. Ignorance of the literature isn't an excuse.

2

u/spoolio Jun 26 '12

You'd better be willing to cite some of that literature while you're making big claims and being a dick about it.

Computer vision has, thus far, been unable to distinguish many classes of living things that humans can easily distinguish, with any reasonable level of accuracy. A classic problem is telling cats from dogs (Razavi et al., 2007). This is the basis of Microsoft's ASIRRA captcha (Elson et al., 2007).

The CAPTCHA has been weakened by machine learning, sure. Golle (2008) can tell a cat from a dog with 83% accuracy. That still only breaks ASIRRA 10% of the time and is considerably below the level of a mentally impaired human.

Are you talking about Golle when you say I'm ignorant of the literature? It doesn't sound like it. You're pretty much saying the problem doesn't exist at all.

6

u/whosdamike Jun 26 '12

We train this network using model parallelism and asynchronous SGD on a clus- ter with 1,000 machines (16,000 cores) for three days. Contrary to what appears to be a widely-held intuition, our experimental results reveal that it is possible to train a face detector without having to label images as containing a face or not ... We also find that the same network is sensitive to other high-level concepts such as cat faces and human bodies.

Source

-6

u/jp007 Jun 26 '12

Right. You don't label the images explicitly, you infer it from contexts across thousands, perhaps millions of examples.

Have you ever been published in this field?

2

u/whosdamike Jun 26 '12 edited Jun 26 '12

Hey, I never claimed I was an expert. I'm an enthusiastic layman who quoted a source. If you find that I misinterpreted, I would be very happy to look at your citations in return. Here's the paper in full for you to peruse.

To me, it looks like they trained the algorithm on a dataset known to contain faces. Then they set it loose on a random other dataset, hoping it would identify faces in the brand new set. And they achieved some success!

THEN they took the same algorithm and looked for cats. And they found them, with a great degree of success!

That's a big difference than reading the word "cat" in a YouTube comment and guessing there's a cat there, I would say.

In the absence of knowing each other personally, I think it's valuable to try to treat each other with respect. Since we also don't know the other's professional credentials, perhaps it would be best to limit the conversation to verifiable citations. :)

Anyway, this is /r/science, and discussion should be openly welcomed! I look forward to reading your reply and expanding my knowledge on the subject. You seem to have some expertise, so I'd love to hear an informed opinion on the paper.

0

u/jp007 Jun 26 '12 edited Jun 26 '12

Sorry, I certainly didn't mean to be antagonistic but the late night wine seems to have drawn it out. Sincere apologies. I'm just less than impressed with the NY Time's, "OH Wow, CATS!" level of writing when it comes to topics of science, particularly this one. I certainly can appreciate your enthusiasm though!

To me, it looks like they trained the algorithm on a dataset known to contain faces. Then they set it loose on a random other dataset, hoping it would identify faces in the brand new set.

This is pretty much the basic regimen of almost all machine learning algorithms (at least as far as my training goes). It's the standard approach to train based on a known set of inputs and outputs, and then unleash it on a different dataset. Really it's all a matter of determining a novel feature set to extract from the given data, and then creating an appropriate, or custom, similarity measure algorithm (euclidean distance, for example, being the most basic), which matches a new input data set, to a known data profile--one which was created by analysis of the training data. Just cause it's cats and youtube doesn't really make much difference. It could be anything and anything else, depending on the features you want to extract and how you want to compare sets of them.

1

u/whosdamike Jun 26 '12

Well, the paper is linked when you're feeling a little more like delving into the details. It looks very interesting to me, I'd love to hear what you think!

1

u/gemini86 Jun 26 '12

grabs popcorn

Hold on guys, almost ready.

1

u/USBibble Jun 26 '12

Correct me if I'm wrong, but is this not how humans learn as well?

In the beginning we have no idea what we are looking at, then through context (or experience with some 'thing') we learn to discern the characteristics that define the 'thing' as such, or we recognize portions of some 'thing' and infer what the 'thing' might be...

0

u/dakeyraskhan Jun 26 '12

is it a problem ? I mean ok, it's not a ground breaking advance in machine learning, but it's still a pretty cool way to use google's huge database...

2

u/pohatu Jun 26 '12

It didn't use textual context. It was an unsupervised training on a sparse stacked autoencoder. They didn't say these are cats, these are not cats. They said here's a bunch of stuff, figure out what it is and it figured out, among other things, that a bunch of them are cats - meaning it learned what a cat face is. its actually more interesting than that because each layer figures out different levels if stuff. I don't even know what I'm talking about, but i know that this is much more interesting than you think it is.

The nyt probably does a poor job of explaining it. Read the discussion on /r/programming, or other websites to learn more.