I think a lot of modern motorcycles have this gyroscopic sensor for yaw, pitch and roll movements.
I'm not an engineer so I am not sure.
Motorcycling is a fascinating kind of transportation. While the riders’ direct exposure to the environment and the unique driving dynamics are essential to this fascination, they both cause a risk potential which is several times higher than when driving a car....
link.springer.com
Schröter K., Pleß R., Seiniger P. (2015)
Vehicle Dynamics Control Systems for Motorcycle. In: Winner H., Hakuli S., Lotz F., Singer C. (eds) Handbook of Driver Assistance Systems. Springer, Cham