{
  "id": 193505,
  "title": "10th Place Solution with code",
  "url": "/competitions/rsna-str-pulmonary-embolism-detection/discussion/193505",
  "author_name": "OrKatz",
  "post_date": "2020-10-27T12:03:10.439000",
  "votes": 44,
  "comment_count": 21,
  "views": 0,
  "content": "<p><strong>code</strong> - <a href=\"https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection\" target=\"_blank\">https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection</a><br>\n<strong>Full Pipeline</strong><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1094066%2F2c42c343c91bc3fd09f089c43fd8c17d%2FRSNA.png?generation=1603799132907836&amp;alt=media\" alt=\"\"></p>\n<p><strong>Overall Strategy</strong></p>\n<ol>\n<li>Train an image-level 2d CNN and save to hard drive features</li>\n<li>Train an exam-level 3d CNN and save to hard drive features</li>\n<li>input the 2d and 3d features into sequence model</li>\n</ol>\n<p><strong>2D CNN Modeling</strong></p>\n<ol>\n<li>Data pre-processing - based on Ian Pan: <a href=\"https://www.kaggle.com/c/rsna-str-pulmonary-embolism-detection/discussion/182930\" target=\"_blank\">https://www.kaggle.com/c/rsna-str-pulmonary-embolism-detection/discussion/182930</a></li>\n<li>augmentation - RandomBrightnessContrast, HorizontalFlip, ElasticTransform, GridDistortion, VerticalFlip, ShiftScaleRotate, RandomCrop</li>\n<li>cnn models - efficientnet-b3, efficientnet-b4, efficientnet-b5</li>\n</ol>\n<p><strong>3D CNN Modeling</strong><br>\nbased on <a href=\"https://www.kaggle.com/boliu0\" target=\"_blank\">@boliu0</a> pipline <a href=\"https://www.kaggle.com/boliu0/monai-3d-cnn-training\" target=\"_blank\">https://www.kaggle.com/boliu0/monai-3d-cnn-training</a></p>\n<p><strong>Sequence Model</strong><br>\nInput - Slice embeddings from multi 2d models + exam embeddings from 3d models<br>\nloss - rsna metric</p>",
  "messages": [
    {
      "id": 1061877,
      "postDate": "2020-10-27T12:03:10.440Z",
      "content": "<p><strong>code</strong> - <a href=\"https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection\" target=\"_blank\">https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection</a><br>\n<strong>Full Pipeline</strong><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1094066%2F2c42c343c91bc3fd09f089c43fd8c17d%2FRSNA.png?generation=1603799132907836&amp;alt=media\" alt=\"\"></p>\n<p><strong>Overall Strategy</strong></p>\n<ol>\n<li>Train an image-level 2d CNN and save to hard drive features</li>\n<li>Train an exam-level 3d CNN and save to hard drive features</li>\n<li>input the 2d and 3d features into sequence model</li>\n</ol>\n<p><strong>2D CNN Modeling</strong></p>\n<ol>\n<li>Data pre-processing - based on Ian Pan: <a href=\"https://www.kaggle.com/c/rsna-str-pulmonary-embolism-detection/discussion/182930\" target=\"_blank\">https://www.kaggle.com/c/rsna-str-pulmonary-embolism-detection/discussion/182930</a></li>\n<li>augmentation - RandomBrightnessContrast, HorizontalFlip, ElasticTransform, GridDistortion, VerticalFlip, ShiftScaleRotate, RandomCrop</li>\n<li>cnn models - efficientnet-b3, efficientnet-b4, efficientnet-b5</li>\n</ol>\n<p><strong>3D CNN Modeling</strong><br>\nbased on <a href=\"https://www.kaggle.com/boliu0\" target=\"_blank\">@boliu0</a> pipline <a href=\"https://www.kaggle.com/boliu0/monai-3d-cnn-training\" target=\"_blank\">https://www.kaggle.com/boliu0/monai-3d-cnn-training</a></p>\n<p><strong>Sequence Model</strong><br>\nInput - Slice embeddings from multi 2d models + exam embeddings from 3d models<br>\nloss - rsna metric</p>",
      "rawMarkdown": "**code** - https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection\n**Full Pipeline**\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1094066%2F2c42c343c91bc3fd09f089c43fd8c17d%2FRSNA.png?generation=1603799132907836&alt=media)\n\n**Overall Strategy**\n1. Train an image-level 2d CNN and save to hard drive features\n2. Train an exam-level 3d CNN and save to hard drive features\n3. input the 2d and 3d features into sequence model\n\n**2D CNN Modeling**\n1. Data pre-processing - based on Ian Pan: https://www.kaggle.com/c/rsna-str-pulmonary-embolism-detection/discussion/182930\n2. augmentation - RandomBrightnessContrast, HorizontalFlip, ElasticTransform, GridDistortion, VerticalFlip, ShiftScaleRotate, RandomCrop\n3. cnn models - efficientnet-b3, efficientnet-b4, efficientnet-b5\n\n**3D CNN Modeling**\nbased on @boliu0 pipline https://www.kaggle.com/boliu0/monai-3d-cnn-training\n\n**Sequence Model**\nInput - Slice embeddings from multi 2d models + exam embeddings from 3d models\nloss - rsna metric\n\n\n\n\n\n\n",
      "votes": 44
    },
    {
      "id": 1062004,
      "postDate": "2020-10-27T13:53:41.957Z",
      "content": "<p>Congrats for the gold medal!  I'm glad to see my MONAI 3D model was used in a gold medal solution.</p>",
      "rawMarkdown": "Congrats for the gold medal!  I'm glad to see my MONAI 3D model was used in a gold medal solution.",
      "votes": 5
    },
    {
      "id": 1061904,
      "postDate": "2020-10-27T12:28:35.827Z",
      "content": "<p>Congratulations! Arguably the best position you can have on this leaderboard ;).</p>",
      "rawMarkdown": "Congratulations! Arguably the best position you can have on this leaderboard ;).",
      "votes": 4
    },
    {
      "id": 1066340,
      "postDate": "2020-11-01T16:33:43.050Z",
      "content": "<p>Congratulations! Thank you for sharing your architecture, looks interesting.</p>",
      "rawMarkdown": "Congratulations! Thank you for sharing your architecture, looks interesting.",
      "votes": 1
    },
    {
      "id": 1063622,
      "postDate": "2020-10-29T06:09:04.937Z",
      "content": "<p>Congrats on your solo gold! Nice solution, surprising that you achieved accuracy with 224*224 images. Will full resolution inputs move your score up?</p>",
      "rawMarkdown": "Congrats on your solo gold! Nice solution, surprising that you achieved accuracy with 224*224 images. Will full resolution inputs move your score up?",
      "votes": 1,
      "replies": [
        {
          "id": 1063843,
          "postDate": "2020-10-29T12:01:22.943Z",
          "content": "<p>According to the other solutions it is very possible. I did not try to run on a larger image size.</p>",
          "rawMarkdown": "According to the other solutions it is very possible. I did not try to run on a larger image size.",
          "votes": 1
        }
      ]
    },
    {
      "id": 1063027,
      "postDate": "2020-10-28T12:50:28.443Z",
      "content": "<p>Impressive <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> . Congrats on winning the  prize money. Great work. Ensembling two diverse models crossed 9 hrs for myself, will look at your inference code to look how it has been fitted within the 9hrs run time. Congrats once again :)</p>",
      "rawMarkdown": "Impressive @orkatz2 . Congrats on winning the  prize money. Great work. Ensembling two diverse models crossed 9 hrs for myself, will look at your inference code to look how it has been fitted within the 9hrs run time. Congrats once again :)",
      "votes": 1,
      "replies": [
        {
          "id": 1063032,
          "postDate": "2020-10-28T12:56:22.693Z",
          "content": "<p><a href=\"https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb\" target=\"_blank\">https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb</a></p>",
          "rawMarkdown": "https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb",
          "votes": 3
        },
        {
          "id": 1063061,
          "postDate": "2020-10-28T13:23:17.720Z",
          "content": "<p>Thanks for sharing <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> </p>",
          "rawMarkdown": "Thanks for sharing @orkatz2 "
        }
      ]
    },
    {
      "id": 1062713,
      "postDate": "2020-10-28T06:01:27.293Z",
      "content": "<p>Congratulations on one moving up one more step and becoming a prize winner :) <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> </p>",
      "rawMarkdown": "Congratulations on one moving up one more step and becoming a prize winner :) @orkatz2 ",
      "votes": 1
    },
    {
      "id": 1062236,
      "postDate": "2020-10-27T17:15:53.193Z",
      "content": "<p>Congratz on the nice finish !</p>\n<p>I'm assuming all your models were single fold ones, since otherwise it would've taken ages to run, right ?</p>",
      "rawMarkdown": "Congratz on the nice finish !\n\nI'm assuming all your models were single fold ones, since otherwise it would've taken ages to run, right ?",
      "votes": 1,
      "replies": [
        {
          "id": 1062249,
          "postDate": "2020-10-27T17:20:19.040Z",
          "content": "<p>B5,b4,b3 - 2 folds<br>\n3d densenet121 - 3 folds X 3<br>\nLstm - 2 folds<br>\nNote that my input size is not 512X512. My models were trained on 224X224 so is faster.</p>",
          "rawMarkdown": "B5,b4,b3 - 2 folds\n3d densenet121 - 3 folds X 3\nLstm - 2 folds\nNote that my input size is not 512X512. My models were trained on 224X224 so is faster.",
          "votes": 2
        },
        {
          "id": 1062307,
          "postDate": "2020-10-27T18:12:09.373Z",
          "content": "<p>That's a quite big amount of models, impressive. I'll have to check your code to see how you made that fit in the 9 hours.</p>",
          "rawMarkdown": "That's a quite big amount of models, impressive. I'll have to check your code to see how you made that fit in the 9 hours."
        },
        {
          "id": 1063035,
          "postDate": "2020-10-28T12:58:14.230Z",
          "content": "<p>In fact it takes 7.5 hours.<br>\n<a href=\"https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb\" target=\"_blank\">submission code</a></p>",
          "rawMarkdown": "In fact it takes 7.5 hours.\n[submission code](https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb)",
          "votes": 1
        }
      ]
    },
    {
      "id": 1062093,
      "postDate": "2020-10-27T15:08:37.970Z",
      "content": "<p>So we have had pretty much the same approach. Except you have used a sequence model to stack and we have used a decision tree :D . Good Job!</p>",
      "rawMarkdown": "So we have had pretty much the same approach. Except you have used a sequence model to stack and we have used a decision tree :D . Good Job!",
      "votes": 1
    },
    {
      "id": 1062068,
      "postDate": "2020-10-27T14:46:07.420Z",
      "content": "<p><a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> Congratulations ….great work!!</p>",
      "rawMarkdown": "@orkatz2 Congratulations ....great work!!",
      "votes": 1
    },
    {
      "id": 1061972,
      "postDate": "2020-10-27T13:26:21.633Z",
      "content": "<p>Great work <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a>. Congratulations !</p>",
      "rawMarkdown": "Great work @orkatz2. Congratulations !",
      "votes": 1
    },
    {
      "id": 1061914,
      "postDate": "2020-10-27T12:34:23.953Z",
      "content": "<p>Good job! Congrats on results and thanks for sharing details solution and code <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> </p>",
      "rawMarkdown": "Good job! Congrats on results and thanks for sharing details solution and code @orkatz2 ",
      "votes": 1
    },
    {
      "id": 1061903,
      "postDate": "2020-10-27T12:26:44.257Z",
      "content": "<p>Congrats <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> and <br>\nThanks for good explanation!</p>",
      "rawMarkdown": "Congrats @orkatz2 and \nThanks for good explanation!",
      "votes": 1
    },
    {
      "id": 1331341,
      "postDate": "2021-06-01T12:08:10.930Z",
      "content": "<p>What does your output label represent</p>",
      "rawMarkdown": "What does your output label represent\n"
    },
    {
      "id": 1152670,
      "postDate": "2021-01-14T10:57:58.443Z",
      "content": "<p>Hey <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> , late to join in, Congratulations firstly, your submission link for GitHub is broken.<br>\nCan you kindly provide it again if possible</p>",
      "rawMarkdown": "Hey @orkatz2 , late to join in, Congratulations firstly, your submission link for GitHub is broken.\nCan you kindly provide it again if possible",
      "isDeleted": true
    },
    {
      "id": 1062378,
      "postDate": "2020-10-27T19:19:54.840Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 1062004,
      "author_name": "Bo",
      "author_url": "",
      "post_date": "2020-10-27T13:53:41.957000",
      "content": "<p>Congrats for the gold medal!  I'm glad to see my MONAI 3D model was used in a gold medal solution.</p>",
      "votes": 5,
      "replies": []
    },
    {
      "id": 1061904,
      "author_name": "Gilles Vandewiele",
      "author_url": "",
      "post_date": "2020-10-27T12:28:35.827000",
      "content": "<p>Congratulations! Arguably the best position you can have on this leaderboard ;).</p>",
      "votes": 4,
      "replies": []
    },
    {
      "id": 1066340,
      "author_name": "Alin Cijov",
      "author_url": "",
      "post_date": "2020-11-01T16:33:43.050000",
      "content": "<p>Congratulations! Thank you for sharing your architecture, looks interesting.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1063622,
      "author_name": "arutema47",
      "author_url": "",
      "post_date": "2020-10-29T06:09:04.937000",
      "content": "<p>Congrats on your solo gold! Nice solution, surprising that you achieved accuracy with 224*224 images. Will full resolution inputs move your score up?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1063843,
          "author_name": "OrKatz",
          "author_url": "",
          "post_date": "2020-10-29T12:01:22.943000",
          "content": "<p>According to the other solutions it is very possible. I did not try to run on a larger image size.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1063027,
      "author_name": "Manoj Prabhakar",
      "author_url": "",
      "post_date": "2020-10-28T12:50:28.443000",
      "content": "<p>Impressive <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> . Congrats on winning the  prize money. Great work. Ensembling two diverse models crossed 9 hrs for myself, will look at your inference code to look how it has been fitted within the 9hrs run time. Congrats once again :)</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1063032,
          "author_name": "OrKatz",
          "author_url": "",
          "post_date": "2020-10-28T12:56:22.693000",
          "content": "<p><a href=\"https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb\" target=\"_blank\">https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb</a></p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1063061,
          "author_name": "Manoj Prabhakar",
          "author_url": "",
          "post_date": "2020-10-28T13:23:17.720000",
          "content": "<p>Thanks for sharing <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1062713,
      "author_name": "Eisa",
      "author_url": "",
      "post_date": "2020-10-28T06:01:27.293000",
      "content": "<p>Congratulations on one moving up one more step and becoming a prize winner :) <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> </p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1062236,
      "author_name": "Theo Viel",
      "author_url": "",
      "post_date": "2020-10-27T17:15:53.193000",
      "content": "<p>Congratz on the nice finish !</p>\n<p>I'm assuming all your models were single fold ones, since otherwise it would've taken ages to run, right ?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1062249,
          "author_name": "OrKatz",
          "author_url": "",
          "post_date": "2020-10-27T17:20:19.040000",
          "content": "<p>B5,b4,b3 - 2 folds<br>\n3d densenet121 - 3 folds X 3<br>\nLstm - 2 folds<br>\nNote that my input size is not 512X512. My models were trained on 224X224 so is faster.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1062307,
          "author_name": "Theo Viel",
          "author_url": "",
          "post_date": "2020-10-27T18:12:09.373000",
          "content": "<p>That's a quite big amount of models, impressive. I'll have to check your code to see how you made that fit in the 9 hours.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1063035,
          "author_name": "OrKatz",
          "author_url": "",
          "post_date": "2020-10-28T12:58:14.230000",
          "content": "<p>In fact it takes 7.5 hours.<br>\n<a href=\"https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection/blob/main/submission.ipynb\" target=\"_blank\">submission code</a></p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1062093,
      "author_name": "Jan Bre",
      "author_url": "",
      "post_date": "2020-10-27T15:08:37.970000",
      "content": "<p>So we have had pretty much the same approach. Except you have used a sequence model to stack and we have used a decision tree :D . Good Job!</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1062068,
      "author_name": "Gryffindor",
      "author_url": "",
      "post_date": "2020-10-27T14:46:07.420000",
      "content": "<p><a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> Congratulations ….great work!!</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1061972,
      "author_name": "Vee",
      "author_url": "",
      "post_date": "2020-10-27T13:26:21.633000",
      "content": "<p>Great work <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a>. Congratulations !</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1061914,
      "author_name": "KhanhVD",
      "author_url": "",
      "post_date": "2020-10-27T12:34:23.953000",
      "content": "<p>Good job! Congrats on results and thanks for sharing details solution and code <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> </p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1061903,
      "author_name": "Heroseo",
      "author_url": "",
      "post_date": "2020-10-27T12:26:44.257000",
      "content": "<p>Congrats <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> and <br>\nThanks for good explanation!</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1331341,
      "author_name": "ambitiousF",
      "author_url": "",
      "post_date": "2021-06-01T12:08:10.930000",
      "content": "<p>What does your output label represent</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1152670,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-01-14T10:57:58.443000",
      "content": "<p>Hey <a href=\"https://www.kaggle.com/orkatz2\" target=\"_blank\">@orkatz2</a> , late to join in, Congratulations firstly, your submission link for GitHub is broken.<br>\nCan you kindly provide it again if possible</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1062378,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-10-27T19:19:54.840000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1061877": "**code** - https://github.com/OrKatz7/RSNA-Pulmonary-Embolism-Detection\n**Full Pipeline**\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1094066%2F2c42c343c91bc3fd09f089c43fd8c17d%2FRSNA.png?generation=1603799132907836&alt=media)\n\n**Overall Strategy**\n1. Train an image-level 2d CNN and save to hard drive features\n2. Train an exam-level 3d CNN and save to hard drive features\n3. input the 2d and 3d features into sequence model\n\n**2D CNN Modeling**\n1. Data pre-processing - based on Ian Pan: https://www.kaggle.com/c/rsna-str-pulmonary-embolism-detection/discussion/182930\n2. augmentation - RandomBrightnessContrast, HorizontalFlip, ElasticTransform, GridDistortion, VerticalFlip, ShiftScaleRotate, RandomCrop\n3. cnn models - efficientnet-b3, efficientnet-b4, efficientnet-b5\n\n**3D CNN Modeling**\nbased on @boliu0 pipline https://www.kaggle.com/boliu0/monai-3d-cnn-training\n\n**Sequence Model**\nInput - Slice embeddings from multi 2d models + exam embeddings from 3d models\nloss - rsna metric\n\n\n\n\n\n\n",
    "1062004": "Congrats for the gold medal!  I'm glad to see my MONAI 3D model was used in a gold medal solution.",
    "1061904": "Congratulations! Arguably the best position you can have on this leaderboard ;).",
    "1066340": "Congratulations! Thank you for sharing your architecture, looks interesting.",
    "1063622": "Congrats on your solo gold! Nice solution, surprising that you achieved accuracy with 224*224 images. Will full resolution inputs move your score up?",
    "1063027": "Impressive @orkatz2 . Congrats on winning the  prize money. Great work. Ensembling two diverse models crossed 9 hrs for myself, will look at your inference code to look how it has been fitted within the 9hrs run time. Congrats once again :)",
    "1062713": "Congratulations on one moving up one more step and becoming a prize winner :) @orkatz2 ",
    "1062236": "Congratz on the nice finish !\n\nI'm assuming all your models were single fold ones, since otherwise it would've taken ages to run, right ?",
    "1062093": "So we have had pretty much the same approach. Except you have used a sequence model to stack and we have used a decision tree :D . Good Job!",
    "1062068": "@orkatz2 Congratulations ....great work!!",
    "1061972": "Great work @orkatz2. Congratulations !",
    "1061914": "Good job! Congrats on results and thanks for sharing details solution and code @orkatz2 ",
    "1061903": "Congrats @orkatz2 and \nThanks for good explanation!",
    "1331341": "What does your output label represent\n",
    "1152670": "Hey @orkatz2 , late to join in, Congratulations firstly, your submission link for GitHub is broken.\nCan you kindly provide it again if possible",
    "1062378": ""
  }
}