Correlating accelerometer data I am getting a signal from a device. This signal contains a non-random noise signal in it. I want to remove that noise from the signal. This noise is correlated to the motion the device is having. So now I've attached a accelerometer to the device to measure the motion produced by the device. I'm getting the data of X, Y, Z-axis from 3-axis accelerometer. 

Now here is the process I thought to remove the noise.First get a motion signal from the 3 axis data which correlate to the motion noise present in the main signal. Then pass the main signal and the correlated noise signal through a LMS filter to get a filtered data. I've already designed a LMS filter but I'm stuck at how to get the motion signal(from the data of the 3-axis from accelerometer) which will correlate to the motion noise present in the main signal.

Can anyone help me with this plz??
Motion can be described using displacement with time, velocity or acceleration. To get these quantities from the accelerometer data the following link may help.
http://www.chrobotics.com/library/accel-position-velocity