Out of curiosity, wouldn't an accelerometer alone not work for this purpose? I see you've hooked it up with engine RPM as well, but realistically you want to indicate when you're slowing down, no matter the reason, right? Is there something I'm fundamentally missing here?
This is a great idea though, and definitely something that more bikes should come stock with. There's a very clear benefit for safety.