<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reinforcement Learning | Xinyi Liu's Personal Website</title><link>https://liuxy10.github.io/xinyiliu.me/tags/reinforcement-learning/</link><atom:link href="https://liuxy10.github.io/xinyiliu.me/tags/reinforcement-learning/index.xml" rel="self" type="application/rss+xml"/><description>Reinforcement Learning</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 10 Oct 2026 00:00:00 +0000</lastBuildDate><image><url>https://liuxy10.github.io/xinyiliu.me/media/icon_hu7729264130191091259.png</url><title>Reinforcement Learning</title><link>https://liuxy10.github.io/xinyiliu.me/tags/reinforcement-learning/</link></image><item><title>Matching the Motion Isn't Matching the Physics: Gait Kinetics from Imitation Learning</title><link>https://liuxy10.github.io/xinyiliu.me/post/kail-gait-kinetics/</link><pubDate>Sat, 10 Oct 2026 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/post/kail-gait-kinetics/</guid><description>&lt;p>&lt;strong>TL;DR.&lt;/strong> If you train a policy to imitate human walking from motion data alone, the simulated skeleton can look right while the forces behind it are not. Our preprint, &lt;a href="https://arxiv.org/abs/2603.12408" target="_blank" rel="noopener">&lt;em>Imitation Learning from Human Motion Alone Does Not Guarantee Biomechanically Plausible Gait Kinetics&lt;/em>&lt;/a>, is on arXiv now and has been &lt;strong>submitted to IEEE Robotics and Automation Letters (RA-L)&lt;/strong>.&lt;/p>
&lt;h2 id="why-this-matters">Why this matters&lt;/h2>
&lt;p>Motion imitation learning (IL) is now common in robotics and in human gait modeling. It is also starting to be used for biomechanics questions, such as estimating joint moments for wearable-robot design. That use assumes that a policy which reproduces the motion also reproduces the kinetics. We wanted to test that assumption directly.&lt;/p>
&lt;h2 id="what-we-compared">What we compared&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>MOIL (motion-only IL):&lt;/strong> the reward only asks the simulated human to match the reference kinematics.&lt;/li>
&lt;li>&lt;strong>KAIL (kinetics-aware IL):&lt;/strong> the same reward, plus terms for &lt;strong>ground reaction force (GRF)&lt;/strong> and &lt;strong>center of pressure (CoP)&lt;/strong>.&lt;/li>
&lt;li>&lt;strong>Ablation:&lt;/strong> the GRF term and the CoP term added separately, to see what each contributes.&lt;/li>
&lt;/ul>
&lt;p>Both are trained with RL in a MuJoCo musculoskeletal model. The data come from a non-disabled participant walking at &lt;strong>0.9, 1.2 and 1.5 m/s&lt;/strong>, and the simulated GRF, CoP and joint moments are compared against inverse-dynamics references.&lt;/p>
&lt;p>The kinetics terms are simple exponential tracking rewards:&lt;/p>
$$ R_{\mathrm{grf}} = \exp\left( -k_{\mathrm{grf}} \|\Delta f_{\mathrm{grf}}\|^2 \right), \qquad R_{\mathrm{cop}} = \exp\left( -k_{\mathrm{cop}} \|\Delta x_{\mathrm{cop}}\|^2 \right) $$&lt;h2 id="what-the-videos-show">What the videos show&lt;/h2>
&lt;p>In the videos below, &lt;strong>gray is the reference&lt;/strong>, &lt;strong>black is MOIL&lt;/strong>, and &lt;strong>blue is KAIL&lt;/strong>. The traces are drawn progressively over time. Each walking speed has its own pair of videos.&lt;/p>
&lt;h3 id="ground-reaction-force-and-center-of-pressure">Ground reaction force and center of pressure&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Vertical GRF:&lt;/strong> MOIL unloads and reloads the foot at the wrong times. KAIL follows the timing of the reference.&lt;/li>
&lt;li>&lt;strong>AP GRF:&lt;/strong> MOIL&amp;rsquo;s braking and push-off peaks are out of phase with the reference. KAIL is closer in phase, though it is still noisy.&lt;/li>
&lt;li>&lt;strong>CoP:&lt;/strong> the reference moves smoothly from heel to toe during stance. MOIL jumps almost immediately to the front of the foot. KAIL also starts ahead of the reference, but then moves forward along the foot rather than jumping.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>1.2 m/s&lt;/strong>&lt;/p>
&lt;video controls muted loop playsinline width="100%">
&lt;source src="grf_cop_12.mp4" type="video/mp4">
&lt;a href="grf_cop_12.mp4">Download the GRF/CoP video (1.2 m/s)&lt;/a>
&lt;/video>
&lt;p>&lt;strong>1.5 m/s&lt;/strong>&lt;/p>
&lt;video controls muted loop playsinline width="100%">
&lt;source src="grf_cop_15.mp4" type="video/mp4">
&lt;a href="grf_cop_15.mp4">Download the GRF/CoP video (1.5 m/s)&lt;/a>
&lt;/video>
&lt;p>At 1.5 m/s the gap is visible in the vertical GRF and the CoP. MOIL unloads early and its CoP jumps to the toe, while KAIL tracks the reference more closely.&lt;/p>
&lt;h3 id="joint-moments">Joint moments&lt;/h3>
&lt;ul>
&lt;li>MOIL produces large hip and knee moment spikes that the inverse-dynamics reference does not have.&lt;/li>
&lt;li>KAIL tracks the ankle push-off peak closely. Its hip and knee moments are closer to the reference but not perfect.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>0.9 m/s&lt;/strong>&lt;/p>
&lt;video controls muted loop playsinline width="100%">
&lt;source src="moment_09.mp4" type="video/mp4">
&lt;a href="moment_09.mp4">Download the joint-moment video (0.9 m/s)&lt;/a>
&lt;/video>
&lt;p>At 0.9 m/s MOIL&amp;rsquo;s hip and knee moments swing to about -2 N·m/kg, where the reference stays near zero. The hip in KAIL still oscillates.&lt;/p>
&lt;p>&lt;strong>1.2 m/s&lt;/strong>&lt;/p>
&lt;video controls muted loop playsinline width="100%">
&lt;source src="moment_12.mp4" type="video/mp4">
&lt;a href="moment_12.mp4">Download the joint-moment video (1.2 m/s)&lt;/a>
&lt;/video>
&lt;p>&lt;strong>1.5 m/s&lt;/strong>&lt;/p>
&lt;video controls muted loop playsinline width="100%">
&lt;source src="moment_15.mp4" type="video/mp4">
&lt;a href="moment_15.mp4">Download the joint-moment video (1.5 m/s)&lt;/a>
&lt;/video>
&lt;p>At 1.5 m/s MOIL&amp;rsquo;s hip, knee and ankle moments all show sharp spikes near the end of stance. KAIL stays much closer to the reference.&lt;/p>
&lt;h2 id="what-we-found">What we found&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Kinematic tracking was comparable&lt;/strong> for MOIL and KAIL, so joint angles alone would not have told them apart.&lt;/li>
&lt;li>&lt;strong>MOIL had substantially larger errors&lt;/strong> in GRF, CoP and joint moments relative to the inverse-dynamics references.&lt;/li>
&lt;li>&lt;strong>KAIL produced kinetics more consistent with biomechanical values.&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>The point is not that motion imitation is useless. It is that matching the motion does not guarantee human-like kinetics. If a motion-only policy is used to interpret gait biomechanics, or to inform wearable-robot design, the result can be wrong even though the animation looks right.&lt;/p>
&lt;h2 id="limitations">Limitations&lt;/h2>
&lt;p>This is one non-disabled participant at three walking speeds, so the results should be read as evidence for the limitation of MOIL, not as a general model of gait. The preprint has the full details and statistics.&lt;/p>
&lt;h2 id="links">Links&lt;/h2>
&lt;ul>
&lt;li>Preprint: &lt;a href="https://arxiv.org/abs/2603.12408" target="_blank" rel="noopener">arXiv:2603.12408&lt;/a> (cs.RO), submitted to IEEE RA-L&lt;/li>
&lt;li>&lt;a href="https://arxiv.org/pdf/2603.12408.pdf" target="_blank" rel="noopener">PDF&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.youtube.com/watch?v=hMmCPn6QCsE" target="_blank" rel="noopener">Project video&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>Co-authors: Jangwhan Ahn, Edgar Lobaton, Jennie Si and Helen (He) Huang.&lt;/p></description></item><item><title>Imitation Learning from Human Motion Alone Does Not Guarantee Biomechanically Plausible Gait Kinetics</title><link>https://liuxy10.github.io/xinyiliu.me/publication/il_grf/</link><pubDate>Thu, 12 Mar 2026 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/publication/il_grf/</guid><description>&lt;h2 id="mathematical-formulation">Mathematical Formulation&lt;/h2>
&lt;h3 id="imitation-learning-objective">Imitation Learning Objective&lt;/h3>
&lt;p>The policy maximizes expected cumulative reward:&lt;/p>
$$ J(\theta) = \mathbb{E}_{\pi_\theta} \left[ \sum_{t=0}^T \gamma^t r(s_t, a_t, q^{\exp}_t, f^{\exp}_{\mathrm{grf},t}, x^{\exp}_{\mathrm{cop},t}) \right] $$&lt;p>Where $ r(\cdot) $ includes kinematics $ R_k $ and dynamics $ R_{\mathrm{dyn}} $ terms.&lt;/p>
&lt;h3 id="reward-components">Reward Components&lt;/h3>
&lt;p>Kinematics reward:&lt;/p>
$$ R_k = w_p R_p + w_{ee} R_{ee} + w_{rp} R_{rp} + w_{rv} R_{rv} + w_{vf} R_{vf} $$&lt;p>Dynamics reward:&lt;/p>
$$ R_{\mathrm{dyn}} = w_{\mathrm{grf}} R_{\mathrm{grf}} + w_{\mathrm{cop}} R_{\mathrm{cop}} $$&lt;p>With GRF term $ R_{\mathrm{grf}} = \exp\left( -k_{\mathrm{grf}} \|\Delta f_{\mathrm{grf}}\|^2 \right) $ and CoP term $ R_{\mathrm{cop}} = \exp\left( -k_{\mathrm{cop}} \|\Delta x_{\mathrm{cop}}\|^2 \right) $.&lt;/p>
&lt;h2 id="technical-approach">Technical Approach&lt;/h2>
&lt;h3 id="key-components">Key Components&lt;/h3>
&lt;ul>
&lt;li>RL-based IL with PPO and residual force control in MuJoCo.&lt;/li>
&lt;li>Ablation on kinetics rewards: baseline (kinematics-only, MOIL), +GRF, +CoP, full KAIL.&lt;/li>
&lt;li>Forward dynamics simulation of musculoskeletal model matching Visual3D inverse dynamics.&lt;/li>
&lt;/ul>
&lt;h3 id="performance-metrics">Performance Metrics&lt;/h3>
&lt;ul>
&lt;li>Joint angle RMSE &amp;lt;7° across conditions.&lt;/li>
&lt;li>GRF correlation improves significantly with kinetics rewards (p&amp;lt;0.001).&lt;/li>
&lt;li>Joint moment RMSE reduced, correlations increased (p&amp;lt;0.0001) in KAIL vs. MOIL.
The figure shows simulated human gait skeletons adapting walking speeds via imitation learning, illustrating kinematic fidelity in MuJoCo environments similar to the study&amp;rsquo;s setup.&lt;/li>
&lt;/ul>
&lt;h2 id="research-significance">Research Significance&lt;/h2>
&lt;p>Motion imitation alone prioritizes kinematic matching but yields implausible GRFs and joint moments due to unphysiological foot-ground interactions. KAIL with GRF/CoP rewards ensures biomechanical plausibility, critical for biomechanics analysis, clinical diagnostics, and wearable robot design.&lt;/p>
&lt;h2 id="implementation-highlights">Implementation Highlights&lt;/h2>
&lt;ul>
&lt;li>Data from motion capture and force-plate treadmill on healthy subject walking at 1.2 m/s.&lt;/li>
&lt;li>MuJoCo model with floating-base, impedance control, trained 900 PPO iterations.&lt;/li>
&lt;li>Evaluation via GRF butterfly diagrams, CPCC, joint moment RMSE/correlations vs. inverse dynamics.&lt;/li>
&lt;/ul></description></item></channel></rss>