{
  "id": 569132,
  "title": "Spots location ",
  "url": "/competitions/el-hackathon-2025/discussion/569132",
  "author_name": "GPCH",
  "post_date": "2025-03-20T07:30:56.040000",
  "votes": 14,
  "comment_count": 14,
  "views": 0,
  "content": "<p>Thansk for providing the starter notebook. <br>\n<a href=\"https://www.kaggle.com/code/elucidata2025/kaggle-starter-notebook\" target=\"_blank\">https://www.kaggle.com/code/elucidata2025/kaggle-starter-notebook</a></p>\n<p>I found some spots (those red dots) being outside the purple/violet region when I zoom in. Is it normal?</p>\n<p>(Wanted to post a comment on that notebook in the Code section, but found that it has been disabled.)</p>",
  "messages": [
    {
      "id": 3154641,
      "postDate": "2025-03-20T07:30:56.040Z",
      "content": "<p>Thansk for providing the starter notebook. <br>\n<a href=\"https://www.kaggle.com/code/elucidata2025/kaggle-starter-notebook\" target=\"_blank\">https://www.kaggle.com/code/elucidata2025/kaggle-starter-notebook</a></p>\n<p>I found some spots (those red dots) being outside the purple/violet region when I zoom in. Is it normal?</p>\n<p>(Wanted to post a comment on that notebook in the Code section, but found that it has been disabled.)</p>",
      "rawMarkdown": "Thansk for providing the starter notebook. \nhttps://www.kaggle.com/code/elucidata2025/kaggle-starter-notebook\n\nI found some spots (those red dots) being outside the purple/violet region when I zoom in. Is it normal?\n\n(Wanted to post a comment on that notebook in the Code section, but found that it has been disabled.)",
      "votes": 14
    },
    {
      "id": 3168594,
      "postDate": "2025-04-02T15:28:46.220Z",
      "content": "<p>In <a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/dalloliogm/basic-prediction-using-cnn-and-image-patches</a>notebook, I have written an utility function which shows the location of the spots, a square patch around them, and the distribution of cell types in it.</p>\n<p>You can see from this specific example, that there are patches that map to blank areas, yet still have a population of cell types. If the coordinates of the slices were correct, we would expect them to see zero abundance for all cell types. </p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2Fd52280577ad0c8424680e27623c74c29%2FScreenshot%202025-04-02%20162640.png?generation=1743607672151998&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "In [https://www.kaggle.com/code/dalloliogm/basic-prediction-using-cnn-and-image-patches](url)notebook, I have written an utility function which shows the location of the spots, a square patch around them, and the distribution of cell types in it.\n\nYou can see from this specific example, that there are patches that map to blank areas, yet still have a population of cell types. If the coordinates of the slices were correct, we would expect them to see zero abundance for all cell types. \n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2Fd52280577ad0c8424680e27623c74c29%2FScreenshot%202025-04-02%20162640.png?generation=1743607672151998&alt=media)\n\n",
      "votes": 3
    },
    {
      "id": 3167220,
      "postDate": "2025-04-01T11:14:35.957Z",
      "content": "<p><a href=\"https://www.kaggle.com/gpch2159\" target=\"_blank\">@gpch2159</a> were you able to understand what this misalignment mean, and how it might effect the training process?</p>",
      "rawMarkdown": "@gpch2159 were you able to understand what this misalignment mean, and how it might effect the training process?",
      "votes": 1,
      "replies": [
        {
          "id": 3167989,
          "postDate": "2025-04-02T02:15:45.503Z",
          "content": "<p>I have no further comments on it unless the host provides further info, because I am not an expert in this field.</p>",
          "rawMarkdown": "I have no further comments on it unless the host provides further info, because I am not an expert in this field.",
          "votes": 1
        }
      ]
    },
    {
      "id": 3162079,
      "postDate": "2025-03-28T19:18:54.967Z",
      "content": "<p><a href=\"https://www.kaggle.com/elucidata2025\" target=\"_blank\">@elucidata2025</a> <br>\nPlease take a look at provided dataset, almost every slide has points outside the image where S_1 &amp; S_2 have more points that are out of image. This will affect the model training.</p>",
      "rawMarkdown": "@elucidata2025 \nPlease take a look at provided dataset, almost every slide has points outside the image where S_1 & S_2 have more points that are out of image. This will affect the model training.",
      "votes": 1
    },
    {
      "id": 3161942,
      "postDate": "2025-03-28T16:08:44.577Z",
      "content": "<p><a href=\"https://www.kaggle.com/elucidata2025\" target=\"_blank\">@elucidata2025</a> Did you have a chance to look at the misalignment?</p>",
      "rawMarkdown": "@elucidata2025 Did you have a chance to look at the misalignment?",
      "votes": 1,
      "replies": [
        {
          "id": 3164463,
          "postDate": "2025-03-31T18:24:43.647Z",
          "rawMarkdown": "",
          "isDeleted": true
        }
      ]
    },
    {
      "id": 3159459,
      "postDate": "2025-03-25T16:15:13.207Z",
      "content": "<p>That's a good point. Are you referring to the dots in the South part of S_2, for example? <br>\nIt looks like the whole image is misaligned, as the shape do not overlap perfectly. Is this what you mean?</p>\n<p>I've created an<a href=\"https://www.kaggle.com/code/dalloliogm/eda-plotting-cell-distribution-by-slice\" target=\"_blank\"> EDA notebook</a> to plot the abundance by Cell Type. If you scroll to the bottom, there are plots that show the total abundance in every slice. If you look closely at S_2, for example, there are dots that fall outside of the slice, yet they have high total abundance, meaning that there are some cells in there. </p>",
      "rawMarkdown": "That's a good point. Are you referring to the dots in the South part of S_2, for example? \nIt looks like the whole image is misaligned, as the shape do not overlap perfectly. Is this what you mean?\n\nI've created an[ EDA notebook](https://www.kaggle.com/code/dalloliogm/eda-plotting-cell-distribution-by-slice) to plot the abundance by Cell Type. If you scroll to the bottom, there are plots that show the total abundance in every slice. If you look closely at S_2, for example, there are dots that fall outside of the slice, yet they have high total abundance, meaning that there are some cells in there. ",
      "votes": 2,
      "replies": [
        {
          "id": 3159778,
          "postDate": "2025-03-25T22:30:39.687Z",
          "content": "<p>See these examples. The colours represent the total abundance across all cell types: violet dots have low overall abundance (e.g. not many cell types), while the other colours indicate higher abundance. There are a few spots, at the edges of the slides, that do not seem to be properly aligned, and that have high abundance.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2F7a054af9fc8b9a82f972f4ccfc7500d2%2F__results___11_1.png?generation=1743448529850771&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2Fc7e35b57b91331f98b47c7b622052463%2F__results___10_1.png?generation=1743448541751895&amp;alt=media\" alt=\"\"></p>",
          "rawMarkdown": "See these examples. The colours represent the total abundance across all cell types: violet dots have low overall abundance (e.g. not many cell types), while the other colours indicate higher abundance. There are a few spots, at the edges of the slides, that do not seem to be properly aligned, and that have high abundance.\n\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2F7a054af9fc8b9a82f972f4ccfc7500d2%2F__results___11_1.png?generation=1743448529850771&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2Fc7e35b57b91331f98b47c7b622052463%2F__results___10_1.png?generation=1743448541751895&alt=media)",
          "votes": 1,
          "replies": [
            {
              "id": 3160336,
              "postDate": "2025-03-26T16:32:07.473Z",
              "content": "<p>So can we just move the total spots so that is is properly aligned. </p>",
              "rawMarkdown": "So can we just move the total spots so that is is properly aligned. ",
              "votes": 1
            },
            {
              "id": 3160353,
              "postDate": "2025-03-26T16:53:32.950Z",
              "content": "<p>That's a very good question. It is important to ensure that the spots are correctly aligned to the image - otherwise, it will be difficult to make predictions for the correct location. Unfortunately I do not know the answer. <br>\nIn my EDA notebook I use the snippet:</p>\n<pre><code>         show_image  True:\n            ax.imshow(, aspect=)\n        :\n            # Manually set the axis limits to match the  \n            ,  = .shape[:]\n            ax.set_xlim(, )\n            ax.set_ylim(, )  #  y-axis to mimic  \n</code></pre>\n<p><br>\nbut as you can see, it doesn't perfectly align the spots to the image. </p>",
              "rawMarkdown": "That's a very good question. It is important to ensure that the spots are correctly aligned to the image - otherwise, it will be difficult to make predictions for the correct location. Unfortunately I do not know the answer. \nIn my EDA notebook I use the snippet:\n\n```\n        if show_image is True:\n            ax.imshow(image, aspect=\"auto\")\n        else:\n            # Manually set the axis limits to match the image dimensions\n            height, width = image.shape[:2]\n            ax.set_xlim(0, width)\n            ax.set_ylim(height, 0)  # invert y-axis to mimic image display\n``` \nbut as you can see, it doesn't perfectly align the spots to the image. "
            },
            {
              "id": 3160418,
              "postDate": "2025-03-26T18:34:07.987Z",
              "content": "<p>For S_1 x-50,y-60 gives a better alignment, similarly for S_2 x-95, y-55, Though these are just my assumptions. <br>\nAfter the changes in x and y axis, Do we need to use them for training, as the original loc is no longer true.</p>",
              "rawMarkdown": "For S_1 x-50,y-60 gives a better alignment, similarly for S_2 x-95, y-55, Though these are just my assumptions. \nAfter the changes in x and y axis, Do we need to use them for training, as the original loc is no longer true.",
              "votes": 1
            },
            {
              "id": 3160422,
              "postDate": "2025-03-26T18:35:26.123Z",
              "rawMarkdown": "",
              "isDeleted": true
            }
          ]
        }
      ]
    },
    {
      "id": 3180264,
      "postDate": "2025-04-16T11:08:14.090Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 3164464,
      "postDate": "2025-03-31T18:25:00.023Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 3168594,
      "author_name": "Giovanni Marco Dall'Olio",
      "author_url": "",
      "post_date": "2025-04-02T15:28:46.220000",
      "content": "<p>In <a href=\"url\" target=\"_blank\">https://www.kaggle.com/code/dalloliogm/basic-prediction-using-cnn-and-image-patches</a>notebook, I have written an utility function which shows the location of the spots, a square patch around them, and the distribution of cell types in it.</p>\n<p>You can see from this specific example, that there are patches that map to blank areas, yet still have a population of cell types. If the coordinates of the slices were correct, we would expect them to see zero abundance for all cell types. </p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2Fd52280577ad0c8424680e27623c74c29%2FScreenshot%202025-04-02%20162640.png?generation=1743607672151998&amp;alt=media\" alt=\"\"></p>",
      "votes": 3,
      "replies": []
    },
    {
      "id": 3167220,
      "author_name": "Aditya Gupta",
      "author_url": "",
      "post_date": "2025-04-01T11:14:35.957000",
      "content": "<p><a href=\"https://www.kaggle.com/gpch2159\" target=\"_blank\">@gpch2159</a> were you able to understand what this misalignment mean, and how it might effect the training process?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 3167989,
          "author_name": "GPCH",
          "author_url": "",
          "post_date": "2025-04-02T02:15:45.503000",
          "content": "<p>I have no further comments on it unless the host provides further info, because I am not an expert in this field.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 3162079,
      "author_name": "Ayush Raj",
      "author_url": "",
      "post_date": "2025-03-28T19:18:54.967000",
      "content": "<p><a href=\"https://www.kaggle.com/elucidata2025\" target=\"_blank\">@elucidata2025</a> <br>\nPlease take a look at provided dataset, almost every slide has points outside the image where S_1 &amp; S_2 have more points that are out of image. This will affect the model training.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 3161942,
      "author_name": "AGG",
      "author_url": "",
      "post_date": "2025-03-28T16:08:44.577000",
      "content": "<p><a href=\"https://www.kaggle.com/elucidata2025\" target=\"_blank\">@elucidata2025</a> Did you have a chance to look at the misalignment?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 3164463,
          "author_name": "",
          "author_url": "",
          "post_date": "2025-03-31T18:24:43.647000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 3159459,
      "author_name": "Giovanni Marco Dall'Olio",
      "author_url": "",
      "post_date": "2025-03-25T16:15:13.207000",
      "content": "<p>That's a good point. Are you referring to the dots in the South part of S_2, for example? <br>\nIt looks like the whole image is misaligned, as the shape do not overlap perfectly. Is this what you mean?</p>\n<p>I've created an<a href=\"https://www.kaggle.com/code/dalloliogm/eda-plotting-cell-distribution-by-slice\" target=\"_blank\"> EDA notebook</a> to plot the abundance by Cell Type. If you scroll to the bottom, there are plots that show the total abundance in every slice. If you look closely at S_2, for example, there are dots that fall outside of the slice, yet they have high total abundance, meaning that there are some cells in there. </p>",
      "votes": 2,
      "replies": [
        {
          "id": 3159778,
          "author_name": "Giovanni Marco Dall'Olio",
          "author_url": "",
          "post_date": "2025-03-25T22:30:39.687000",
          "content": "<p>See these examples. The colours represent the total abundance across all cell types: violet dots have low overall abundance (e.g. not many cell types), while the other colours indicate higher abundance. There are a few spots, at the edges of the slides, that do not seem to be properly aligned, and that have high abundance.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2F7a054af9fc8b9a82f972f4ccfc7500d2%2F__results___11_1.png?generation=1743448529850771&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2Fc7e35b57b91331f98b47c7b622052463%2F__results___10_1.png?generation=1743448541751895&amp;alt=media\" alt=\"\"></p>",
          "votes": 1,
          "replies": [
            {
              "id": 3160336,
              "author_name": "M.Sujit Ragav",
              "author_url": "",
              "post_date": "2025-03-26T16:32:07.473000",
              "content": "<p>So can we just move the total spots so that is is properly aligned. </p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 3160353,
              "author_name": "Giovanni Marco Dall'Olio",
              "author_url": "",
              "post_date": "2025-03-26T16:53:32.950000",
              "content": "<p>That's a very good question. It is important to ensure that the spots are correctly aligned to the image - otherwise, it will be difficult to make predictions for the correct location. Unfortunately I do not know the answer. <br>\nIn my EDA notebook I use the snippet:</p>\n<pre><code>         show_image  True:\n            ax.imshow(, aspect=)\n        :\n            # Manually set the axis limits to match the  \n            ,  = .shape[:]\n            ax.set_xlim(, )\n            ax.set_ylim(, )  #  y-axis to mimic  \n</code></pre>\n<p><br>\nbut as you can see, it doesn't perfectly align the spots to the image. </p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 3160418,
              "author_name": "M.Sujit Ragav",
              "author_url": "",
              "post_date": "2025-03-26T18:34:07.987000",
              "content": "<p>For S_1 x-50,y-60 gives a better alignment, similarly for S_2 x-95, y-55, Though these are just my assumptions. <br>\nAfter the changes in x and y axis, Do we need to use them for training, as the original loc is no longer true.</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 3160422,
              "author_name": "",
              "author_url": "",
              "post_date": "2025-03-26T18:35:26.123000",
              "content": "",
              "votes": 0,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 3180264,
      "author_name": "",
      "author_url": "",
      "post_date": "2025-04-16T11:08:14.090000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 3164464,
      "author_name": "",
      "author_url": "",
      "post_date": "2025-03-31T18:25:00.023000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3154641": "Thansk for providing the starter notebook. \nhttps://www.kaggle.com/code/elucidata2025/kaggle-starter-notebook\n\nI found some spots (those red dots) being outside the purple/violet region when I zoom in. Is it normal?\n\n(Wanted to post a comment on that notebook in the Code section, but found that it has been disabled.)",
    "3168594": "In [https://www.kaggle.com/code/dalloliogm/basic-prediction-using-cnn-and-image-patches](url)notebook, I have written an utility function which shows the location of the spots, a square patch around them, and the distribution of cell types in it.\n\nYou can see from this specific example, that there are patches that map to blank areas, yet still have a population of cell types. If the coordinates of the slices were correct, we would expect them to see zero abundance for all cell types. \n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F650%2Fd52280577ad0c8424680e27623c74c29%2FScreenshot%202025-04-02%20162640.png?generation=1743607672151998&alt=media)\n\n",
    "3167220": "@gpch2159 were you able to understand what this misalignment mean, and how it might effect the training process?",
    "3162079": "@elucidata2025 \nPlease take a look at provided dataset, almost every slide has points outside the image where S_1 & S_2 have more points that are out of image. This will affect the model training.",
    "3161942": "@elucidata2025 Did you have a chance to look at the misalignment?",
    "3159459": "That's a good point. Are you referring to the dots in the South part of S_2, for example? \nIt looks like the whole image is misaligned, as the shape do not overlap perfectly. Is this what you mean?\n\nI've created an[ EDA notebook](https://www.kaggle.com/code/dalloliogm/eda-plotting-cell-distribution-by-slice) to plot the abundance by Cell Type. If you scroll to the bottom, there are plots that show the total abundance in every slice. If you look closely at S_2, for example, there are dots that fall outside of the slice, yet they have high total abundance, meaning that there are some cells in there. ",
    "3180264": "",
    "3164464": ""
  }
}