{
  "id": 506594,
  "title": "Handling Of Varying Number Of Scans/Slices",
  "url": "/competitions/rsna-2024-lumbar-spine-degenerative-classification/discussion/506594",
  "author_name": "",
  "post_date": "2024-05-22T13:14:07.123502200Z",
  "votes": 4,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Each patient in this competition has 2-6 scans with each scan ranging from 5 to 192 slices.</p>\n<p>What would be some approaches to handle this greatly varying number of scans and slices?</p>\n<p>As this interesting competition just started any idea's and remarks are welcome!</p>\n<table>\n<thead>\n<tr>\n<th><strong># Scans</strong></th>\n<th><strong>Count</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>2</td>\n<td>3</td>\n</tr>\n<tr>\n<td>3</td>\n<td>1632</td>\n</tr>\n<tr>\n<td>4</td>\n<td>309</td>\n</tr>\n<tr>\n<td>5</td>\n<td>30</td>\n</tr>\n<tr>\n<td>6</td>\n<td>1</td>\n</tr>\n</tbody>\n</table>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4433335%2F40595811209e58920a30728f49d2e940%2Fplot.png?generation=1716383631811098&amp;alt=media\"></p>",
  "messages": [
    {
      "id": "2829196",
      "postDate": "05/22/2024 13:14:07",
      "content": "<p>Each patient in this competition has 2-6 scans with each scan ranging from 5 to 192 slices.</p>\n<p>What would be some approaches to handle this greatly varying number of scans and slices?</p>\n<p>As this interesting competition just started any idea's and remarks are welcome!</p>\n<table>\n<thead>\n<tr>\n<th><strong># Scans</strong></th>\n<th><strong>Count</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>2</td>\n<td>3</td>\n</tr>\n<tr>\n<td>3</td>\n<td>1632</td>\n</tr>\n<tr>\n<td>4</td>\n<td>309</td>\n</tr>\n<tr>\n<td>5</td>\n<td>30</td>\n</tr>\n<tr>\n<td>6</td>\n<td>1</td>\n</tr>\n</tbody>\n</table>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4433335%2F40595811209e58920a30728f49d2e940%2Fplot.png?generation=1716383631811098&amp;alt=media\"></p>",
      "rawMarkdown": "Each patient in this competition has 2-6 scans with each scan ranging from 5 to 192 slices.\n\nWhat would be some approaches to handle this greatly varying number of scans and slices?\n\nAs this interesting competition just started any idea's and remarks are welcome!\n\n| **# Scans** | **Count** |\n| --- | --- |\n| 2 |\t3 |\n| 3 | 1632 |\n| 4 | 309 |\n| 5 | 30 |\n| 6 | 1 |\n\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4433335%2F40595811209e58920a30728f49d2e940%2Fplot.png?generation=1716383631811098&alt=media)",
      "votes": null
    },
    {
      "id": "2831181",
      "postDate": "05/23/2024 14:47:23",
      "content": "<p>Neuroradiologist here. I plan to write a post about this, but the gist is: the scans are either a sagittal or a transversal/axial view of the body (the sagittal being along the long axis and the axial (mostly) perpendicular plane to this axis).</p>\n<p>The whole overview of <strong>all</strong> the levels/lumbar spine are only on the sagittal planes present and the perpendicular (axial ones) slices and depict only some or rarely all the of the levels affected. Usually either not all levels, or by overlapping volumes the same level.</p>\n<p>Assuming that all the sequences were aquired within the same aquisition, since the dicom images usually contain the position of the slices, one could co-register them to a common volume, and then see, where the x,y points of the axial images are situated on the sagittal counterparts… and use only the sagittal images for a training (omitting all the axial ones).</p>\n<p>By the inference, you would do this backwards… like identify the level and severity on the sagittal plane and then assign the axial images that are on that exact position of the volume, but let's solve this on another day =)</p>\n<p>Tthis is just scratching the surface, but let's dive deeper, ill post here the link when i'm ready.</p>",
      "rawMarkdown": "Neuroradiologist here. I plan to write a post about this, but the gist is: the scans are either a sagittal or a transversal/axial view of the body (the sagittal being along the long axis and the axial (mostly) perpendicular plane to this axis).\n\nThe whole overview of **all** the levels/lumbar spine are only on the sagittal planes present and the perpendicular (axial ones) slices and depict only some or rarely all the of the levels affected. Usually either not all levels, or by overlapping volumes the same level.\n\nAssuming that all the sequences were aquired within the same aquisition, since the dicom images usually contain the position of the slices, one could co-register them to a common volume, and then see, where the x,y points of the axial images are situated on the sagittal counterparts... and use only the sagittal images for a training (omitting all the axial ones).\n\nBy the inference, you would do this backwards... like identify the level and severity on the sagittal plane and then assign the axial images that are on that exact position of the volume, but let's solve this on another day =)\n\nTthis is just scratching the surface, but let's dive deeper, ill post here the link when i'm ready.",
      "votes": null
    },
    {
      "id": "2831357",
      "postDate": "05/23/2024 16:25:38",
      "content": "<p>I'm also new to this data format so I looked at old competitions and saw that most solutions were doing something along the lines of: input data (variable number of slices of shape (n, m)) -&gt; input to 2d cnn like efficientnet to extract features from all slices (output shape: (num_slices, embedding_size)) -&gt; finally input to sequence model like LSTM, GRU, or transformer encoder for classification.</p>",
      "rawMarkdown": "I'm also new to this data format so I looked at old competitions and saw that most solutions were doing something along the lines of: input data (variable number of slices of shape (n, m)) -> input to 2d cnn like efficientnet to extract features from all slices (output shape: (num_slices, embedding_size)) -> finally input to sequence model like LSTM, GRU, or transformer encoder for classification.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2831181,
      "author_name": "sandorkonya",
      "author_url": "",
      "post_date": "05/23/2024 14:47:23",
      "content": "<p>Neuroradiologist here. I plan to write a post about this, but the gist is: the scans are either a sagittal or a transversal/axial view of the body (the sagittal being along the long axis and the axial (mostly) perpendicular plane to this axis).</p>\n<p>The whole overview of <strong>all</strong> the levels/lumbar spine are only on the sagittal planes present and the perpendicular (axial ones) slices and depict only some or rarely all the of the levels affected. Usually either not all levels, or by overlapping volumes the same level.</p>\n<p>Assuming that all the sequences were aquired within the same aquisition, since the dicom images usually contain the position of the slices, one could co-register them to a common volume, and then see, where the x,y points of the axial images are situated on the sagittal counterparts… and use only the sagittal images for a training (omitting all the axial ones).</p>\n<p>By the inference, you would do this backwards… like identify the level and severity on the sagittal plane and then assign the axial images that are on that exact position of the volume, but let's solve this on another day =)</p>\n<p>Tthis is just scratching the surface, but let's dive deeper, ill post here the link when i'm ready.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2831357,
      "author_name": "snehalverma10",
      "author_url": "",
      "post_date": "05/23/2024 16:25:38",
      "content": "<p>I'm also new to this data format so I looked at old competitions and saw that most solutions were doing something along the lines of: input data (variable number of slices of shape (n, m)) -&gt; input to 2d cnn like efficientnet to extract features from all slices (output shape: (num_slices, embedding_size)) -&gt; finally input to sequence model like LSTM, GRU, or transformer encoder for classification.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2829196": "Each patient in this competition has 2-6 scans with each scan ranging from 5 to 192 slices.\n\nWhat would be some approaches to handle this greatly varying number of scans and slices?\n\nAs this interesting competition just started any idea's and remarks are welcome!\n\n| **# Scans** | **Count** |\n| --- | --- |\n| 2 |\t3 |\n| 3 | 1632 |\n| 4 | 309 |\n| 5 | 30 |\n| 6 | 1 |\n\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4433335%2F40595811209e58920a30728f49d2e940%2Fplot.png?generation=1716383631811098&alt=media)",
    "2831181": "Neuroradiologist here. I plan to write a post about this, but the gist is: the scans are either a sagittal or a transversal/axial view of the body (the sagittal being along the long axis and the axial (mostly) perpendicular plane to this axis).\n\nThe whole overview of **all** the levels/lumbar spine are only on the sagittal planes present and the perpendicular (axial ones) slices and depict only some or rarely all the of the levels affected. Usually either not all levels, or by overlapping volumes the same level.\n\nAssuming that all the sequences were aquired within the same aquisition, since the dicom images usually contain the position of the slices, one could co-register them to a common volume, and then see, where the x,y points of the axial images are situated on the sagittal counterparts... and use only the sagittal images for a training (omitting all the axial ones).\n\nBy the inference, you would do this backwards... like identify the level and severity on the sagittal plane and then assign the axial images that are on that exact position of the volume, but let's solve this on another day =)\n\nTthis is just scratching the surface, but let's dive deeper, ill post here the link when i'm ready.",
    "2831357": "I'm also new to this data format so I looked at old competitions and saw that most solutions were doing something along the lines of: input data (variable number of slices of shape (n, m)) -> input to 2d cnn like efficientnet to extract features from all slices (output shape: (num_slices, embedding_size)) -> finally input to sequence model like LSTM, GRU, or transformer encoder for classification."
  },
  "source": "meta"
}