Skip to content

Implement quality metrics for image segmentation, classification and object detection #2345

Open

Description

@soupault

Description

I believe that these days a vast majority of engineers and researchers in the field of image processing are working on image segmentation, classification and object detection problems. That said, I think that it could be benefitial to have some typical quality metrics implemented in scikit-image.
Of course, there are already some simple metrics in scikit-learn, but none of them are applicable as is to the problems mentioned above. Image processing-related problems are quite specific in that sense.

As a good starting point, I'd suggest to implement some of the metrics used in ImageNet Challenge (see both http://image-net.org/challenges/LSVRC/2012/index and http://image-net.org/challenges/LSVRC/2016/index) and/or PASCAL VOC (see both http://host.robots.ox.ac.uk/pascal/VOC/voc2007/htmldoc/index.html and http://host.robots.ox.ac.uk/pascal/VOC/voc2012/htmldoc/index.html).

Perhaps, we should consider adding several different algorithms for each problem (e.g. for object detection there is a brilliant article B. Ozdemir, S. Aksoy, S. Eckert, M. Pesaresi, and D. Ehrlich, “Performance measures for object detection evaluation,” Pattern Recognit. Lett., vol. 31, no. 10, pp. 1128–1137, 2010. with 3 different quality metrics to be used in different cases).

If you have any thoughts on this topic, please, do share.

P.S. Let this GitHub issue be an umbrella topic for the mentioned things.

Activity

  1. soupault commented on Jan 10, 2017

    @soupault
    MemberAuthor

    @scikit-image/core any opinions on this?

  2. sciunto commented on Jan 10, 2017

    @sciunto
    Member

    I don't think it's clear to me what's a quality metric? Is it an analogue of the chi2 for a fit? Do you have a short illustration of the benefits?

  3. soupault commented on Apr 10, 2017

    @soupault
    MemberAuthor

    @sciunto I'm refering to metrics typically used for evaluation of segmentation quality (http://host.robots.ox.ac.uk/pascal/VOC/voc2012/htmldoc/devkit_doc.html#SECTION00064000000000000000, https://en.wikipedia.org/wiki/Jaccard_index), object detection quality (http://host.robots.ox.ac.uk/pascal/VOC/voc2012/htmldoc/devkit_doc.html#SECTION00054000000000000000, the ones from the article above), and multi-class classification quality (accuracy, precision, recall, http://host.robots.ox.ac.uk/pascal/VOC/voc2012/htmldoc/devkit_doc.html#SECTION00044000000000000000).

    Here is an example of metric from the aforementioned article:
    image
    Given 2 sets of bounding boxes (reference (in solid line) and estimated (in dashed line)), we perform bipartite graph matching with the highest overlapping area (in gray). Then, using this matching we compute the Jaccard index. This method gives a number which allow to compare object detection algorithms, and judge on which one is better with respect to considered method.

  4. soupault commented on Apr 21, 2017

    @soupault
    MemberAuthor

    Does not seem to be of any interest. Closing.

  5. reopened this on Apr 21, 2017
  6. jni commented on Apr 21, 2017

    @jni
    Member

    Actually I'm interested, and have very often considered contributing this. I just haven't had the time to do it! fwiw I have a few metrics implemented here, with BSD license:

    https://github.com/janelia-flyem/gala/blob/master/gala/evaluate.py

  7. soupault commented on Dec 19, 2018

    @soupault
    MemberAuthor

    For reference, a library with object segmentation metrics by Deepmind - https://github.com/deepmind/surface-distance .

  8. locked and limited conversation to collaborators on Oct 18, 2021
  9. unlocked this conversation on Apr 5, 2022
  10. reopened this on Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions