<p>Hello Luka answering to your question the answer is: yes it is posible if you add a gyro into to mix to estimate the position hence the velocity but it is hard and not too reliable (depnding on the accuracy and precision of your sensors).</p>
<p>What you are proposing is an inertial navigation system, which works on the principle of detecting the subtle changes in acceleration with respect to a given inertial-frame, in this case the planet Earth which rotates at a constant speed. For more in depth info I found this <a href="https://arxiv.org/pdf/1704.06053.pdf" rel="nofollow noreferrer">article</a> hope this helps!</p>
How to integrate a list of 3-axis Accelerometer data to velocity and location in python?
<p>I get a list of acceleration and gyroscope data from the myo armband. The acceleration data is given like <code>[[-0.11474609375, -0.13037109375, 0.9873046875], [-0.111328125, -0.12890625, 0.9892578125], [-0.11376953125, -0.12255859375, 0.98828125]...]</code> where the values represent each the x,y and z axis values. I know to get the velocity, you have to integrate it once and for the location you have to double integrate it.</p>
<p>The problems I encounter are:</p>
<ul>
<li>In some questions/articles/answers it's stated you need the initial velocity to correctly calculate it. But how do i get it from the accelerometer (and/or gyroscope) data?</li>
<li>For the <a href="https://docs.scipy.org/doc/scipy/reference/tutorial/integrate.html" rel="nofollow noreferrer">quad function from scipy</a> a function is required to integrate the data. How do i find out which function is correct? Can i just take f(x) where x is the current value and iterate over all values?</li>
<li>The same question is for <a href="https://docs.scipy.org/doc/scipy/reference/tutorial/integrate.html" rel="nofollow noreferrer">dblquad</a>, just that it takes multiple values.</li>
</ul>
<p>The time period for those collected data is relatively short (around 5-7 seconds), so i don't think that the error drift will sum up much in this time.</p>
<p>Background: Those data is needed as an feature for ML algos with detecting handwritten letters. So velocity might vary due to the point since each person writes with a different tempo, but an average tempo could be used.</p>
<p>Some question already asked like <a href="https://stackoverflow.com/questions/7829097/android-accelerometer-accuracy-inertial-navigation/7835988#7835988">this</a> refer to real positioning, which isn't my goal. Also would <a href="https://stackoverflow.com/a/6645563/3715677">this</a> be enough aka just summing up without using the integration at all?</p>