Another motorcycle project: gear selection indicator
A simpler solution which I have seen in an older Suzuki motorcycle was by sensing the position of the gear shifter. I am not sure how feasible it might be but you could probably achieve it using a few reed switches.