{
  "id": 181815,
  "title": "predicting a number of labels, at both the image and study level",
  "url": "/competitions/rsna-str-pulmonary-embolism-detection/discussion/181815",
  "author_name": "roshaan zafar",
  "post_date": "2020-09-10T08:44:57.159000",
  "votes": 2,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi <br>\nI am beginner here so I wanted to know what is meant by at image level and study level? Does it mean the output we should have both contains the combination of image labels and labels from csv file? or what?<br>\nkindly please guide me, any sort of help will be beneficial<br>\nthank you</p>",
  "messages": [
    {
      "id": 1005125,
      "postDate": "2020-09-10T09:10:58.503Z",
      "content": "<p>Each <strong>study</strong> has multiple <strong>images</strong>.  We have to predict labels for images as well as studies. </p>\n<ul>\n<li><p>Image level - predict for each image i.e SOPInstanceUID<br>\nLabels to predict : <em>pe_present_on_image</em></p></li>\n<li><p>Study level - predict for each study i.e StudyInstanceUID<br>\nLabels to predict : <em>negative_exam_for_pe</em> , <em>indeterminate</em>,  <em>rv_lv_ratio_gte_1</em>, <em>rv_lv_ratio_lt_1</em>, <em>leftsided_pe</em>, <em>rightsided_pe</em>,  <em>central_pe</em>,  <em>chronic_pe</em>,  <em>acute_and_chronic_pe</em></p></li>\n</ul>",
      "rawMarkdown": "Each **study** has multiple **images**.  We have to predict labels for images as well as studies. \n\n- Image level - predict for each image i.e SOPInstanceUID\nLabels to predict : *pe_present_on_image*\n\n- Study level - predict for each study i.e StudyInstanceUID\nLabels to predict : *negative_exam_for_pe* , *indeterminate*,  *rv_lv_ratio_gte_1*, *rv_lv_ratio_lt_1*, *leftsided_pe*, *rightsided_pe*,  *central_pe*,  *chronic_pe*,  *acute_and_chronic_pe*",
      "votes": 3,
      "replies": [
        {
          "id": 1009519,
          "postDate": "2020-09-14T04:25:39.870Z",
          "content": "<p>and to submit do we need to map those predicted labels into one as in submission sample csv it has only one column belong to LABELS.<br>\nin simple words how many predicted labels we need to submit by submission csv?</p>",
          "rawMarkdown": "and to submit do we need to map those predicted labels into one as in submission sample csv it has only one column belong to LABELS.\nin simple words how many predicted labels we need to submit by submission csv?",
          "replies": [
            {
              "id": 1009901,
              "postDate": "2020-09-14T10:59:03.547Z",
              "content": "<p>For each image - predict one label (PE on image)<br>\nFor each study - predict 9 labels (one per row):<br>\n  negative_exam_for_pe , <br>\n  indeterminate,<br>\n  rv_lv_ratio_gte_1, <br>\n  rv_lv_ratio_lt_1, <br>\n  leftsided_pe, <br>\n  rightsided_pe, <br>\n  central_pe, <br>\n  chronic_pe, <br>\n  acute_and_chronic_pe</p>\n<p>The \"Public\" submission file has 152,703 rows:<br>\n650 studies x 9 labels = 5,850 rows<br>\n146,853 images<br>\n146853+5850=152,703</p>\n<p>The real submission file (that we can never see) has 1517 studies (posted by Competition host), so is about 2.33 times the size.</p>\n<p>Typically the order of a submission file doesn't matter, but I haven't tested that in this competition. Typically you must have all rows with the correct id,label; even if you guess zero for some rows as a placeholder.</p>\n<p>For now, rather that waste processing time, I am running my tests on about 40000 hidden test images and leaving the rest of the submission file as a default value. That way I can see if I am making progress (and if my code actually works), without wasting GPU time.</p>\n<p>-Rich</p>",
              "rawMarkdown": "For each image - predict one label (PE on image)\nFor each study - predict 9 labels (one per row):\n  negative_exam_for_pe , \n  indeterminate,\n  rv_lv_ratio_gte_1, \n  rv_lv_ratio_lt_1, \n  leftsided_pe, \n  rightsided_pe, \n  central_pe, \n  chronic_pe, \n  acute_and_chronic_pe\n\nThe \"Public\" submission file has 152,703 rows:\n650 studies x 9 labels = 5,850 rows\n146,853 images\n146853+5850=152,703\n\nThe real submission file (that we can never see) has 1517 studies (posted by Competition host), so is about 2.33 times the size.\n\nTypically the order of a submission file doesn't matter, but I haven't tested that in this competition. Typically you must have all rows with the correct id,label; even if you guess zero for some rows as a placeholder.\n\nFor now, rather that waste processing time, I am running my tests on about 40000 hidden test images and leaving the rest of the submission file as a default value. That way I can see if I am making progress (and if my code actually works), without wasting GPU time.\n\n-Rich\n",
              "votes": 3
            },
            {
              "id": 1011452,
              "postDate": "2020-09-15T13:28:58.830Z",
              "content": "<p><a href=\"https://www.kaggle.com/richardepstein\" target=\"_blank\">@richardepstein</a> great explanation. It's easy to understand prediction at the slice/image level, we will give the image and its respective labels to model for training and then use the trained model for prediction at the image level but I am really confused about prediction at the study level since each study has multiple images and targets associated with it so how we will feed it to model as a single input/target row?</p>",
              "rawMarkdown": "@richardepstein great explanation. It's easy to understand prediction at the slice/image level, we will give the image and its respective labels to model for training and then use the trained model for prediction at the image level but I am really confused about prediction at the study level since each study has multiple images and targets associated with it so how we will feed it to model as a single input/target row?"
            }
          ]
        }
      ]
    },
    {
      "id": 1005089,
      "postDate": "2020-09-10T08:44:57.160Z",
      "content": "<p>Hi <br>\nI am beginner here so I wanted to know what is meant by at image level and study level? Does it mean the output we should have both contains the combination of image labels and labels from csv file? or what?<br>\nkindly please guide me, any sort of help will be beneficial<br>\nthank you</p>",
      "rawMarkdown": "Hi \nI am beginner here so I wanted to know what is meant by at image level and study level? Does it mean the output we should have both contains the combination of image labels and labels from csv file? or what?\nkindly please guide me, any sort of help will be beneficial\nthank you",
      "votes": 2
    }
  ],
  "comments": [
    {
      "id": 1005125,
      "author_name": "Jebastin Nadar",
      "author_url": "",
      "post_date": "2020-09-10T09:10:58.503000",
      "content": "<p>Each <strong>study</strong> has multiple <strong>images</strong>.  We have to predict labels for images as well as studies. </p>\n<ul>\n<li><p>Image level - predict for each image i.e SOPInstanceUID<br>\nLabels to predict : <em>pe_present_on_image</em></p></li>\n<li><p>Study level - predict for each study i.e StudyInstanceUID<br>\nLabels to predict : <em>negative_exam_for_pe</em> , <em>indeterminate</em>,  <em>rv_lv_ratio_gte_1</em>, <em>rv_lv_ratio_lt_1</em>, <em>leftsided_pe</em>, <em>rightsided_pe</em>,  <em>central_pe</em>,  <em>chronic_pe</em>,  <em>acute_and_chronic_pe</em></p></li>\n</ul>",
      "votes": 3,
      "replies": [
        {
          "id": 1009519,
          "author_name": "manpreet singh",
          "author_url": "",
          "post_date": "2020-09-14T04:25:39.870000",
          "content": "<p>and to submit do we need to map those predicted labels into one as in submission sample csv it has only one column belong to LABELS.<br>\nin simple words how many predicted labels we need to submit by submission csv?</p>",
          "votes": 0,
          "replies": [
            {
              "id": 1009901,
              "author_name": "quadcore/Richard Epstein",
              "author_url": "",
              "post_date": "2020-09-14T10:59:03.547000",
              "content": "<p>For each image - predict one label (PE on image)<br>\nFor each study - predict 9 labels (one per row):<br>\n  negative_exam_for_pe , <br>\n  indeterminate,<br>\n  rv_lv_ratio_gte_1, <br>\n  rv_lv_ratio_lt_1, <br>\n  leftsided_pe, <br>\n  rightsided_pe, <br>\n  central_pe, <br>\n  chronic_pe, <br>\n  acute_and_chronic_pe</p>\n<p>The \"Public\" submission file has 152,703 rows:<br>\n650 studies x 9 labels = 5,850 rows<br>\n146,853 images<br>\n146853+5850=152,703</p>\n<p>The real submission file (that we can never see) has 1517 studies (posted by Competition host), so is about 2.33 times the size.</p>\n<p>Typically the order of a submission file doesn't matter, but I haven't tested that in this competition. Typically you must have all rows with the correct id,label; even if you guess zero for some rows as a placeholder.</p>\n<p>For now, rather that waste processing time, I am running my tests on about 40000 hidden test images and leaving the rest of the submission file as a default value. That way I can see if I am making progress (and if my code actually works), without wasting GPU time.</p>\n<p>-Rich</p>",
              "votes": 3,
              "replies": []
            },
            {
              "id": 1011452,
              "author_name": "Abdur Rehman",
              "author_url": "",
              "post_date": "2020-09-15T13:28:58.830000",
              "content": "<p><a href=\"https://www.kaggle.com/richardepstein\" target=\"_blank\">@richardepstein</a> great explanation. It's easy to understand prediction at the slice/image level, we will give the image and its respective labels to model for training and then use the trained model for prediction at the image level but I am really confused about prediction at the study level since each study has multiple images and targets associated with it so how we will feed it to model as a single input/target row?</p>",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1005125": "Each **study** has multiple **images**.  We have to predict labels for images as well as studies. \n\n- Image level - predict for each image i.e SOPInstanceUID\nLabels to predict : *pe_present_on_image*\n\n- Study level - predict for each study i.e StudyInstanceUID\nLabels to predict : *negative_exam_for_pe* , *indeterminate*,  *rv_lv_ratio_gte_1*, *rv_lv_ratio_lt_1*, *leftsided_pe*, *rightsided_pe*,  *central_pe*,  *chronic_pe*,  *acute_and_chronic_pe*",
    "1005089": "Hi \nI am beginner here so I wanted to know what is meant by at image level and study level? Does it mean the output we should have both contains the combination of image labels and labels from csv file? or what?\nkindly please guide me, any sort of help will be beneficial\nthank you"
  }
}