{
  "id": 369367,
  "title": "Transfer Learning for Medical Image Classification",
  "url": "/competitions/rsna-breast-cancer-detection/discussion/369367",
  "author_name": "Ravi Shah",
  "post_date": "2022-11-30T00:51:22.616000",
  "votes": 11,
  "comment_count": 2,
  "views": 0,
  "content": "<h1>Transfer Learning for Medical Images</h1>\n<p><strong>What is Transfer Learning</strong><br>\nTransfer learning is a technique where a model is pre-trained on one task and then later can be re-purposed for a new task with a little additional training. </p>\n<p><strong>Why not ImageNet</strong><br>\nImageNet is a dataset of millions of images. Most standard libraries such as torchvision, timm, etc. have a pretrained parameter that will allow you to use transfer learning with a model pre-trained on ImageNet. However, ImageNet may not be ideal for medical image classification because ImageNet includes more everyday items such as vehicles, instruments, and animals. Thus, finding models pre-trained on different datasets including images such as x-rays, body parts, etc may be for fitting for a medical task such as this.</p>\n<p>Nonetheless, ImageNet is actually still a very good option and can produce very powerful models. It is also much simpler since it is more common, so you may have more time to work on training your model for this specific task leading to better results. </p>\n<p><strong>Related Research Papers:</strong><br>\n<a href=\"https://pubmed.ncbi.nlm.nih.gov/35418051/\" target=\"_blank\">Transfer learning for medical image classification: a literature review</a><br>\n<a href=\"https://arxiv.org/pdf/2106.05152.pdf\" target=\"_blank\">Rethinking Transfer Learning for Medical Image Classification</a></p>\n<h1>Finding a Model</h1>\n<p><strong>Model Architecture</strong><br>\nAccording to <a href=\"https://learnopencv.com/transfer-learning-for-medical-images/\" target=\"_blank\">this article</a>, when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception. Pre-trained models such as Inception-v3 are very common and can be found in libraries such as torchvision and timm. Perhaps look for an inception model that has been pretrained on a medical task. Nonetheless, this is just a suggestion and the best model architecture should be decided through trials and cross validation on this particular task. You may also want to note that the article was written pre-image transformers era, so other more recent transformer model architectures may be stronger. </p>\n<p><strong>MedNet</strong><br>\nIf you are looking for a pre-trained medical model, you should consider looking at MedNet. MedNet is basically a deep CNN pre-trained on a bunch of medical images. I haven't looked at it too closely yet, but below is the research paper and a github repo with code.<br>\n<a href=\"https://arxiv.org/ftp/arxiv/papers/2110/2110.06512.pdf\" target=\"_blank\">MedNet Research Paper</a><br>\n<a href=\"https://github.com/Tencent/MedicalNet\" target=\"_blank\">MedNet Github</a></p>\n<p><strong>Previous Competitions</strong><br>\nEven though this competition is about breast cancer detection, other medical image competitions have been held by the same host (Radiological Society of North America). In these previous competitions, many people make their models' weights public at the end, so you may be able to use their weights as a pre-trained starting point for this competition. For reference see <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369103\" target=\"_blank\">previous RSNA competition winning solutions</a> by <a href=\"https://www.kaggle.com/radek1\" target=\"_blank\">@radek1</a> </p>",
  "messages": [
    {
      "id": 2049145,
      "postDate": "2022-11-30T00:51:22.617Z",
      "content": "<h1>Transfer Learning for Medical Images</h1>\n<p><strong>What is Transfer Learning</strong><br>\nTransfer learning is a technique where a model is pre-trained on one task and then later can be re-purposed for a new task with a little additional training. </p>\n<p><strong>Why not ImageNet</strong><br>\nImageNet is a dataset of millions of images. Most standard libraries such as torchvision, timm, etc. have a pretrained parameter that will allow you to use transfer learning with a model pre-trained on ImageNet. However, ImageNet may not be ideal for medical image classification because ImageNet includes more everyday items such as vehicles, instruments, and animals. Thus, finding models pre-trained on different datasets including images such as x-rays, body parts, etc may be for fitting for a medical task such as this.</p>\n<p>Nonetheless, ImageNet is actually still a very good option and can produce very powerful models. It is also much simpler since it is more common, so you may have more time to work on training your model for this specific task leading to better results. </p>\n<p><strong>Related Research Papers:</strong><br>\n<a href=\"https://pubmed.ncbi.nlm.nih.gov/35418051/\" target=\"_blank\">Transfer learning for medical image classification: a literature review</a><br>\n<a href=\"https://arxiv.org/pdf/2106.05152.pdf\" target=\"_blank\">Rethinking Transfer Learning for Medical Image Classification</a></p>\n<h1>Finding a Model</h1>\n<p><strong>Model Architecture</strong><br>\nAccording to <a href=\"https://learnopencv.com/transfer-learning-for-medical-images/\" target=\"_blank\">this article</a>, when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception. Pre-trained models such as Inception-v3 are very common and can be found in libraries such as torchvision and timm. Perhaps look for an inception model that has been pretrained on a medical task. Nonetheless, this is just a suggestion and the best model architecture should be decided through trials and cross validation on this particular task. You may also want to note that the article was written pre-image transformers era, so other more recent transformer model architectures may be stronger. </p>\n<p><strong>MedNet</strong><br>\nIf you are looking for a pre-trained medical model, you should consider looking at MedNet. MedNet is basically a deep CNN pre-trained on a bunch of medical images. I haven't looked at it too closely yet, but below is the research paper and a github repo with code.<br>\n<a href=\"https://arxiv.org/ftp/arxiv/papers/2110/2110.06512.pdf\" target=\"_blank\">MedNet Research Paper</a><br>\n<a href=\"https://github.com/Tencent/MedicalNet\" target=\"_blank\">MedNet Github</a></p>\n<p><strong>Previous Competitions</strong><br>\nEven though this competition is about breast cancer detection, other medical image competitions have been held by the same host (Radiological Society of North America). In these previous competitions, many people make their models' weights public at the end, so you may be able to use their weights as a pre-trained starting point for this competition. For reference see <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369103\" target=\"_blank\">previous RSNA competition winning solutions</a> by <a href=\"https://www.kaggle.com/radek1\" target=\"_blank\">@radek1</a> </p>",
      "rawMarkdown": "# Transfer Learning for Medical Images\n\n**What is Transfer Learning**\nTransfer learning is a technique where a model is pre-trained on one task and then later can be re-purposed for a new task with a little additional training. \n\n**Why not ImageNet**\nImageNet is a dataset of millions of images. Most standard libraries such as torchvision, timm, etc. have a pretrained parameter that will allow you to use transfer learning with a model pre-trained on ImageNet. However, ImageNet may not be ideal for medical image classification because ImageNet includes more everyday items such as vehicles, instruments, and animals. Thus, finding models pre-trained on different datasets including images such as x-rays, body parts, etc may be for fitting for a medical task such as this.\n\nNonetheless, ImageNet is actually still a very good option and can produce very powerful models. It is also much simpler since it is more common, so you may have more time to work on training your model for this specific task leading to better results. \n\n**Related Research Papers:**\n[Transfer learning for medical image classification: a literature review](https://pubmed.ncbi.nlm.nih.gov/35418051/)\n[Rethinking Transfer Learning for Medical Image Classification](https://arxiv.org/pdf/2106.05152.pdf)\n\n# Finding a Model\n\n**Model Architecture**\nAccording to [this article](https://learnopencv.com/transfer-learning-for-medical-images/), when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception. Pre-trained models such as Inception-v3 are very common and can be found in libraries such as torchvision and timm. Perhaps look for an inception model that has been pretrained on a medical task. Nonetheless, this is just a suggestion and the best model architecture should be decided through trials and cross validation on this particular task. You may also want to note that the article was written pre-image transformers era, so other more recent transformer model architectures may be stronger. \n\n**MedNet**\nIf you are looking for a pre-trained medical model, you should consider looking at MedNet. MedNet is basically a deep CNN pre-trained on a bunch of medical images. I haven't looked at it too closely yet, but below is the research paper and a github repo with code.\n[MedNet Research Paper](https://arxiv.org/ftp/arxiv/papers/2110/2110.06512.pdf)\n[MedNet Github](https://github.com/Tencent/MedicalNet)\n\n**Previous Competitions**\nEven though this competition is about breast cancer detection, other medical image competitions have been held by the same host (Radiological Society of North America). In these previous competitions, many people make their models' weights public at the end, so you may be able to use their weights as a pre-trained starting point for this competition. For reference see [previous RSNA competition winning solutions](https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369103) by @radek1 ",
      "votes": 11
    },
    {
      "id": 2049324,
      "postDate": "2022-11-30T03:48:53.353Z",
      "content": "<blockquote>\n  <p>According to this article, when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception.</p>\n</blockquote>\n<p>I skimmed the article quickly, from my understanding: one thing to note-the article compiles learning from the \"pre-image transformer eras \"</p>",
      "rawMarkdown": "> According to this article, when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception.\n\nI skimmed the article quickly, from my understanding: one thing to note-the article compiles learning from the \"pre-image transformer eras \"",
      "votes": 1,
      "replies": [
        {
          "id": 2050706,
          "postDate": "2022-11-30T23:45:50.193Z",
          "content": "<p><a href=\"https://www.kaggle.com/init27\" target=\"_blank\">@init27</a> Thanks for pointing this out. I updated my post with a note to address this. </p>",
          "rawMarkdown": "@init27 Thanks for pointing this out. I updated my post with a note to address this. "
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2049324,
      "author_name": "Sanyam Bhutani",
      "author_url": "",
      "post_date": "2022-11-30T03:48:53.353000",
      "content": "<blockquote>\n  <p>According to this article, when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception.</p>\n</blockquote>\n<p>I skimmed the article quickly, from my understanding: one thing to note-the article compiles learning from the \"pre-image transformer eras \"</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2050706,
          "author_name": "Ravi Shah",
          "author_url": "",
          "post_date": "2022-11-30T23:45:50.193000",
          "content": "<p><a href=\"https://www.kaggle.com/init27\" target=\"_blank\">@init27</a> Thanks for pointing this out. I updated my post with a note to address this. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2049145": "# Transfer Learning for Medical Images\n\n**What is Transfer Learning**\nTransfer learning is a technique where a model is pre-trained on one task and then later can be re-purposed for a new task with a little additional training. \n\n**Why not ImageNet**\nImageNet is a dataset of millions of images. Most standard libraries such as torchvision, timm, etc. have a pretrained parameter that will allow you to use transfer learning with a model pre-trained on ImageNet. However, ImageNet may not be ideal for medical image classification because ImageNet includes more everyday items such as vehicles, instruments, and animals. Thus, finding models pre-trained on different datasets including images such as x-rays, body parts, etc may be for fitting for a medical task such as this.\n\nNonetheless, ImageNet is actually still a very good option and can produce very powerful models. It is also much simpler since it is more common, so you may have more time to work on training your model for this specific task leading to better results. \n\n**Related Research Papers:**\n[Transfer learning for medical image classification: a literature review](https://pubmed.ncbi.nlm.nih.gov/35418051/)\n[Rethinking Transfer Learning for Medical Image Classification](https://arxiv.org/pdf/2106.05152.pdf)\n\n# Finding a Model\n\n**Model Architecture**\nAccording to [this article](https://learnopencv.com/transfer-learning-for-medical-images/), when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception. Pre-trained models such as Inception-v3 are very common and can be found in libraries such as torchvision and timm. Perhaps look for an inception model that has been pretrained on a medical task. Nonetheless, this is just a suggestion and the best model architecture should be decided through trials and cross validation on this particular task. You may also want to note that the article was written pre-image transformers era, so other more recent transformer model architectures may be stronger. \n\n**MedNet**\nIf you are looking for a pre-trained medical model, you should consider looking at MedNet. MedNet is basically a deep CNN pre-trained on a bunch of medical images. I haven't looked at it too closely yet, but below is the research paper and a github repo with code.\n[MedNet Research Paper](https://arxiv.org/ftp/arxiv/papers/2110/2110.06512.pdf)\n[MedNet Github](https://github.com/Tencent/MedicalNet)\n\n**Previous Competitions**\nEven though this competition is about breast cancer detection, other medical image competitions have been held by the same host (Radiological Society of North America). In these previous competitions, many people make their models' weights public at the end, so you may be able to use their weights as a pre-trained starting point for this competition. For reference see [previous RSNA competition winning solutions](https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369103) by @radek1 ",
    "2049324": "> According to this article, when classifying images in the breast anatomical region (as in this challenge), the most commonly used model architecture is Inception.\n\nI skimmed the article quickly, from my understanding: one thing to note-the article compiles learning from the \"pre-image transformer eras \""
  }
}