{
  "id": 228635,
  "title": "What are the known techniques that can help in mitigaiting class imbalance in multi-label classification setting?",
  "url": "/competitions/hpa-single-cell-image-classification/discussion/228635",
  "author_name": "Ayush Thakur",
  "post_date": "2021-03-25T15:09:23.717000",
  "votes": 3,
  "comment_count": 2,
  "views": 0,
  "content": "<p>What are some of the techniques fellow Kagglers have used in the past to tackle class imbalance in the multi-label classification scenarioes?</p>",
  "messages": [
    {
      "id": 1252298,
      "postDate": "2021-03-25T15:09:23.717Z",
      "content": "<p>What are some of the techniques fellow Kagglers have used in the past to tackle class imbalance in the multi-label classification scenarioes?</p>",
      "rawMarkdown": "What are some of the techniques fellow Kagglers have used in the past to tackle class imbalance in the multi-label classification scenarioes?",
      "votes": 3
    },
    {
      "id": 1255395,
      "postDate": "2021-03-28T18:44:56.437Z",
      "content": "<p>Hi there!</p>\n<hr>\n<p>You can check the previous <a href=\"https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion\" target=\"_blank\"><strong>HPA competition discussion board</strong></a> for some pretty awesome insights.</p>\n<p>I believe many used <strong>Focal Loss</strong> w/ great success when attempting to mitigate the class imbalance problems associated with the multi-label classification of slide-level label prediction. In fact, here is a paper titled <a href=\"https://dl.acm.org/doi/10.1145/3411016.3411020\" target=\"_blank\"><strong>Focal Loss Improves the Model Performance on Multi-Label Image Classifications with Imbalanced Data</strong></a> that supports this hypothesis. </p>\n<p>I will caveat all of this by saying that I have not had any luck with achieving higher scores by using Focal Loss in this competition.</p>\n<hr>\n<p>Other techniques might include (but are not limited to):</p>\n<ul>\n<li><a href=\"https://machinelearningmastery.com/random-oversampling-and-undersampling-for-imbalanced-classification/\" target=\"_blank\"><strong>Oversampling or Undersampling</strong></a></li>\n<li>Using External Data To Bolster the Rare Classes --&gt; <a href=\"https://www.kaggle.com/alexanderriedel/hpa-public-768-excl-0-16\" target=\"_blank\"><strong>Useful Dataset By Alexander Riedel</strong></a> ( <a href=\"https://www.kaggle.com/alexanderriedel\" target=\"_blank\">@alexanderriedel</a> )</li>\n</ul>",
      "rawMarkdown": "Hi there!\n\n---\n\nYou can check the previous [**HPA competition discussion board**](https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion) for some pretty awesome insights.\n\nI believe many used **Focal Loss** w/ great success when attempting to mitigate the class imbalance problems associated with the multi-label classification of slide-level label prediction. In fact, here is a paper titled [**Focal Loss Improves the Model Performance on Multi-Label Image Classifications with Imbalanced Data**](https://dl.acm.org/doi/10.1145/3411016.3411020) that supports this hypothesis. \n\nI will caveat all of this by saying that I have not had any luck with achieving higher scores by using Focal Loss in this competition.\n\n---\n\nOther techniques might include (but are not limited to):\n- [**Oversampling or Undersampling**](https://machinelearningmastery.com/random-oversampling-and-undersampling-for-imbalanced-classification/)\n- Using External Data To Bolster the Rare Classes --> [**Useful Dataset By Alexander Riedel**](https://www.kaggle.com/alexanderriedel/hpa-public-768-excl-0-16) ( @alexanderriedel )",
      "votes": 1,
      "replies": [
        {
          "id": 1255481,
          "postDate": "2021-03-28T20:53:26.800Z",
          "content": "<p>Hey <a href=\"https://www.kaggle.com/dschettler8845\" target=\"_blank\">@dschettler8845</a> thank you for the reply. </p>\n<p>I have tried with focal loss as well but to no luck. Currently I am creating cell level dataset to mitigate issues of class imbalance using proper data. Let's see how it plays out. </p>\n<p>Oversampling/undersampling is good but got it's own caveats. Trying to avoid it as much as possible. </p>",
          "rawMarkdown": "Hey @dschettler8845 thank you for the reply. \n\nI have tried with focal loss as well but to no luck. Currently I am creating cell level dataset to mitigate issues of class imbalance using proper data. Let's see how it plays out. \n\nOversampling/undersampling is good but got it's own caveats. Trying to avoid it as much as possible. \n",
          "votes": 1
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1255395,
      "author_name": "Darien Schettler",
      "author_url": "",
      "post_date": "2021-03-28T18:44:56.437000",
      "content": "<p>Hi there!</p>\n<hr>\n<p>You can check the previous <a href=\"https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion\" target=\"_blank\"><strong>HPA competition discussion board</strong></a> for some pretty awesome insights.</p>\n<p>I believe many used <strong>Focal Loss</strong> w/ great success when attempting to mitigate the class imbalance problems associated with the multi-label classification of slide-level label prediction. In fact, here is a paper titled <a href=\"https://dl.acm.org/doi/10.1145/3411016.3411020\" target=\"_blank\"><strong>Focal Loss Improves the Model Performance on Multi-Label Image Classifications with Imbalanced Data</strong></a> that supports this hypothesis. </p>\n<p>I will caveat all of this by saying that I have not had any luck with achieving higher scores by using Focal Loss in this competition.</p>\n<hr>\n<p>Other techniques might include (but are not limited to):</p>\n<ul>\n<li><a href=\"https://machinelearningmastery.com/random-oversampling-and-undersampling-for-imbalanced-classification/\" target=\"_blank\"><strong>Oversampling or Undersampling</strong></a></li>\n<li>Using External Data To Bolster the Rare Classes --&gt; <a href=\"https://www.kaggle.com/alexanderriedel/hpa-public-768-excl-0-16\" target=\"_blank\"><strong>Useful Dataset By Alexander Riedel</strong></a> ( <a href=\"https://www.kaggle.com/alexanderriedel\" target=\"_blank\">@alexanderriedel</a> )</li>\n</ul>",
      "votes": 1,
      "replies": [
        {
          "id": 1255481,
          "author_name": "Ayush Thakur",
          "author_url": "",
          "post_date": "2021-03-28T20:53:26.800000",
          "content": "<p>Hey <a href=\"https://www.kaggle.com/dschettler8845\" target=\"_blank\">@dschettler8845</a> thank you for the reply. </p>\n<p>I have tried with focal loss as well but to no luck. Currently I am creating cell level dataset to mitigate issues of class imbalance using proper data. Let's see how it plays out. </p>\n<p>Oversampling/undersampling is good but got it's own caveats. Trying to avoid it as much as possible. </p>",
          "votes": 1,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1252298": "What are some of the techniques fellow Kagglers have used in the past to tackle class imbalance in the multi-label classification scenarioes?",
    "1255395": "Hi there!\n\n---\n\nYou can check the previous [**HPA competition discussion board**](https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion) for some pretty awesome insights.\n\nI believe many used **Focal Loss** w/ great success when attempting to mitigate the class imbalance problems associated with the multi-label classification of slide-level label prediction. In fact, here is a paper titled [**Focal Loss Improves the Model Performance on Multi-Label Image Classifications with Imbalanced Data**](https://dl.acm.org/doi/10.1145/3411016.3411020) that supports this hypothesis. \n\nI will caveat all of this by saying that I have not had any luck with achieving higher scores by using Focal Loss in this competition.\n\n---\n\nOther techniques might include (but are not limited to):\n- [**Oversampling or Undersampling**](https://machinelearningmastery.com/random-oversampling-and-undersampling-for-imbalanced-classification/)\n- Using External Data To Bolster the Rare Classes --> [**Useful Dataset By Alexander Riedel**](https://www.kaggle.com/alexanderriedel/hpa-public-768-excl-0-16) ( @alexanderriedel )"
  }
}