We have an embedded device mounted in a vehicle. It has accelerometer, gyrosopce and GPS sensors on board. The goal is to distinguish when vehicle is moving forward and backward (in reverse gear). Sensor's axis are aligned with vehicle's axis. Here's our observations:
- It's not enough to check direction of acceleration, because going backwards and braking while moving forward would show results in the same direction.
- We could say that if GPS speed decreased 70 -> 60 km/h it was a braking event. But it becomes tricky when speed is < 20 km/h. Decrease 20 -> 10 km/h is possible when going both directions.
- We can't rely on GPS angle at low speeds.
How could we approach this problem? Any ideas, articles or researches would be helpful.
This is not an easy problem to solve. The suggestion by "Mohamed Taher Alrefaie" is not relevant at all. One way to approach this problem is to fuse more than one heuristic that can cross-validate each other. for example, the path of the GPS sensor gives valuable information: if you estimate the tangent to the path (only the X-Y components of the GPS position), you'll see straightaway that direction reversal can be easily detected by looking for a zero-crossing of the tangent with a very high peak. This, of course, assumes that you know the initial direction of movement. Now, combine this with your accelerometer heuristic and you'll have a much more reliable solution.