Calculating rate of change of accelerometer values

The quantity "m1 = xg + yg + zg" has no physical significance, so it is hard to see what you might learn from changes in it.