Design And Optimization Of Locomotion Mode Recognition For Lower-Limb Amputees With Prostheses