Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to categorize True Negatives in sliding window object detection? [closed]

Tags:

I'm gathering results from my image detector algorithm. So basically what I do is that, from a set of images (with the size of 320 x 480), I would run a sliding window of 64x128 thru it, and also under a number of predefined scales.

I understand that:

  • True Positives = when my detected window overlaps (within defined intersection size / centroid) with the ground-truth (annotated bounding boxes)
  • False Positives = when the algorithm gives me positive windows, which are outside of the grond truth.
  • False Negatives = when it failed me to give positive window, while the ground truth annotation states that there's an object.

But what about True Negatives ? Are these true negatives all the windows that my classifier gives me negative results ? That sounds weird, since I'm sliding a small window (64x128) by 4 pixels at a time, and I've around 8 different scales used in detection. If I were to do that, then I'd have lots of true negatives per image.

Or do I prepare a set of pure negative images (no objects / human at all), where I just slide thru, and if there's one or more positive detections in each of these images, I'd count it as False Negative, and vice versa ?

Here's an example image (with green rects as the ground truth)

Example image, not real result

like image 468
sub_o Avatar asked Apr 29 '13 05:04

sub_o


People also ask

What is true negative in object detection?

True Negative (TN): TN is every part of the image where we did not predict an object. This metrics is not useful for object detection, hence we ignore TN.

What are true negatives?

True Negative (TN): A true positive is an outcome where the model correctly predicts the positive class. Similarly, a true negative is an outcome where the model correctly predicts the negative class. A false positive is an outcome where the model incorrectly predicts the positive class.

How can you reduce false positives in object detection?

False Positive is reduced by training on weakly labelled negative samples. Negative examples are also used in Contrastive Learning type unsupervised methods. Where distance between positive and negative images are increased in the latent space [12].

What is sliding window in object detection?

The sliding window model is conceptually simple: independently classify all image patches as being object or non-object. Sliding window classification is the dominant paradigm in object detection and for one object category in particular -- faces -- it is one of the most noticeable successes of computer vision.


1 Answers

I've always seen the four terms as the following:

  • False negative; Result should have been positive, but is negative.
  • False positive; Result should have been negative, but is positive.
  • True positive; Result should have been positive and is positive.
  • True negative; Result should have been negative and is negative.

In your case, if I understand correctly, you are trying to detect if there are objects in your image. False negative would therefore mean that there was a object (result should be positive) but the algorithm did not detect it (and therefore returned negative). A true negative is simply the algorithm correctly stating that the area it checked does not hold an object.

You can choose to ignore negative values, but these could be used to further train your algorithm (Eg; using an algorithm that looks for both, instead of setting everything that is not recognised to false).

like image 199
Nallath Avatar answered Oct 18 '22 20:10

Nallath