<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Gait Adaptation | Sina Mehdizadeh, PhD</title><link>https://sinamehdiz.com/tag/gait-adaptation/</link><atom:link href="https://sinamehdiz.com/tag/gait-adaptation/index.xml" rel="self" type="application/rss+xml"/><description>Gait Adaptation</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Sat, 01 Mar 2025 00:00:00 +0000</lastBuildDate><image><url>https://sinamehdiz.com/images/icon_hu0b7a4cb9992c9ac0e91bd28ffd38dd00_9727_512x512_fill_lanczos_center_3.png</url><title>Gait Adaptation</title><link>https://sinamehdiz.com/tag/gait-adaptation/</link></image><item><title>Deep Reinforcement Learning To Improve Gait Adaptation</title><link>https://sinamehdiz.com/project/locomotion-deep-rl/</link><pubDate>Sat, 01 Mar 2025 00:00:00 +0000</pubDate><guid>https://sinamehdiz.com/project/locomotion-deep-rl/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>People learn new optimal gaits when adapting to new conditions. In these adaptations, they rapidly transition between a wide range of speeds or step lengths without falling. In this study, we aimed to determine whether reinforcement learning (RL) can enhance the performance of a pre-trained neural network control policy in adapting a walking model to a wide range of gaits.&lt;/p>
&lt;h2 id="we-used-a-physics-based-model-of-walking">We used a physics-based model of walking&lt;/h2>
&lt;p>This model can walk with different step lengths and speeds [1,2]. It is actuated by a push off (P) and a two hip springs (k1 and k2), each active in one half of the swing. We discretized the space of possible step lengths and frequencies into a grid of step lengths and frequencies. We used optimization (Matlab’s fmincon) to find limit-cycle gaits at each grid point&lt;/p>
&lt;p>&lt;img src="./biped_model.png" alt="This model can walk with different step lengths and speeds [1,2]">&lt;/p>
&lt;h2 id="results">Results&lt;/h2>
&lt;h3 id="a-wide-range-of-gaits-exist">A wide range of gaits exist&lt;/h3>
&lt;p>The walker can have a limit-cycle walks in a wide range of step lengths and speeds that goes beyond human walking.&lt;/p>
&lt;p>&lt;img src="./state_space.png" alt="A wide range of gaits exist">&lt;/p>
&lt;h3 id="adaptation-is-possible-with-feedback-control">Adaptation is possible with feedback control&lt;/h3>
&lt;p>But some of the walks are passively unstable and and therefore unable to adapt to target gaits without active control. Thus active feedback control of the walker is needed. We used pole placement to determine controller gains. The feedback controller increased basin of attraction for all gaits&lt;/p>
&lt;p>&lt;img src="./state_space_stability.png" alt="The feedback controller increased basin of attraction for all gaits">&lt;/p>
&lt;p>The general control policy can track sine paths in different regions of the gait space demonstrating successful adaptation&lt;/p>
&lt;p>&lt;img src="./traj_preRL.png" alt="The general control policy can track sine paths in different regions of the gait space demonstrating successful adaptation">&lt;/p>
&lt;h3 id="reinforcement-learning-improved-adaptation">Reinforcement learning improved adaptation&lt;/h3>
&lt;p>We used RL to further enhance the performance of the pre-trained neural network controller. We used deep deterministic policy gradient [3] with the actor being the pre-trained neural network and the critic being an untrained neural network with two hidden layers of size 256. We added noise to the actions for local exploration. The average reward improved by 4.88±3.01% for all paths.&lt;/p>
&lt;p>&lt;img src="./rl_training_plot.png" alt="The average reward improved by 4.88±3.01% for all paths.">&lt;/p>
&lt;p>RL improved the pre-trained policy by tracking the target paths more closely. The RL training improved adaptation rate by reducing the minimum number of steps required to complete the paths. The RL training in one task generalized to another&lt;/p>
&lt;p>&lt;img src="./traj_RL.png" alt="RL improved the pre-trained policy by tracking the target paths more closely">&lt;/p>
&lt;h3 id="a-neural-network-control-policy-for-adaptation">A neural network control policy for adaptation&lt;/h3>
&lt;p>We used the algorithmic general control policy to train a compact neural network controller. We trained the neural network on a sample of 500,000 input/output pairs to serve as the baseline. The neural network control policy archives identical performance in adaptation compared to the algorithmic control policy&lt;/p>
&lt;p>&lt;img src="./nn.png" alt="A neural network control policy for adaptation">&lt;/p>
&lt;p>&lt;img src="./traj_nn.png" alt="the neural network control policy archives identical performance in adaptation compared to the algorithmic control policy">&lt;/p>
&lt;h2 id="discussion-and-conclusions">Discussion and Conclusions&lt;/h2>
&lt;p>Achieving better performance in regions with long step length and slow step frequency (top left). Adaptation in gaits with long step length and slow step frequency remains a challenge&lt;/p>
&lt;h2 id="future-directions">Future Directions&lt;/h2>
&lt;ul>
&lt;li>Using RL in a hierarchical design to explore energy-optimal walking&lt;/li>
&lt;li>Understanding principles of energy optimal adaptations&lt;/li>
&lt;li>Accelerate energy-optimal gait adaptation&lt;/li>
&lt;/ul>
&lt;h2 id="references-and-funders">References and Funders&lt;/h2>
&lt;ol>
&lt;li>Garcia et al. J Biomech Eng 120, 281-88, 1998&lt;/li>
&lt;li>Kuo. J Biomech Eng 123, 264-69, 2001&lt;/li>
&lt;li>Lillicrap et al. ICLR, Puerto Rico, 2016&lt;/li>
&lt;/ol></description></item></channel></rss>