{
  "id": 438782,
  "title": "👀 Handling of \"train_events\" File",
  "url": "/competitions/child-mind-institute-detect-sleep-states/discussion/438782",
  "author_name": "",
  "post_date": "2023-09-12T14:52:27.281852Z",
  "votes": 1,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I'm still in EDA. This is because <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998\" target=\"_blank\">the event definition file in the title had 3 times in 1 night</a> and \"step\" column loss rate is as high as 34%, so I had some doubts about it, I checked its validity.</p>\n<p><strong>Dataset of a diagram that visualizes all train data has been published <a href=\"https://www.kaggle.com/datasets/mitsuyasuhoshino/dss-visualizationofalltraindata\" target=\"_blank\">here</a> (4,795 IDxNight)</strong>. As you can see, the event definitions tend to be slightly different for specific IDs.</p>\n<blockquote>\n  <p>In conclusion, there were many outliers with inconsistent determination of event times (\"step\"/\"timestamps\").<br>\n  I plan to share the list to exclude in the future.</p>\n</blockquote>\n<ul>\n<li>This may be due to the event (onset/wakeup) being labeled by multiple people (or do you already have a model?)</li>\n<li>I think it is forbidden to modify the ground truth labels, so I think they should be excluded from the training dataset</li>\n<li>Also, missing values in \"step\"/\"timestamps\" can be filled in by looking at the diagram, so it can be done if you want to do it, although it may take some time</li>\n</ul>\n<p><strong><em>Although this work is very unremarkable, I believe that proper cleansing the training dataset has a significant impact on subsequent prediction accuracy. Everyone, let's stand up!</em></strong></p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2Fbf251597d934a89d8888f040af54001e%2FPlot_SeriesId_2f7504d0f426_Night_5.png?generation=1694530172397904&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F511919b56fb455e847befabb2563deb0%2FPlot_SeriesId_4feda0596965_Night_8.png?generation=1694530184833126&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F2fa383fdfb229666536c0644630ed871%2FPlot_SeriesId_6ca4f4fca6a2_Night_23.png?generation=1694530198200648&amp;alt=media\" alt=\"\"></p>",
  "messages": [
    {
      "id": "2434848",
      "postDate": "09/12/2023 14:52:27",
      "content": "<p>I'm still in EDA. This is because <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998\" target=\"_blank\">the event definition file in the title had 3 times in 1 night</a> and \"step\" column loss rate is as high as 34%, so I had some doubts about it, I checked its validity.</p>\n<p><strong>Dataset of a diagram that visualizes all train data has been published <a href=\"https://www.kaggle.com/datasets/mitsuyasuhoshino/dss-visualizationofalltraindata\" target=\"_blank\">here</a> (4,795 IDxNight)</strong>. As you can see, the event definitions tend to be slightly different for specific IDs.</p>\n<blockquote>\n  <p>In conclusion, there were many outliers with inconsistent determination of event times (\"step\"/\"timestamps\").<br>\n  I plan to share the list to exclude in the future.</p>\n</blockquote>\n<ul>\n<li>This may be due to the event (onset/wakeup) being labeled by multiple people (or do you already have a model?)</li>\n<li>I think it is forbidden to modify the ground truth labels, so I think they should be excluded from the training dataset</li>\n<li>Also, missing values in \"step\"/\"timestamps\" can be filled in by looking at the diagram, so it can be done if you want to do it, although it may take some time</li>\n</ul>\n<p><strong><em>Although this work is very unremarkable, I believe that proper cleansing the training dataset has a significant impact on subsequent prediction accuracy. Everyone, let's stand up!</em></strong></p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2Fbf251597d934a89d8888f040af54001e%2FPlot_SeriesId_2f7504d0f426_Night_5.png?generation=1694530172397904&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F511919b56fb455e847befabb2563deb0%2FPlot_SeriesId_4feda0596965_Night_8.png?generation=1694530184833126&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F2fa383fdfb229666536c0644630ed871%2FPlot_SeriesId_6ca4f4fca6a2_Night_23.png?generation=1694530198200648&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "I'm still in EDA. This is because [the event definition file in the title had 3 times in 1 night](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998) and \"step\" column loss rate is as high as 34%, so I had some doubts about it, I checked its validity.\n\n**Dataset of a diagram that visualizes all train data has been published [here](https://www.kaggle.com/datasets/mitsuyasuhoshino/dss-visualizationofalltraindata) (4,795 IDxNight)**. As you can see, the event definitions tend to be slightly different for specific IDs.\n\n>In conclusion, there were many outliers with inconsistent determination of event times (\"step\"/\"timestamps\").\nI plan to share the list to exclude in the future.\n\n- This may be due to the event (onset/wakeup) being labeled by multiple people (or do you already have a model?)\n- I think it is forbidden to modify the ground truth labels, so I think they should be excluded from the training dataset\n- Also, missing values in \"step\"/\"timestamps\" can be filled in by looking at the diagram, so it can be done if you want to do it, although it may take some time\n\n***Although this work is very unremarkable, I believe that proper cleansing the training dataset has a significant impact on subsequent prediction accuracy. Everyone, let's stand up!***\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2Fbf251597d934a89d8888f040af54001e%2FPlot_SeriesId_2f7504d0f426_Night_5.png?generation=1694530172397904&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F511919b56fb455e847befabb2563deb0%2FPlot_SeriesId_4feda0596965_Night_8.png?generation=1694530184833126&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F2fa383fdfb229666536c0644630ed871%2FPlot_SeriesId_6ca4f4fca6a2_Night_23.png?generation=1694530198200648&alt=media)",
      "votes": null
    },
    {
      "id": "2434967",
      "postDate": "09/12/2023 16:10:47",
      "content": "<p>Dear <a href=\"https://www.kaggle.com/mitsuyasuhoshino\" target=\"_blank\">@mitsuyasuhoshino</a> </p>\n<p>Nice analysis. Having incorrectly labelled event data in <code>train_events.csv</code>is not good but as you say, could be cleaned. What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!</p>\n<p>All the best,\ncarl </p>",
      "rawMarkdown": "Dear @mitsuyasuhoshino \n\nNice analysis. Having incorrectly labelled event data in `train_events.csv`is not good but as you say, could be cleaned. What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!\n\nAll the best,\ncarl",
      "votes": null
    },
    {
      "id": "2435373",
      "postDate": "09/12/2023 22:55:53",
      "content": "<blockquote>\n  <p>What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/carlmcbrideellis\" target=\"_blank\">@carlmcbrideellis</a> thank you for your comment. As you pointed out, my processing may not make sense if the unknown test data and train data have the same labeling quality. However, most of the labeling looks reasonable, so selecting them as the training data and manually labeling the 34% without ground-truth labels should have a large impact on model accuracy.</p>",
      "rawMarkdown": "> What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!\n\n@carlmcbrideellis thank you for your comment. As you pointed out, my processing may not make sense if the unknown test data and train data have the same labeling quality. However, most of the labeling looks reasonable, so selecting them as the training data and manually labeling the 34% without ground-truth labels should have a large impact on model accuracy.",
      "votes": null
    },
    {
      "id": "2438858",
      "postDate": "09/14/2023 14:25:03",
      "content": "<p>Yes very interesting, I found the same <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/440290\" target=\"_blank\">here</a>. I think the host should clarify this, and if this behavior could also be present in the hidden test data.</p>",
      "rawMarkdown": "Yes very interesting, I found the same [here](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/440290). I think the host should clarify this, and if this behavior could also be present in the hidden test data.",
      "votes": null
    },
    {
      "id": "2438870",
      "postDate": "09/14/2023 14:30:33",
      "content": "<p>Dear <a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a></p>\n<p>I'm currently asking for an investigation into <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998\" target=\"_blank\">another post</a>, and <strong>it seems that the labeling of events is inconsistent in this post</strong>. We would also appreciate an official opinion on the labeling of Train-Test data.</p>",
      "rawMarkdown": "Dear @ryanholbrook\n\nI'm currently asking for an investigation into [another post](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998), and **it seems that the labeling of events is inconsistent in this post**. We would also appreciate an official opinion on the labeling of Train-Test data.",
      "votes": null
    },
    {
      "id": "2438972",
      "postDate": "09/14/2023 15:19:17",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/mitsuyasuhoshino\" target=\"_blank\">@mitsuyasuhoshino</a> , We are investigating currently. I'll have an update once we identify the source of the problem.</p>",
      "rawMarkdown": "Hi @mitsuyasuhoshino , We are investigating currently. I'll have an update once we identify the source of the problem.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2434967,
      "author_name": "carlmcbrideellis",
      "author_url": "",
      "post_date": "09/12/2023 16:10:47",
      "content": "<p>Dear <a href=\"https://www.kaggle.com/mitsuyasuhoshino\" target=\"_blank\">@mitsuyasuhoshino</a> </p>\n<p>Nice analysis. Having incorrectly labelled event data in <code>train_events.csv</code>is not good but as you say, could be cleaned. What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!</p>\n<p>All the best,\ncarl </p>",
      "votes": null,
      "replies": [
        {
          "id": 2435373,
          "author_name": "mitsuyasuhoshino",
          "author_url": "",
          "post_date": "09/12/2023 22:55:53",
          "content": "<blockquote>\n  <p>What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/carlmcbrideellis\" target=\"_blank\">@carlmcbrideellis</a> thank you for your comment. As you pointed out, my processing may not make sense if the unknown test data and train data have the same labeling quality. However, most of the labeling looks reasonable, so selecting them as the training data and manually labeling the 34% without ground-truth labels should have a large impact on model accuracy.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 2438858,
          "author_name": "hugodeheer",
          "author_url": "",
          "post_date": "09/14/2023 14:25:03",
          "content": "<p>Yes very interesting, I found the same <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/440290\" target=\"_blank\">here</a>. I think the host should clarify this, and if this behavior could also be present in the hidden test data.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2438870,
      "author_name": "mitsuyasuhoshino",
      "author_url": "",
      "post_date": "09/14/2023 14:30:33",
      "content": "<p>Dear <a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a></p>\n<p>I'm currently asking for an investigation into <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998\" target=\"_blank\">another post</a>, and <strong>it seems that the labeling of events is inconsistent in this post</strong>. We would also appreciate an official opinion on the labeling of Train-Test data.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2438972,
          "author_name": "ryanholbrook",
          "author_url": "",
          "post_date": "09/14/2023 15:19:17",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/mitsuyasuhoshino\" target=\"_blank\">@mitsuyasuhoshino</a> , We are investigating currently. I'll have an update once we identify the source of the problem.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2434848": "I'm still in EDA. This is because [the event definition file in the title had 3 times in 1 night](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998) and \"step\" column loss rate is as high as 34%, so I had some doubts about it, I checked its validity.\n\n**Dataset of a diagram that visualizes all train data has been published [here](https://www.kaggle.com/datasets/mitsuyasuhoshino/dss-visualizationofalltraindata) (4,795 IDxNight)**. As you can see, the event definitions tend to be slightly different for specific IDs.\n\n>In conclusion, there were many outliers with inconsistent determination of event times (\"step\"/\"timestamps\").\nI plan to share the list to exclude in the future.\n\n- This may be due to the event (onset/wakeup) being labeled by multiple people (or do you already have a model?)\n- I think it is forbidden to modify the ground truth labels, so I think they should be excluded from the training dataset\n- Also, missing values in \"step\"/\"timestamps\" can be filled in by looking at the diagram, so it can be done if you want to do it, although it may take some time\n\n***Although this work is very unremarkable, I believe that proper cleansing the training dataset has a significant impact on subsequent prediction accuracy. Everyone, let's stand up!***\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2Fbf251597d934a89d8888f040af54001e%2FPlot_SeriesId_2f7504d0f426_Night_5.png?generation=1694530172397904&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F511919b56fb455e847befabb2563deb0%2FPlot_SeriesId_4feda0596965_Night_8.png?generation=1694530184833126&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F14688007%2F2fa383fdfb229666536c0644630ed871%2FPlot_SeriesId_6ca4f4fca6a2_Night_23.png?generation=1694530198200648&alt=media)",
    "2434967": "Dear @mitsuyasuhoshino \n\nNice analysis. Having incorrectly labelled event data in `train_events.csv`is not good but as you say, could be cleaned. What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!\n\nAll the best,\ncarl",
    "2435373": "> What is more concerning is if the events are incorrectly labeled event data for the hidden test data, which we have absolutely no control over!\n\n@carlmcbrideellis thank you for your comment. As you pointed out, my processing may not make sense if the unknown test data and train data have the same labeling quality. However, most of the labeling looks reasonable, so selecting them as the training data and manually labeling the 34% without ground-truth labels should have a large impact on model accuracy.",
    "2438858": "Yes very interesting, I found the same [here](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/440290). I think the host should clarify this, and if this behavior could also be present in the hidden test data.",
    "2438870": "Dear @ryanholbrook\n\nI'm currently asking for an investigation into [another post](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437998), and **it seems that the labeling of events is inconsistent in this post**. We would also appreciate an official opinion on the labeling of Train-Test data.",
    "2438972": "Hi @mitsuyasuhoshino , We are investigating currently. I'll have an update once we identify the source of the problem."
  },
  "source": "meta"
}