{
  "id": 228245,
  "title": "Are 'cider_apple_rust' and 'rust' just two labels for the same class?",
  "url": "/competitions/plant-pathology-2021-fgvc8/discussion/228245",
  "author_name": "",
  "post_date": "2021-03-24T00:37:51.508396400Z",
  "votes": 10,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi There,</p>\n<p>I have talked about this issue in a couple of comments to <a href=\"https://www.kaggle.com/nickuzmenkov\" target=\"_blank\">@nickuzmenkov</a> and <a href=\"https://www.kaggle.com/buinyi\" target=\"_blank\">@buinyi</a> notebooks and decided to make it as a discussion so that more people and the host <a href=\"https://www.kaggle.com/fruitpathology\" target=\"_blank\">@fruitpathology</a> might help all of us to figure it out.</p>\n<p>What I mean is, there are two class labels <strong>cider_apple_rust</strong> and <strong>rust</strong> and, interestingly enough, the class label <strong>rust</strong> appears only among images with multiple class labels while the class label <strong>cider_apple_rust</strong> appears only with single class labeled images. In particular, the class label <strong>rust</strong> appears only with these two combinations of labels:</p>\n<ol>\n<li><strong>rust</strong> with <strong>frog_eye_leaf_spot</strong> in 120 images</li>\n<li><strong>rust</strong> with <strong>complex</strong> in 97 images</li>\n</ol>\n<p>Here: numbers of images quoted are before deleting any duplicates, i.e., as they are in the original metadata CSV file.</p>\n<p>What if <strong>rust</strong> and <strong>cider_apple_rust</strong> are the same class? I looked at images with both of these labels present and the spots which look like rust do look alike on images labeled <strong>cider_apple_rust</strong> and <strong>rust frog_eye_leaf_spot</strong> or <strong>rust complex</strong>.</p>\n<p>If the same pattern of assigning the labels for the class rust persists in the test data, what it might mean is that whenever a prediction is made such that it is for just single class rust then we might need to use <strong>cider_apple_rust</strong> in the prediction string. However, in a situation when prediction is made such that besides rust other classes detected, then for the rust class we might need to use <strong>rust</strong> in the prediction string.</p>\n<p>I investigated a little bit this possibility in this <a href=\"https://www.kaggle.com/datasciencegeek/eda-plantpathology2021-fgvc8\" target=\"_blank\">notebook</a>. Especial coincidence which I noted when I was exploring duplicate images I detected is that most of them have inconsistent target labels and in particular those inconsistencies were among images labeled as <strong>cider_apple_rust</strong> vs <strong>rust complex</strong> which speaks more to the possibility that <strong>cider_apple_rust</strong> and <strong>rust</strong> labels might belong to the same class.</p>",
  "messages": [
    {
      "id": "1250325",
      "postDate": "03/24/2021 00:37:51",
      "content": "<p>Hi There,</p>\n<p>I have talked about this issue in a couple of comments to <a href=\"https://www.kaggle.com/nickuzmenkov\" target=\"_blank\">@nickuzmenkov</a> and <a href=\"https://www.kaggle.com/buinyi\" target=\"_blank\">@buinyi</a> notebooks and decided to make it as a discussion so that more people and the host <a href=\"https://www.kaggle.com/fruitpathology\" target=\"_blank\">@fruitpathology</a> might help all of us to figure it out.</p>\n<p>What I mean is, there are two class labels <strong>cider_apple_rust</strong> and <strong>rust</strong> and, interestingly enough, the class label <strong>rust</strong> appears only among images with multiple class labels while the class label <strong>cider_apple_rust</strong> appears only with single class labeled images. In particular, the class label <strong>rust</strong> appears only with these two combinations of labels:</p>\n<ol>\n<li><strong>rust</strong> with <strong>frog_eye_leaf_spot</strong> in 120 images</li>\n<li><strong>rust</strong> with <strong>complex</strong> in 97 images</li>\n</ol>\n<p>Here: numbers of images quoted are before deleting any duplicates, i.e., as they are in the original metadata CSV file.</p>\n<p>What if <strong>rust</strong> and <strong>cider_apple_rust</strong> are the same class? I looked at images with both of these labels present and the spots which look like rust do look alike on images labeled <strong>cider_apple_rust</strong> and <strong>rust frog_eye_leaf_spot</strong> or <strong>rust complex</strong>.</p>\n<p>If the same pattern of assigning the labels for the class rust persists in the test data, what it might mean is that whenever a prediction is made such that it is for just single class rust then we might need to use <strong>cider_apple_rust</strong> in the prediction string. However, in a situation when prediction is made such that besides rust other classes detected, then for the rust class we might need to use <strong>rust</strong> in the prediction string.</p>\n<p>I investigated a little bit this possibility in this <a href=\"https://www.kaggle.com/datasciencegeek/eda-plantpathology2021-fgvc8\" target=\"_blank\">notebook</a>. Especial coincidence which I noted when I was exploring duplicate images I detected is that most of them have inconsistent target labels and in particular those inconsistencies were among images labeled as <strong>cider_apple_rust</strong> vs <strong>rust complex</strong> which speaks more to the possibility that <strong>cider_apple_rust</strong> and <strong>rust</strong> labels might belong to the same class.</p>",
      "rawMarkdown": "Hi There,\n\nI have talked about this issue in a couple of comments to @nickuzmenkov and @buinyi notebooks and decided to make it as a discussion so that more people and the host @fruitpathology might help all of us to figure it out.\n\nWhat I mean is, there are two class labels **cider_apple_rust** and **rust** and, interestingly enough, the class label **rust** appears only among images with multiple class labels while the class label **cider_apple_rust** appears only with single class labeled images. In particular, the class label **rust** appears only with these two combinations of labels:\n\n1. **rust** with **frog_eye_leaf_spot** in 120 images\n2. **rust** with **complex** in 97 images\n\nHere: numbers of images quoted are before deleting any duplicates, i.e., as they are in the original metadata CSV file.\n\nWhat if **rust** and **cider_apple_rust** are the same class? I looked at images with both of these labels present and the spots which look like rust do look alike on images labeled **cider_apple_rust** and **rust frog_eye_leaf_spot** or **rust complex**.\n\nIf the same pattern of assigning the labels for the class rust persists in the test data, what it might mean is that whenever a prediction is made such that it is for just single class rust then we might need to use **cider_apple_rust** in the prediction string. However, in a situation when prediction is made such that besides rust other classes detected, then for the rust class we might need to use **rust** in the prediction string.\n\nI investigated a little bit this possibility in this [notebook](https://www.kaggle.com/datasciencegeek/eda-plantpathology2021-fgvc8). Especial coincidence which I noted when I was exploring duplicate images I detected is that most of them have inconsistent target labels and in particular those inconsistencies were among images labeled as **cider_apple_rust** vs **rust complex** which speaks more to the possibility that **cider_apple_rust** and **rust** labels might belong to the same class.",
      "votes": null
    },
    {
      "id": "1251112",
      "postDate": "03/24/2021 13:52:41",
      "content": "<p>Yes, cider apple rust and rust are labels for same class. The label rust is given for images with multi class labels and the label cider apple rust is given for single class labels.</p>",
      "rawMarkdown": "Yes, cider apple rust and rust are labels for same class. The label rust is given for images with multi class labels and the label cider apple rust is given for single class labels.",
      "votes": null
    },
    {
      "id": "1251226",
      "postDate": "03/24/2021 15:40:52",
      "content": "<p>Thank you very much for clarifying it for us!</p>",
      "rawMarkdown": "Thank you very much for clarifying it for us!",
      "votes": null
    },
    {
      "id": "1251327",
      "postDate": "03/24/2021 17:20:51",
      "content": "<p>I'm working on an update that will merge the two labels. Thanks again for the catch!</p>",
      "rawMarkdown": "I'm working on an update that will merge the two labels. Thanks again for the catch!",
      "votes": null
    },
    {
      "id": "1251400",
      "postDate": "03/24/2021 18:32:48",
      "content": "<p>Thank you, <a href=\"https://www.kaggle.com/datasciencegeek\" target=\"_blank\">@datasciencegeek</a>, for a great catch!<br>\nFirstly I thought that there are multiple apple sorts in the pictures, so in a rather fancy pipeline we have to first detect whether it's a cider apple tree or not (BTW, is it possible to do so having only a single leaf picture even for a human specialist?). But now things appear to be even worse. Too many strange points in this competition.</p>",
      "rawMarkdown": "Thank you, @datasciencegeek, for a great catch!\nFirstly I thought that there are multiple apple sorts in the pictures, so in a rather fancy pipeline we have to first detect whether it's a cider apple tree or not (BTW, is it possible to do so having only a single leaf picture even for a human specialist?). But now things appear to be even worse. Too many strange points in this competition.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1251112,
      "author_name": "fruitpathology",
      "author_url": "",
      "post_date": "03/24/2021 13:52:41",
      "content": "<p>Yes, cider apple rust and rust are labels for same class. The label rust is given for images with multi class labels and the label cider apple rust is given for single class labels.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1251226,
          "author_name": "datasciencegeek",
          "author_url": "",
          "post_date": "03/24/2021 15:40:52",
          "content": "<p>Thank you very much for clarifying it for us!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1251327,
          "author_name": "sohier",
          "author_url": "",
          "post_date": "03/24/2021 17:20:51",
          "content": "<p>I'm working on an update that will merge the two labels. Thanks again for the catch!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1251400,
      "author_name": "nickuzmenkov",
      "author_url": "",
      "post_date": "03/24/2021 18:32:48",
      "content": "<p>Thank you, <a href=\"https://www.kaggle.com/datasciencegeek\" target=\"_blank\">@datasciencegeek</a>, for a great catch!<br>\nFirstly I thought that there are multiple apple sorts in the pictures, so in a rather fancy pipeline we have to first detect whether it's a cider apple tree or not (BTW, is it possible to do so having only a single leaf picture even for a human specialist?). But now things appear to be even worse. Too many strange points in this competition.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1250325": "Hi There,\n\nI have talked about this issue in a couple of comments to @nickuzmenkov and @buinyi notebooks and decided to make it as a discussion so that more people and the host @fruitpathology might help all of us to figure it out.\n\nWhat I mean is, there are two class labels **cider_apple_rust** and **rust** and, interestingly enough, the class label **rust** appears only among images with multiple class labels while the class label **cider_apple_rust** appears only with single class labeled images. In particular, the class label **rust** appears only with these two combinations of labels:\n\n1. **rust** with **frog_eye_leaf_spot** in 120 images\n2. **rust** with **complex** in 97 images\n\nHere: numbers of images quoted are before deleting any duplicates, i.e., as they are in the original metadata CSV file.\n\nWhat if **rust** and **cider_apple_rust** are the same class? I looked at images with both of these labels present and the spots which look like rust do look alike on images labeled **cider_apple_rust** and **rust frog_eye_leaf_spot** or **rust complex**.\n\nIf the same pattern of assigning the labels for the class rust persists in the test data, what it might mean is that whenever a prediction is made such that it is for just single class rust then we might need to use **cider_apple_rust** in the prediction string. However, in a situation when prediction is made such that besides rust other classes detected, then for the rust class we might need to use **rust** in the prediction string.\n\nI investigated a little bit this possibility in this [notebook](https://www.kaggle.com/datasciencegeek/eda-plantpathology2021-fgvc8). Especial coincidence which I noted when I was exploring duplicate images I detected is that most of them have inconsistent target labels and in particular those inconsistencies were among images labeled as **cider_apple_rust** vs **rust complex** which speaks more to the possibility that **cider_apple_rust** and **rust** labels might belong to the same class.",
    "1251112": "Yes, cider apple rust and rust are labels for same class. The label rust is given for images with multi class labels and the label cider apple rust is given for single class labels.",
    "1251226": "Thank you very much for clarifying it for us!",
    "1251327": "I'm working on an update that will merge the two labels. Thanks again for the catch!",
    "1251400": "Thank you, @datasciencegeek, for a great catch!\nFirstly I thought that there are multiple apple sorts in the pictures, so in a rather fancy pipeline we have to first detect whether it's a cider apple tree or not (BTW, is it possible to do so having only a single leaf picture even for a human specialist?). But now things appear to be even worse. Too many strange points in this competition."
  },
  "source": "meta"
}