{
  "id": 447937,
  "title": "Is LB Test data only 12 minutes per person? [Answer: NO]",
  "url": "/competitions/child-mind-institute-detect-sleep-states/discussion/447937",
  "author_name": "",
  "post_date": "2023-10-17T20:48:45.918288500Z",
  "votes": 27,
  "comment_count": 16,
  "views": 0,
  "content": "<p>I'm confused. Is it correct that the train data contains many days of information for each person. And the test data only contains 12 minutes of data for each test person? How can we predict <code>onset</code> and <code>wakeup</code> with only 12 minutes of data? (I assume that each person sleeps for more than 12 minutes).</p>",
  "messages": [
    {
      "id": "2486346",
      "postDate": "10/17/2023 20:48:45",
      "content": "<p>I'm confused. Is it correct that the train data contains many days of information for each person. And the test data only contains 12 minutes of data for each test person? How can we predict <code>onset</code> and <code>wakeup</code> with only 12 minutes of data? (I assume that each person sleeps for more than 12 minutes).</p>",
      "rawMarkdown": "I'm confused. Is it correct that the train data contains many days of information for each person. And the test data only contains 12 minutes of data for each test person? How can we predict `onset` and `wakeup` with only 12 minutes of data? (I assume that each person sleeps for more than 12 minutes).",
      "votes": null
    },
    {
      "id": "2486352",
      "postDate": "10/17/2023 20:52:35",
      "content": "<p>I think that is just dummy test data, they will switch it when you submit it. <br>\nBase on how long my submission is taking, I think the private + public test set is around the same size as the training one.</p>",
      "rawMarkdown": "I think that is just dummy test data, they will switch it when you submit it. \nBase on how long my submission is taking, I think the private + public test set is around the same size as the training one.",
      "votes": null
    },
    {
      "id": "2486359",
      "postDate": "10/17/2023 21:00:45",
      "content": "<p>It is a code competition so when you launch the submission your code is executed against the hidden test where there are around 200 series of a duration similar to those of the training. I can confirm that each series lasts several days.</p>",
      "rawMarkdown": "It is a code competition so when you launch the submission your code is executed against the hidden test where there are around 200 series of a duration similar to those of the training. I can confirm that each series lasts several days.",
      "votes": null
    },
    {
      "id": "2486364",
      "postDate": "10/17/2023 21:03:42",
      "content": "<p>Thanks <a href=\"https://www.kaggle.com/trasibulo\" target=\"_blank\">@trasibulo</a> . If each test last more than 1 day, how do we predict the <code>onset</code> and <code>wakeup</code>? I assume we should only predict 1 onset and 1 wakeup per day? Do we only use the first 24 hours of test data per person?</p>",
      "rawMarkdown": "Thanks @trasibulo . If each test last more than 1 day, how do we predict the `onset` and `wakeup`? I assume we should only predict 1 onset and 1 wakeup per day? Do we only use the first 24 hours of test data per person?",
      "votes": null
    },
    {
      "id": "2486366",
      "postDate": "10/17/2023 21:07:07",
      "content": "<p>Because you have to predict one onset and one wakeup per day (approximately), imagine it like a segmentation problem where you have to guess the onset and the wakeup every 24 hours.</p>\n<p>That is to say, if a series has 7 days, the normal thing is that you detect 7 onsets and 7 wakeups, although there are days when the person may have taken off the watch and therefore you should not detect anything for these days (that is why I said \"approximately\").</p>",
      "rawMarkdown": "Because you have to predict one onset and one wakeup per day (approximately), imagine it like a segmentation problem where you have to guess the onset and the wakeup every 24 hours.\n\nThat is to say, if a series has 7 days, the normal thing is that you detect 7 onsets and 7 wakeups, although there are days when the person may have taken off the watch and therefore you should not detect anything for these days (that is why I said \"approximately\").",
      "votes": null
    },
    {
      "id": "2486369",
      "postDate": "10/17/2023 21:14:06",
      "content": "<p>Also, this is more of a change point detection kind of problem, not forecasting problem, you can use the data of that day to predict the onset and wakeup event on that day. No need to restrict yourself to predicting the future onset or wakeup events based solely on the first day's data.</p>",
      "rawMarkdown": "Also, this is more of a change point detection kind of problem, not forecasting problem, you can use the data of that day to predict the onset and wakeup event on that day. No need to restrict yourself to predicting the future onset or wakeup events based solely on the first day's data.",
      "votes": null
    },
    {
      "id": "2486387",
      "postDate": "10/17/2023 21:30:13",
      "content": "<p><a href=\"https://www.kaggle.com/trasibulo\" target=\"_blank\">@trasibulo</a> Ah, so in our submission.csv file we can make multiple <code>onset</code> and multiple <code>wakeup</code> for each <code>series_id</code> ?</p>\n<p>(so it seems that part of the competition is determining how many onsets each series_id has. Does it hurt our score to predict 10 onsets when a series_id only has 8 onsets?)</p>",
      "rawMarkdown": "trasibulo Ah, so in our submission.csv file we can make multiple `onset` and multiple `wakeup` for each `series_id` ?\n\n(so it seems that part of the competition is determining how many onsets each series_id has. Does it hurt our score to predict 10 onsets when a series_id only has 8 onsets?)",
      "votes": null
    },
    {
      "id": "2486391",
      "postDate": "10/17/2023 21:36:21",
      "content": "<p>Exactly for each night you should predict the exact time for onset and the exact time for wakeup. The more precise you are the better.<br>\nThe structure of the submission would be something like this:<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3147995%2F526bb513ab0a515ed182ad052745a138%2FCaptura%20desde%202023-10-17%2023-32-15.png?generation=1697578544042154&amp;alt=media\" alt=\"\"></p>\n<p>Where we see for user \"038441c925bb\" that every night we predict the onset and wakeup in a specific step</p>",
      "rawMarkdown": "Exactly for each night you should predict the exact time for onset and the exact time for wakeup. The more precise you are the better.\nThe structure of the submission would be something like this:\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3147995%2F526bb513ab0a515ed182ad052745a138%2FCaptura%20desde%202023-10-17%2023-32-15.png?generation=1697578544042154&alt=media)\n\nWhere we see for user \"038441c925bb\" that every night we predict the onset and wakeup in a specific step",
      "votes": null
    },
    {
      "id": "2486394",
      "postDate": "10/17/2023 21:43:09",
      "content": "<p>Awesome. Thanks for the clarification. Now i understand.</p>",
      "rawMarkdown": "Awesome. Thanks for the clarification. Now i understand.",
      "votes": null
    },
    {
      "id": "2486409",
      "postDate": "10/17/2023 22:10:54",
      "content": "<p>As was discussed <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437567#2429299\" target=\"_blank\">here</a>, the train and test data are similar.</p>\n<blockquote>\n  <p>In general, the series in the test set will have events for more than one night, just like those in the training set.</p>\n</blockquote>",
      "rawMarkdown": "As was discussed [here](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437567#2429299), the train and test data are similar.\n\n> In general, the series in the test set will have events for more than one night, just like those in the training set.",
      "votes": null
    },
    {
      "id": "2487471",
      "postDate": "10/18/2023 15:54:16",
      "content": "<p><a href=\"https://www.kaggle.com/trasibulo\" target=\"_blank\">@trasibulo</a> <a href=\"https://www.kaggle.com/cdeotte\" target=\"_blank\">@cdeotte</a> what if a person goes to sleep at, for example, 23:00 on a given day and wakes up at 08:00 of the next day? if we slice the test data on day intervals of 00:00 to 23:59 (of the same day) we would \"cut\" the sleeping period. Should we take sliding windows? </p>",
      "rawMarkdown": "trasibulo @cdeotte what if a person goes to sleep at, for example, 23:00 on a given day and wakes up at 08:00 of the next day? if we slice the test data on day intervals of 00:00 to 23:59 (of the same day) we would \"cut\" the sleeping period. Should we take sliding windows?",
      "votes": null
    },
    {
      "id": "2487514",
      "postDate": "10/18/2023 16:10:44",
      "content": "<p>The data page says:</p>\n<blockquote>\n  <p>Sleep events do not need to straddle the day-line, and therefore there is no hard rule defining how many may occur within a given period. However, no more than one window should be assigned per night. For example, it is valid for an individual to have a sleep window from 01h00–06h00 and 19h00–23h30 in the same calendar day, though assigned to consecutive nights</p>\n</blockquote>\n<p>So i assume that yes we must use a sliding technique to find up to 1 window per night.</p>",
      "rawMarkdown": "The data page says:\n>Sleep events do not need to straddle the day-line, and therefore there is no hard rule defining how many may occur within a given period. However, no more than one window should be assigned per night. For example, it is valid for an individual to have a sleep window from 01h00–06h00 and 19h00–23h30 in the same calendar day, though assigned to consecutive nights\n\nSo i assume that yes we must use a sliding technique to find up to 1 window per night.",
      "votes": null
    },
    {
      "id": "2493098",
      "postDate": "10/23/2023 06:47:53",
      "content": "<p><a href=\"https://www.kaggle.com/cdeotte\" target=\"_blank\">@cdeotte</a> The statement that the LB test data only contains 12 minutes of data per person is incorrect. The LB (Leaderboard) test data refers to the test dataset used in machine learning competitions, where participants submit their predictions for evaluation. The specific details of the test data for a particular competition can vary, but it typically consists of a set of features or inputs for each person, and participants are required to predict certain outcomes or targets based on these inputs.</p>\n<p>The duration of the data provided in the test set can vary depending on the competition and the specific problem being addressed. It is not necessarily limited to 12 minutes of data per person. The duration of the data could be longer or shorter, depending on the problem and the available data.</p>\n<p>Regarding the prediction of onset and wakeup with only 12 minutes of data, it is important to note that machine learning models can learn patterns and make predictions based on the available data. While it is true that a person's sleep duration is typically longer than 12 minutes, it is possible for machine learning models to extract relevant features from the given data and make predictions based on those features. The models can learn patterns and relationships between the provided data and the target variables, allowing them to make predictions even with limited data.</p>",
      "rawMarkdown": "cdeotte The statement that the LB test data only contains 12 minutes of data per person is incorrect. The LB (Leaderboard) test data refers to the test dataset used in machine learning competitions, where participants submit their predictions for evaluation. The specific details of the test data for a particular competition can vary, but it typically consists of a set of features or inputs for each person, and participants are required to predict certain outcomes or targets based on these inputs.\n\nThe duration of the data provided in the test set can vary depending on the competition and the specific problem being addressed. It is not necessarily limited to 12 minutes of data per person. The duration of the data could be longer or shorter, depending on the problem and the available data.\n\nRegarding the prediction of onset and wakeup with only 12 minutes of data, it is important to note that machine learning models can learn patterns and make predictions based on the available data. While it is true that a person's sleep duration is typically longer than 12 minutes, it is possible for machine learning models to extract relevant features from the given data and make predictions based on those features. The models can learn patterns and relationships between the provided data and the target variables, allowing them to make predictions even with limited data.",
      "votes": null
    },
    {
      "id": "2497228",
      "postDate": "10/24/2023 14:27:23",
      "content": "<p>Sorry, let me clarify. I still don't get it.<br>\n<code>assigned to consecutive nights</code>  means \"the sleep from 10/22 22:00 to 10/23 06:00 is divided into 22:00-24:00 and 0:00-06:00\", doesn't it?</p>",
      "rawMarkdown": "Sorry, let me clarify. I still don't get it.\n`assigned to consecutive nights`  means \"the sleep from 10/22 22:00 to 10/23 06:00 is divided into 22:00-24:00 and 0:00-06:00\", doesn't it?",
      "votes": null
    },
    {
      "id": "2497287",
      "postDate": "10/24/2023 14:58:25",
      "content": "<p>No, my understanding of \"night\" is between Monday <strong>noon 12p</strong> to Tuesday <strong>noon 12p</strong>. (So a single night is half in one day and half in the next day, but it is <strong>one night</strong>)</p>",
      "rawMarkdown": "No, my understanding of \"night\" is between Monday **noon 12p** to Tuesday **noon 12p**. (So a single night is half in one day and half in the next day, but it is **one night**)",
      "votes": null
    },
    {
      "id": "2498613",
      "postDate": "10/25/2023 12:17:22",
      "content": "<p>I got it. Thanks Chris!</p>",
      "rawMarkdown": "I got it. Thanks Chris!",
      "votes": null
    },
    {
      "id": "2522741",
      "postDate": "11/13/2023 02:42:20",
      "content": "<p>If I assume \"night\" has one day interval starting from the first date of the series in local time zone and starts from noon 12 to the next 12 noon, all events happen after the start time. But, there are a few events that don't happen until the end time.</p>\n<table>\n<thead>\n<tr>\n<th>series_id</th>\n<th>night</th>\n<th>event</th>\n<th>local_time</th>\n<th>night_start_time</th>\n<th>night_end_time</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>08db4255286f</td>\n<td>23</td>\n<td>wakeup</td>\n<td>2018-11-28 12:30:00</td>\n<td>2018-11-27 12:00:00</td>\n<td>2018-11-28 12:00:00</td>\n</tr>\n<tr>\n<td>51fdcc8d9fe7</td>\n<td>15</td>\n<td>onset</td>\n<td>2018-11-14 21:03:00</td>\n<td>2018-11-13 12:00:00</td>\n<td>2018-11-14 12:00:00</td>\n</tr>\n</tbody>\n</table>\n<p>So, I think \"night\" starts from noon 12 to the time \"wakeup\" happens.</p>",
      "rawMarkdown": "If I assume \"night\" has one day interval starting from the first date of the series in local time zone and starts from noon 12 to the next 12 noon, all events happen after the start time. But, there are a few events that don't happen until the end time.\n\n| series_id | night | event | local_time | night_start_time | night_end_time |\n| --- | --- | --- | --- | --- | --- |\n| 08db4255286f | 23 | wakeup | 2018-11-28 12:30:00 | 2018-11-27 12:00:00 | 2018-11-28 12:00:00 |\n| 51fdcc8d9fe7 | 15 | onset | 2018-11-14 21:03:00 | 2018-11-13 12:00:00 | 2018-11-14 12:00:00 |\n\nSo, I think \"night\" starts from noon 12 to the time \"wakeup\" happens.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2486352,
      "author_name": "yuchen2066",
      "author_url": "",
      "post_date": "10/17/2023 20:52:35",
      "content": "<p>I think that is just dummy test data, they will switch it when you submit it. <br>\nBase on how long my submission is taking, I think the private + public test set is around the same size as the training one.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2486359,
      "author_name": "trasibulo",
      "author_url": "",
      "post_date": "10/17/2023 21:00:45",
      "content": "<p>It is a code competition so when you launch the submission your code is executed against the hidden test where there are around 200 series of a duration similar to those of the training. I can confirm that each series lasts several days.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2486364,
          "author_name": "cdeotte",
          "author_url": "",
          "post_date": "10/17/2023 21:03:42",
          "content": "<p>Thanks <a href=\"https://www.kaggle.com/trasibulo\" target=\"_blank\">@trasibulo</a> . If each test last more than 1 day, how do we predict the <code>onset</code> and <code>wakeup</code>? I assume we should only predict 1 onset and 1 wakeup per day? Do we only use the first 24 hours of test data per person?</p>",
          "votes": null,
          "replies": [
            {
              "id": 2486366,
              "author_name": "trasibulo",
              "author_url": "",
              "post_date": "10/17/2023 21:07:07",
              "content": "<p>Because you have to predict one onset and one wakeup per day (approximately), imagine it like a segmentation problem where you have to guess the onset and the wakeup every 24 hours.</p>\n<p>That is to say, if a series has 7 days, the normal thing is that you detect 7 onsets and 7 wakeups, although there are days when the person may have taken off the watch and therefore you should not detect anything for these days (that is why I said \"approximately\").</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2486387,
                  "author_name": "cdeotte",
                  "author_url": "",
                  "post_date": "10/17/2023 21:30:13",
                  "content": "<p><a href=\"https://www.kaggle.com/trasibulo\" target=\"_blank\">@trasibulo</a> Ah, so in our submission.csv file we can make multiple <code>onset</code> and multiple <code>wakeup</code> for each <code>series_id</code> ?</p>\n<p>(so it seems that part of the competition is determining how many onsets each series_id has. Does it hurt our score to predict 10 onsets when a series_id only has 8 onsets?)</p>",
                  "votes": null,
                  "replies": [
                    {
                      "id": 2486391,
                      "author_name": "trasibulo",
                      "author_url": "",
                      "post_date": "10/17/2023 21:36:21",
                      "content": "<p>Exactly for each night you should predict the exact time for onset and the exact time for wakeup. The more precise you are the better.<br>\nThe structure of the submission would be something like this:<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3147995%2F526bb513ab0a515ed182ad052745a138%2FCaptura%20desde%202023-10-17%2023-32-15.png?generation=1697578544042154&amp;alt=media\" alt=\"\"></p>\n<p>Where we see for user \"038441c925bb\" that every night we predict the onset and wakeup in a specific step</p>",
                      "votes": null,
                      "replies": [
                        {
                          "id": 2486394,
                          "author_name": "cdeotte",
                          "author_url": "",
                          "post_date": "10/17/2023 21:43:09",
                          "content": "<p>Awesome. Thanks for the clarification. Now i understand.</p>",
                          "votes": null,
                          "replies": []
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "id": 2486369,
              "author_name": "yuchen2066",
              "author_url": "",
              "post_date": "10/17/2023 21:14:06",
              "content": "<p>Also, this is more of a change point detection kind of problem, not forecasting problem, you can use the data of that day to predict the onset and wakeup event on that day. No need to restrict yourself to predicting the future onset or wakeup events based solely on the first day's data.</p>",
              "votes": null,
              "replies": []
            }
          ]
        },
        {
          "id": 2487471,
          "author_name": "alejopaullier",
          "author_url": "",
          "post_date": "10/18/2023 15:54:16",
          "content": "<p><a href=\"https://www.kaggle.com/trasibulo\" target=\"_blank\">@trasibulo</a> <a href=\"https://www.kaggle.com/cdeotte\" target=\"_blank\">@cdeotte</a> what if a person goes to sleep at, for example, 23:00 on a given day and wakes up at 08:00 of the next day? if we slice the test data on day intervals of 00:00 to 23:59 (of the same day) we would \"cut\" the sleeping period. Should we take sliding windows? </p>",
          "votes": null,
          "replies": [
            {
              "id": 2487514,
              "author_name": "cdeotte",
              "author_url": "",
              "post_date": "10/18/2023 16:10:44",
              "content": "<p>The data page says:</p>\n<blockquote>\n  <p>Sleep events do not need to straddle the day-line, and therefore there is no hard rule defining how many may occur within a given period. However, no more than one window should be assigned per night. For example, it is valid for an individual to have a sleep window from 01h00–06h00 and 19h00–23h30 in the same calendar day, though assigned to consecutive nights</p>\n</blockquote>\n<p>So i assume that yes we must use a sliding technique to find up to 1 window per night.</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2497228,
                  "author_name": "econjt",
                  "author_url": "",
                  "post_date": "10/24/2023 14:27:23",
                  "content": "<p>Sorry, let me clarify. I still don't get it.<br>\n<code>assigned to consecutive nights</code>  means \"the sleep from 10/22 22:00 to 10/23 06:00 is divided into 22:00-24:00 and 0:00-06:00\", doesn't it?</p>",
                  "votes": null,
                  "replies": [
                    {
                      "id": 2497287,
                      "author_name": "cdeotte",
                      "author_url": "",
                      "post_date": "10/24/2023 14:58:25",
                      "content": "<p>No, my understanding of \"night\" is between Monday <strong>noon 12p</strong> to Tuesday <strong>noon 12p</strong>. (So a single night is half in one day and half in the next day, but it is <strong>one night</strong>)</p>",
                      "votes": null,
                      "replies": [
                        {
                          "id": 2498613,
                          "author_name": "econjt",
                          "author_url": "",
                          "post_date": "10/25/2023 12:17:22",
                          "content": "<p>I got it. Thanks Chris!</p>",
                          "votes": null,
                          "replies": []
                        },
                        {
                          "id": 2522741,
                          "author_name": "dongyk",
                          "author_url": "",
                          "post_date": "11/13/2023 02:42:20",
                          "content": "<p>If I assume \"night\" has one day interval starting from the first date of the series in local time zone and starts from noon 12 to the next 12 noon, all events happen after the start time. But, there are a few events that don't happen until the end time.</p>\n<table>\n<thead>\n<tr>\n<th>series_id</th>\n<th>night</th>\n<th>event</th>\n<th>local_time</th>\n<th>night_start_time</th>\n<th>night_end_time</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>08db4255286f</td>\n<td>23</td>\n<td>wakeup</td>\n<td>2018-11-28 12:30:00</td>\n<td>2018-11-27 12:00:00</td>\n<td>2018-11-28 12:00:00</td>\n</tr>\n<tr>\n<td>51fdcc8d9fe7</td>\n<td>15</td>\n<td>onset</td>\n<td>2018-11-14 21:03:00</td>\n<td>2018-11-13 12:00:00</td>\n<td>2018-11-14 12:00:00</td>\n</tr>\n</tbody>\n</table>\n<p>So, I think \"night\" starts from noon 12 to the time \"wakeup\" happens.</p>",
                          "votes": null,
                          "replies": []
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 2486409,
      "author_name": "mitsuyasuhoshino",
      "author_url": "",
      "post_date": "10/17/2023 22:10:54",
      "content": "<p>As was discussed <a href=\"https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437567#2429299\" target=\"_blank\">here</a>, the train and test data are similar.</p>\n<blockquote>\n  <p>In general, the series in the test set will have events for more than one night, just like those in the training set.</p>\n</blockquote>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2493098,
      "author_name": "muhammadqasimiqbal",
      "author_url": "",
      "post_date": "10/23/2023 06:47:53",
      "content": "<p><a href=\"https://www.kaggle.com/cdeotte\" target=\"_blank\">@cdeotte</a> The statement that the LB test data only contains 12 minutes of data per person is incorrect. The LB (Leaderboard) test data refers to the test dataset used in machine learning competitions, where participants submit their predictions for evaluation. The specific details of the test data for a particular competition can vary, but it typically consists of a set of features or inputs for each person, and participants are required to predict certain outcomes or targets based on these inputs.</p>\n<p>The duration of the data provided in the test set can vary depending on the competition and the specific problem being addressed. It is not necessarily limited to 12 minutes of data per person. The duration of the data could be longer or shorter, depending on the problem and the available data.</p>\n<p>Regarding the prediction of onset and wakeup with only 12 minutes of data, it is important to note that machine learning models can learn patterns and make predictions based on the available data. While it is true that a person's sleep duration is typically longer than 12 minutes, it is possible for machine learning models to extract relevant features from the given data and make predictions based on those features. The models can learn patterns and relationships between the provided data and the target variables, allowing them to make predictions even with limited data.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2486346": "I'm confused. Is it correct that the train data contains many days of information for each person. And the test data only contains 12 minutes of data for each test person? How can we predict `onset` and `wakeup` with only 12 minutes of data? (I assume that each person sleeps for more than 12 minutes).",
    "2486352": "I think that is just dummy test data, they will switch it when you submit it. \nBase on how long my submission is taking, I think the private + public test set is around the same size as the training one.",
    "2486359": "It is a code competition so when you launch the submission your code is executed against the hidden test where there are around 200 series of a duration similar to those of the training. I can confirm that each series lasts several days.",
    "2486364": "Thanks @trasibulo . If each test last more than 1 day, how do we predict the `onset` and `wakeup`? I assume we should only predict 1 onset and 1 wakeup per day? Do we only use the first 24 hours of test data per person?",
    "2486366": "Because you have to predict one onset and one wakeup per day (approximately), imagine it like a segmentation problem where you have to guess the onset and the wakeup every 24 hours.\n\nThat is to say, if a series has 7 days, the normal thing is that you detect 7 onsets and 7 wakeups, although there are days when the person may have taken off the watch and therefore you should not detect anything for these days (that is why I said \"approximately\").",
    "2486369": "Also, this is more of a change point detection kind of problem, not forecasting problem, you can use the data of that day to predict the onset and wakeup event on that day. No need to restrict yourself to predicting the future onset or wakeup events based solely on the first day's data.",
    "2486387": "trasibulo Ah, so in our submission.csv file we can make multiple `onset` and multiple `wakeup` for each `series_id` ?\n\n(so it seems that part of the competition is determining how many onsets each series_id has. Does it hurt our score to predict 10 onsets when a series_id only has 8 onsets?)",
    "2486391": "Exactly for each night you should predict the exact time for onset and the exact time for wakeup. The more precise you are the better.\nThe structure of the submission would be something like this:\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3147995%2F526bb513ab0a515ed182ad052745a138%2FCaptura%20desde%202023-10-17%2023-32-15.png?generation=1697578544042154&alt=media)\n\nWhere we see for user \"038441c925bb\" that every night we predict the onset and wakeup in a specific step",
    "2486394": "Awesome. Thanks for the clarification. Now i understand.",
    "2486409": "As was discussed [here](https://www.kaggle.com/competitions/child-mind-institute-detect-sleep-states/discussion/437567#2429299), the train and test data are similar.\n\n> In general, the series in the test set will have events for more than one night, just like those in the training set.",
    "2487471": "trasibulo @cdeotte what if a person goes to sleep at, for example, 23:00 on a given day and wakes up at 08:00 of the next day? if we slice the test data on day intervals of 00:00 to 23:59 (of the same day) we would \"cut\" the sleeping period. Should we take sliding windows?",
    "2487514": "The data page says:\n>Sleep events do not need to straddle the day-line, and therefore there is no hard rule defining how many may occur within a given period. However, no more than one window should be assigned per night. For example, it is valid for an individual to have a sleep window from 01h00–06h00 and 19h00–23h30 in the same calendar day, though assigned to consecutive nights\n\nSo i assume that yes we must use a sliding technique to find up to 1 window per night.",
    "2493098": "cdeotte The statement that the LB test data only contains 12 minutes of data per person is incorrect. The LB (Leaderboard) test data refers to the test dataset used in machine learning competitions, where participants submit their predictions for evaluation. The specific details of the test data for a particular competition can vary, but it typically consists of a set of features or inputs for each person, and participants are required to predict certain outcomes or targets based on these inputs.\n\nThe duration of the data provided in the test set can vary depending on the competition and the specific problem being addressed. It is not necessarily limited to 12 minutes of data per person. The duration of the data could be longer or shorter, depending on the problem and the available data.\n\nRegarding the prediction of onset and wakeup with only 12 minutes of data, it is important to note that machine learning models can learn patterns and make predictions based on the available data. While it is true that a person's sleep duration is typically longer than 12 minutes, it is possible for machine learning models to extract relevant features from the given data and make predictions based on those features. The models can learn patterns and relationships between the provided data and the target variables, allowing them to make predictions even with limited data.",
    "2497228": "Sorry, let me clarify. I still don't get it.\n`assigned to consecutive nights`  means \"the sleep from 10/22 22:00 to 10/23 06:00 is divided into 22:00-24:00 and 0:00-06:00\", doesn't it?",
    "2497287": "No, my understanding of \"night\" is between Monday **noon 12p** to Tuesday **noon 12p**. (So a single night is half in one day and half in the next day, but it is **one night**)",
    "2498613": "I got it. Thanks Chris!",
    "2522741": "If I assume \"night\" has one day interval starting from the first date of the series in local time zone and starts from noon 12 to the next 12 noon, all events happen after the start time. But, there are a few events that don't happen until the end time.\n\n| series_id | night | event | local_time | night_start_time | night_end_time |\n| --- | --- | --- | --- | --- | --- |\n| 08db4255286f | 23 | wakeup | 2018-11-28 12:30:00 | 2018-11-27 12:00:00 | 2018-11-28 12:00:00 |\n| 51fdcc8d9fe7 | 15 | onset | 2018-11-14 21:03:00 | 2018-11-13 12:00:00 | 2018-11-14 12:00:00 |\n\nSo, I think \"night\" starts from noon 12 to the time \"wakeup\" happens."
  },
  "source": "meta"
}