To accomplish reliable walking of biped robot, the ability to handle various terrain is very important. However, humanoid robot walking has been a challenging issue in the control field since the balance can only be achieved by considering the dynamics of the system. Instead of using sophisticated algorithms that are limited by computing power and specific control units, we choose simple walking model. To handle different ground characteristic, the class is detected by SVM with data from force sensors, and the corresponding parameters are assigned to walking model to reach optimal stability.