{
  "id": 270102,
  "title": "Why not to exclude frequencies",
  "url": "/competitions/g2net-gravitational-wave-detection/discussion/270102",
  "author_name": "",
  "post_date": "2021-09-03T15:23:14.684524300Z",
  "votes": 7,
  "comment_count": 14,
  "views": 0,
  "content": "<p>The frequency of LIGO detectors is 10 Hz to 10 kHz.</p>\n<p>Since the data given to us is sampled at 2048 Hz or a max frequency of 1024 Hz,  a BH chirp of frequency higher than 1Khz would be an alias of a smaller frequency.</p>\n<p><img src=\"https://ibb.co/qW7Rnnk\"></p>\n<p>The above plot shows the corresponding alias of higher frequencies within the given sample rate.<br>\nFor example, The chirp of 3500Hz, 4500Hz, 5500Hz, 6500Hz, etc would be 500Hz in our data.</p>\n<p>I highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.</p>\n<p>How do we account for this? Why is 20-500Hz filtering working for most of us?</p>\n<p>My Stats:<br>\nfiltering: 30-900Hz<br>\nmodel: resnet50<br>\naugmentation: none<br>\nCV: 0.8592<br>\nLB: Disappointed with CV</p>",
  "messages": [
    {
      "id": "1501839",
      "postDate": "09/03/2021 15:23:14",
      "content": "<p>The frequency of LIGO detectors is 10 Hz to 10 kHz.</p>\n<p>Since the data given to us is sampled at 2048 Hz or a max frequency of 1024 Hz,  a BH chirp of frequency higher than 1Khz would be an alias of a smaller frequency.</p>\n<p><img src=\"https://ibb.co/qW7Rnnk\"></p>\n<p>The above plot shows the corresponding alias of higher frequencies within the given sample rate.<br>\nFor example, The chirp of 3500Hz, 4500Hz, 5500Hz, 6500Hz, etc would be 500Hz in our data.</p>\n<p>I highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.</p>\n<p>How do we account for this? Why is 20-500Hz filtering working for most of us?</p>\n<p>My Stats:<br>\nfiltering: 30-900Hz<br>\nmodel: resnet50<br>\naugmentation: none<br>\nCV: 0.8592<br>\nLB: Disappointed with CV</p>",
      "rawMarkdown": "The frequency of LIGO detectors is 10 Hz to 10 kHz.\n\nSince the data given to us is sampled at 2048 Hz or a max frequency of 1024 Hz,  a BH chirp of frequency higher than 1Khz would be an alias of a smaller frequency.\n\n<img src=\"https://ibb.co/qW7Rnnk\">\n\nThe above plot shows the corresponding alias of higher frequencies within the given sample rate.\nFor example, The chirp of 3500Hz, 4500Hz, 5500Hz, 6500Hz, etc would be 500Hz in our data.\n\nI highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.\n\nHow do we account for this? Why is 20-500Hz filtering working for most of us?\n\nMy Stats:\nfiltering: 30-900Hz\nmodel: resnet50\naugmentation: none\nCV: 0.8592\nLB: Disappointed with CV",
      "votes": null
    },
    {
      "id": "1501861",
      "postDate": "09/03/2021 15:45:02",
      "content": "<p><code>x.highpass(30)</code>?</p>\n<p>Anything that 'aliases' in that bucket will still get nixed.</p>",
      "rawMarkdown": "`x.highpass(30)`?\n\nAnything that 'aliases' in that bucket will still get nixed.",
      "votes": null
    },
    {
      "id": "1501872",
      "postDate": "09/03/2021 15:55:26",
      "content": "<p>Technically we shouldn't use a filter but filtering works. my question is why considering the above explanation.</p>\n<p>If the original LIGO data is filtered, it makes sense as the max frequency is 10Khz and the data is sampled at 16Khz</p>\n<p>I'm getting the best score with highpass 30Hz. </p>",
      "rawMarkdown": "Technically we shouldn't use a filter but filtering works. my question is why considering the above explanation.\n\nIf the original LIGO data is filtered, it makes sense as the max frequency is 10Khz and the data is sampled at 16Khz\n\nI'm getting the best score with highpass 30Hz.",
      "votes": null
    },
    {
      "id": "1501899",
      "postDate": "09/03/2021 16:15:48",
      "content": "<p><code>¯\\_(ツ)_/¯</code> All we know is:</p>\n<ol>\n<li>The matched filtering used by LIGO does HP @ 15Hz and no bandpass filtering (no max cutoff, period). In the literature and on pycbc and those other packages, they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used <a href=\"https://www.kaggle.com/Ligo\" target=\"_blank\">@Ligo</a> doesn't make use of it.</li>\n<li>The data provided is synthetic anyway, so anything goes. Visualizing ~300 constant-q transformed samples, we don't \"see\" any GW events that jumps out when doing BP vs HP only. At the end of the day, experimentation is king anyway. Whatever works is correct in the context of this competition.</li>\n</ol>\n<p>This is my conjecture for why it's hard to climb LB:</p>\n<ul>\n<li>We have perfectly even split of TPs and TNs provided</li>\n<li>50% of TP's are classified correctly with +99.98% CI across 5-fold models</li>\n<li>50% of \"FNs\" are spread out over the distribution from 0-99, congregating ~20%</li>\n</ul>\n<p><img src=\"https://i.imgur.com/n9MnyB3.png\" alt=\"\"></p>\n<p>What does this mean? We have two fundamentally different types of signals present in the data. The easier to classify BH mergers. And the dastardly difficult to identify NS mergers. They are lower total system mass and so less energy or gws are emitted. How can we enable our models to see these? Straight BP or HP filtering is insufficient and no one has reported whitening as working yet (though maybe some top scoring teams have <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/269977#1501726\" target=\"_blank\">made it work</a> secretly?) :)</p>\n<p>Training separate models on the hard data doesn't help. I haven't tried explicit weighting, and already mentioned focal loss failures.</p>",
      "rawMarkdown": "` ¯\\_(ツ)_/¯` All we know is:\n\n1. The matched filtering used by LIGO does HP @ 15Hz and no bandpass filtering (no max cutoff, period). In the literature and on pycbc and those other packages, they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used @Ligo doesn't make use of it.\n2. The data provided is synthetic anyway, so anything goes. Visualizing ~300 constant-q transformed samples, we don't \"see\" any GW events that jumps out when doing BP vs HP only. At the end of the day, experimentation is king anyway. Whatever works is correct in the context of this competition.\n\nThis is my conjecture for why it's hard to climb LB:\n\n- We have perfectly even split of TPs and TNs provided\n- 50% of TP's are classified correctly with +99.98% CI across 5-fold models\n- 50% of \"FNs\" are spread out over the distribution from 0-99, congregating ~20%\n\n![](https://i.imgur.com/n9MnyB3.png)\n\nWhat does this mean? We have two fundamentally different types of signals present in the data. The easier to classify BH mergers. And the dastardly difficult to identify NS mergers. They are lower total system mass and so less energy or gws are emitted. How can we enable our models to see these? Straight BP or HP filtering is insufficient and no one has reported whitening as working yet (though maybe some top scoring teams have [made it work](https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/269977#1501726) secretly?) :)\n\nTraining separate models on the hard data doesn't help. I haven't tried explicit weighting, and already mentioned focal loss failures.",
      "votes": null
    },
    {
      "id": "1501930",
      "postDate": "09/03/2021 16:47:31",
      "content": "<blockquote>\n  <p>they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used <a href=\"https://www.kaggle.com/Ligo\" target=\"_blank\">@Ligo</a> doesn't make use of it.</p>\n</blockquote>\n<p>This makes sense.</p>\n<p>I thought we only had BH mergers and no NS. Gotta revisit some literature.</p>\n<p>Focal loss and ArcFace didn't help me in improving the score either. ArcFace struggles to explicitly separate two classes.</p>\n<p>😤</p>",
      "rawMarkdown": "> they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used @Ligo doesn't make use of it.\n\nThis makes sense.\n\nI thought we only had BH mergers and no NS. Gotta revisit some literature.\n\nFocal loss and ArcFace didn't help me in improving the score either. ArcFace struggles to explicitly separate two classes.\n\n😤",
      "votes": null
    },
    {
      "id": "1501944",
      "postDate": "09/03/2021 16:55:04",
      "content": "<p>Actually, before you do that: the Overview and Data Description sections only make mention of GW's, but say nothing about BBH/BNS. However, the <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/249978\" target=\"_blank\">Welcome to the G2Net Gravitational Wave detection challenge</a> post says:</p>\n<blockquote>\n  <p>We would really appreciate your help in exploring new ways to detect signals and we hope you enjoy the binary black hole challenge that we’ve set for you.</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/bayeswolf\" target=\"_blank\">@bayeswolf</a> Would it be possible to clarify if we're dealing with GWs originating strictly from BBHs? Otherwise, will just continue marching with that assumption, per the above.</p>\n<p>So they're either really faint, or really faint and hidden in the 1-25Hz band (is that possible), or really faint and hidden in the first ~0.2s of the sample.</p>",
      "rawMarkdown": "Actually, before you do that: the Overview and Data Description sections only make mention of GW's, but say nothing about BBH/BNS. However, the [Welcome to the G2Net Gravitational Wave detection challenge](https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/249978) post says:\n\n> We would really appreciate your help in exploring new ways to detect signals and we hope you enjoy the binary black hole challenge that we’ve set for you.\n\n@bayeswolf Would it be possible to clarify if we're dealing with GWs originating strictly from BBHs? Otherwise, will just continue marching with that assumption, per the above.\n\nSo they're either really faint, or really faint and hidden in the 1-25Hz band (is that possible), or really faint and hidden in the first ~0.2s of the sample.",
      "votes": null
    },
    {
      "id": "1502121",
      "postDate": "09/03/2021 21:29:49",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/authman\" target=\"_blank\">@authman</a> thanks a lot for your nice figures! </p>\n<p>As far as I remember, the host stated that the events are all BBH in one of the discussion threads. That said, those difficult cases are indeed all over there, but they are low SNRs BBH signals. </p>",
      "rawMarkdown": "Hi @authman thanks a lot for your nice figures! \n\nAs far as I remember, the host stated that the events are all BBH in one of the discussion threads. That said, those difficult cases are indeed all over there, but they are low SNRs BBH signals.",
      "votes": null
    },
    {
      "id": "1502237",
      "postDate": "09/04/2021 03:49:24",
      "content": "<p>In my case bandpass(30, 500) is always slightly worse than bandpass(30,1000), I'm wondering why bandpass(30, 500) is working for many public notebooks.</p>",
      "rawMarkdown": "In my case bandpass(30, 500) is always slightly worse than bandpass(30,1000), I'm wondering why bandpass(30, 500) is working for many public notebooks.",
      "votes": null
    },
    {
      "id": "1503065",
      "postDate": "09/04/2021 23:40:08",
      "content": "<p><a href=\"https://www.kaggle.com/authman\" target=\"_blank\">@authman</a> Thanks for sharing your thoughts.  A little improvement maybe would be to use log scale when you plot histograms.  It will let you look at low frequency regions more accurately.</p>",
      "rawMarkdown": "authman Thanks for sharing your thoughts.  A little improvement maybe would be to use log scale when you plot histograms.  It will let you look at low frequency regions more accurately.",
      "votes": null
    },
    {
      "id": "1503108",
      "postDate": "09/05/2021 02:15:48",
      "content": "<p>i wonder is there any +ve samples that actually contains GW lasting more than 2 sec given here?<br>\nmaybe that is why the banana shape cannot be observed?</p>\n<p><a href=\"https://www.youtube.com/watch?v=WoDCPTLgxh4&amp;t=16s\" target=\"_blank\">https://www.youtube.com/watch?v=WoDCPTLgxh4&amp;t=16s</a></p>\n<p>e.g GW170817 lasts up to 30 sec<br>\n<a href=\"https://www.ligo.caltech.edu/system/avm_image_sqls/binaries/99/original/GW170817_Factsheet.jpg?1508114118\" target=\"_blank\">https://www.ligo.caltech.edu/system/avm_image_sqls/binaries/99/original/GW170817_Factsheet.jpg?1508114118</a></p>",
      "rawMarkdown": "i wonder is there any +ve samples that actually contains GW lasting more than 2 sec given here?\nmaybe that is why the banana shape cannot be observed?\n\nhttps://www.youtube.com/watch?v=WoDCPTLgxh4&t=16s\n\ne.g GW170817 lasts up to 30 sec\nhttps://www.ligo.caltech.edu/system/avm_image_sqls/binaries/99/original/GW170817_Factsheet.jpg?1508114118",
      "votes": null
    },
    {
      "id": "1503119",
      "postDate": "09/05/2021 02:41:06",
      "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> I was calmly waiting and that chirp at the end blasting through my headphones scared the crap out of me. Lol</p>\n<blockquote>\n  <p>GW lasting more than 2 sec given here? e.g GW170817 lasts up to 30 sec</p>\n</blockquote>\n<p>I doubt that is the case. No chirp or increasing frequency in a short duration would be considered as a stationary signal and even the matched filtering technique would reject it.</p>\n<p>I think such scenarios are squashed within 2 secs by resampling. If that's the case, the chirp would be represented by maybe 20 data points at the very end in our data. <br>\nThis can easily fall under 1 bin of CQT - just a dot. and that's how we miss it?</p>",
      "rawMarkdown": "hengck23 I was calmly waiting and that chirp at the end blasting through my headphones scared the crap out of me. Lol\n\n> GW lasting more than 2 sec given here? e.g GW170817 lasts up to 30 sec\n\nI doubt that is the case. No chirp or increasing frequency in a short duration would be considered as a stationary signal and even the matched filtering technique would reject it.\n\nI think such scenarios are squashed within 2 secs by resampling. If that's the case, the chirp would be represented by maybe 20 data points at the very end in our data. \nThis can easily fall under 1 bin of CQT - just a dot. and that's how we miss it?",
      "votes": null
    },
    {
      "id": "1507191",
      "postDate": "09/09/2021 00:18:36",
      "content": "<blockquote>\n  <p>I highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.</p>\n</blockquote>\n<p>Data simulating the existing detectors won't really have much detectable signal above 500 Hz. That's not because the sources aren't emitting at those frequencies, but the detector noise is rising with increasing frequency by that point. The vast majority of the theoretically optimal signal-to-noise is accumulated below 500 Hz, so it isn't surprising that applying a bandpass would have little effect, barring issues of actually applying the filters sensibly to short data stretches (and avoiding boundary effects).</p>",
      "rawMarkdown": "> I highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.\n\nData simulating the existing detectors won't really have much detectable signal above 500 Hz. That's not because the sources aren't emitting at those frequencies, but the detector noise is rising with increasing frequency by that point. The vast majority of the theoretically optimal signal-to-noise is accumulated below 500 Hz, so it isn't surprising that applying a bandpass would have little effect, barring issues of actually applying the filters sensibly to short data stretches (and avoiding boundary effects).",
      "votes": null
    },
    {
      "id": "1507708",
      "postDate": "09/09/2021 13:04:24",
      "content": "<p>Data from LIGO (and Virgo) are sampled at 16k and then resampled to lower sampling rate if needed. There are no aliases just because data is filtered prior to actual resampling in order to remove as much aliases as possible - in real life aliasing do not work as neatly as in your picture.<br>\nAs you correctly stated, LIGOs are not rated under 10Hz. It means that under 10Hz there may be anything (including dragons) and any detection there should be discarded. Almost any LIGO paper notes that noise level under 20Hz is overwhelming and for most applications band should be discarded. Sad but true.<br>\nFiltering works just because it makes SNR just good enough to let network latch on signal.</p>",
      "rawMarkdown": "Data from LIGO (and Virgo) are sampled at 16k and then resampled to lower sampling rate if needed. There are no aliases just because data is filtered prior to actual resampling in order to remove as much aliases as possible - in real life aliasing do not work as neatly as in your picture.\nAs you correctly stated, LIGOs are not rated under 10Hz. It means that under 10Hz there may be anything (including dragons) and any detection there should be discarded. Almost any LIGO paper notes that noise level under 20Hz is overwhelming and for most applications band should be discarded. Sad but true.\nFiltering works just because it makes SNR just good enough to let network latch on signal.",
      "votes": null
    },
    {
      "id": "1559699",
      "postDate": "10/27/2021 07:07:17",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "rawMarkdown": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris",
      "votes": null
    },
    {
      "id": "1559982",
      "postDate": "10/27/2021 08:52:39",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "rawMarkdown": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1501861,
      "author_name": "authman",
      "author_url": "",
      "post_date": "09/03/2021 15:45:02",
      "content": "<p><code>x.highpass(30)</code>?</p>\n<p>Anything that 'aliases' in that bucket will still get nixed.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1501872,
          "author_name": "harshpatel1692",
          "author_url": "",
          "post_date": "09/03/2021 15:55:26",
          "content": "<p>Technically we shouldn't use a filter but filtering works. my question is why considering the above explanation.</p>\n<p>If the original LIGO data is filtered, it makes sense as the max frequency is 10Khz and the data is sampled at 16Khz</p>\n<p>I'm getting the best score with highpass 30Hz. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1501899,
          "author_name": "authman",
          "author_url": "",
          "post_date": "09/03/2021 16:15:48",
          "content": "<p><code>¯\\_(ツ)_/¯</code> All we know is:</p>\n<ol>\n<li>The matched filtering used by LIGO does HP @ 15Hz and no bandpass filtering (no max cutoff, period). In the literature and on pycbc and those other packages, they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used <a href=\"https://www.kaggle.com/Ligo\" target=\"_blank\">@Ligo</a> doesn't make use of it.</li>\n<li>The data provided is synthetic anyway, so anything goes. Visualizing ~300 constant-q transformed samples, we don't \"see\" any GW events that jumps out when doing BP vs HP only. At the end of the day, experimentation is king anyway. Whatever works is correct in the context of this competition.</li>\n</ol>\n<p>This is my conjecture for why it's hard to climb LB:</p>\n<ul>\n<li>We have perfectly even split of TPs and TNs provided</li>\n<li>50% of TP's are classified correctly with +99.98% CI across 5-fold models</li>\n<li>50% of \"FNs\" are spread out over the distribution from 0-99, congregating ~20%</li>\n</ul>\n<p><img src=\"https://i.imgur.com/n9MnyB3.png\" alt=\"\"></p>\n<p>What does this mean? We have two fundamentally different types of signals present in the data. The easier to classify BH mergers. And the dastardly difficult to identify NS mergers. They are lower total system mass and so less energy or gws are emitted. How can we enable our models to see these? Straight BP or HP filtering is insufficient and no one has reported whitening as working yet (though maybe some top scoring teams have <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/269977#1501726\" target=\"_blank\">made it work</a> secretly?) :)</p>\n<p>Training separate models on the hard data doesn't help. I haven't tried explicit weighting, and already mentioned focal loss failures.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1501930,
          "author_name": "harshpatel1692",
          "author_url": "",
          "post_date": "09/03/2021 16:47:31",
          "content": "<blockquote>\n  <p>they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used <a href=\"https://www.kaggle.com/Ligo\" target=\"_blank\">@Ligo</a> doesn't make use of it.</p>\n</blockquote>\n<p>This makes sense.</p>\n<p>I thought we only had BH mergers and no NS. Gotta revisit some literature.</p>\n<p>Focal loss and ArcFace didn't help me in improving the score either. ArcFace struggles to explicitly separate two classes.</p>\n<p>😤</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1501944,
          "author_name": "authman",
          "author_url": "",
          "post_date": "09/03/2021 16:55:04",
          "content": "<p>Actually, before you do that: the Overview and Data Description sections only make mention of GW's, but say nothing about BBH/BNS. However, the <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/249978\" target=\"_blank\">Welcome to the G2Net Gravitational Wave detection challenge</a> post says:</p>\n<blockquote>\n  <p>We would really appreciate your help in exploring new ways to detect signals and we hope you enjoy the binary black hole challenge that we’ve set for you.</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/bayeswolf\" target=\"_blank\">@bayeswolf</a> Would it be possible to clarify if we're dealing with GWs originating strictly from BBHs? Otherwise, will just continue marching with that assumption, per the above.</p>\n<p>So they're either really faint, or really faint and hidden in the 1-25Hz band (is that possible), or really faint and hidden in the first ~0.2s of the sample.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1502121,
          "author_name": "richx86",
          "author_url": "",
          "post_date": "09/03/2021 21:29:49",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/authman\" target=\"_blank\">@authman</a> thanks a lot for your nice figures! </p>\n<p>As far as I remember, the host stated that the events are all BBH in one of the discussion threads. That said, those difficult cases are indeed all over there, but they are low SNRs BBH signals. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1503065,
          "author_name": "cpmpml",
          "author_url": "",
          "post_date": "09/04/2021 23:40:08",
          "content": "<p><a href=\"https://www.kaggle.com/authman\" target=\"_blank\">@authman</a> Thanks for sharing your thoughts.  A little improvement maybe would be to use log scale when you plot histograms.  It will let you look at low frequency regions more accurately.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1503108,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "09/05/2021 02:15:48",
          "content": "<p>i wonder is there any +ve samples that actually contains GW lasting more than 2 sec given here?<br>\nmaybe that is why the banana shape cannot be observed?</p>\n<p><a href=\"https://www.youtube.com/watch?v=WoDCPTLgxh4&amp;t=16s\" target=\"_blank\">https://www.youtube.com/watch?v=WoDCPTLgxh4&amp;t=16s</a></p>\n<p>e.g GW170817 lasts up to 30 sec<br>\n<a href=\"https://www.ligo.caltech.edu/system/avm_image_sqls/binaries/99/original/GW170817_Factsheet.jpg?1508114118\" target=\"_blank\">https://www.ligo.caltech.edu/system/avm_image_sqls/binaries/99/original/GW170817_Factsheet.jpg?1508114118</a></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1503119,
          "author_name": "harshpatel1692",
          "author_url": "",
          "post_date": "09/05/2021 02:41:06",
          "content": "<p><a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> I was calmly waiting and that chirp at the end blasting through my headphones scared the crap out of me. Lol</p>\n<blockquote>\n  <p>GW lasting more than 2 sec given here? e.g GW170817 lasts up to 30 sec</p>\n</blockquote>\n<p>I doubt that is the case. No chirp or increasing frequency in a short duration would be considered as a stationary signal and even the matched filtering technique would reject it.</p>\n<p>I think such scenarios are squashed within 2 secs by resampling. If that's the case, the chirp would be represented by maybe 20 data points at the very end in our data. <br>\nThis can easily fall under 1 bin of CQT - just a dot. and that's how we miss it?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1502237,
      "author_name": "superchenhao",
      "author_url": "",
      "post_date": "09/04/2021 03:49:24",
      "content": "<p>In my case bandpass(30, 500) is always slightly worse than bandpass(30,1000), I'm wondering why bandpass(30, 500) is working for many public notebooks.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1507191,
      "author_name": "alexnitz",
      "author_url": "",
      "post_date": "09/09/2021 00:18:36",
      "content": "<blockquote>\n  <p>I highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.</p>\n</blockquote>\n<p>Data simulating the existing detectors won't really have much detectable signal above 500 Hz. That's not because the sources aren't emitting at those frequencies, but the detector noise is rising with increasing frequency by that point. The vast majority of the theoretically optimal signal-to-noise is accumulated below 500 Hz, so it isn't surprising that applying a bandpass would have little effect, barring issues of actually applying the filters sensibly to short data stretches (and avoiding boundary effects).</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1507708,
      "author_name": "denisbsu",
      "author_url": "",
      "post_date": "09/09/2021 13:04:24",
      "content": "<p>Data from LIGO (and Virgo) are sampled at 16k and then resampled to lower sampling rate if needed. There are no aliases just because data is filtered prior to actual resampling in order to remove as much aliases as possible - in real life aliasing do not work as neatly as in your picture.<br>\nAs you correctly stated, LIGOs are not rated under 10Hz. It means that under 10Hz there may be anything (including dragons) and any detection there should be discarded. Almost any LIGO paper notes that noise level under 20Hz is overwhelming and for most applications band should be discarded. Sad but true.<br>\nFiltering works just because it makes SNR just good enough to let network latch on signal.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1559699,
      "author_name": "zerafachris",
      "author_url": "",
      "post_date": "10/27/2021 07:07:17",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1559982,
      "author_name": "zerafachris",
      "author_url": "",
      "post_date": "10/27/2021 08:52:39",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1501839": "The frequency of LIGO detectors is 10 Hz to 10 kHz.\n\nSince the data given to us is sampled at 2048 Hz or a max frequency of 1024 Hz,  a BH chirp of frequency higher than 1Khz would be an alias of a smaller frequency.\n\n<img src=\"https://ibb.co/qW7Rnnk\">\n\nThe above plot shows the corresponding alias of higher frequencies within the given sample rate.\nFor example, The chirp of 3500Hz, 4500Hz, 5500Hz, 6500Hz, etc would be 500Hz in our data.\n\nI highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.\n\nHow do we account for this? Why is 20-500Hz filtering working for most of us?\n\nMy Stats:\nfiltering: 30-900Hz\nmodel: resnet50\naugmentation: none\nCV: 0.8592\nLB: Disappointed with CV",
    "1501861": "`x.highpass(30)`?\n\nAnything that 'aliases' in that bucket will still get nixed.",
    "1501872": "Technically we shouldn't use a filter but filtering works. my question is why considering the above explanation.\n\nIf the original LIGO data is filtered, it makes sense as the max frequency is 10Khz and the data is sampled at 16Khz\n\nI'm getting the best score with highpass 30Hz.",
    "1501899": "` ¯\\_(ツ)_/¯` All we know is:\n\n1. The matched filtering used by LIGO does HP @ 15Hz and no bandpass filtering (no max cutoff, period). In the literature and on pycbc and those other packages, they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used @Ligo doesn't make use of it.\n2. The data provided is synthetic anyway, so anything goes. Visualizing ~300 constant-q transformed samples, we don't \"see\" any GW events that jumps out when doing BP vs HP only. At the end of the day, experimentation is king anyway. Whatever works is correct in the context of this competition.\n\nThis is my conjecture for why it's hard to climb LB:\n\n- We have perfectly even split of TPs and TNs provided\n- 50% of TP's are classified correctly with +99.98% CI across 5-fold models\n- 50% of \"FNs\" are spread out over the distribution from 0-99, congregating ~20%\n\n![](https://i.imgur.com/n9MnyB3.png)\n\nWhat does this mean? We have two fundamentally different types of signals present in the data. The easier to classify BH mergers. And the dastardly difficult to identify NS mergers. They are lower total system mass and so less energy or gws are emitted. How can we enable our models to see these? Straight BP or HP filtering is insufficient and no one has reported whitening as working yet (though maybe some top scoring teams have [made it work](https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/269977#1501726) secretly?) :)\n\nTraining separate models on the hard data doesn't help. I haven't tried explicit weighting, and already mentioned focal loss failures.",
    "1501930": "> they make clear that the BP'ing is purely for illustrative / exploratory / visualization purposes; but the actual MF used @Ligo doesn't make use of it.\n\nThis makes sense.\n\nI thought we only had BH mergers and no NS. Gotta revisit some literature.\n\nFocal loss and ArcFace didn't help me in improving the score either. ArcFace struggles to explicitly separate two classes.\n\n😤",
    "1501944": "Actually, before you do that: the Overview and Data Description sections only make mention of GW's, but say nothing about BBH/BNS. However, the [Welcome to the G2Net Gravitational Wave detection challenge](https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/249978) post says:\n\n> We would really appreciate your help in exploring new ways to detect signals and we hope you enjoy the binary black hole challenge that we’ve set for you.\n\n@bayeswolf Would it be possible to clarify if we're dealing with GWs originating strictly from BBHs? Otherwise, will just continue marching with that assumption, per the above.\n\nSo they're either really faint, or really faint and hidden in the 1-25Hz band (is that possible), or really faint and hidden in the first ~0.2s of the sample.",
    "1502121": "Hi @authman thanks a lot for your nice figures! \n\nAs far as I remember, the host stated that the events are all BBH in one of the discussion threads. That said, those difficult cases are indeed all over there, but they are low SNRs BBH signals.",
    "1502237": "In my case bandpass(30, 500) is always slightly worse than bandpass(30,1000), I'm wondering why bandpass(30, 500) is working for many public notebooks.",
    "1503065": "authman Thanks for sharing your thoughts.  A little improvement maybe would be to use log scale when you plot histograms.  It will let you look at low frequency regions more accurately.",
    "1503108": "i wonder is there any +ve samples that actually contains GW lasting more than 2 sec given here?\nmaybe that is why the banana shape cannot be observed?\n\nhttps://www.youtube.com/watch?v=WoDCPTLgxh4&t=16s\n\ne.g GW170817 lasts up to 30 sec\nhttps://www.ligo.caltech.edu/system/avm_image_sqls/binaries/99/original/GW170817_Factsheet.jpg?1508114118",
    "1503119": "hengck23 I was calmly waiting and that chirp at the end blasting through my headphones scared the crap out of me. Lol\n\n> GW lasting more than 2 sec given here? e.g GW170817 lasts up to 30 sec\n\nI doubt that is the case. No chirp or increasing frequency in a short duration would be considered as a stationary signal and even the matched filtering technique would reject it.\n\nI think such scenarios are squashed within 2 secs by resampling. If that's the case, the chirp would be represented by maybe 20 data points at the very end in our data. \nThis can easily fall under 1 bin of CQT - just a dot. and that's how we miss it?",
    "1507191": "> I highly doubt the \"astrophysically motivated\" chirps or BH masses are restricted to make the chirp not more than 1 Khz. Technically using a bandpass filter (20-500Hz) would be wrong as we will miss out on chirps not only from 500Hz to 1023Hz but any aliases that fall in that frequency too.\n\nData simulating the existing detectors won't really have much detectable signal above 500 Hz. That's not because the sources aren't emitting at those frequencies, but the detector noise is rising with increasing frequency by that point. The vast majority of the theoretically optimal signal-to-noise is accumulated below 500 Hz, so it isn't surprising that applying a bandpass would have little effect, barring issues of actually applying the filters sensibly to short data stretches (and avoiding boundary effects).",
    "1507708": "Data from LIGO (and Virgo) are sampled at 16k and then resampled to lower sampling rate if needed. There are no aliases just because data is filtered prior to actual resampling in order to remove as much aliases as possible - in real life aliasing do not work as neatly as in your picture.\nAs you correctly stated, LIGOs are not rated under 10Hz. It means that under 10Hz there may be anything (including dragons) and any detection there should be discarded. Almost any LIGO paper notes that noise level under 20Hz is overwhelming and for most applications band should be discarded. Sad but true.\nFiltering works just because it makes SNR just good enough to let network latch on signal.",
    "1559699": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris",
    "1559982": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris"
  },
  "source": "meta"
}