Abstract
The gait generator, which is capable of producing rhythmic signals for coordinating multiple joints, is an essential component in the quadruped robot locomotion control framework. The biological counterpart of the gait generator is the central pattern generator (abbreviated as CPG), a small neural network consisting of interacting neurons. Inspired by this architecture, researchers have designed artificial neural networks composed of simulated neurons or oscillator equations. Despite the widespread application of these designed CPGs in various robot locomotion controls, some issues remain unaddressed, including: (1) Simplistic network designs often overlook the symmetry between signal and network structure, resulting in fewer gait patterns than those found in nature. (2) Due to minimal architectural consideration, quadruped control CPGs typically consist of only four neurons, which restricts the network’s direct control to leg phases rather than joint coordination. (3) Gait changes are achieved by varying the neuron couplings or the assignment between neurons and legs, rather than through external stimulation. We apply symmetry theory to design an eight-neuron network, composed of Stein neuronal models, capable of achieving five gaits and coordinated control of the hip-knee joints. We validate the signal stability of this network as a gait generator through numerical simulations, which reveal various results and patterns encountered during gait transitions using neuronal stimulation. Based on these findings, we have developed several successful gait transition strategies through neuronal stimulations. Using a commercial quadruped robot model, we demonstrate the feasibility of this network by implementing motion control, gait transitions, and sensory feedback.
1. Introduction
Central pattern generator (CPG) is a small neural network composed of neurons with interactions (Ijspeert, 2008), and it has been widely demonstrated to exist in the central nervous system of vertebrates (Grillner, 1985; Grillner et al., 1998; Grillner and Wallén, 1985) and the ganglia of invertebrates (Orlovsky et al., 1999). CPGs can generate primary signals for rhythmic behaviors such as locomotion and respiration without sensory feedback, while sensory feedback can be involved to shape the signals (Yu et al., 2014).
In robotics, CPGs are widely modeled and implemented in programs or hardware for controlling the locomotion and behavior of various types of robots, such as salamander robot for investigating the neural mechanisms behind salamander swimming and walking (Ijspeert, 2020; Ijspeert et al., 2007; Thandiackal et al., 2021); integration with sensory feedback for bipedal (Righetti and Ijspeert, 2006b; Van der Noot et al., 2018), quadrupedal (Liu et al., 2011; Righetti and Ijspeert, 2008), and hexapod locomotion control (Manoonpong et al., 2007, 2008; Steingrube et al., 2010); control of flapping-wing robot (Bayiz et al., 2019; Chung and Dorothy, 2012) and fish robot (Li et al., 2015); integration with reinforcement learning for controlling quadruped robots (Bellegarda and Ijspeert, 2022; Shao et al., 2022) and snake-like robots (Liu et al., 2023); and so on.
Compared with model-based control (Di Carlo et al., 2018; Kim et al., 2019) and learning-based control (Lee et al., 2020; Tan et al., 2018), the most attractive superiority of CPG is its simplicity and computational efficiency. Previous works proved that the CPGs could be implemented on microcontroller (Li et al., 2015), oscillating circuit on chips (Dutta et al., 2019; Saito et al., 2017; Still et al., 2006), or even electronics-free pneumatic circuit (Drotman et al., 2021). When serving as a gait generator in locomotion control, CPG possesses intrinsic stability and adaptability. One only needs to compute a set of ordinary differential equations (ODEs) of the dynamical system to achieve coordinated rhythmic motion control of multiple joints of the robot. These characteristics ensure the continuity of the locomotion and gait transition.
While there are many projects involving quadruped robots using CPGs, the types of CPGs applicable to quadruped robots are limited. Most gait generators for quadruped robots can be generalized as generating four primary signals through a four-neuron CPG, each corresponding to one of the four legs, to control the phase relationship among legs. As for hip-knee joint control, each primary signal undergoes a mapping function to generate signals that are independently assigned to knee and hip joints. The type of CPG architecture based on a four-neuron network has many advantages, such as its simple structure, convenient tuning methods, ease of integration into a locomotion controller, and compatibility with combined approaches like sensor capability or learning-based control architecture. However, it has several limitations as described below:
First, the number of gait rhythms that can be generated is limited. It’s observed in quadruped animals that there are many types of gaits. For instance, six primary gaits observed in animals (Buono and Golubitsky, 2001; Golubitsky et al., 1998) are walk, trot, pace, bound, pronk, and jump (Figure 1), while most of the four-neuron networks can achieve no more than three gait types. Phase relation for six types of quadruped locomotion gaits: walk, trot, pace, bound, pronk, and jump (Buono and Golubitsky, 2001; Golubitsky et al., 1998). In this work, the proposed eight-neuron network can achieve the above gaits except jump.
Second, the number of joints/DoFs that can be controlled is limited. The common design for quadrupeds is to have three joints per leg: hip abduction-adduction, hip flexion-extension, and knee flexion-extension. However, in all four-neuron or even eight-neuron CPGs, only four signals can be utilized for phase relation control among four legs. Realizing the phase relationship between the knee and hip joints often requires a mapping method to transfer the signal of a single neuron into two or more joint position signals.
For engineering applications, despite these limitations, a four-neuron network remains the most straightforward and effective architecture within the CPGs. From a biological perspective, it is considered that control signals for multiple joints are likely produced by specific neurons rather than mapping functions (Golubitsky et al., 1998; Righetti, 2008), necessitating more complex network architectures. We believe that a CPG capable of generating various gaits and controlling multiple joints could offer new tools for gait generators in quadruped robots and stimulate research into new types of gaits and hip-knee coordinate control. These visions motivate us to overcome the above limitations and design novel CPG network architectures.
A feasible routine to design a CPG is to follow the symmetry principle. From a programming perspective, each neuron is a group of ODEs, which are also known as neuron models or oscillator models. The interrelations among neurons are named couplings, which can be represented by the coupling matrix. The symmetry of the CPG architecture is determined by the coupling matrix rather than the equation form of neurons. The whole CPG can be considered as a dynamic system, the rhythmic gaits correspond to the attractors of the system. The gait transition can be regarded as the system state switching from one attractor to the other. The relationship between the symmetry of the network and the periodic solutions (gaits) has been revealed by the H/K theorem, which will be further explained in the next section. Thus, the solution for achieving gait variety is to design the symmetry variety of the network architecture. Moreover, the phase relationship between hip and knee joints should be maintained for all gaits, which means another type of intrinsic symmetry should be considered.
In this article, we designed an eight-neuron network for quadruped locomotion control with hip-knee joint control. Here, the hip joint refers to the hip flexion-extension DoF without abduction-adduction. The proposed eight-neuron network has three key features: (1) Gait diversity: Due to its more complex network architecture, the eight-neuron network enables a wider range of gaits. In this study, we utilized the eight-neuron network to achieve five gaits: walk, trot, pace, bound, and pronk. The regulation of gaits can be achieved by simply modifying the control variables within the mesencephalic locomotor region (MLR) module, its counterpart located in the midbrain of animals (Cabelguen et al., 2003). (2) Control more DoFs: Most CPGs with four or even eight neurons are designed to control the phase relations among legs; each motor’s signal in a leg is obtained through post-processing by neurons. In engineering applications, this approach is more suitable for programmable foot trajectories. The eight-neuron network not only utilizes its first layer to accomplish similar tasks but also generates eight distinct control signals. Among these, every two neurons form a pair that can generate a group of signals directly assigned to both the knee and hip joints of a leg. This enables the achievement of phase relations among legs (i.e., gait) as well as phase relations between the hip and knee joints within each leg. These assignments are maintained during subsequent gait transitions. (3) Joint position continuity: Since the neurons assigned to each joint remain unchanged, gait transition can be directly achieved by utilizing the MLR to regulate the eight-neuron network. We proposed four strategies by manipulating the variables in MLR to ensure the continuity and success of all 20 gait transitions.
The architecture of the network has two four-neuron layers, one for hip joints and the other for knee joints. Couplings of the network are designed based on the symmetry assumptions. The global symmetry refers to the phase relation among legs; the local symmetry refers to the phase relation between hip and knee joints in each leg. Stein neuronal model (Stein et al., 1974a, 1974b) is modified as the ODEs of the neurons. Control parameters for all gaits are verified by numerical simulation. Gait transitions are investigated exhaustively. For certain gait transitions that were neither encountered nor difficult to ensure success in previous studies, we uncover the patterns between the outcomes of gait transitions and the transition time. Based on these patterns, we propose several strategies to ensure successful transitions. We further demonstrate the stability and simplicity of the proposed network as a gait generator for quadruped locomotion control through physical simulations on a commercial quadruped robot model. The contributions of this work are: (1) An eight-neuron network architecture for quadruped locomotion control. (2) The realization of five gaits and transitions. (3) The implementation of the network in the physical simulation.
The organization of this paper is as follows. In Section 2, we give an introduction to the symmetry theory of networks. We further propose that the four-neuron network with
2. Symmetry of networks
2.1. Modeling CPG network
From the perspective of biology, CPG is a small group of neurons that form a network. The connections among the neurons are called synapses. The behavior of the neuron can be modeled by the neuron models, which are generally a set of differential equations. The connections among the neurons can be modeled by the coupling effects, which can be further described by the coupling matrix. Modeling a CPG network can be separated into two steps: (1) Design the network architecture. (2) Design the neuron model.
The architecture of the network can be presented as a graph with nodes and edges. The nodes represent the state variables and the edges represent the interactions among these variables. CPGs are dynamic networks, the nodes represent the neurons and the edges represent the coupling effect of the neurons. Here, we give a brief example. As in Collins and Richmond (1994), the CPGs adopted the Hopf model, Van der Pol model, and Stein neuronal model, all these networks have the same architecture as shown in Figure 2(b). The coupling with arrows forms a unidirectional ring. An interesting phenomenon is that, despite the neurons of the CPGs being calculated by a variety of models, all of these CPGs are capable of generating walk, trot, and bound gaits. Additionally, plenty of robotic research has proved that the neurons of the CPGs can be modeled by a variety of forms of ODEs. Some of them are derived from the neurons’ behavior, and some of them are simply oscillator equations. These CPGs can perform similar gait types as long as they share the same network architecture. (a) The arrow represents the coupling effect from neuron A to neuron B. (b) The four-neuron network with one-way coupling. The graph-theoretic automorphism group is 
This can be explained as the symmetries of the network leading to the synchrony and phase relation of the neurons. The pattern of the network is determined by the architecture (or the symmetry) of the network, rather than ODEs. Thus, to design the CPG to achieve the desired gaits, the first step is to design the architecture of the network which determines the symmetries.
2.2. Symmetries and H/K theorem
The symmetry in CPG refers to the transformation that preserves the states of the system. In CPGs, two terms of symmetries are considered: the symmetry of the network and the symmetry of the gait rhythm. The symmetries of the network can be defined as a group of permutations that preserve network architecture. The gait rhythm corresponds to the periodic states of each joint in each leg (such as the angles of the joint). A brief introduction to the involved symmetry is given in Appendix B.
The H/K theorem (Buono and Golubitsky, 2001; Golubitsky and Stewart, 2006) is introduced here to demonstrate the relationship between the gait rhythms and the symmetry of the network. The theorem is stated as follows:
Here, we make some brief notes for this theorem. • CPG is considered as a network of neurons with couplings, which can generate gait rhythms. • The symmetry of the CPG architecture is denoted as group Γ. • The gait rhythms are time domain signals with two types of symmetry, the spatial and the temporal symmetries. The spatiotemporal symmetry of a specific gait is denoted as group H. • Proving that a CPG architecture can generate a type of gait involves four steps: (1) Derive the symmetry group of the network Γ. (2) Derive the spatiotemporal symmetry group H of the gait, which should be a subgroup of Γ. (3) Derive the spatial symmetry group K of the gait, which should be a subgroup of H. K is an isotropy group, which corresponds to the spatial symmetry of the gait. (4) Calculate the quotient group H/K. H/K should be a cyclic group. H/K corresponds to the temporal symmetry of the gait.
For example, in classical CPG architecture • • •
2.3. Four-neuron network with D 4 symmetry
We aim to build a CPG for quadruped locomotion with multiple gaits: walk, trot, pace, bound, and pronk. Previous work (Golubitsky and Stewart, 2006) proved that in a network with
According to the H/K theorem, we need to find the appropriate cyclic quotient subgroup and isotropy subgroup of the • • • • •
Spatiotemporal group H, subgroup K, and quotient subgroup H/K in
3. Eight-neuron network and Stein neuronal model
Based on the foundation that the four-neuron
Most quadruped CPGs employ four-neuron networks, and the signals generated by neurons are assigned to the hip joints correspondingly. The signals of knee joints are generated by mapping functions based on the designed trajectories. The four-neuron network has its advantages; the simple architecture and computational efficiency allow it to be implemented into the locomotion controller easily.
Designing a network architecture more complex than the four-neuron architecture does not compromise these advantages. A network with additional neurons can have more symmetries, which may generate more gait types. Moreover, achieving hip-knee coordination through the inherent characteristics of the network rather than manually designed trajectories can offer more insights into gait transition mechanisms and performance, benefiting both robotics and biology.
We aim to build a CPG to achieve hip-knee control of the quadrupeds. The neurons of the network can generate signals for both the hip and knee joints of the robot. Each joint has an assigned neuron. Based on the gait existence proof of the four-neuron (1) Adding neurons while maintaining the (2) Designing symmetry to achieve the phase locking between the hip and knee neurons.
Thus far, we conclude that designing an eight-neuron network for hip-knee coordinated control requires consideration of two types of symmetry. One corresponds to the gait rhythm (among four legs), while the other corresponds to the phase relationship of the hip-knee joints. In subsequent sections, the former is referred to as global symmetry, while the latter is termed local symmetry.
3.1. Expanding four-neuron network to eight-neuron network
There are various approaches to expand a four-neuron network to the one composed of eight neurons. One straightforward method is to add four neurons and building couplings. However, this approach could potentially impact the global symmetry of the original network, and the local symmetry is also difficult to design this way.
In this paper, we increase the number of neurons in the network by splitting one neuron in the (a) Consider each neuron in

The expanded eight-neuron network architecture can be further represented by a 3-D cube, which is shown in Figure 3(b). The original neuron assigned to a leg in
The two-way couplings in
Considering the couplings between the top and bottom layer, there are four types of couplings in Figure 3(b): • α: the coupling in the top layer • β: the coupling in the bottom layer • γ: the coupling from top to the bottom • δ: the coupling from the bottom to the top
To maintain the
3.2. Stein neuronal model and modifications
In CPG design, the models of the neuron can be classified as human-designed oscillators and biological neuron models. The advantage of the oscillators is their relatively simple form, and the limit cycles are adjustable. The biological neuron models are typically proposed by neurobiologists. The equations of these models are relatively complex and can simulate certain behaviors of neurons. The parameters in the models often have clear biological and physical meanings.
In this work, we employ the Stein model, a biological neuron model first introduced in Stein et al. (1974a, 1974b). We choose this model because it effectively describes the pulse and step responses of neurons, and the parameters in the model have clear physical interpretations. The equations of this model can be represented as:
In the eight-neuron network, the coupling effects from the other neurons are included in the term of the driving signal f
ci
. f
ci
has three components: control signals for gait selection and transition from the MLR, coupling effects from the neurons in the same layer, and coupling effects from the neurons in the other layer. In this work, f
ci
for hip and knee neurons are expressed as
3.3. Designing couplings and model parameters
Coupling matrix λ ij of the eight-neuron network.
Following the global symmetry, the coupling parameters α and β are both set as −0.15, representing inhibitory couplings among neurons in the same layer. As for local symmetry between neuron pairs, if γ = δ, it will lead to a
Parameters of the eight-neuron network.
4. Numerical simulations
To demonstrate that the eight-neuron network model can effectively generate rhythmic gait signals and achieve gait transitions, we presented a series of numerical simulations. The numerical simulations are carried out in Python 3.12, and the ODEs of the network are calculated by the fourth Runge-Kutta method. The initial state of the eight-neuron network is listed in Table 6.
4.1. Five gaits
The eight-neuron network is capable of generating five gaits: walk, trot, pace, bound, and pronk. The spatiotemporal symmetries of these gaits are shown in Figure 1. The numerical simulation results of the gaits are shown in Figure 4. For each gait, the control parameters in simulation and the periods are listed in Table 7. The phase portraits of the hip-knee neuron pairs are also illustrated to prove that the eight-neuron network can generate stable phase-locking between the hip and knee neurons. This phase-locking feature is helpful in the quadruped locomotion control for it can replace the mapping function by directly sending the signals of the bottom layer to the corresponding knee joints. The video of five gaits is provided in video E1. The proposed network can also withstand a certain range of perturbation. Perturbation experimental details are in Appendix D. (a)–(e) Signals of the eight-neuron network corresponding to the walk, trot, pace, bound, and pronk gaits, respectively.
Compared with the Stein model four-neuron
Both trot and pace gaits have been observed in animals. Experiments also proved that some quadruped animals can learn pace gait by training (Błaszczyk and Dobrzecka, 1989), which implies that the CPG of the animals should support the rhythms of both trot and pace. From this aspect, the eight-neuron network which supports both trot and pace gaits is close to biology. Besides, assigned neurons to each joint with inner stability from the local symmetry would make the eight-neuron network in line with the biological characteristics of locomotion.
4.2. Gait transition strategy
Gait transition endows the animals to switch their speed, terrain adaptability, and energy consumption (Alexander, 2003; Xi et al., 2016). The most attractive feature of CPG is that the signals are continuous during gait transitions. From the aspects of dynamical systems, the gait transition of the CPG refers to the bifurcation of the system (Collins and Stewart, 1992, 1993; Golubitsky et al., 2012; Schöner and Kelso, 1988). The change of the control parameters of the ODEs (in this work, the control parameters are a, f, k1, and k2) leads to the system switch from one attractor to the other.
In the eight-neuron network with five gaits, there are a total of 20 types of gait transitions. It’s worth mentioning that the phase relation between a pair of knee and hip neurons is always maintained, even in situations of transition failure. Therefore, in the following discussion of transitions, our main focus will be on neurons 1–4 and not go into detail about neurons 5–8.
We applied four strategies to achieve all transitions, which are Switch, Power Pair, Wait & Switch, and Wait & Power Pair. These strategies are demonstrated below:
Increasing the driving signal can be considered as stimulating these neurons. In our strategy, the shape of the driving signal is defined by four parameters: gain ratio R P , duration period T P , and duty cycles of rising edge and falling edge, η R and η P , respectively. The method of constructing the stimulation is provided in Appendix C.
During the pronk-to-bound transition, stimulating neurons 1 and 3 as in the pronk-to-walk transition would cause signal instability (Figure 10(a)). At this condition, the amplitude of the neuron signals continues to fluctuate, and this state requires a long time (several seconds) to stabilize the walk gait. On the other hand, we found that if excitatory neurons 1 and 2 are selected, the gait transition can avoid such fluctuations. It can be observed from the waveform that, as neurons 1 and 2 are excited, their amplitudes increase and eventually enter the same phase, thus causing the rhythm to change to the bound gait, denoted (12)(34), which refers to the rhythm that neurons 1 and 2 in phase, 3 and 4 in phase, (12) and (34) out of phase. Therefore, we considered that when using the Power Pair strategy, the choice of stimulated neurons should be those in the same phase in the target gait (trot-(13)(24), pace-(12)(34)), and we maintained this approach in the strategies for {bound, pronk}-to-{trot, pace}.
Up to this point, we have found that the aforementioned strategies cannot be successful in a group transition: {all gaits}-to-{trot, pace} and bound-to-walk. These transitions can further be classified into Category #1: {walk, trot, pace}-to-{trot, pace}, Category #2: bound-to-walk, and Category #3: {bound, pronk}-to-{trot, pace}.
For Category #1, the difficulty arises from the conjugation of the trot and pace. It is observed that the gait after transitions has several failed situations. Taking the walk-to-trot transition as an example, we observed several types of failures after the switch, such as entering an unwanted target gait such as pace or entering an invalid rhythm, for instance, neurons 1, 2, 3 in phase, neuron 4 out of phase, which is denoted as (123)(4) (Figure 10(b)).
We have found that the system state after applying the Switch and the timing of strategy application are related, and these states exhibit periodicity. It is shown in Figure 10(e) that, as the transition time increases, the system continually switches between valid gaits and invalid rhythms. This pattern can be summarized as “trot → invalid rhythm → pace → invalid rhythm → trot → invalid rhythm → pace → invalid rhythm.” To overcome the potential gait transition failures caused by this conjugation and the invalid rhythms, we proposed the third strategy, Wait & Switch.
For the transitions in Category #2 and #3, using either the Switch or the Wait & Switch strategy does not induce a change in rhythmicity. Direct use of the Power Pair can also lead to unwanted gaits or incorrect rhythms, thus we propose the last gait transition strategy, Wait & Power Pair.
For Category #2: bound-to-walk, Collins and Richmond (1994) have previously reported that in the four-neuron network, using Power Pair to stimulate the ipsilateral neurons 3 and 4 for implementing bound-to-walk transitions carries a probability of failure. In our network, we have found that even though the selection are diagonal neurons 1 and 3, Power Pair still leads to several incorrect conditions.
A phenomenon that had not been observed in previous transitions is that the neurons would enter a chaotic state that lasts for an extended period, but eventually, it would return to a stable walking gait, which we refer to as an unstable transition process, which is shown in Figure 10(c). The signal after Power Pair can be categorized as: walk gait (stable and unstable) and bound gait and unstable transition process, and the pattern of the transition is shown in Figure 10(f).
Although the unstable signals display the rhythmicity of walk gait in the short term, the amplitude of the signal from each neuron is not stable, showing periodic variations. It is observed that, over a longer period, the disordered signals will gradually return to a stable walk gait. Considering this period may lead to the failure of the locomotion, we adopted the Wait & Power Pair to ensure the success of the transition.
For Category #3: {bound, pronk}-to-{trot, pace}, unstable transition process and invalid rhythms caused by conjunction are both observed. Taking bound-to-pace as an example, the unstable neuron signals are shown in Figure 10(d), and the patterns are shown in Figure 10(g). The patterns of pronk-to-trot are shown in Figure 10(h); it’s observed that the rhythms of the neuron signal after Power Pair are very complex. Many conditions may lead to the failure of the gait transition, which further proves the necessity of implementing gait transitions at appropriate moments by utilizing Wait & Power Pair.
The simulation results of the 20 gait transitions are demonstrated in Figure 9. The simulations are provided in video E2. The proposed four strategies ensure the success of transitions among all types of gaits and the continuity of neuronal signals.
4.3. Brief discussion
We can rank the five gaits according to the “strength” of their corresponding attractors and summarize the applicable situations for gait transition strategies (Figure 5). Low level gaits include walk, trot, and pace, high level gaits are bound and pronk. Based on this classification, we can summarize two regularities: The strength levels of each gait and the corresponding gait transition strategies.

Another regularity can be summarized from the conjunction property of the trot and pace, which is:
The only exception is the transition bound-to-walk. This transition also requires the use of the Wait & Power Pair strategy because unwanted bound gait and unstable transition process may occur. The following research will be focused on how to optimize the strategy parameters or the selection of stimulation to improve this phenomenon.
It is worth mentioning that, gait transitions can be achieved not only by changing neuron dynamic parameters from the MLR but also by altering the coupling parameters of the network. In this study, we do not employ the latter method because changing network coupling parameters is more suitable for the couplings with linearized form (Buono and Golubitsky, 2001; Rutishauser et al., 2008; Song et al., 2023). In the Stein model, we have integrated coupling into neuron dynamics, manifesting in a nonlinear form, as in equations (4) and (5). In this case, it becomes difficult to verify the eigenvalues of the coupling matrix, and using the coupling matrix to regulate bifurcation is also challenging.
In summary, we verified through numerical simulations that using the Stein neuronal model in an eight-neuron network can generate five types of gaits, and we verified the stability of the gaits by applying perturbations. For 20 types of gait transitions, we proposed four strategies of gait transition based on their types. We discussed in detail the design rationale, executing methods, and applicable conditions of these transition methods. All four gait transition methods involve changing parameters regulated by the MLR, thus ensuring that the signals generated by the neurons during all gait transitions are continuous.
5. Physical simulation
To demonstrate the feasibility of the eight-neuron network for gait control of a quadruped robot and to prove the stability of the network during gait transitions, we presented a series of physical simulations. We used PyBullet 3.2.6 (Coumans and Bai, 2024) as the simulator with Unitree Robot Go1 (Unitree, 2024a, 2024b) as the robot model. In the physical simulation, the hip-knee joint refers to the hip flexion-extension and knee flexion-extension DoF of the robot. The abduction/adduction DoF of the hip joint is locked.
5.1. Simulation framework
The simulation framework is shown in Figure 6(a). The parameters that control the gaits (Table 7) are considered as the MLR modules. After the gait parameters are set in MLR, the eight-neuron network generates the signals, and each neuron is assigned to a joint of the robot. The neuron signals are converted into joint position signals through the execution neural network. In this section, the direction control module is always set to move forward in open loop with the stride length command kept at 1 for both sides. In Section 6, the direction control module is replaced by a fuzzy controller. The stride length command can be adjusted to achieve different stride lengths between the left and right sides for direction adjustment. (a) Physical simulation framework. (b) The structure of the execution neural network. This network has been pre-trained with designed foot trajectories to convert neuron signals and their corresponding derivatives into joint position signals. (c) Trajectory designs and physical simulation results of five gaits with stride length command set to 1. (d) Taking the trot gait as an example, the stride length of the trajectory gradually increases as the command increases from 0.8 to 1.2.
Here, we provide a detailed description of the execution neural network and how it converts neuron signals into joint position signals. The execution neural network is a multilayer perceptron built with PyTorch. It consists of four layers: an 11-neuron input layer, two hidden layers with 24 neurons and 12 neurons, respectively, each using the ReLU function, and a single-neuron linear output layer. The 11-bit input vector consists of four parts (Figure 6(b)): (1) A three-bit code that indicates whether the joint corresponding to the neuron is a hip or knee joint, fore or hind limb, and on the left or right side of the robot. (2) A five-bit one-hot encoding representing the current gait (10000 for walk, 01000 for trot, and so on). (3) A one-bit stride length command representing the desired foot trajectory stride length. (4) A two-bit vector representing the current state of the neuron signal and its derivative. These two terms form a limit cycle (Figure 6(c)), which implies periodicity.
Since each neuron in the eight-neuron network is assigned to a corresponding joint, the execution network performs inference for each joint in each step of the simulation, conducting a total of eight inferences. The foot trajectories for each gait and stride length command are pre-designed. The joint signals for these trajectories are calculated through leg inverse kinematics and fed into the execution neural network for training (Figure 6(d)). Each gait is fed with five trajectories with different stride lengths, identified by stride length command ranges of [0.8, 1.2] (Figure 6(e)).
Physical simulation performance.
5.2. Physical simulation of gait transition
Success rate of 20 gait transitions in physical simulation.
We further investigated several representative processes of gait transitions in detail. The selected transition and the corresponding metrics such as speed, center of mass height, and posture are shown in Figure 7, and the animation of simulations is provided in video E4. The results imply that when a transition happens from a higher level gait to a lower level gait, the robot may experience excessive deceleration, but it eventually returns to a normal level. During the transitions, the height and posture will experience some disturbances, but they will eventually return to normal levels. The posture, speed, and center of mass height during the four gait transitions. Five trials are reported for each transition. All data is aligned according to the actual execution time of the transition. (a) walk-to-bound with Switch strategy. (b) pronk-to-walk with Power Pair strategy. (c) trot-to-pace with Wait & Switch strategy. (d) pronk-to-trot with Wait & Power Pair strategy.
6. Sensor integration
We proposed two frameworks that integrate sensory information. First, we focus on tasks involving visual information, directional control, and path tracking. Furthermore, we achieve gait transition by designing a reflex loop framework.
6.1. Path following using camera
In PyBullet, we installed a camera on the head of the robot and placed the robot on ground with an 8-shape path (video E5). By recognizing the path features through the camera, the robot can determine whether it is currently on the path. If the robot deviates from the path, a simple fuzzy controller adjusts the forward speed and direction by setting different stride length commands to the execution neural network (Figure 8(a)). For example, in the trot gait, if we want to drive the robot to turn left, we can set the stride length command to 0.8 for the left-side joints and to 1 for the right-side joints. The right legs will then perform a longer stride length than the left, resulting in a leftward turning motion. Under this framework, the robot can achieve path following task. Two CPG control frameworks with sensor integration. (a) The path information is obtained through a camera, and the stride lengths of the left and right legs are adjusted using a fuzzy controller to achieve the path following task. (b) Based on the measurement of joint torques, a four-layer reflex network is employed to achieve repeated gait transitions on flat and sloped ground.
6.2. Gait transition via reflex loop
The reflex loop has been demonstrated to integrate well with CPGs, enabling rapid responses to environmental stimuli through simple forms (Kimura et al., 2001, 2007; Liu et al., 2025; Owaki et al., 2013; Owaki and Ishiguro, 2017).We consider a scenario where the robot needs to perform uphill and downhill tasks, with the slope of the ground changing frequently. On flat ground, the robot uses a trot gait to increase its speed, while on slopes, it uses walk gait to enhance climbing stability. To achieve this, we designed a terrain-aware loop based on reflexes to regulate gait transitions (Figure 8(b)).The direction control in this framework is achieved using IMU; the method employs the same fuzzy controller as in the previous section. Here, we would like to emphasize that only the yaw axis information from the IMU is used. The terrain perception is entirely realized by the reflex loop, without utilizing the pitch axis information.
The reflex loop is designed as follows. We consider that there are torque sensors for all four hip joints, and the torque data can be obtained through current measurements in motors in real robot. First, the torque data from the four hip joints are sent to the corresponding sensor neurons in the R1 layer, which calculate the moving average torque data over 1 second. The data from the sensor neurons are then summed at the R2 layer with only one neuron, which is designed to measure the torque levels of all hip joints. Thus, it reflects the current ground slope. The signal neuron 13 R2 is further fed into two neurons in the R3 for activation. Neurons 14 and 15 are, respectively, used for torque detection during uphill and downhill movements. Neuron 16 is the sum of layer R3, and their representations are:
Here, the activation thresholds are set as θ up = 5 Nm and θ down = −0.5 Nm through simulation measurement. Therefore, the activation of neurons 14 and 15 indicates that the robot is moving uphill or downhill, respectively. The activation of neuron 16 indicates that the ground has a slope, while its inactivation suggests a flat ground. On the other hand, we assume that the stimulation of the gaits in the MLR is generated by corresponding neurons. Here, we assume that only two neurons are involved: walk and trot. The activation of these two neurons is regulated by neuron 16. When neuron 16 is active, the trot neuron is inhibited; otherwise, the walk neuron is inhibited. Under the control of this framework, the behavior of the robot is manifested as follows: When the robot moves on flat ground, the torque levels are low. Therefore, neuron 16 is inactive. In the MLR, the walk neuron is inhibited, causing the robot to perform the trot gait. When the robot moves on sloped ground, the torque level is high, causing neuron 16 to become active and inhibiting the trot neuron, and the gait naturally transitions to a walk. When the robot returns to flat ground again, the gait transitions back to trot. Video E6 shows that the robot can switch between two gaits smoothly, and the direction is also maintained. This proves that the CPG, reflex loop, and IMU information are well integrated within this framework.
7. Conclusion
In this work, we proposed an eight-neuron network as CPG for quadruped locomotion control. We utilize the H/K quotient theory to design the symmetries of the network, enabling it to generate five gaits and control eight degrees of freedom of the knee and hip joints in a quadruped robot. We conducted detailed research on the gait transition of the network, explaining various conditions and patterns during gait transitions. Based on the discovered patterns, we designed several strategies to ensure the successful transition among all gaits. We investigated the potential applications of this network and demonstrated, through physical simulations, that the CPG can achieve smooth gait transitions and an extremely high success rate, and can be well integrated with sensor information and reflex loop to implement feedback control.
CPGs are believed to widely exist in the neural systems of animals. In the field of robotics, various CPGs have been designed by drawing inspiration from the neural principles of biology for gait generation. In this work, we refer to observed phenomena and principles in biology and strive to design the architecture and strategies of neural networks from multiple perspectives, including biology, robotics, and computational neuroscience. For instance: • Based on the assumption of the knee joint following the hip joint, we designed the global and local symmetries of the neural network, as well as the foot trajectory modulation inspired by it. • Based on the rhythmicity of gaits during transitions, we designed the stimulation selection method. • Based on observed gaits in biology, we classified the conjugate characteristics and intensity levels of attractors corresponding to different gaits, and summarized the gait transition strategies employed.
We hope this research provides new tools for quadruped locomotion control and insights into biological CPG mechanisms. From the perspective of quadruped locomotion control, we use the top layer of the eight-neuron network for hip control and the bottom layer for knee control. However, there are other possibilities for the signal assignments of each neuron. For example, a pair of neurons could be used to control a pair of antagonistic muscles. Considering the symmetry of muscle movement, the network proposed in this paper can be further expanded, or larger networks can be constructed to fit the biological motion mechanism, by using the method of neuron groups described before (Figure 3(a)).
In conclusion, our proposed eight-neuron network serves as a new gait generator with multiple advantages, including high controllability, diverse gait types, stable signals, continuous signal transitions during gait transitions, and easy applicability. In this network, we reveal and overcome the potential challenges of the Stein neuronal model during gait transitions and provide complete strategies for smooth transitions between all gaits. This not only provides a new gait generator for quadruped robots but also offers an example of the design and modulation of novel CPGs based on symmetry. Meanwhile, the designed network may also assist in decoding nervous systems and understanding biological control mechanisms.
Future work will focus on the following three topics. • Expanding the structure of the network, such as controlling additional degrees of freedom in the hip, ankle, and waist joints (Appendix I). • Integrating with reinforcement learning for smooth walking tasks of humanoid robots. • Applying the eight-neuron network to the motion control of the BioARS system (Liu et al., 2020).
BioARS is a project of constructing a small quadruped robot assembled from robotic insects (Liu et al., 2022, 2024). The simplicity and adaptability of CPG hold significant potential for the motion control of robots with onboard microcontrollers. By leveraging the low computational power and distributed nature of the proposed eight-neuron network, we aim to achieve joint control for this insect-scale assembled quadruped robot.
Supplemental Material
Supplemental Material
Supplemental Material
Supplemental Material
Supplemental Material
Supplemental Material
Supplemental Material
Supplemental Material
Supplemental Material - An eight-neuron network for quadruped locomotion with hip-knee joint control
Supplemental Material for An eight-neuron network for quadruped locomotion with hip-knee joint control by Yide Liu; Xiyan Liu, Dongqi Wang, Wei Yang, and Shaoxing Qu in The International Journal of Robotics Research
Footnotes
Acknowledgments
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China (Nos. 12321002, 91748209, 52405026) and the Higher Education Discipline Innovation Project (B21034).
Declaration of conflicting interests
The authors declared the following potential conflicts of interest with respect to the research, authorship, and/or publication of this article: Part of the physical simulation framework described in this paper has been granted a patent in China (Patent Number: ZL202410320353.3). The authors declare no other potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Supplemental Material
Supplemental material for this article is available online
Appendix
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
