<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Xinyi Liu's Personal Website</title><link>https://liuxy10.github.io/xinyiliu.me/</link><atom:link href="https://liuxy10.github.io/xinyiliu.me/index.xml" rel="self" type="application/rss+xml"/><description>Xinyi Liu's Personal Website</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 01 Jul 2024 00:00:00 +0000</lastBuildDate><image><url>https://liuxy10.github.io/xinyiliu.me/media/icon_hu7729264130191091259.png</url><title>Xinyi Liu's Personal Website</title><link>https://liuxy10.github.io/xinyiliu.me/</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>Marbles Museum Outreach</title><link>https://liuxy10.github.io/xinyiliu.me/teaching/marble-museum-outreach/</link><pubDate>Sat, 11 Apr 2026 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/teaching/marble-museum-outreach/</guid><description>&lt;p>At the Marbles Backwards Science Fair, we ran a Powered Prosthetics table and showed visitors how wearable robots can improve quality of life. We brought a powered prosthetic leg and a prosthetic hand to try, along with a poster of wearable robots in daily life.&lt;/p>
&lt;p>Read more in the &lt;a href="https://lnkd.in/p/eRGH5vnz" target="_blank" rel="noopener">LinkedIn post&lt;/a>.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Our Powered Prosthetics table at the Marbles Backwards Science Fair" srcset="
/xinyiliu.me/teaching/marble-museum-outreach/featured_hu16397984162442078996.webp 400w,
/xinyiliu.me/teaching/marble-museum-outreach/featured_hu6739449836907344638.webp 760w,
/xinyiliu.me/teaching/marble-museum-outreach/featured_hu5871001436801491908.webp 1200w"
src="https://liuxy10.github.io/xinyiliu.me/xinyiliu.me/teaching/marble-museum-outreach/featured_hu16397984162442078996.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>Our Powered Prosthetics table at the Marbles Backwards Science Fair&lt;/em>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="The Marbles Kids Museum atrium with the Backwards Science Fair sign" srcset="
/xinyiliu.me/teaching/marble-museum-outreach/museum_hu6432117988685255009.webp 400w,
/xinyiliu.me/teaching/marble-museum-outreach/museum_hu10351813002196161602.webp 760w,
/xinyiliu.me/teaching/marble-museum-outreach/museum_hu6098829232612216396.webp 1200w"
src="https://liuxy10.github.io/xinyiliu.me/xinyiliu.me/teaching/marble-museum-outreach/museum_hu6432117988685255009.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>The Backwards Science Fair at Marbles Kids Museum&lt;/em>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Our passionate young scientist look at a prosthetic hand demo while our teammate John explains it" srcset="
/xinyiliu.me/teaching/marble-museum-outreach/hand-demo_hu5393767994692151311.webp 400w,
/xinyiliu.me/teaching/marble-museum-outreach/hand-demo_hu17181870928521399819.webp 760w,
/xinyiliu.me/teaching/marble-museum-outreach/hand-demo_hu6044543410154102614.webp 1200w"
src="https://liuxy10.github.io/xinyiliu.me/xinyiliu.me/teaching/marble-museum-outreach/hand-demo_hu5393767994692151311.webp"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>Trying out the prosthetic hand demo&lt;/em>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Our scientist Varun wearing a hip exoskeleton shows our poster to two children" srcset="
/xinyiliu.me/teaching/marble-museum-outreach/exo-demo_hu13708064746627731867.webp 400w,
/xinyiliu.me/teaching/marble-museum-outreach/exo-demo_hu1725600213791666848.webp 760w,
/xinyiliu.me/teaching/marble-museum-outreach/exo-demo_hu2520816203925004260.webp 1200w"
src="https://liuxy10.github.io/xinyiliu.me/xinyiliu.me/teaching/marble-museum-outreach/exo-demo_hu13708064746627731867.webp"
width="760"
height="570"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>Showing visitors a wearable robot and our poster&lt;/em>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="A selfie of the team and visitors at our table" srcset="
/xinyiliu.me/teaching/marble-museum-outreach/table-selfie_hu628610042096204581.webp 400w,
/xinyiliu.me/teaching/marble-museum-outreach/table-selfie_hu9227455977769087100.webp 760w,
/xinyiliu.me/teaching/marble-museum-outreach/table-selfie_hu6347872232356964626.webp 1200w"
src="https://liuxy10.github.io/xinyiliu.me/xinyiliu.me/teaching/marble-museum-outreach/table-selfie_hu628610042096204581.webp"
width="760"
height="570"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>The team at our table&lt;/em>&lt;/p></description></item><item><title>Hobbies</title><link>https://liuxy10.github.io/xinyiliu.me/hobbies/</link><pubDate>Tue, 31 Mar 2026 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/hobbies/</guid><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><item><title>Guided Online Distillation: Promoting Safe Reinforcement Learning by Offline Demonstration</title><link>https://liuxy10.github.io/xinyiliu.me/publication/gold_rl/</link><pubDate>Mon, 15 Jan 2024 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/publication/gold_rl/</guid><description>&lt;h2 id="mathematical-formulation">Mathematical Formulation&lt;/h2>
&lt;h3 id="policy-distillation-objective">Policy Distillation Objective&lt;/h3>
&lt;p>The core optimization problem is formulated as:&lt;/p>
$$ \min_{\pi_{\theta}} \mathbb{E}_{s \sim d_{\text{expert}}} \left[ L_{\text{distill}}(\pi_{\theta}(s), \pi_{\text{expert}}(s)) + \lambda L_{\text{safety}}(\pi_{\theta}) \right] $$&lt;p>Where:&lt;/p>
&lt;ul>
&lt;li>$\pi_{\theta}$: Online policy network&lt;/li>
&lt;li>$\pi_{\text{expert}}$: Offline expert policy&lt;/li>
&lt;li>$L_{\text{distill}}$: Policy distillation loss&lt;/li>
&lt;li>$L_{\text{safety}}$: Safety constraint loss&lt;/li>
&lt;li>$\lambda$: Regularization coefficient&lt;/li>
&lt;/ul>
&lt;h3 id="safe-exploration-constraint">Safe Exploration Constraint&lt;/h3>
&lt;p>The safety constraint is defined as:&lt;/p>
$$ P(\text{safe trajectory}) \geq 1 - \epsilon $$&lt;h2 id="technical-approach">Technical Approach&lt;/h2>
&lt;h3 id="key-components">Key Components&lt;/h3>
&lt;ul>
&lt;li>Two-stage policy extraction&lt;/li>
&lt;li>Offline expert policy distillation&lt;/li>
&lt;li>Online fine-tuning with safety constraints&lt;/li>
&lt;/ul>
&lt;h3 id="performance-metrics">Performance Metrics&lt;/h3>
&lt;ul>
&lt;li>Reduced collision rate from 30% to &amp;lt;3%&lt;/li>
&lt;li>15% improvement in driving task success rates&lt;/li>
&lt;/ul>
&lt;h2 id="research-significance">Research Significance&lt;/h2>
&lt;p>Addresses critical reinforcement learning challenges:&lt;/p>
&lt;ul>
&lt;li>Mitigates conservative exploration&lt;/li>
&lt;li>Enables lightweight policy networks&lt;/li>
&lt;li>Improves safety in autonomous systems&lt;/li>
&lt;/ul>
&lt;h2 id="implementation-highlights">Implementation Highlights&lt;/h2>
&lt;ul>
&lt;li>Developed versatile driving simulation platform&lt;/li>
&lt;li>Implemented online distillation procedure&lt;/li>
&lt;li>Extracted lightweight policies from transformer models&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Developed at UC Berkeley&amp;rsquo;s MSC Lab under Prof. Masayoshi Tomizuka&lt;/span>
&lt;/div></description></item><item><title>Experience</title><link>https://liuxy10.github.io/xinyiliu.me/experience/</link><pubDate>Tue, 24 Oct 2023 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/experience/</guid><description/></item><item><title>hope</title><link>https://liuxy10.github.io/xinyiliu.me/art/hope/</link><pubDate>Wed, 16 Nov 2022 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/art/hope/</guid><description>&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="hope" srcset="
/xinyiliu.me/art/hope/hope_hu3175524443160954026.webp 400w,
/xinyiliu.me/art/hope/hope_hu9765746322214004687.webp 760w,
/xinyiliu.me/art/hope/hope_hu6923808730012484939.webp 1200w"
src="https://liuxy10.github.io/xinyiliu.me/xinyiliu.me/art/hope/hope_hu3175524443160954026.webp"
width="607"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p></description></item><item><title>Predicting Sagittal-Plane Swing Hip Kinematics in Response to Trips</title><link>https://liuxy10.github.io/xinyiliu.me/publication/trip-predition/</link><pubDate>Fri, 17 Jun 2022 00:00:00 +0000</pubDate><guid>https://liuxy10.github.io/xinyiliu.me/publication/trip-predition/</guid><description>&lt;h2 id="key-contributions">Key Contributions&lt;/h2>
&lt;ul>
&lt;li>Developed three distinct predictive models for swing hip trip-recovery behavior&lt;/li>
&lt;li>Demonstrated empirical superiority of proposed planning approach&lt;/li>
&lt;li>Received Best Paper Award at BioRob for IEEE Robotics and Automation Letters&lt;/li>
&lt;/ul></description></item></channel></rss>