Processing program using OSC messages

Thanks for your tips. I got the the filtered accelerometer data value. In our example, we tied an android smart phone on the lower arm in order to get the movement of arm and we are trying to interpret the movement in a 2D model. Their is a small problem in our model.In one quadrant the model is not moving according to the actual movement of arm.
Video link:

I am attaching three photos, which showing the the three different positions.

  1. At no movement

2)Vertical position

  1. Tilting backward from vertical position