{
  "id": 350859,
  "title": "[placeholder] 3d transformer benchmark results",
  "url": "/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/350859",
  "author_name": "hengck23",
  "post_date": "2022-09-07T11:44:40.933000",
  "votes": 58,
  "comment_count": 11,
  "views": 0,
  "content": "<p>to be updated ….</p>\n<p>baseline model:</p>\n<p><a href=\"https://ibb.co/W5GqD4R\"><img src=\"https://i.ibb.co/yPdGhcx/Selection-176.png\" alt=\"Selection-176\"></a></p>\n<p>approximate plan:</p>\n<ol>\n<li>design a framework with use of aux label (segmentation and box)</li>\n<li>compare results of 3d transformer (including pyramid vit), 3d cnn and 3d hybrid and others (2D 2.5D, LSTM, etc …)</li>\n<li>apply patch pretraining to transformer </li>\n<li>apply human in the loop active learning (click point annotation) </li>\n</ol>\n<p>why use transformer?</p>\n<ul>\n<li>the receptive field is large: e.g. you need to see the whole cervical spine (C1 to C8) to know which is the \"section of interest (e.g. Cn)</li>\n<li>there is only \"one layout/structure\". the body face the same direction, etc… position encoding works well as each body parts are fairly similar in both appearance (i.e. can be tokenized) and location(i.e. can be encoded by pos encoding).</li>\n<li>because of the above, there is great chance that pretraining can boost performance</li>\n</ul>\n<p>reference paper:<br>\n<a href=\"https://ibb.co/bHNK2rJ\"><img src=\"https://i.ibb.co/PT1695Q/Selection-177.png\" alt=\"Selection-177\"></a></p>\n<hr>\n<p>the nice thing about transformer is that i just need to change the vision tokenization layer for 2d input to 3d input. The rest of the transformer layers can remains unchanged. Hence i can easily modify any of the existing open source 2d vision transformer code. the pretrained weights for 2d also works for 3d image data.</p>\n<p>you can think that the below is approximately true :<br>\nconv3d(x,w) = conv2d(x.mean(0), w.mean(0))  </p>\n<p>just like<br>\nconv2d(x_10x10_patch,w_10x10_patch) = conv2d(x_resize_to_5x5, w_resize_to_5x5)  </p>",
  "messages": [
    {
      "id": 1929822,
      "postDate": "2022-09-07T11:44:40.933Z",
      "content": "<p>to be updated ….</p>\n<p>baseline model:</p>\n<p><a href=\"https://ibb.co/W5GqD4R\"><img src=\"https://i.ibb.co/yPdGhcx/Selection-176.png\" alt=\"Selection-176\"></a></p>\n<p>approximate plan:</p>\n<ol>\n<li>design a framework with use of aux label (segmentation and box)</li>\n<li>compare results of 3d transformer (including pyramid vit), 3d cnn and 3d hybrid and others (2D 2.5D, LSTM, etc …)</li>\n<li>apply patch pretraining to transformer </li>\n<li>apply human in the loop active learning (click point annotation) </li>\n</ol>\n<p>why use transformer?</p>\n<ul>\n<li>the receptive field is large: e.g. you need to see the whole cervical spine (C1 to C8) to know which is the \"section of interest (e.g. Cn)</li>\n<li>there is only \"one layout/structure\". the body face the same direction, etc… position encoding works well as each body parts are fairly similar in both appearance (i.e. can be tokenized) and location(i.e. can be encoded by pos encoding).</li>\n<li>because of the above, there is great chance that pretraining can boost performance</li>\n</ul>\n<p>reference paper:<br>\n<a href=\"https://ibb.co/bHNK2rJ\"><img src=\"https://i.ibb.co/PT1695Q/Selection-177.png\" alt=\"Selection-177\"></a></p>\n<hr>\n<p>the nice thing about transformer is that i just need to change the vision tokenization layer for 2d input to 3d input. The rest of the transformer layers can remains unchanged. Hence i can easily modify any of the existing open source 2d vision transformer code. the pretrained weights for 2d also works for 3d image data.</p>\n<p>you can think that the below is approximately true :<br>\nconv3d(x,w) = conv2d(x.mean(0), w.mean(0))  </p>\n<p>just like<br>\nconv2d(x_10x10_patch,w_10x10_patch) = conv2d(x_resize_to_5x5, w_resize_to_5x5)  </p>",
      "rawMarkdown": "to be updated ....\n\nbaseline model:\n\n<a href=\"https://ibb.co/W5GqD4R\"><img src=\"https://i.ibb.co/yPdGhcx/Selection-176.png\" alt=\"Selection-176\" border=\"0\"></a>\n\napproximate plan:\n\n1. design a framework with use of aux label (segmentation and box)\n2. compare results of 3d transformer (including pyramid vit), 3d cnn and 3d hybrid and others (2D 2.5D, LSTM, etc ...)\n3. apply patch pretraining to transformer \n4. apply human in the loop active learning (click point annotation) \n\n\nwhy use transformer?\n- the receptive field is large: e.g. you need to see the whole cervical spine (C1 to C8) to know which is the \"section of interest (e.g. Cn)\n- there is only \"one layout/structure\". the body face the same direction, etc... position encoding works well as each body parts are fairly similar in both appearance (i.e. can be tokenized) and location(i.e. can be encoded by pos encoding).\n- because of the above, there is great chance that pretraining can boost performance\n\n\nreference paper:\n<a href=\"https://ibb.co/bHNK2rJ\"><img src=\"https://i.ibb.co/PT1695Q/Selection-177.png\" alt=\"Selection-177\" border=\"0\"></a>\n\n\n---\n\nthe nice thing about transformer is that i just need to change the vision tokenization layer for 2d input to 3d input. The rest of the transformer layers can remains unchanged. Hence i can easily modify any of the existing open source 2d vision transformer code. the pretrained weights for 2d also works for 3d image data.\n\nyou can think that the below is approximately true :\nconv3d(x,w) = conv2d(x.mean(0), w.mean(0))  \n\njust like\nconv2d(x\\_10x10_patch,w\\_10x10_patch) = conv2d(x\\_resize_to_5x5, w\\_resize_to_5x5)  \n",
      "votes": 56
    },
    {
      "id": 1935256,
      "postDate": "2022-09-12T01:25:33.787Z",
      "content": "<p>initial 3d transformer results</p>\n<p>i modified mix transformer as follows. as a proof of concept, i trained 3d cervical spine segmentation with the image token as aux loss.<br>\ni haven trained the cls token yet.</p>\n<p>using persistent cache of monai, it took 60 min to train with all 87 segment samples in about 60 epochs for a train loss 0.023 (multi-class segmentation cross entropy). as a reference simple resnet183d-unet takes about 35 min for the same setting.</p>\n<p>train = 8x 256x256x256 crops at spacing  dim =0.6,0.6,0.6<br>\ntest = varying single input size without cropping</p>\n<p>code to be released soon</p>\n<p><a href=\"https://ibb.co/HgRhCMb\"><img src=\"https://i.ibb.co/x5wFYcB/Selection-223.png\" alt=\"Selection-223\"></a><br>\n<a href=\"https://ibb.co/Lzq1zkK\"><img src=\"https://i.ibb.co/VWhTWj6/Selection-222.png\" alt=\"Selection-222\"></a></p>",
      "rawMarkdown": "initial 3d transformer results\n\ni modified mix transformer as follows. as a proof of concept, i trained 3d cervical spine segmentation with the image token as aux loss.\ni haven trained the cls token yet.\n\nusing persistent cache of monai, it took 60 min to train with all 87 segment samples in about 60 epochs for a train loss 0.023 (multi-class segmentation cross entropy). as a reference simple resnet183d-unet takes about 35 min for the same setting.\n\ntrain = 8x 256x256x256 crops at spacing  dim =0.6,0.6,0.6\ntest = varying single input size without cropping\n\ncode to be released soon\n\n<a href=\"https://ibb.co/HgRhCMb\"><img src=\"https://i.ibb.co/x5wFYcB/Selection-223.png\" alt=\"Selection-223\" border=\"0\"></a>\n<a href=\"https://ibb.co/Lzq1zkK\"><img src=\"https://i.ibb.co/VWhTWj6/Selection-222.png\" alt=\"Selection-222\" border=\"0\"></a>",
      "votes": 8,
      "replies": [
        {
          "id": 1936451,
          "postDate": "2022-09-12T18:52:29.597Z",
          "content": "<p>some updated results</p>\n<p><a href=\"https://ibb.co/J7B5Rmx\"><img src=\"https://i.ibb.co/cFgDckb/Selection-241.png\" alt=\"Selection-241\"></a> <br>\n<a href=\"https://ibb.co/pyQsvXP\"><img src=\"https://i.ibb.co/vYhrxzB/Selection-243.png\" alt=\"Selection-243\"></a><br>\n<a href=\"https://ibb.co/sW9ZdSW\"><img src=\"https://i.ibb.co/NT2MdhT/Selection-242.png\" alt=\"Selection-242\"></a></p>",
          "rawMarkdown": "some updated results\n\n<a href=\"https://ibb.co/J7B5Rmx\"><img src=\"https://i.ibb.co/cFgDckb/Selection-241.png\" alt=\"Selection-241\" border=\"0\"></a> \n<a href=\"https://ibb.co/pyQsvXP\"><img src=\"https://i.ibb.co/vYhrxzB/Selection-243.png\" alt=\"Selection-243\" border=\"0\"></a>\n<a href=\"https://ibb.co/sW9ZdSW\"><img src=\"https://i.ibb.co/NT2MdhT/Selection-242.png\" alt=\"Selection-242\" border=\"0\"></a>",
          "votes": 1
        },
        {
          "id": 1936491,
          "postDate": "2022-09-12T19:26:02.427Z",
          "content": "<p>type of cervical-spine-fractures:</p>\n<p><a href=\"https://www.youtube.com/watch?v=6itvmj7y5TE\" target=\"_blank\">https://www.youtube.com/watch?v=6itvmj7y5TE</a><br>\nthis is good. it shows you how to read from Ct scan</p>\n<p>others:<br>\n<a href=\"https://www.youtube.com/watch?v=jY2lXySPiAw\" target=\"_blank\">https://www.youtube.com/watch?v=jY2lXySPiAw</a><br>\n<a href=\"https://www.youtube.com/watch?v=mU75SnzPlbc\" target=\"_blank\">https://www.youtube.com/watch?v=mU75SnzPlbc</a><br>\n<a href=\"https://www.nuemblog.com/blog/cervical-spine-fractures\" target=\"_blank\">https://www.nuemblog.com/blog/cervical-spine-fractures</a><br>\n<a href=\"https://teachmesurgery.com/orthopaedic/spine/cervical-fracture/\" target=\"_blank\">https://teachmesurgery.com/orthopaedic/spine/cervical-fracture/</a></p>",
          "rawMarkdown": "type of cervical-spine-fractures:\n\nhttps://www.youtube.com/watch?v=6itvmj7y5TE\nthis is good. it shows you how to read from Ct scan\n\n\nothers:\nhttps://www.youtube.com/watch?v=jY2lXySPiAw\nhttps://www.youtube.com/watch?v=mU75SnzPlbc\nhttps://www.nuemblog.com/blog/cervical-spine-fractures\nhttps://teachmesurgery.com/orthopaedic/spine/cervical-fracture/",
          "votes": 1
        }
      ]
    },
    {
      "id": 1929857,
      "postDate": "2022-09-07T11:59:13.193Z",
      "content": "<p>how to train on high resolution:</p>\n<p>stage one</p>\n<ul>\n<li>ignore cls. train toke loss in 2d crops (e.g. 196x196x196)</li>\n</ul>\n<p>stage two</p>\n<ul>\n<li>freeze some initial layers. train both cls and token loss</li>\n</ul>\n<hr>\n<p>how to prevent overfitting when apply transformer on small data?</p>\n<ul>\n<li>assume transformer has N layers. Output from intermediate layer e.g. 3,8,12,N. For each of the output, apply token loss. the loss weights for different output layers can be high to low.</li>\n</ul>\n<p>paper for training transformer from scratch:</p>\n<p>[1] Training Vision Transformers with Only 2040 Images  <br>\n<a href=\"https://arxiv.org/abs/2201.10728\" target=\"_blank\">https://arxiv.org/abs/2201.10728</a></p>\n<p>[2] WHEN VISION TRANSFORMERS OUTPERFORM RESNETS WITHOUT PRE-TRAINING OR STRONG DATA AUGMENTATIONS<br>\n<a href=\"https://arxiv.org/pdf/2106.01548.pdf\" target=\"_blank\">https://arxiv.org/pdf/2106.01548.pdf</a><br>\nrelated:  Towards Efficient and Scalable Sharpness-Aware Minimization</p>\n<p>[3] Efficient Training of Visual Transformers with Small Datasets<br>\n<a href=\"https://openreview.net/pdf?id=AJofO-OFT40\" target=\"_blank\">https://openreview.net/pdf?id=AJofO-OFT40</a></p>\n<p>[4] Training Object Detectors from Scratch: An Empirical Study in the Era of Vision Transformer<br>\n<a href=\"https://openaccess.thecvf.com/content/CVPR2022/papers/Hong_Training_Object_Detectors_From_Scratch_An_Empirical_Study_in_the_CVPR_2022_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content/CVPR2022/papers/Hong_Training_Object_Detectors_From_Scratch_An_Empirical_Study_in_the_CVPR_2022_paper.pdf</a>  </p>",
      "rawMarkdown": "how to train on high resolution:\n\nstage one\n- ignore cls. train toke loss in 2d crops (e.g. 196x196x196)\n\nstage two\n- freeze some initial layers. train both cls and token loss\n\n\n---\n\nhow to prevent overfitting when apply transformer on small data?\n- assume transformer has N layers. Output from intermediate layer e.g. 3,8,12,N. For each of the output, apply token loss. the loss weights for different output layers can be high to low.\n\npaper for training transformer from scratch:\n\n[1] Training Vision Transformers with Only 2040 Images  \nhttps://arxiv.org/abs/2201.10728\n\n[2] WHEN VISION TRANSFORMERS OUTPERFORM RESNETS WITHOUT PRE-TRAINING OR STRONG DATA AUGMENTATIONS\nhttps://arxiv.org/pdf/2106.01548.pdf\nrelated:  Towards Efficient and Scalable Sharpness-Aware Minimization\n\n[3] Efficient Training of Visual Transformers with Small Datasets\nhttps://openreview.net/pdf?id=AJofO-OFT40\n\n[4] Training Object Detectors from Scratch: An Empirical Study in the Era of Vision Transformer\nhttps://openaccess.thecvf.com/content/CVPR2022/papers/Hong_Training_Object_Detectors_From_Scratch_An_Empirical_Study_in_the_CVPR_2022_paper.pdf  \n",
      "votes": 2
    },
    {
      "id": 1929838,
      "postDate": "2022-09-07T11:49:53.713Z",
      "content": "<p>background reading:</p>\n<p>[1] Deep Sequential Learning for Cervical Spine Fracture Detection on Computed Tomography Imaging  <br>\n<a href=\"https://arxiv.org/abs/2010.13336\" target=\"_blank\">https://arxiv.org/abs/2010.13336</a></p>\n<p>[2] CT Cervical Spine Fracture Detection Using a Convolutional Neural Network  <br>\n<a href=\"http://www.ajnr.org/content/ajnr/42/7/1341.full.pdf\" target=\"_blank\">http://www.ajnr.org/content/ajnr/42/7/1341.full.pdf</a>  </p>\n<p>[3] Reinventing 2D Convolutions for 3D Medical Images<br>\n<a href=\"https://www.arxiv-vanity.com/papers/1911.10477/\" target=\"_blank\">https://www.arxiv-vanity.com/papers/1911.10477/</a></p>\n<p>[4] A scalable physician-level deep learning algorithm detects universal trauma on pelvic radiographs<br>\n<a href=\"https://www.nature.com/articles/s41467-021-21311-3.pdf\" target=\"_blank\">https://www.nature.com/articles/s41467-021-21311-3.pdf</a></p>\n<p>[5] Self-Supervised Pre-Training of Swin Transformers for 3D Medical Image Analysis<br>\n<a href=\"https://openaccess.thecvf.com/content/CVPR2022/papers/Tang_Self-Supervised_Pre-Training_of_Swin_Transformers_for_3D_Medical_Image_Analysis_CVPR_2022_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content/CVPR2022/papers/Tang_Self-Supervised_Pre-Training_of_Swin_Transformers_for_3D_Medical_Image_Analysis_CVPR_2022_paper.pdf</a></p>\n<p>list of 3d transformer<br>\n<a href=\"https://github.com/lahoud/3d-vision-transformers\" target=\"_blank\">https://github.com/lahoud/3d-vision-transformers</a></p>\n<hr>\n<p>Detecting pelvic fracture on 3D-CT using deep convolutional neural networks with multi-orientated slab images<br>\n<a href=\"https://www.nature.com/articles/s41598-021-91144-z\" target=\"_blank\">https://www.nature.com/articles/s41598-021-91144-z</a></p>\n<p>Automatic Vertebra Localization and Identification in CT by Spine Rectification and Anatomically-constrained Optimization -cvpr2021  <br>\n<a href=\"https://openaccess.thecvf.com/content/CVPR2021/papers/Wang_Automatic_Vertebra_Localization_and_Identification_in_CT_by_Spine_Rectification_CVPR_2021_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content/CVPR2021/papers/Wang_Automatic_Vertebra_Localization_and_Identification_in_CT_by_Spine_Rectification_CVPR_2021_paper.pdf</a>  </p>",
      "rawMarkdown": "background reading:\n\n[1] Deep Sequential Learning for Cervical Spine Fracture Detection on Computed Tomography Imaging  \nhttps://arxiv.org/abs/2010.13336\n\n[2] CT Cervical Spine Fracture Detection Using a Convolutional Neural Network  \nhttp://www.ajnr.org/content/ajnr/42/7/1341.full.pdf  \n\n[3] Reinventing 2D Convolutions for 3D Medical Images\nhttps://www.arxiv-vanity.com/papers/1911.10477/\n\n[4] A scalable physician-level deep learning algorithm detects universal trauma on pelvic radiographs\nhttps://www.nature.com/articles/s41467-021-21311-3.pdf\n\n[5] Self-Supervised Pre-Training of Swin Transformers for 3D Medical Image Analysis\nhttps://openaccess.thecvf.com/content/CVPR2022/papers/Tang_Self-Supervised_Pre-Training_of_Swin_Transformers_for_3D_Medical_Image_Analysis_CVPR_2022_paper.pdf\n\nlist of 3d transformer\nhttps://github.com/lahoud/3d-vision-transformers\n\n---\n\nDetecting pelvic fracture on 3D-CT using deep convolutional neural networks with multi-orientated slab images\nhttps://www.nature.com/articles/s41598-021-91144-z\n\nAutomatic Vertebra Localization and Identification in CT by Spine Rectification and Anatomically-constrained Optimization -cvpr2021  \nhttps://openaccess.thecvf.com/content/CVPR2021/papers/Wang_Automatic_Vertebra_Localization_and_Identification_in_CT_by_Spine_Rectification_CVPR_2021_paper.pdf  ",
      "votes": 2,
      "replies": [
        {
          "id": 1930358,
          "postDate": "2022-09-07T19:08:00.150Z",
          "content": "<p>i am very interested in using point annotation to help fracture detection.<br>\nbecause it is easy to mark the unlabelled CT spine scans (we just need to identify the correct spine section)</p>\n<p>here is another paper:<br>\n[4a] A New Window Loss Function for Bone Fracture Detection and Localization in X-ray Images with Point-based Annotation<br>\n<a href=\"https://www.catalyzex.com/paper/arxiv:2012.04066\" target=\"_blank\">https://www.catalyzex.com/paper/arxiv:2012.04066</a></p>\n<p><a href=\"https://ibb.co/s5cnc4j\"><img src=\"https://i.ibb.co/n3494yr/Selection-170.png\" alt=\"Selection-170\"></a><br>\n<a href=\"https://ibb.co/VNR8k9J\"><img src=\"https://i.ibb.co/vBp8MqV/Selection-180.png\" alt=\"Selection-180\"></a><br>\n<a href=\"https://ibb.co/XkLzv0P\"><img src=\"https://i.ibb.co/Vp9vPnG/Selection-178.png\" alt=\"Selection-178\"></a></p>\n<p>with more annotation, we can get better public/private board ranking</p>\n<hr>\n<p>prostateX MRI 3d dataset is also using point annotation for classification</p>\n<p><a href=\"https://towardsdatascience.com/3d-cnn-classification-of-prostate-tumour-on-multi-parametric-mri-sequences-prostatex-2-cced525394bb\" target=\"_blank\">https://towardsdatascience.com/3d-cnn-classification-of-prostate-tumour-on-multi-parametric-mri-sequences-prostatex-2-cced525394bb</a></p>",
          "rawMarkdown": "i am very interested in using point annotation to help fracture detection.\nbecause it is easy to mark the unlabelled CT spine scans (we just need to identify the correct spine section)\n\nhere is another paper:\n[4a] A New Window Loss Function for Bone Fracture Detection and Localization in X-ray Images with Point-based Annotation\nhttps://www.catalyzex.com/paper/arxiv:2012.04066\n\n<a href=\"https://ibb.co/s5cnc4j\"><img src=\"https://i.ibb.co/n3494yr/Selection-170.png\" alt=\"Selection-170\" border=\"0\"></a>\n<a href=\"https://ibb.co/VNR8k9J\"><img src=\"https://i.ibb.co/vBp8MqV/Selection-180.png\" alt=\"Selection-180\" border=\"0\"></a>\n<a href=\"https://ibb.co/XkLzv0P\"><img src=\"https://i.ibb.co/Vp9vPnG/Selection-178.png\" alt=\"Selection-178\" border=\"0\"></a>\n\nwith more annotation, we can get better public/private board ranking\n\n---\n\nprostateX MRI 3d dataset is also using point annotation for classification\n\nhttps://towardsdatascience.com/3d-cnn-classification-of-prostate-tumour-on-multi-parametric-mri-sequences-prostatex-2-cced525394bb",
          "votes": 2
        },
        {
          "id": 1930391,
          "postDate": "2022-09-07T20:09:13.843Z",
          "content": "<p>external dataset:<br>\n(assuming that self supervised learning of other spline can help cervical-spine?)</p>\n<p>[1] CTSpine1K: A Large-Scale Dataset for Spinal Vertebrae Segmentation in Computed Tomography<br>\n<a href=\"https://arxiv.org/pdf/2105.14711.pdf\" target=\"_blank\">https://arxiv.org/pdf/2105.14711.pdf</a></p>\n<p>[2] A Vertebral Segmentation Dataset with Fracture Grading<br>\n<a href=\"https://pubs.rsna.org/doi/epdf/10.1148/ryai.2020190138\" target=\"_blank\">https://pubs.rsna.org/doi/epdf/10.1148/ryai.2020190138</a></p>\n<p><a href=\"http://spineweb.digitalimaginggroup.ca/\" target=\"_blank\">http://spineweb.digitalimaginggroup.ca/</a><br>\n<a href=\"https://verse2019.grand-challenge.org/\" target=\"_blank\">https://verse2019.grand-challenge.org/</a><br>\n<a href=\"https://verse2020.grand-challenge.org\" target=\"_blank\">https://verse2020.grand-challenge.org</a><br>\n<a href=\"https://github.com/anjany/verse\" target=\"_blank\">https://github.com/anjany/verse</a></p>\n<p><a href=\"http://lit.fe.uni-lj.si/xVertSeg/overview.php#12\" target=\"_blank\">http://lit.fe.uni-lj.si/xVertSeg/overview.php#12</a></p>\n<p><a href=\"https://biomedia.doc.ic.ac.uk/data/spine/\" target=\"_blank\">https://biomedia.doc.ic.ac.uk/data/spine/</a><br>\n<a href=\"https://github.com/jfm15/SpineFinder\" target=\"_blank\">https://github.com/jfm15/SpineFinder</a></p>\n<p>extra label: <br>\n<a href=\"https://anduin.bonescreen.de/\" target=\"_blank\">https://anduin.bonescreen.de/</a><br>\nAnduin is a freely available research tool to segment vertebrae in a CT scan, uploaded as NIFTI data.</p>\n<hr>\n<p>from other kagglers:</p>\n<p>credits goes to <a href=\"https://www.kaggle.com/ipythonx\" target=\"_blank\">@ipythonx</a></p>\n<p><a href=\"https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/341140\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/341140</a></p>\n<ul>\n<li><a href=\"https://www.radimagenet.com/\" target=\"_blank\">https://www.radimagenet.com/</a></li>\n<li><a href=\"https://github.com/BMEII-AI/RadImageNet\" target=\"_blank\">https://github.com/BMEII-AI/RadImageNet</a></li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/340612#1911268\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/340612#1911268</a></p>\n<ul>\n<li><a href=\"https://arxiv.org/pdf/2208.05868.pdf\" target=\"_blank\">https://arxiv.org/pdf/2208.05868.pdf</a></li>\n<li><a href=\"https://github.com/wasserth/TotalSegmentator\" target=\"_blank\">https://github.com/wasserth/TotalSegmentator</a></li>\n<li><a href=\"https://zenodo.org/record/6802614#.YwWGAXZByHs\" target=\"_blank\">https://zenodo.org/record/6802614#.YwWGAXZByHs</a></li>\n</ul>",
          "rawMarkdown": "external dataset:\n(assuming that self supervised learning of other spline can help cervical-spine?)\n\n[1] CTSpine1K: A Large-Scale Dataset for Spinal Vertebrae Segmentation in Computed Tomography\nhttps://arxiv.org/pdf/2105.14711.pdf\n\n[2] A Vertebral Segmentation Dataset with Fracture Grading\nhttps://pubs.rsna.org/doi/epdf/10.1148/ryai.2020190138\n\nhttp://spineweb.digitalimaginggroup.ca/\nhttps://verse2019.grand-challenge.org/\nhttps://verse2020.grand-challenge.org\nhttps://github.com/anjany/verse\n\nhttp://lit.fe.uni-lj.si/xVertSeg/overview.php#12\n\nhttps://biomedia.doc.ic.ac.uk/data/spine/\nhttps://github.com/jfm15/SpineFinder\n\nextra label: \nhttps://anduin.bonescreen.de/\nAnduin is a freely available research tool to segment vertebrae in a CT scan, uploaded as NIFTI data.\n\n---\nfrom other kagglers:\n\ncredits goes to @ipythonx\n\nhttps://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/341140\n- https://www.radimagenet.com/\n- https://github.com/BMEII-AI/RadImageNet\n\nhttps://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/340612#1911268\n- https://arxiv.org/pdf/2208.05868.pdf\n- https://github.com/wasserth/TotalSegmentator\n- https://zenodo.org/record/6802614#.YwWGAXZByHs",
          "votes": 1
        },
        {
          "id": 1931118,
          "postDate": "2022-09-08T13:08:13.307Z",
          "content": "<p>when it comes to semi-supervised learning in medical problems, kaggle can consider use of medical records.</p>\n<p>we can extract weak labels from medical records.<br>\ne.g. the doctor may indicate the presence of xxx fracture or no abnormality in the CT scan. </p>\n<p>this requires additional knowledge of NLP in understanding medical records. </p>",
          "rawMarkdown": "when it comes to semi-supervised learning in medical problems, kaggle can consider use of medical records.\n\nwe can extract weak labels from medical records.\ne.g. the doctor may indicate the presence of xxx fracture or no abnormality in the CT scan. \n\nthis requires additional knowledge of NLP in understanding medical records. "
        },
        {
          "id": 1937400,
          "postDate": "2022-09-13T13:14:53.343Z",
          "content": "<p>is radiomic Features useful?</p>\n<p>these are texture/histogram features like Gray level co-occurence matrices, etc</p>\n<ul>\n<li>Prediction of the Acuity of Vertebral Compression Fractures on CT Using Radiologic and Radiomic Features  </li>\n<li>Artificial intelligence‑based radiomics on computed tomography of lumbar spine in subjects with fragility vertebral fractures  <br>\n<a href=\"https://link.springer.com/content/pdf/10.1007/s40618-022-01837-z.pdf\" target=\"_blank\">https://link.springer.com/content/pdf/10.1007/s40618-022-01837-z.pdf</a></li>\n</ul>",
          "rawMarkdown": "is radiomic Features useful?\n\nthese are texture/histogram features like Gray level co-occurence matrices, etc\n\n- Prediction of the Acuity of Vertebral Compression Fractures on CT Using Radiologic and Radiomic Features  \n- Artificial intelligence‑based radiomics on computed tomography of lumbar spine in subjects with fragility vertebral fractures  \nhttps://link.springer.com/content/pdf/10.1007/s40618-022-01837-z.pdf"
        }
      ]
    },
    {
      "id": 1937328,
      "postDate": "2022-09-13T12:22:48.747Z",
      "content": "<p>if you want to read about commercial system, here is one:</p>\n<hr>\n<p>AI for C-Spine Fractures: Aidoc Sets the Pace With 3rd FDA<br>\n<a href=\"https://www.prnewswire.com/news-releases/ai-for-c-spine-fractures-aidoc-sets-the-pace-with-3rd-fda-clearance-in-9-months-300865221.html\" target=\"_blank\">https://www.prnewswire.com/news-releases/ai-for-c-spine-fractures-aidoc-sets-the-pace-with-3rd-fda-clearance-in-9-months-300865221.html</a></p>\n<hr>\n<p>paper:<br>\n<a href=\"https://www.aidoc.com/blog/clinical-impact-ai-triaging-c-spine-fractures/\" target=\"_blank\">https://www.aidoc.com/blog/clinical-impact-ai-triaging-c-spine-fractures/</a><br>\nCT Cervical Spine Fracture Detection Using a Convolutional Neural Network</p>\n<p>\"The cervical spine fracture detection model consists of 2 stages:<br>\na region proposal stage and a false-positive reduction stage. The<br>\nfirst stage is a 3D fully convolutional deep neural network. The<br>\narchitecture is based on the Residual Network architecture, which<br>\nconsists of repeated blocks of several convolutional layers with skip<br>\nconnections between them, and is followed by a pooling layer that<br>\nreduces the dimensions of the output. This network is trained on<br>\nsegmented scans and produces a 3D segmentation map. The<br>\nmodel was trained from scratch, with no pretraining from addi-<br>\ntional datasets. From the segmentation map, region proposals are<br>\nextracted and passed as input to the second stage of the algorithm.<br>\nThe second stage classifies each region as positive or negative. Two<br>\nsets of features are extracted from each region, fused together, and<br>\nused for the final decision. The first are learned features from a<br>\nmultilayered, classification head that receives the features from the<br>\nlast layer of the 3D segmentation network for the proposed regions<br>\nas input. The second are nonlearned engineered features obtained<br>\nfrom traditional image-processing methods that operate on the<br>\nproposed regions. These features are combined through an addi-<br>\ntional neural network, which classifies each proposal as a fracture<br>\nor not\"</p>\n<hr>\n<p><a href=\"https://pubmed.ncbi.nlm.nih.gov/34117018/\" target=\"_blank\">https://pubmed.ncbi.nlm.nih.gov/34117018/</a><br>\nDiagnostic Accuracy and Failure Mode Analysis of a Deep Learning Algorithm for the Detection of Cervical Spine Fractures <br>\nerror analysis<br>\n\" Aidoc and the neuroradiologist's interpretation were concordant in 91.5% of cases. Aidoc correctly identified 67 of 122 fractures (54.9%) with 106 false-positive flagged studies. Diagnostic performance was calculated as the following: sensitivity, 54.9% (95% CI, 45.7%-63.9%); specificity, 94.1% (95% CI, 92.9%-95.1%); positive predictive value, 38.7% (95% CI, 33.1%-44.7%); and negative predictive value, 96.8% (95% CI, 96.2%-97.4%). Worsened performance was observed in the detection of chronic fractures; differences in diagnostic performance were not altered by study indication or patient characteristics. \"</p>",
      "rawMarkdown": "if you want to read about commercial system, here is one:\n\n---\n\nAI for C-Spine Fractures: Aidoc Sets the Pace With 3rd FDA\nhttps://www.prnewswire.com/news-releases/ai-for-c-spine-fractures-aidoc-sets-the-pace-with-3rd-fda-clearance-in-9-months-300865221.html\n\n---\n\npaper:\nhttps://www.aidoc.com/blog/clinical-impact-ai-triaging-c-spine-fractures/\nCT Cervical Spine Fracture Detection Using a Convolutional Neural Network\n\n\"The cervical spine fracture detection model consists of 2 stages:\na region proposal stage and a false-positive reduction stage. The\nfirst stage is a 3D fully convolutional deep neural network. The\narchitecture is based on the Residual Network architecture, which\nconsists of repeated blocks of several convolutional layers with skip\nconnections between them, and is followed by a pooling layer that\nreduces the dimensions of the output. This network is trained on\nsegmented scans and produces a 3D segmentation map. The\nmodel was trained from scratch, with no pretraining from addi-\ntional datasets. From the segmentation map, region proposals are\nextracted and passed as input to the second stage of the algorithm.\nThe second stage classifies each region as positive or negative. Two\nsets of features are extracted from each region, fused together, and\nused for the final decision. The first are learned features from a\nmultilayered, classification head that receives the features from the\nlast layer of the 3D segmentation network for the proposed regions\nas input. The second are nonlearned engineered features obtained\nfrom traditional image-processing methods that operate on the\nproposed regions. These features are combined through an addi-\ntional neural network, which classifies each proposal as a fracture\nor not\"\n\n\n---\n\nhttps://pubmed.ncbi.nlm.nih.gov/34117018/\nDiagnostic Accuracy and Failure Mode Analysis of a Deep Learning Algorithm for the Detection of Cervical Spine Fractures \nerror analysis\n\" Aidoc and the neuroradiologist's interpretation were concordant in 91.5% of cases. Aidoc correctly identified 67 of 122 fractures (54.9%) with 106 false-positive flagged studies. Diagnostic performance was calculated as the following: sensitivity, 54.9% (95% CI, 45.7%-63.9%); specificity, 94.1% (95% CI, 92.9%-95.1%); positive predictive value, 38.7% (95% CI, 33.1%-44.7%); and negative predictive value, 96.8% (95% CI, 96.2%-97.4%). Worsened performance was observed in the detection of chronic fractures; differences in diagnostic performance were not altered by study indication or patient characteristics. \"\n\n"
    },
    {
      "id": 1932904,
      "postDate": "2022-09-10T05:33:11.193Z",
      "content": "<p>Very insightful content from you as always. I will try on it on the data to see the result.</p>",
      "rawMarkdown": "Very insightful content from you as always. I will try on it on the data to see the result."
    }
  ],
  "comments": [
    {
      "id": 1935256,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2022-09-12T01:25:33.787000",
      "content": "<p>initial 3d transformer results</p>\n<p>i modified mix transformer as follows. as a proof of concept, i trained 3d cervical spine segmentation with the image token as aux loss.<br>\ni haven trained the cls token yet.</p>\n<p>using persistent cache of monai, it took 60 min to train with all 87 segment samples in about 60 epochs for a train loss 0.023 (multi-class segmentation cross entropy). as a reference simple resnet183d-unet takes about 35 min for the same setting.</p>\n<p>train = 8x 256x256x256 crops at spacing  dim =0.6,0.6,0.6<br>\ntest = varying single input size without cropping</p>\n<p>code to be released soon</p>\n<p><a href=\"https://ibb.co/HgRhCMb\"><img src=\"https://i.ibb.co/x5wFYcB/Selection-223.png\" alt=\"Selection-223\"></a><br>\n<a href=\"https://ibb.co/Lzq1zkK\"><img src=\"https://i.ibb.co/VWhTWj6/Selection-222.png\" alt=\"Selection-222\"></a></p>",
      "votes": 8,
      "replies": [
        {
          "id": 1936451,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-09-12T18:52:29.597000",
          "content": "<p>some updated results</p>\n<p><a href=\"https://ibb.co/J7B5Rmx\"><img src=\"https://i.ibb.co/cFgDckb/Selection-241.png\" alt=\"Selection-241\"></a> <br>\n<a href=\"https://ibb.co/pyQsvXP\"><img src=\"https://i.ibb.co/vYhrxzB/Selection-243.png\" alt=\"Selection-243\"></a><br>\n<a href=\"https://ibb.co/sW9ZdSW\"><img src=\"https://i.ibb.co/NT2MdhT/Selection-242.png\" alt=\"Selection-242\"></a></p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1936491,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-09-12T19:26:02.427000",
          "content": "<p>type of cervical-spine-fractures:</p>\n<p><a href=\"https://www.youtube.com/watch?v=6itvmj7y5TE\" target=\"_blank\">https://www.youtube.com/watch?v=6itvmj7y5TE</a><br>\nthis is good. it shows you how to read from Ct scan</p>\n<p>others:<br>\n<a href=\"https://www.youtube.com/watch?v=jY2lXySPiAw\" target=\"_blank\">https://www.youtube.com/watch?v=jY2lXySPiAw</a><br>\n<a href=\"https://www.youtube.com/watch?v=mU75SnzPlbc\" target=\"_blank\">https://www.youtube.com/watch?v=mU75SnzPlbc</a><br>\n<a href=\"https://www.nuemblog.com/blog/cervical-spine-fractures\" target=\"_blank\">https://www.nuemblog.com/blog/cervical-spine-fractures</a><br>\n<a href=\"https://teachmesurgery.com/orthopaedic/spine/cervical-fracture/\" target=\"_blank\">https://teachmesurgery.com/orthopaedic/spine/cervical-fracture/</a></p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1929857,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2022-09-07T11:59:13.193000",
      "content": "<p>how to train on high resolution:</p>\n<p>stage one</p>\n<ul>\n<li>ignore cls. train toke loss in 2d crops (e.g. 196x196x196)</li>\n</ul>\n<p>stage two</p>\n<ul>\n<li>freeze some initial layers. train both cls and token loss</li>\n</ul>\n<hr>\n<p>how to prevent overfitting when apply transformer on small data?</p>\n<ul>\n<li>assume transformer has N layers. Output from intermediate layer e.g. 3,8,12,N. For each of the output, apply token loss. the loss weights for different output layers can be high to low.</li>\n</ul>\n<p>paper for training transformer from scratch:</p>\n<p>[1] Training Vision Transformers with Only 2040 Images  <br>\n<a href=\"https://arxiv.org/abs/2201.10728\" target=\"_blank\">https://arxiv.org/abs/2201.10728</a></p>\n<p>[2] WHEN VISION TRANSFORMERS OUTPERFORM RESNETS WITHOUT PRE-TRAINING OR STRONG DATA AUGMENTATIONS<br>\n<a href=\"https://arxiv.org/pdf/2106.01548.pdf\" target=\"_blank\">https://arxiv.org/pdf/2106.01548.pdf</a><br>\nrelated:  Towards Efficient and Scalable Sharpness-Aware Minimization</p>\n<p>[3] Efficient Training of Visual Transformers with Small Datasets<br>\n<a href=\"https://openreview.net/pdf?id=AJofO-OFT40\" target=\"_blank\">https://openreview.net/pdf?id=AJofO-OFT40</a></p>\n<p>[4] Training Object Detectors from Scratch: An Empirical Study in the Era of Vision Transformer<br>\n<a href=\"https://openaccess.thecvf.com/content/CVPR2022/papers/Hong_Training_Object_Detectors_From_Scratch_An_Empirical_Study_in_the_CVPR_2022_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content/CVPR2022/papers/Hong_Training_Object_Detectors_From_Scratch_An_Empirical_Study_in_the_CVPR_2022_paper.pdf</a>  </p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1929838,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2022-09-07T11:49:53.713000",
      "content": "<p>background reading:</p>\n<p>[1] Deep Sequential Learning for Cervical Spine Fracture Detection on Computed Tomography Imaging  <br>\n<a href=\"https://arxiv.org/abs/2010.13336\" target=\"_blank\">https://arxiv.org/abs/2010.13336</a></p>\n<p>[2] CT Cervical Spine Fracture Detection Using a Convolutional Neural Network  <br>\n<a href=\"http://www.ajnr.org/content/ajnr/42/7/1341.full.pdf\" target=\"_blank\">http://www.ajnr.org/content/ajnr/42/7/1341.full.pdf</a>  </p>\n<p>[3] Reinventing 2D Convolutions for 3D Medical Images<br>\n<a href=\"https://www.arxiv-vanity.com/papers/1911.10477/\" target=\"_blank\">https://www.arxiv-vanity.com/papers/1911.10477/</a></p>\n<p>[4] A scalable physician-level deep learning algorithm detects universal trauma on pelvic radiographs<br>\n<a href=\"https://www.nature.com/articles/s41467-021-21311-3.pdf\" target=\"_blank\">https://www.nature.com/articles/s41467-021-21311-3.pdf</a></p>\n<p>[5] Self-Supervised Pre-Training of Swin Transformers for 3D Medical Image Analysis<br>\n<a href=\"https://openaccess.thecvf.com/content/CVPR2022/papers/Tang_Self-Supervised_Pre-Training_of_Swin_Transformers_for_3D_Medical_Image_Analysis_CVPR_2022_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content/CVPR2022/papers/Tang_Self-Supervised_Pre-Training_of_Swin_Transformers_for_3D_Medical_Image_Analysis_CVPR_2022_paper.pdf</a></p>\n<p>list of 3d transformer<br>\n<a href=\"https://github.com/lahoud/3d-vision-transformers\" target=\"_blank\">https://github.com/lahoud/3d-vision-transformers</a></p>\n<hr>\n<p>Detecting pelvic fracture on 3D-CT using deep convolutional neural networks with multi-orientated slab images<br>\n<a href=\"https://www.nature.com/articles/s41598-021-91144-z\" target=\"_blank\">https://www.nature.com/articles/s41598-021-91144-z</a></p>\n<p>Automatic Vertebra Localization and Identification in CT by Spine Rectification and Anatomically-constrained Optimization -cvpr2021  <br>\n<a href=\"https://openaccess.thecvf.com/content/CVPR2021/papers/Wang_Automatic_Vertebra_Localization_and_Identification_in_CT_by_Spine_Rectification_CVPR_2021_paper.pdf\" target=\"_blank\">https://openaccess.thecvf.com/content/CVPR2021/papers/Wang_Automatic_Vertebra_Localization_and_Identification_in_CT_by_Spine_Rectification_CVPR_2021_paper.pdf</a>  </p>",
      "votes": 2,
      "replies": [
        {
          "id": 1930358,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-09-07T19:08:00.150000",
          "content": "<p>i am very interested in using point annotation to help fracture detection.<br>\nbecause it is easy to mark the unlabelled CT spine scans (we just need to identify the correct spine section)</p>\n<p>here is another paper:<br>\n[4a] A New Window Loss Function for Bone Fracture Detection and Localization in X-ray Images with Point-based Annotation<br>\n<a href=\"https://www.catalyzex.com/paper/arxiv:2012.04066\" target=\"_blank\">https://www.catalyzex.com/paper/arxiv:2012.04066</a></p>\n<p><a href=\"https://ibb.co/s5cnc4j\"><img src=\"https://i.ibb.co/n3494yr/Selection-170.png\" alt=\"Selection-170\"></a><br>\n<a href=\"https://ibb.co/VNR8k9J\"><img src=\"https://i.ibb.co/vBp8MqV/Selection-180.png\" alt=\"Selection-180\"></a><br>\n<a href=\"https://ibb.co/XkLzv0P\"><img src=\"https://i.ibb.co/Vp9vPnG/Selection-178.png\" alt=\"Selection-178\"></a></p>\n<p>with more annotation, we can get better public/private board ranking</p>\n<hr>\n<p>prostateX MRI 3d dataset is also using point annotation for classification</p>\n<p><a href=\"https://towardsdatascience.com/3d-cnn-classification-of-prostate-tumour-on-multi-parametric-mri-sequences-prostatex-2-cced525394bb\" target=\"_blank\">https://towardsdatascience.com/3d-cnn-classification-of-prostate-tumour-on-multi-parametric-mri-sequences-prostatex-2-cced525394bb</a></p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1930391,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-09-07T20:09:13.843000",
          "content": "<p>external dataset:<br>\n(assuming that self supervised learning of other spline can help cervical-spine?)</p>\n<p>[1] CTSpine1K: A Large-Scale Dataset for Spinal Vertebrae Segmentation in Computed Tomography<br>\n<a href=\"https://arxiv.org/pdf/2105.14711.pdf\" target=\"_blank\">https://arxiv.org/pdf/2105.14711.pdf</a></p>\n<p>[2] A Vertebral Segmentation Dataset with Fracture Grading<br>\n<a href=\"https://pubs.rsna.org/doi/epdf/10.1148/ryai.2020190138\" target=\"_blank\">https://pubs.rsna.org/doi/epdf/10.1148/ryai.2020190138</a></p>\n<p><a href=\"http://spineweb.digitalimaginggroup.ca/\" target=\"_blank\">http://spineweb.digitalimaginggroup.ca/</a><br>\n<a href=\"https://verse2019.grand-challenge.org/\" target=\"_blank\">https://verse2019.grand-challenge.org/</a><br>\n<a href=\"https://verse2020.grand-challenge.org\" target=\"_blank\">https://verse2020.grand-challenge.org</a><br>\n<a href=\"https://github.com/anjany/verse\" target=\"_blank\">https://github.com/anjany/verse</a></p>\n<p><a href=\"http://lit.fe.uni-lj.si/xVertSeg/overview.php#12\" target=\"_blank\">http://lit.fe.uni-lj.si/xVertSeg/overview.php#12</a></p>\n<p><a href=\"https://biomedia.doc.ic.ac.uk/data/spine/\" target=\"_blank\">https://biomedia.doc.ic.ac.uk/data/spine/</a><br>\n<a href=\"https://github.com/jfm15/SpineFinder\" target=\"_blank\">https://github.com/jfm15/SpineFinder</a></p>\n<p>extra label: <br>\n<a href=\"https://anduin.bonescreen.de/\" target=\"_blank\">https://anduin.bonescreen.de/</a><br>\nAnduin is a freely available research tool to segment vertebrae in a CT scan, uploaded as NIFTI data.</p>\n<hr>\n<p>from other kagglers:</p>\n<p>credits goes to <a href=\"https://www.kaggle.com/ipythonx\" target=\"_blank\">@ipythonx</a></p>\n<p><a href=\"https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/341140\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/341140</a></p>\n<ul>\n<li><a href=\"https://www.radimagenet.com/\" target=\"_blank\">https://www.radimagenet.com/</a></li>\n<li><a href=\"https://github.com/BMEII-AI/RadImageNet\" target=\"_blank\">https://github.com/BMEII-AI/RadImageNet</a></li>\n</ul>\n<p><a href=\"https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/340612#1911268\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/340612#1911268</a></p>\n<ul>\n<li><a href=\"https://arxiv.org/pdf/2208.05868.pdf\" target=\"_blank\">https://arxiv.org/pdf/2208.05868.pdf</a></li>\n<li><a href=\"https://github.com/wasserth/TotalSegmentator\" target=\"_blank\">https://github.com/wasserth/TotalSegmentator</a></li>\n<li><a href=\"https://zenodo.org/record/6802614#.YwWGAXZByHs\" target=\"_blank\">https://zenodo.org/record/6802614#.YwWGAXZByHs</a></li>\n</ul>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1931118,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-09-08T13:08:13.307000",
          "content": "<p>when it comes to semi-supervised learning in medical problems, kaggle can consider use of medical records.</p>\n<p>we can extract weak labels from medical records.<br>\ne.g. the doctor may indicate the presence of xxx fracture or no abnormality in the CT scan. </p>\n<p>this requires additional knowledge of NLP in understanding medical records. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1937400,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2022-09-13T13:14:53.343000",
          "content": "<p>is radiomic Features useful?</p>\n<p>these are texture/histogram features like Gray level co-occurence matrices, etc</p>\n<ul>\n<li>Prediction of the Acuity of Vertebral Compression Fractures on CT Using Radiologic and Radiomic Features  </li>\n<li>Artificial intelligence‑based radiomics on computed tomography of lumbar spine in subjects with fragility vertebral fractures  <br>\n<a href=\"https://link.springer.com/content/pdf/10.1007/s40618-022-01837-z.pdf\" target=\"_blank\">https://link.springer.com/content/pdf/10.1007/s40618-022-01837-z.pdf</a></li>\n</ul>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1937328,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2022-09-13T12:22:48.747000",
      "content": "<p>if you want to read about commercial system, here is one:</p>\n<hr>\n<p>AI for C-Spine Fractures: Aidoc Sets the Pace With 3rd FDA<br>\n<a href=\"https://www.prnewswire.com/news-releases/ai-for-c-spine-fractures-aidoc-sets-the-pace-with-3rd-fda-clearance-in-9-months-300865221.html\" target=\"_blank\">https://www.prnewswire.com/news-releases/ai-for-c-spine-fractures-aidoc-sets-the-pace-with-3rd-fda-clearance-in-9-months-300865221.html</a></p>\n<hr>\n<p>paper:<br>\n<a href=\"https://www.aidoc.com/blog/clinical-impact-ai-triaging-c-spine-fractures/\" target=\"_blank\">https://www.aidoc.com/blog/clinical-impact-ai-triaging-c-spine-fractures/</a><br>\nCT Cervical Spine Fracture Detection Using a Convolutional Neural Network</p>\n<p>\"The cervical spine fracture detection model consists of 2 stages:<br>\na region proposal stage and a false-positive reduction stage. The<br>\nfirst stage is a 3D fully convolutional deep neural network. The<br>\narchitecture is based on the Residual Network architecture, which<br>\nconsists of repeated blocks of several convolutional layers with skip<br>\nconnections between them, and is followed by a pooling layer that<br>\nreduces the dimensions of the output. This network is trained on<br>\nsegmented scans and produces a 3D segmentation map. The<br>\nmodel was trained from scratch, with no pretraining from addi-<br>\ntional datasets. From the segmentation map, region proposals are<br>\nextracted and passed as input to the second stage of the algorithm.<br>\nThe second stage classifies each region as positive or negative. Two<br>\nsets of features are extracted from each region, fused together, and<br>\nused for the final decision. The first are learned features from a<br>\nmultilayered, classification head that receives the features from the<br>\nlast layer of the 3D segmentation network for the proposed regions<br>\nas input. The second are nonlearned engineered features obtained<br>\nfrom traditional image-processing methods that operate on the<br>\nproposed regions. These features are combined through an addi-<br>\ntional neural network, which classifies each proposal as a fracture<br>\nor not\"</p>\n<hr>\n<p><a href=\"https://pubmed.ncbi.nlm.nih.gov/34117018/\" target=\"_blank\">https://pubmed.ncbi.nlm.nih.gov/34117018/</a><br>\nDiagnostic Accuracy and Failure Mode Analysis of a Deep Learning Algorithm for the Detection of Cervical Spine Fractures <br>\nerror analysis<br>\n\" Aidoc and the neuroradiologist's interpretation were concordant in 91.5% of cases. Aidoc correctly identified 67 of 122 fractures (54.9%) with 106 false-positive flagged studies. Diagnostic performance was calculated as the following: sensitivity, 54.9% (95% CI, 45.7%-63.9%); specificity, 94.1% (95% CI, 92.9%-95.1%); positive predictive value, 38.7% (95% CI, 33.1%-44.7%); and negative predictive value, 96.8% (95% CI, 96.2%-97.4%). Worsened performance was observed in the detection of chronic fractures; differences in diagnostic performance were not altered by study indication or patient characteristics. \"</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1932904,
      "author_name": "Rahul Pandey",
      "author_url": "",
      "post_date": "2022-09-10T05:33:11.193000",
      "content": "<p>Very insightful content from you as always. I will try on it on the data to see the result.</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1929822": "to be updated ....\n\nbaseline model:\n\n<a href=\"https://ibb.co/W5GqD4R\"><img src=\"https://i.ibb.co/yPdGhcx/Selection-176.png\" alt=\"Selection-176\" border=\"0\"></a>\n\napproximate plan:\n\n1. design a framework with use of aux label (segmentation and box)\n2. compare results of 3d transformer (including pyramid vit), 3d cnn and 3d hybrid and others (2D 2.5D, LSTM, etc ...)\n3. apply patch pretraining to transformer \n4. apply human in the loop active learning (click point annotation) \n\n\nwhy use transformer?\n- the receptive field is large: e.g. you need to see the whole cervical spine (C1 to C8) to know which is the \"section of interest (e.g. Cn)\n- there is only \"one layout/structure\". the body face the same direction, etc... position encoding works well as each body parts are fairly similar in both appearance (i.e. can be tokenized) and location(i.e. can be encoded by pos encoding).\n- because of the above, there is great chance that pretraining can boost performance\n\n\nreference paper:\n<a href=\"https://ibb.co/bHNK2rJ\"><img src=\"https://i.ibb.co/PT1695Q/Selection-177.png\" alt=\"Selection-177\" border=\"0\"></a>\n\n\n---\n\nthe nice thing about transformer is that i just need to change the vision tokenization layer for 2d input to 3d input. The rest of the transformer layers can remains unchanged. Hence i can easily modify any of the existing open source 2d vision transformer code. the pretrained weights for 2d also works for 3d image data.\n\nyou can think that the below is approximately true :\nconv3d(x,w) = conv2d(x.mean(0), w.mean(0))  \n\njust like\nconv2d(x\\_10x10_patch,w\\_10x10_patch) = conv2d(x\\_resize_to_5x5, w\\_resize_to_5x5)  \n",
    "1935256": "initial 3d transformer results\n\ni modified mix transformer as follows. as a proof of concept, i trained 3d cervical spine segmentation with the image token as aux loss.\ni haven trained the cls token yet.\n\nusing persistent cache of monai, it took 60 min to train with all 87 segment samples in about 60 epochs for a train loss 0.023 (multi-class segmentation cross entropy). as a reference simple resnet183d-unet takes about 35 min for the same setting.\n\ntrain = 8x 256x256x256 crops at spacing  dim =0.6,0.6,0.6\ntest = varying single input size without cropping\n\ncode to be released soon\n\n<a href=\"https://ibb.co/HgRhCMb\"><img src=\"https://i.ibb.co/x5wFYcB/Selection-223.png\" alt=\"Selection-223\" border=\"0\"></a>\n<a href=\"https://ibb.co/Lzq1zkK\"><img src=\"https://i.ibb.co/VWhTWj6/Selection-222.png\" alt=\"Selection-222\" border=\"0\"></a>",
    "1929857": "how to train on high resolution:\n\nstage one\n- ignore cls. train toke loss in 2d crops (e.g. 196x196x196)\n\nstage two\n- freeze some initial layers. train both cls and token loss\n\n\n---\n\nhow to prevent overfitting when apply transformer on small data?\n- assume transformer has N layers. Output from intermediate layer e.g. 3,8,12,N. For each of the output, apply token loss. the loss weights for different output layers can be high to low.\n\npaper for training transformer from scratch:\n\n[1] Training Vision Transformers with Only 2040 Images  \nhttps://arxiv.org/abs/2201.10728\n\n[2] WHEN VISION TRANSFORMERS OUTPERFORM RESNETS WITHOUT PRE-TRAINING OR STRONG DATA AUGMENTATIONS\nhttps://arxiv.org/pdf/2106.01548.pdf\nrelated:  Towards Efficient and Scalable Sharpness-Aware Minimization\n\n[3] Efficient Training of Visual Transformers with Small Datasets\nhttps://openreview.net/pdf?id=AJofO-OFT40\n\n[4] Training Object Detectors from Scratch: An Empirical Study in the Era of Vision Transformer\nhttps://openaccess.thecvf.com/content/CVPR2022/papers/Hong_Training_Object_Detectors_From_Scratch_An_Empirical_Study_in_the_CVPR_2022_paper.pdf  \n",
    "1929838": "background reading:\n\n[1] Deep Sequential Learning for Cervical Spine Fracture Detection on Computed Tomography Imaging  \nhttps://arxiv.org/abs/2010.13336\n\n[2] CT Cervical Spine Fracture Detection Using a Convolutional Neural Network  \nhttp://www.ajnr.org/content/ajnr/42/7/1341.full.pdf  \n\n[3] Reinventing 2D Convolutions for 3D Medical Images\nhttps://www.arxiv-vanity.com/papers/1911.10477/\n\n[4] A scalable physician-level deep learning algorithm detects universal trauma on pelvic radiographs\nhttps://www.nature.com/articles/s41467-021-21311-3.pdf\n\n[5] Self-Supervised Pre-Training of Swin Transformers for 3D Medical Image Analysis\nhttps://openaccess.thecvf.com/content/CVPR2022/papers/Tang_Self-Supervised_Pre-Training_of_Swin_Transformers_for_3D_Medical_Image_Analysis_CVPR_2022_paper.pdf\n\nlist of 3d transformer\nhttps://github.com/lahoud/3d-vision-transformers\n\n---\n\nDetecting pelvic fracture on 3D-CT using deep convolutional neural networks with multi-orientated slab images\nhttps://www.nature.com/articles/s41598-021-91144-z\n\nAutomatic Vertebra Localization and Identification in CT by Spine Rectification and Anatomically-constrained Optimization -cvpr2021  \nhttps://openaccess.thecvf.com/content/CVPR2021/papers/Wang_Automatic_Vertebra_Localization_and_Identification_in_CT_by_Spine_Rectification_CVPR_2021_paper.pdf  ",
    "1937328": "if you want to read about commercial system, here is one:\n\n---\n\nAI for C-Spine Fractures: Aidoc Sets the Pace With 3rd FDA\nhttps://www.prnewswire.com/news-releases/ai-for-c-spine-fractures-aidoc-sets-the-pace-with-3rd-fda-clearance-in-9-months-300865221.html\n\n---\n\npaper:\nhttps://www.aidoc.com/blog/clinical-impact-ai-triaging-c-spine-fractures/\nCT Cervical Spine Fracture Detection Using a Convolutional Neural Network\n\n\"The cervical spine fracture detection model consists of 2 stages:\na region proposal stage and a false-positive reduction stage. The\nfirst stage is a 3D fully convolutional deep neural network. The\narchitecture is based on the Residual Network architecture, which\nconsists of repeated blocks of several convolutional layers with skip\nconnections between them, and is followed by a pooling layer that\nreduces the dimensions of the output. This network is trained on\nsegmented scans and produces a 3D segmentation map. The\nmodel was trained from scratch, with no pretraining from addi-\ntional datasets. From the segmentation map, region proposals are\nextracted and passed as input to the second stage of the algorithm.\nThe second stage classifies each region as positive or negative. Two\nsets of features are extracted from each region, fused together, and\nused for the final decision. The first are learned features from a\nmultilayered, classification head that receives the features from the\nlast layer of the 3D segmentation network for the proposed regions\nas input. The second are nonlearned engineered features obtained\nfrom traditional image-processing methods that operate on the\nproposed regions. These features are combined through an addi-\ntional neural network, which classifies each proposal as a fracture\nor not\"\n\n\n---\n\nhttps://pubmed.ncbi.nlm.nih.gov/34117018/\nDiagnostic Accuracy and Failure Mode Analysis of a Deep Learning Algorithm for the Detection of Cervical Spine Fractures \nerror analysis\n\" Aidoc and the neuroradiologist's interpretation were concordant in 91.5% of cases. Aidoc correctly identified 67 of 122 fractures (54.9%) with 106 false-positive flagged studies. Diagnostic performance was calculated as the following: sensitivity, 54.9% (95% CI, 45.7%-63.9%); specificity, 94.1% (95% CI, 92.9%-95.1%); positive predictive value, 38.7% (95% CI, 33.1%-44.7%); and negative predictive value, 96.8% (95% CI, 96.2%-97.4%). Worsened performance was observed in the detection of chronic fractures; differences in diagnostic performance were not altered by study indication or patient characteristics. \"\n\n",
    "1932904": "Very insightful content from you as always. I will try on it on the data to see the result."
  }
}