{
  "id": 409749,
  "title": "AccV (vertical acceleration) is always negative. why?",
  "url": "/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/409749",
  "author_name": "",
  "post_date": "2023-05-12T12:49:31.326410500Z",
  "votes": null,
  "comment_count": 5,
  "views": 0,
  "content": "<p>The usual situation in data series looks like this:</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F303430%2F7311c0284b923a25a9da59ee32a61848%2Finbox_6537187_701336f11a01e438007d7e6de2989b20_V_ML_AP_Ex.png?generation=1683894691248673&amp;alt=media\" alt=\"\"></p>\n<p>Where AccV is always negative (mean=-1, max_value=-0.2). According to the laws of physics, by the end of the serie (usually 20-30 minutes), the object must have a space velocity: -1 * 1200 = -1200 units / sec. So the question is:</p>\n<p>Why is AccV always negative? Bad sensor or what?</p>",
  "messages": [
    {
      "id": "2256379",
      "postDate": "05/12/2023 12:49:31",
      "content": "<p>The usual situation in data series looks like this:</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F303430%2F7311c0284b923a25a9da59ee32a61848%2Finbox_6537187_701336f11a01e438007d7e6de2989b20_V_ML_AP_Ex.png?generation=1683894691248673&amp;alt=media\" alt=\"\"></p>\n<p>Where AccV is always negative (mean=-1, max_value=-0.2). According to the laws of physics, by the end of the serie (usually 20-30 minutes), the object must have a space velocity: -1 * 1200 = -1200 units / sec. So the question is:</p>\n<p>Why is AccV always negative? Bad sensor or what?</p>",
      "rawMarkdown": "The usual situation in data series looks like this:\n\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F303430%2F7311c0284b923a25a9da59ee32a61848%2Finbox_6537187_701336f11a01e438007d7e6de2989b20_V_ML_AP_Ex.png?generation=1683894691248673&alt=media)\n\nWhere AccV is always negative (mean=-1, max_value=-0.2). According to the laws of physics, by the end of the serie (usually 20-30 minutes), the object must have a space velocity: -1 * 1200 = -1200 units / sec. So the question is:\n\nWhy is AccV always negative? Bad sensor or what?",
      "votes": null
    },
    {
      "id": "2256408",
      "postDate": "05/12/2023 13:27:48",
      "content": "<p>I think gravity has an effect.</p>",
      "rawMarkdown": "I think gravity has an effect.",
      "votes": null
    },
    {
      "id": "2256528",
      "postDate": "05/12/2023 14:50:39",
      "content": "<p>I also think about this. but I still don't understand it. It seems that the acceleration of free fall should not affect in any way (since the body remains motionless and is not accelerated). Even there is some kind of influence, then it takes place to be on all measurements, then it turns out that all measurements must be shifted by some constant. Then the question is what value (and it doesn't look like there's a common constant)?</p>",
      "rawMarkdown": "I also think about this. but I still don't understand it. It seems that the acceleration of free fall should not affect in any way (since the body remains motionless and is not accelerated). Even there is some kind of influence, then it takes place to be on all measurements, then it turns out that all measurements must be shifted by some constant. Then the question is what value (and it doesn't look like there's a common constant)?",
      "votes": null
    },
    {
      "id": "2256546",
      "postDate": "05/12/2023 15:06:08",
      "content": "<p>Hey Alexander,</p>\n<p>Accelerometers like the kind in this competition are measuring all of the accelerations on the device relative to some rest frame, including the Earth's gravity downward and the actual accelerations of the person's motion.  The wiki does an okay-ish job explaining: <a href=\"https://en.wikipedia.org/wiki/Accelerometer#Physical_principles\" target=\"_blank\">https://en.wikipedia.org/wiki/Accelerometer#Physical_principles</a> </p>\n<p>There are various types of accelerometers, but as an example suppose there is a little spring attached to a mass inside this accelerometer.  The spring will stretch/compress when the person accelerates.  However, it will also stretch just by being pulled by gravity.  The physics term here is the <a href=\"https://en.wikipedia.org/wiki/Equivalence_principle\" target=\"_blank\">Equivalence Principle</a>.  </p>\n<p>Integrating accelerometer data does not quite work as you have noted.  You would need a <a href=\"https://en.wikipedia.org/wiki/Dead_reckoning\" target=\"_blank\">dead reckoning</a> method (gyroscope + accelerometer, e.g.) to do this.  (see <a href=\"https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/396926#2206797\" target=\"_blank\">this comment</a>) </p>",
      "rawMarkdown": "Hey Alexander,\n\nAccelerometers like the kind in this competition are measuring all of the accelerations on the device relative to some rest frame, including the Earth's gravity downward and the actual accelerations of the person's motion.  The wiki does an okay-ish job explaining: https://en.wikipedia.org/wiki/Accelerometer#Physical_principles \n\nThere are various types of accelerometers, but as an example suppose there is a little spring attached to a mass inside this accelerometer.  The spring will stretch/compress when the person accelerates.  However, it will also stretch just by being pulled by gravity.  The physics term here is the [Equivalence Principle](https://en.wikipedia.org/wiki/Equivalence_principle).  \n\nIntegrating accelerometer data does not quite work as you have noted.  You would need a [dead reckoning](https://en.wikipedia.org/wiki/Dead_reckoning) method (gyroscope + accelerometer, e.g.) to do this.  (see [this comment](https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/396926#2206797))",
      "votes": null
    },
    {
      "id": "2257640",
      "postDate": "05/13/2023 14:46:06",
      "content": "<p>It's 1g: exactly gravity…</p>",
      "rawMarkdown": "It's 1g: exactly gravity...",
      "votes": null
    },
    {
      "id": "2261963",
      "postDate": "05/16/2023 16:35:29",
      "content": "<p>Hey, Austin,</p>\n<p>Thanks, a lot. Now I understand why there is always negative value and why it was not shifted by one constant. </p>",
      "rawMarkdown": "Hey, Austin,\n\nThanks, a lot. Now I understand why there is always negative value and why it was not shifted by one constant.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2256408,
      "author_name": "yutoshimomura",
      "author_url": "",
      "post_date": "05/12/2023 13:27:48",
      "content": "<p>I think gravity has an effect.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2256528,
          "author_name": "aas1000",
          "author_url": "",
          "post_date": "05/12/2023 14:50:39",
          "content": "<p>I also think about this. but I still don't understand it. It seems that the acceleration of free fall should not affect in any way (since the body remains motionless and is not accelerated). Even there is some kind of influence, then it takes place to be on all measurements, then it turns out that all measurements must be shifted by some constant. Then the question is what value (and it doesn't look like there's a common constant)?</p>",
          "votes": null,
          "replies": [
            {
              "id": 2257640,
              "author_name": "albertoannoni",
              "author_url": "",
              "post_date": "05/13/2023 14:46:06",
              "content": "<p>It's 1g: exactly gravity…</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2256546,
      "author_name": "austinhinkel",
      "author_url": "",
      "post_date": "05/12/2023 15:06:08",
      "content": "<p>Hey Alexander,</p>\n<p>Accelerometers like the kind in this competition are measuring all of the accelerations on the device relative to some rest frame, including the Earth's gravity downward and the actual accelerations of the person's motion.  The wiki does an okay-ish job explaining: <a href=\"https://en.wikipedia.org/wiki/Accelerometer#Physical_principles\" target=\"_blank\">https://en.wikipedia.org/wiki/Accelerometer#Physical_principles</a> </p>\n<p>There are various types of accelerometers, but as an example suppose there is a little spring attached to a mass inside this accelerometer.  The spring will stretch/compress when the person accelerates.  However, it will also stretch just by being pulled by gravity.  The physics term here is the <a href=\"https://en.wikipedia.org/wiki/Equivalence_principle\" target=\"_blank\">Equivalence Principle</a>.  </p>\n<p>Integrating accelerometer data does not quite work as you have noted.  You would need a <a href=\"https://en.wikipedia.org/wiki/Dead_reckoning\" target=\"_blank\">dead reckoning</a> method (gyroscope + accelerometer, e.g.) to do this.  (see <a href=\"https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/396926#2206797\" target=\"_blank\">this comment</a>) </p>",
      "votes": null,
      "replies": [
        {
          "id": 2261963,
          "author_name": "aas1000",
          "author_url": "",
          "post_date": "05/16/2023 16:35:29",
          "content": "<p>Hey, Austin,</p>\n<p>Thanks, a lot. Now I understand why there is always negative value and why it was not shifted by one constant. </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2256379": "The usual situation in data series looks like this:\n\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F303430%2F7311c0284b923a25a9da59ee32a61848%2Finbox_6537187_701336f11a01e438007d7e6de2989b20_V_ML_AP_Ex.png?generation=1683894691248673&alt=media)\n\nWhere AccV is always negative (mean=-1, max_value=-0.2). According to the laws of physics, by the end of the serie (usually 20-30 minutes), the object must have a space velocity: -1 * 1200 = -1200 units / sec. So the question is:\n\nWhy is AccV always negative? Bad sensor or what?",
    "2256408": "I think gravity has an effect.",
    "2256528": "I also think about this. but I still don't understand it. It seems that the acceleration of free fall should not affect in any way (since the body remains motionless and is not accelerated). Even there is some kind of influence, then it takes place to be on all measurements, then it turns out that all measurements must be shifted by some constant. Then the question is what value (and it doesn't look like there's a common constant)?",
    "2256546": "Hey Alexander,\n\nAccelerometers like the kind in this competition are measuring all of the accelerations on the device relative to some rest frame, including the Earth's gravity downward and the actual accelerations of the person's motion.  The wiki does an okay-ish job explaining: https://en.wikipedia.org/wiki/Accelerometer#Physical_principles \n\nThere are various types of accelerometers, but as an example suppose there is a little spring attached to a mass inside this accelerometer.  The spring will stretch/compress when the person accelerates.  However, it will also stretch just by being pulled by gravity.  The physics term here is the [Equivalence Principle](https://en.wikipedia.org/wiki/Equivalence_principle).  \n\nIntegrating accelerometer data does not quite work as you have noted.  You would need a [dead reckoning](https://en.wikipedia.org/wiki/Dead_reckoning) method (gyroscope + accelerometer, e.g.) to do this.  (see [this comment](https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/396926#2206797))",
    "2257640": "It's 1g: exactly gravity...",
    "2261963": "Hey, Austin,\n\nThanks, a lot. Now I understand why there is always negative value and why it was not shifted by one constant."
  },
  "source": "meta"
}