Research Article | Open Access

Qiang Lu, Juan Tian, "Research on Walking Gait of Biped Robot Based on a Modified CPG Model", *Mathematical Problems in Engineering*, vol. 2015, Article ID 793208, 9 pages, 2015. https://doi.org/10.1155/2015/793208

# Research on Walking Gait of Biped Robot Based on a Modified CPG Model

**Academic Editor:**Victor Santibáñez

#### Abstract

The neurophysiological studies of animals locomotion have verified that the fundamental rhythmic movements of animals are generated by the central pattern generator (CPG). Many CPG models have been proposed by scientific researchers. In this paper, a modified CPG model whose output function is is presented. The paper proves that the modified model has stable periodic solution and characteristics of the rhythmic movement using the Lyapunov judgement theorem and the phase diagram. A modified locomotion model is established in which the credit-assignment cerebellar model articulation controller (CA-CMAC) algorithm is used to realize the pattern mapping between the CPG output and the musculoskeletal system. And a seven-link biped robot is employed to simulate cyclic walking gait in order to test the validity of the locomotion model. The main findings include the following. (1) The modified CPG model can generate spontaneous oscillations which correspond to biological signals. (2) The analysis of the modified locomotion model reveals that the CA-CMAC algorithm can be used to realize the pattern mapping between the CPG output and the musculoskeletal system.

#### 1. Introduction

Through works of scientific researchers, people have realized that the CPG can generate rhythmic movements. In order to represent the CPG and generate required signals, several nonlinear oscillators that are coupled together have been developed, such as the Hopf Rayleigh, Van del Pol, and Matsuoka oscillators [1–3]. Due to their simplicity and effectiveness, these CPG models have widely been used in robot control and motion simulation of human [4–6].

Humanoid robots have become quite popular and are used as a research tool in many groups worldwide. Among the various motions of a humanoid robot, the most basic and important motion is bipedal walking [7–11]. Chevallereau et al. [7] presented three feedback controllers that achieve an asymptotically stable, periodic, and fast walking gait for a 3D bipedal robot. Shimmyo et al. [8] proposed the biped walking pattern generation by using preview control based on a three-mass model. Liu et al. [9] presented biped walking control using a library of optimal trajectories. Wang et al. [10] showed an energy-efficient support vector machine learning control system considering the energy cost of each training sample of biped dynamic in order to realize energy efficient biped walking. Li et al. [11] showed a walking pattern generator based on the control of the center of mass states.

When the CPG model is applied to walking gait, the outputs of the CPG are changed to positions and angles which inspire the musculoskeletal system. Therefore, the outputs of the CPG should correspond to biological signals. But the outputs of Matsuoka model are smoother than biological signals [12]. Taga [13] showed that many parameters which include the body parameters, the parameters in the neural oscillators, the strength of the neural connections, the magnitude of the coefficients in the rhythmic force controller, the strength of the sensory inputs, and the impedance parameters decide the conversion from the CPG to musculoskeletal system in the design of planning gait. Kim et al. [14] showed that the nonparametric estimation based particle swarm optimization is to effectively search the parameters of the CPG. Therefore, they are important works to study the central pattern generator corresponding to biological signals and establish the method to realize the mapping from the CPG to the musculoskeletal system in the fields of robot motor control. The motivations behind this research are to generate control signals inspired by biological ones for the robot motions and develop bionic technologies of robots.

This paper is organized as follows. In Section 2, a modified CPG model and a CPG network model are presented. The modified locomotion model and the CA-CMAC algorithm are shown in Section 3. Simulations and results are discussed in Section 4, and the conclusions and future works are made in Section 5.

#### 2. Modified CPG Model and CPG Network

##### 2.1. Modified CPG Model

Kimura et al. [15] constructed an oscillator based on Matsuoka’s neuron model [1, 2]. The CPG model is shown in Figure 1. This model consists of two mutually inhibiting neurons that correspond to a flexor neuron and an extensor neuron in animals, respectively. These two neurons alternately induce torque proportional to the inner state in opposite directions. Each neuron is composed of two identical spontaneously firing neurons which remain active even when an animal is at rest and this activity can persist even when synaptic transmission is blocked and is thus endogenously generated. The two neurons are coupled together in such a way that the output of one neuron suppresses the other neuron’s activity and vice versa. Together with a certain adaptation or fatigue property of the neurons, the reciprocal inhibition works to produce a stable oscillation [16]. In Figure 1, the filled black circles indicate inhibitory action and the unfilled circles represent excitatory action.

Hence, the CPG model [15–17] can be described by

The function is a piecewise linear function defined by , which represents a threshold property of the neurons. These variables , , and represent the membrane potential which is the difference in electric potential between the interior and the exterior of a biological cell and the firing rate of the neuron, respectively. The two variables and represent the adaptation and fatigue properties that ubiquitously exist in real neurons. The parameter denotes the tonic input which adapts slowly to a stimulus and continues to produce action potentials over the duration of the stimulus. Parameters and represent the strength of mutual and self-inhibition, respectively; parameters and are the time constants that determine the reaction times of variables , and , .

In this model, the entire walking behavior undergoes an adaptation process by causing an oscillation in each joint movement. The movement of a joint is coupled with that of other joints. The entire walking behavior converges to a certain stable walking pattern in a harmonious manner through the adaptation process of the oscillator.

In order to analyze this model, we only consider a CPG and in 1 are all omitted. Then 1 is simplified to

The signals from nerves are similar to sine [18]. Therefore, which can be simulated biological characters is chosen to take the place of . Then 3 is obtained: where , , , , , , , and .

Theorem 1. *There exists which makes the equilibrium of system 3 unstable.*

*Proof. *We have the linearization matrix of 3Because the equilibrium is , , , and , the above matrix changes to
The characteristic equation is
or
The eigenvalues of 6 are
(a)Equation 6 has complex number root for . When , the equilibrium of nonlinear system 3 is unstable.(b)Equation 6 has real number root for or . When the sign before radical is positive and , the equilibrium of nonlinear system 3 is unstable. When the sign before radical is negative and , the equilibrium of nonlinear system 3 is unstable.

The eigenvalues of 7 are
(a)Equation 7 has complex number root for . When , the equilibrium of system 3 is unstable.(b)Equation 7 has real number root for or . When the sign before radical is positive and , the equilibrium of system 3 is unstable. When the sign before radical is negative and , the equilibrium of nonlinear system 3 is unstable.

According to Lyapunov theorem, the equilibrium of nonlinear system is unstable when there is an eigenvalue whose value or real part is positive. From the above analysis, the equilibrium of nonlinear system 3 is unstable.

Theorem 2. *There exists which makes the system 3 have stable periodic solution.*

*Proof. *According to 3, we can obtain phase diagram of the states , , , and when initial input value is and is 1.6, as shown in Figure 2.

Based on Poincare-Bendixon’s theorem, Zhang et al. [19] derive a lemma.

Lemma 3. *The trajectories on the boundary of the region are from outside to inside and the ones in the region are from inside to outside. If the region has no equilibrium except unstable focus, there is stable limit cycle within the region .**When , 6 has two complex number roots and their real parts are positive. Therefore, the point (0, 0, 0, 0) is an unstable focus. From Figure 2, we can see that one region is composed of the closed trajectories and the directions of these trajectories are from inside to outside. According to Lemma 3, the system 3 has stable limit cycle and stable periodic oscillation.*

From the above analysis, there exists which makes the system 3 have stable periodic solution.

From the proof of Theorems 1 and 2, we can see that this modified CPG model has the characteristics of the rhythmic movement. Therefore, it can be applied to robot movement.

##### 2.2. Network of CPG

The CPG oscillators are allocated at each joint and its output is used as joint position commands to the robot. Desired gait is generated by coordinating the movement of multiple oscillators in a self-organizing manner [20]. The CPG network, that is, the arrangement of CPGs to the biped robot, is shown in Figure 3. The topology of the CPG network is annular. These adjacent CPGs are coupled to one another with different values of joint angle.

The six joints’ outputs, which are defined as , , , , , and , are shown in Figure 4. Parameters are set as , , , and . Initial input value is . In Figure 4, the output of the CPG is similar to biological signal [12].

**(a)**

**(b)**

#### 3. Human Locomotion Model and CMAC Algorithm

##### 3.1. Human Locomotion Model

Taga [13] showed the basic structure of the human locomotion. The motor command generation and impedance controller are needed to connect the CPG with the musculoskeletal system. During design process of planning gait, many parameters which include the body parameters, the parameters in the neural oscillators, the strength of the neural connections, the magnitude of the coefficients in the rhythmic force controller, the strength of the sensory inputs, and the impedance parameters are set to obtain stable gait. However, the outputs of coupling CPGs cannot contain spatial information. In this paper, the CMAC algorithm is chosen to replace the motor command generation and impedance controller. The modified human locomotion model is expressed in Figure 5.

##### 3.2. CMAC Algorithm

Albus [21] developed CMAC as a control method based on the principles of the cerebellum’s behavior. A CMAC consists of two mappings as shown in Figure 6.

A fixed mapping transforms each into an dimensional binary associate vector in which only elements have the value of 1, where is referred to as the generalization width. In other words, each activates precisely association cells or geometrically each is associated with a neighbourhood in which association cells are included. The nearby input vectors and have some overlapping neighborhoods and, therefore, share some common association cells. The degree to which the neighborhoods of and are overlapping depends on the Hamming distance of and . If is small, the intersection of and should be large and vice versa. At some values of greater than , the intersection becomes null, and no local generalization occurs. A second mapping is performed as . In order to amend the conventional CMAC algorithm, Su et al. [22] proposed the CA-CMAC whose learning approach is to use the inverse of learned times of the addressed hypercubes as the credibility of the learned values. In comparison to other algorithms, the CA-CMAC has the advantage of very fast learning, and it has the unique property of quickly training certain areas of memory without affecting the whole memory structure, which is called generalization. The advantage in training speed is very important in fast gait transition, and the local generalization is particularly suitable for local area features conversion [23–26]. The output of the CA-CMAC is shown in where is the number of memory elements, is the output of state , and is the weight of the th memory element. Parameter is the flag of whether the th memory element is activated. If activated, the value is 1; otherwise the value is 0. The update rule of weights is shown in where is the learning rate and is the activated times of the th memory cell.

#### 4. Simulations

The seven-link biped robot [27] is employed to simulate walking gait. The structure is expressed in Figure 7.

In Figure 7, each foot trajectory can be denoted by a vector , is the coordinate of the ankle position, and denotes the angle of the foot. The hip trajectory can be denoted by a vector , is the coordinate of the hip position, and denotes the angle of the hip.

Zero moment point (ZMP) is widely employed in the stability control of biped robot locomotion. The ZMP is defined as the point on the ground about which the sum of all the moments of the active forces is equal to zero. To guarantee the stability of the biped robot, the ZMP must be within the support polygon made between the foot and the ground [27]. The robot will fall if the ZMP moves toward the edge of the support polygon. Therefore, the fall of the biped robot can be predicted through monitoring the location of ZMP within the support polygon. The ZMP in -axis direction can be calculated as follows: where is the mass of link and is the gravitational acceleration. is the coordinate of the mass center of link on an absolute Cartesian coordinate system.

Parameters are set as cm, cm, cm, cm, cm, cm, s, s, rad, rad, cm, s, cm, cm, cm, cm, cm, and cm [27]. Then we obtain the curve of the robot’s ankle and hip, as shown in Figure 8.

**(a)**

**(b)**

According to planning, the stick figure of the walking movement and the ZMP in the -axis direction are obtained, as shown in Figure 9.

**(a)**

**(b)**

From Figures 8 and 9, we can see both feet leave and land on the ground with the desired angles. The trajectories of motion are smooth and the ZMP trajectory is within the support polygon [27].

In order to recognize the input value of CMAC, a cycle outputs of CPG correspond to cycle planning angles. The input values of CMAC are in two-dimension. The one-dimension is the sampling value of CPG, and the other one-dimension is the differential value. Six joint angles are needed to be converted in simulation. Hence, six parallel CA-CMACs [28] are chosen for in 10 and in 11.

We choose 301 angles, which are obtained from planning gait, as expected values of the CA-CMAC. The 602 two-dimension values are obtained by the CPG network. The first 301 two-dimension values are used to train CA-CMAC network. After training, the fitting curve is obtained in Figure 10. In Figure 10, the dotted lines indicate planning angles and the real lines indicate angles which are obtained by six CA-CMACs.

The second 301 two-dimension values are used to test. Then the stick figure of the walking movement is expressed in Figure 11. We also calculate the location of ZMP and which is within the support polygon.

Comparing Figure 9 with Figure 11, the robot walking gait is also stable with angles which are generated by CA-CMACs.

#### 5. Conclusion

The present study is performed on the modified CPG model, the CPG network, and the human locomotion model. The output of CPG can not only be similar to the biological signal, but also inspire musculoskeletal system to obtain natural gait when the CPG parameters are chosen properly. Here, we only discuss the characteristics of CPG model and the locomotion model and their application. The complex dynamic characters of the CPG deserve further investigation.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### References

- K. Matsuoka, “Sustained oscillations generated by mutually inhibiting neurons with adaptation,”
*Biological Cybernetics*, vol. 52, no. 6, pp. 367–376, 1985. View at: Publisher Site | Google Scholar | MathSciNet - K. Matsuoka, “Mechanisms of frequency and pattern control in the neural rhythm generators,”
*Biological Cybernetics*, vol. 56, no. 5-6, pp. 345–353, 1987. View at: Publisher Site | Google Scholar - J. Yu, M. Tan, J. Chen, and J. Zhang, “A survey on CPG-inspired control models and system implementation,”
*IEEE Transactions on Neural Networks and Learning Systems*, vol. 25, no. 3, pp. 441–456, 2014. View at: Publisher Site | Google Scholar - W. Chen, G. Ren, J. Zhang, and J. Wang, “Smooth transition between different gaits of a hexapod robot via a central pattern generators algorithm,”
*Journal of Intelligent & Robotic Systems*, vol. 67, no. 3-4, pp. 255–270, 2012. View at: Publisher Site | Google Scholar - C. Liu, Q. Chen, and D. Wang, “CPG-inspired workspace trajectory generation and adaptive locomotion control for quadruped robots,”
*IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics*, vol. 41, no. 3, pp. 867–880, 2011. View at: Publisher Site | Google Scholar - Q. Lu and J. Tian, “Synchronization and stochastic resonance of the small-world neural network based on the CPG,”
*Cognitive Neurodynamics*, vol. 8, no. 3, pp. 217–226, 2014. View at: Publisher Site | Google Scholar - C. Chevallereau, J. W. Grizzle, and C.-L. Shih, “Asymptotically stable walking of a five-link underactuated 3-D bipedal robot,”
*IEEE Transactions on Robotics*, vol. 25, no. 1, pp. 37–50, 2009. View at: Publisher Site | Google Scholar - S. Shimmyo, T. Sato, and K. Ohnishi, “Biped walking pattern generation by using preview control based on three-mass model,”
*IEEE Transactions on Industrial Electronics*, vol. 60, no. 11, pp. 5137–5147, 2013. View at: Publisher Site | Google Scholar - C. Liu, C. G. Atkeson, and J. Su, “Biped walking control using a trajectory library,”
*Robotica*, vol. 31, no. 2, pp. 311–322, 2013. View at: Publisher Site | Google Scholar - L. Wang, Z. Liu, C. L. P. Chen, Y. Zhang, S. Lee, and X. Chen, “Energy-efficient SVM learning control system for biped walking robots,”
*IEEE Transactions on Neural Networks and Learning Systems*, vol. 24, no. 5, pp. 831–837, 2013. View at: Publisher Site | Google Scholar - Z. Li, N. G. Tsagarakis, and D. G. Caldwell, “Walking pattern generation for a humanoid robot with compliant joints,”
*Autonomous Robots*, vol. 35, no. 1, pp. 1–14, 2013. View at: Publisher Site | Google Scholar - M. MacKay-Lyons, “Central pattern generation of locomotion: a review of the evidence,”
*Physical Therapy*, vol. 82, no. 1, pp. 69–83, 2002. View at: Google Scholar - G. Taga, “A model of the neuro-musculo-skeletal system for human locomotion I. Emergence of basic gait,”
*Biological Cybernetics*, vol. 73, no. 2, pp. 97–111, 1995. View at: Publisher Site | Google Scholar - J.-J. Kim, J.-W. Lee, and J.-J. Lee, “Central pattern generator parameter search for a biped walking robot using nonparametric estimation based particle swarm optimization,”
*International Journal of Control, Automation and Systems*, vol. 7, no. 3, pp. 447–457, 2009. View at: Publisher Site | Google Scholar - H. Kimura, S. Akiyama, and K. Sakurama, “Realization of dynamic walking and running of the quadruped using neural oscillator,”
*Autonomous Robots*, vol. 7, no. 3, pp. 247–258, 1999. View at: Publisher Site | Google Scholar - K. Matsuoka, “Analysis of a neural oscillator,”
*Biological Cybernetics*, vol. 104, no. 4-5, pp. 297–304, 2011. View at: Publisher Site | Google Scholar | MathSciNet - Y. Fukuoka, H. Kimura, and A. H. Cohen, “Adaptive dynamic walking of a quadruped robot on irregular terrain based on biological concepts,”
*International Journal of Robotics Research*, vol. 22, no. 3-4, pp. 187–203, 2003. View at: Publisher Site | Google Scholar - E. Todorov, “Cosine tuning minimizes motor errors,”
*Neural Computation*, vol. 14, no. 6, pp. 1233–1260, 2002. View at: Publisher Site | Google Scholar - Y.-J. Zhang, Q.-B. Zhu, and E.-G. Tian, “Method of bifurcation analysis of cellular neural network for CPG models,”
*Control Theory and Applications*, vol. 23, no. 3, pp. 362–366, 2006. View at: Google Scholar - J. J. Kim and J. J. Lee, “Gait adaptation method of biped robot for various terrains using central pattern generator and learning mechanism,” in
*International Conference on Control, Automation and Systems*, vol. 19, pp. 382–387, Seoul, Republic of Korea, 2007. View at: Google Scholar - J. S. Albus, “A new approach to manipulator control: The cerebellar model articulation controller (CMAC),”
*Journal of Dynamic Systems, Measurement and Control*, vol. 97, no. 3, pp. 220–227, 1975. View at: Publisher Site | Google Scholar - S.-F. Su, T. Tao, and T.-H. Hung, “Credit assigned CMAC and its application to online learning robust controllers,”
*IEEE Transactions on Systems, Man, and Cybernetics Part B: Cybernetics*, vol. 33, no. 2, pp. 202–213, 2003. View at: Publisher Site | Google Scholar - C.-S. Lin and C.-T. Chiang, “Learning convergence of CMAC technique,”
*IEEE Transactions on Neural Networks*, vol. 8, no. 6, pp. 1281–1292, 1997. View at: Publisher Site | Google Scholar - Y.-Q. Wang, Y. Tao, B. Nie, and H.-B. Liu, “Optimal design of motion control for scan tracking measurement: a CMAC approach,”
*Measurement*, vol. 46, no. 1, pp. 384–392, 2013. View at: Publisher Site | Google Scholar - C. He, L.-X. Xu, and Y.-H. Zhang, “Convergence and generalization ability of CMAC,”
*Control and Decision*, vol. 16, no. 5, pp. 523–534, 2001. View at: Google Scholar - X.-M. Lin, T. Mei, M.-Z. Luo, and Y.-F. Song, “The analysis of CMAC generalization,”
*Pattern Recognition and Artificial Intelligence*, vol. 19, no. 3, pp. 382–387, 2006. View at: Google Scholar - Q. Huang, K. Yokoi, S. Kajita et al., “Planning walking patterns for a biped robot,”
*IEEE Transactions on Robotics and Automation*, vol. 17, no. 3, pp. 280–289, 2001. View at: Publisher Site | Google Scholar - Y. Pan, X.-S. Gu, and S.-L. Lu, “Credit-assignment-based parallel ensemble CMAC and its applications in modeling,”
*Control Theory and Applications*, vol. 27, no. 2, pp. 211–215, 2010. View at: Google Scholar

#### Copyright

Copyright © 2015 Qiang Lu and Juan Tian. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.