Here is a sample data that I got from the accelerometer sensor:
The first selected area shows the acceleration of the IMU device to right side and the second shows the movement to left side.
I am looking for an algorithm to detect selected areas (as an array of floats) and provide the direction.
I almost don't know anything in this area (signal processing), So I tried to avoid using incorrect keywords, feel free to edit this post.