arXiv Science⌕ Search

arXiv · 2610.38149

Physics-Guided Inferencer-in-the-Loop Digital-Twin for Real-Time Adaptive Emulation of Nonlinear PMSMs

Abstract

A real-time digital-twin (RTDT) of a permanent magnet synchronous machine (PMSM) allows drive controllers to be tested in hardware-in-the-loop (HIL) before they meet the real machine. Its machine model rests on identified parameters or flux look-up tables (LUTs) from finite-element analysis (FEA) or characterization tests; the maps are regenerated offline when the machine changes, and online estimators track a few parameters such as resistance and PM flux. This article makes the executed model learnable from reference data. A physics-guided machine learning (PGML) network advances the currents and predicts torque in one step, trained with analytical one-step labels. In the proposed Inferencer-in-the-Loop (IIL) architecture, a GPU retrains the network while a field-programmable gate array (FPGA) executes the last accepted weights. For damper circuits, shifted parameters, and an FEA-calibrated saturated machine, one kernel form reaches average normalized mean absolute errors (NMAEs) of 0.19%-0.67% at measured FPGA kernel latencies of 0.30-0.34 $μ$s, and retraining for a shifted machine nears its final loss within 94 s. On a magnetically linear 200-W drive, a residual form corrects the analytical step and learns its physical parameters from operating data; each step takes under 2.5 $μ$s, 20 times faster than real time and ahead of the physical drive's measurements even at 20-kHz sampling. On six held-out runs (1193 s), its $i_q$ error is 5.9%-9.4% of measured RMS, against 10.4%-13.2% for an independently fitted grey-box model, and over 30 min of loaded heating its online-updated heads track a 4.1% winding-resistance rise with an RMS error of 0.44 m$Ω$.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Songyang Zhang, Yuzhong Zhang, Venkata Dinavahi. 2026-10-28. Physics-Guided Inferencer-in-the-Loop Digital-Twin for Real-Time Adaptive Emulation of Nonlinear PMSMs. https://arxiv.org/abs/2610.38149

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

A Lyapunov-Based Small-Gain Theorem for Fixed-Time ISS: Theory, Optimization, and Games

We develop a Lyapunov-based small-gain theorem for establishing fixed-time input-to-state stability (FxT-ISS) guarantees in interconnected nonlinear dynamical systems. The proposed framework considers interconnections in which each subsystem admits a FxT-ISS Lyapunov function, providing robustness with respect to external inputs. We show that, under an appropriate nonlinear small-gain condition, the overall interconnected system inherits the FxT-ISS property. In this sense, the proposed result complements existing Lyapunov-based smallgain theorems for asymptotic and finite-time stability, and enables a systematic analysis of interconnection structures exhibiting fixed-time stability. To illustrate the applicability of the theory, we study feedback-based optimization problems with time-varying cost functions, and Nash-equilibrium seeking for noncooperative games with nonlinear dynamical plants in the loop. For both problems, we present a class of non-smooth gradient or pseudogradient-based controllers that achieve fixed-time convergence without requiring time-scale separation and using real-time feedback. Numerical examples are provided to validate the theoretical findings.

eess.SY↗

Passive Identification of Unequal Phase Grid Impedances by Phase-Domain Source Cancellation

Passive grid impedance estimators that return a single resistance--inductance pair cannot represent a grid whose phase impedances are unequal. This paper identifies a separate pair for each phase from recorded point-of-common-coupling (PCC) voltage and current without injected perturbations. In each phase, the unknown grid-source voltage is cancelled by a periodic difference (PD) or by a second-order-generalized-integrator notch difference (SOGID), and moving-window integration (MWI) replaces the current derivative by an integral and an endpoint feature. The resulting two-parameter regression requires a period or notch-frequency estimate but no phase-locked-loop angle. A voltage-balance analysis gives the source residual left by frequency mismatch and bounds the parameter error by the ratio of this residual to the conditioning of the two features. In the unequal-phase interval (8.3--9.8~s) of a 10-s EMTP grid-forming record, SOGID-MWI attains phase-averaged R/L errors of 5.09/0.33\%; a shared value has a minimum error of 41.67\% for the phase ratio 1:0.5:2. On a 50-s constant-impedance grid-following record, the errors are 0.56/0.06\% over the 20--30-s synchronization disturbance. In a controlled 40-dB noise study, a noise-referenced update rule reduces the white-noise GFL error from 55.9/65.0\% to 12.3/11.5\%.

eess.SY↗

Machine learning-guided real-time AC optimal transmission switching

The operation of power grids has substantial economic consequences, affecting generation costs and, ultimately, electricity prices. The Optimal Transmission Switching (OTS) problem seeks to reduce these costs by selectively switching off transmission lines. However, OTS gives rise to a challenging mixed-integer nonlinear optimization problem that is difficult to solve at operationally relevant timescales, particularly as rapidly changing loads create a need for real-time switching decisions. To address this challenge, we develop a machine learning-guided method that identifies high quality line switching decisions in real time. Specifically, we construct a grid-specific switching-value model that rapidly estimates the generation-cost reduction associated with opening transmission lines by fine-tuning a pretrained model for AC optimal power flow (AC-OPF). The switching-value model provides signals to guide promising switching decisions, and topologies proposed by the model are evaluated using exact AC-OPF solvers to verify feasibility and obtain the actual generation cost. We develop multiple strategies that use the ML surrogate to efficiently explore the combinatorial space of transmission topologies, including Fixed-Rank Search, Adaptive-Rank Search, and Swap-Enhanced Search. Across multiple benchmark networks, our proposed algorithms identify line switching decisions that significantly reduce generation cost within a 50s computational budget. In particular, under a realistic data center buildout scenario on the 2,000-bus synthetic Texas grid, our approach reduces generation costs by 31.97% and gross nodal load payments by 94.34%. More broadly, our results demonstrate that a fine-tuned surrogate can effectively guide search even without guaranteeing feasibility, enabling classical optimization methods to tackle large nonlinear combinatorial problems on operationally relevant timescales.

eess.SY↗