원시데이터 수집 시스템
선정목록으로

An Online Torque Prediction Method of PMSM Using PINNs

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Yiyang Chen — Department of Precision Instruments, Tsinghua University, Beijing, China
  2. Yang Xiao — China North Artificial Intelligence and Innovation Research Institute, Beijing, China|||China North Artificial Intelligence & Innovation Research Institute, Beijing, China
  3. Chao Ji — China North Artificial Intelligence and Innovation Research Institute, Beijing, China|||China North Artificial Intelligence & Innovation Research Institute, Beijing, China
  4. Bo Su — China North Artificial Intelligence and Innovation Research Institute, Beijing, China|||China North Artificial Intelligence & Innovation Research Institute, Beijing, China
DOI
10.1109/access.2025.3568589
저널
IEEE Access
발행년도
2025
발행기관
Institute of Electrical and Electronics Engineers
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2025.3568589
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4410226684

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Torque prediction is crucial for the control and safe operation of electric motors. Compared to offline methods, online identification methods can adapt to dynamic changes and individual variations in motor characteristics in real time, but they face challenges such as rank deficiency and the failure of physical equations. Data-driven methods, which do not rely on specific mathematical models, are better suited to address these issues. However, the lack of torque feedback during actual motor operation can render supervised learning ineffective. This paper proposes a method that combines offline learning and online updates using Physics-Informed Neural Networks (PINNs). The method enables online learning of motor parameters through real-time data and constructs a torque output model to support more efficient and safe online systems. Compared to least-squares methods based on physical formulas, the PINN approach demonstrates greater accuracy and dynamic adaptability in real-time testing. Experimental results in a data set from a physical test bench with a torque output range of &#x00B1;260 N<inline-formula> <tex-math notation="LaTeX">$\cdot $ </tex-math></inline-formula>m demonstrate that the proposed PINN method achieves an MAE of 0.7745 N<inline-formula> <tex-math notation="LaTeX">$\cdot $ </tex-math></inline-formula>m and an RMSE of 1.6393 N<inline-formula> <tex-math notation="LaTeX">$\cdot $ </tex-math></inline-formula>m. The method also converges in seconds in new environments, highlighting its robustness and practical applicability.

본문 61,781자

본문 펼치기
Received 8 April 2025, accepted 2 May 2025, date of publication 9 May 2025, date of current version 24 November 2025. _Digital Object Identifier 10.1109/ACCESS.2025.3568589_ # An Online Torque Prediction Method of PMSM Using PINNs YIYANG CHEN 1,2,3, YANG XIAO2,4, CHAO JI2,5, AND BO SU 2 1Department of Precision Instruments, Tsinghua University, Beijing 100084, China 2China North Artificial Intelligence and Innovation Research Institute, Beijing 100072, China 3State Key Laboratory of Precision Measurement Technology and Instruments, Tsinghua University, Beijing 100084, China 4School of Reliability and Systems Engineering, Beihang University, Beijing 100191, China 5Department of Automation, Tsinghua University, Beijing 100084, China Corresponding author: Bo Su (bosu@noveri.com.cn) This work was supported by China North Artificial Intelligence and Innovation Research Institute under Project 92248303. ABSTRACT Torque prediction is crucial for the control and safe operation of electric motors. Compared to offline methods, online identification methods can adapt to dynamic changes and individual variations in motor characteristics in real time, but they face challenges such as rank deficiency and the failure of physical equations. Data-driven methods, which do not rely on specific mathematical models, are better suited to address these issues. However, the lack of torque feedback during actual motor operation can render supervised learning ineffective. This paper proposes a method that combines offline learning and online updates using Physics-Informed Neural Networks (PINNs). The method enables online learning of motor parameters through real-time data and constructs a torque output model to support more efficient and safe online systems. Compared to least-squares methods based on physical formulas, the PINN approach demonstrates greater accuracy and dynamic adaptability in real-time testing. Experimental results in a data set from a physical test bench with a torque output range of ±260 N·m demonstrate that the proposed PINN method achieves an MAE of 0.7745 N·m and an RMSE of 1.6393 N·m. The method also converges in seconds in new environments, highlighting its robustness and practical applicability. INDEX TERMS Motor torque output model, online identification methods, online learning, PINNs, PMSM. I. INTRODUCTION Permanent Magnet Synchronous Motors (PMSMs) are extensively applied in robotics, servo systems, and electric vehicles [1]. Their appeal stems from high reliability, power density, controllability, and minimal maintenance costs [2]. However, advanced techniques, such as torque control [3], sensorless control [4], and fault diagnosis [5], demand precise motor models. The establishment and dynamic updating of such models remain challenging, especially under varying operating conditions. PMSM modeling methods are broadly classified into offline and online approaches [6], depending on whether parameter estimation is performed during system operation. These methods typically include physics-based parameter identification and data-driven techniques. The associate editor coordinating the review of this manuscript and approving it for publication was Qinfen Lu . _A._ _OFFLINE MODELING METHODS_ Offline modeling methods are among the most prevalent approaches for motor modeling. These methods construct models based on experimental data to identify system dynamics and relationships, such as torque-current and fluxcurrent characteristics. Common techniques include leastsquares regression based on physical models [7], lookup tables [8], [9], and supervised learning-based neural network models [10]. For instance, resistance parameters can be identified by injecting a linearly increasing current into the d-axis and performing linear regression [11], while inductance parameters can be determined by injecting DC and sinusoidal AC signals [12]. These approaches effectively leverage experimental data and are relatively mature. In recent years, data-driven methods have garnered significant attention for offline modeling [13]. Unlike physics-based approaches, data-driven methods bypass physical model assumptions or domain-specific knowledge, employing deep learning neural networks to directly learn motor characteristics from large-scale experimental data [14], [15], [16]. This capability makes them particularly adapt at capturing nonlinear or complex system behaviors. However, their performance heavily depends on the quality and quantity of the training data. Despite their strengths in accurately characterizing static properties of motors under known conditions, offline modeling methods face notable limitations. The modeling process often requires extensive experimental data, which is timeconsuming to collect and process. Furthermore, static models struggle to adapt to dynamic environmental changes, such as temperature, humidity, or operational cycles [17]. For example, motor aging, temperature variations [18], or production tolerances [19] can degrade model accuracy, leading to significant estimation errors. Moreover, offline methods lack the ability to adjust model parameters in real time during long-term motor operation, rendering them unsuitable for dynamic working conditions. _B._ _ONLINE MODELING METHODS_ Online modeling methods enable real-time updates of motor models, allowing them to adapt to environmental changes and adjustments to dynamic motor state. Common approaches include the Kalman filter [20] and recursive least squares (RLS) [21], [22], which primarily estimate physical parameters such as _Ld_, _Lq_, stator resistance _Rs_, and flux linkage _ψp_ . Nevertheless, online modeling methods face two significant challenges: model inaccuracy and rank deficiency. Model inaccuracy arises from the complex coupling relationships among PMSM parameters and nonlinear effects [44], such as magnetic saturation and cross-coupling. For instance, Liu et al. [45] demonstrated that two-way magneto-mechanical coupling and nonuniform spline clearance can significantly degrade torque prediction accuracy. Rank deficiency, on the other hand, occurs when the number of equations in the voltage model is insufficient to uniquely determine all required parameters [23]. This issue is often mitigated by fixing certain parameters, such as setting the rotor flux linkage _λr_ to a nominal value, but these remain dependent on specific assumptions, limiting their generalizability in real-time applications. Despite these advancements, conventional methods still suffer from computational inefficiencies and limited estimation accuracy. To address these challenges, advanced methods have been explored. High-frequency signal injection and recursive least squares techniques have been employed for real-time identification of resistance [37], flux linkage, and inductance [21], [22]. Additionally, studies have integrated motor operating states with experimental data, using parameter sensitivity analysis to enhance identification precision [25] and improve high-frequency injection noise characterization [4]. Despite these advancements, conventional methods still suffer from computational inefficiencies and limited estimation accuracy. Data-driven methods, particularly those based on deep learning, have emerged as promising alternatives to address the challenges of model inaccuracy and rank deficiency. In the context of PMSM systems, convolutional neural networks have shown strong potential for improving fault diagnosis and adaptive modeling [27]. In parallel, deep reinforcement learning has been effectively applied to adaptive control problems, demonstrating its promise for realtime PMSM parameter estimation [41]. Physics-informed neural networks (PINNs), in particular, have demonstrated improved computational efficiency and accuracy in systemlevel simulations [38]. Recent advances have also introduced robust uncertainty quantification techniques for PINNs, effectively addressing noise in both inputs and outputs and thereby increasing their reliability in practical scenarios [39]. Furthermore, incorporating weighted loss functions in PINNs has proven effective in improving stability and prediction accuracy under dynamic and uncertain environments [40]. The application of PINNs in control system modeling is also gaining momentum, with several studies exploring their effectiveness in PMSM-related dynamics and control [42], [43]. Despite these advances, data-driven approaches still face practical challenges. A major limitation is the reliance on labeled data—particularly torque measurements—which are often unavailable in real-time industrial settings, making conventional supervised learning approaches infeasible. To circumvent this, some studies have attempted to predict intermediate variables, such as inverter nonlinear voltage [24] or flux linkage using tailored loss functions [26], [28]. However, these methods often depend on restrictive assumptions, which may not hold under varying operating conditions. Therefore, developing an accurate and generalizable online modeling framework that avoids direct dependence on torque labels, while still fully leveraging the representational power of neural networks, remains an open and critical research challenge. _C._ _MAIN CONTRIBUTIONS_ This paper proposes a data-driven online torque prediction method based on PINNs, as illustrated in Fig. 1. The method achieves real-time torque prediction by learning motor physical parameters and incorporating physical information, such as motor equations, into the neural network framework. The main contributions of this work are as follows: 1) Physics-Informed Learning : By embedding physical principles into the neural network, the proposed method overcomes the challenges of supervised learning, particularly the lack of real-time feedback, enabling effective online learning without the need for manual model adjustments. 2) Enhanced Physical Interpretability : Outputting motor parameters instead of direct torque predictions enables higher interpretability, efficient torque control, and safety threshold prediction. It also allows frame. 2   _ia_ _ib_ _ic_ - _iα_ _iβ_ - _id_ _iq_ - = <sup><u>2</u></sup> 3 - = <sup><u>2</u></sup>  0 1 - <sup><u>1</u></sup> <u>3</u> 2 <sup><u>1</u></sup> - <sup><u>1</u></sup> 2 2 √ ~~√~~   (1) <u>3</u> 2    = - cos( _θ_ ) sin( _θ_ )�� _iα_ - sin( _θ_ ) cos( _θ_ ) _iβ_ �� _iα_ ) _iβ_ (2) 2) LINEARIZED PMSM MODEL Assuming low magnetic saturation, the linearized PMSM model describes the relationship between stator voltage, flux linkage, and currents. The dynamic state-space equations (Eq. 3) and the torque equation (Eq. 4) capture the key behaviors:   - <sup>_<u>Rs</u>_</sup> _Ld_ �˙ _id_ ˙ _iq_  =  + - _ω_ <sup>_<u>Ld</u>_</sup> _Lq_ _ω_ <sup>_Lq_</sup> _Ld_ - <sup>_<u>Rs</u>_</sup> _Lq_   - _id_ _iq_ <u>1</u> _Ld_ <u>1</u> 0 _Lq_ - _ud_ - _ψφω_ (3) _uq_ + _ψφω_ 0   - (4) FIGURE 1. Overview of the process: data collection, model training, and controller implementation, highlighting offline initialization and online updates with a multi-label training strategy. optimized parameter identification when specific parameters are known. 3) Offline Pretraining with Online Updates : PINN weights are pretrained offline using long-term training data, while online updates refine a subset of parameters. This approach addresses the challenges of online learning by minimizing model divergence and improving prediction accuracy in dynamic conditions. 4) Multi-Label Training Strategy : A dual training strategy combines offline torque feedback for pretraining with voltage differences for online updates. This approach maximizes the utilization of offline data and ensures high initial model accuracy while enabling continuous improvement through online updates. II. FUNDAMENTAL THEORIES IN PMSM MODELING _A._ _PMSM MATHEMATICAL MODEL_ The mathematical modeling of PMSM dynamics forms the foundation for motor control and performance analysis. To simplify analysis, coordinate transformations and linearized models are commonly employed. 1) COORDINATE TRANSFORMATIONS The three-phase abc currents are transformed into the stationary _αβ_ frame using the Clarke transformation (Eq. 1), and further into the rotating dq frame via the Park transformation (Eq. 2). These transformations facilitate the representation of motor dynamics in a simplified reference _Te_ = 1 _._ 5 · _p_ - - _ψφ_ - _iq_ + ( _Ld_ - _Lq_ ) · _id_ - _iq_ _B._ _OFFLINE PARAMETER IDENTIFICATION_ Offline parameter identification estimates motor parameters ( _Rs_, _Ld_, _Lq_, _�m_ ) by discretizing the voltage equations and applying least squares estimation (Eq. 5). This approach minimizes the error between observed and predicted voltages to achieve high accuracy under static conditions. �2 <sup>�</sup> (5) min _θ_ _N_ _t_ =1 �� _Vd,t_ - _Xt_ _θ_ �2 + - _Vq,t_ - _Yt_ _θ_ Although offline methods are effective for static environments, they lack adaptability under dynamic conditions, emphasizing the need for online learning methods. _C._ _ONLINE PARAMETER IDENTIFICATION METHOD_ In the proposed online identification method, the nonlinear PMSM model considering magnetic saturation is employed. By discretizing the electrical equations, the voltage difference equations are derived to perform parameter identification. Real-time estimation of motor parameters is achieved using RLS regression. The following describes the key steps of this method: 1) DISCRETE VOLTAGE EQUATIONS Based on the electrical equations of PMSM, the voltage difference equations are expressed as [29]: _�idq_ [ _k_ + 1] = − _Ldq_ - _�idq_ [ _k_ ] − _Rs_ - _Ts_ - _idq_ [ _k_ ] + _Ldq_ - _Tαβ_ <sup>_dq_</sup> <sup>(−</sup> <sup>_Ts_</sup> <sup>·</sup> <sup>_ω_</sup> <sup>[</sup> <sup>_k_</sup> <sup>]) ·</sup> <sup>_udq_</sup> <sup>[</sup> <sup>_k_</sup> <sup>]</sup> + _Ldq_ - _Tαβ_ <sup>_dq_</sup> <sup>(−</sup> <sup>_Ts_</sup> <sup>·</sup> <sup>_ω_</sup> <sup>[</sup> <sup>_k_</sup> <sup>]) −</sup> <sup>_I_</sup> - - _ψdq_ (6) where key parameters are defined as follows: - _idq_ [ _k_ ]: d-axis and q-axis current components; - _�idq_ [ _k_ + 1]: variation of current components; - _Ldq_ : inductance matrix; - _Rs_ : stator resistance; - _Ts_ : sampling time; - _udq_ [ _k_ ]: d-axis and q-axis voltage components; - _ω_ [ _k_ ]: rotor angular velocity; - _ψdq_ : flux linkage vector; - _T_ <sup>_dq_</sup> _αβ_ <sup>and</sup> <sup>_I_</sup> <sup>: coordinate transformation matrix and identity</sup> matrix, respectively. 2) RECURSIVE LEAST SQUARES ESTIMATION The RLS algorithm is used to estimate _θd_ and _θq_ by minimizing the cumulative squared error between the observed and predicted current variations: _e_ [ _k_ ] = _�idq_ [ _k_ + 1] − _�_ <sup>ˆ</sup> _idq_ [ _k_ + 1] _,_ (7) where _e_ [ _k_ ] is the error term. The parameter update rule is defined as: _θdq_ [ _k_ + 1] = _θdq_ [ _k_ ] + _K_ [ _k_ ] · _e_ [ _k_ ] _,_ (8) with the gain matrix _K_ [ _k_ ] computed as: _K_ [ _k_ ] = _P_ [ _k_ ] · _ξ_ [ _k_ ] · ( _λ_ + _ξ_ [ _k_ ] <sup>_T_</sup> - _P_ [ _k_ ] · _ξ_ [ _k_ ]) <sup>−1</sup> _._ (9) Here, _P_ [ _k_ ] is the covariance matrix, _λ_ is the forgetting factor, and _ξ_ [ _k_ ] is the regression vector. This method ensures efficient real-time parameter updates while maintaining numerical stability. 3) ALGORITHM OVERVIEW The complete online identification process is outlined in Algorithm 1. <u>Algorithm 1</u> <u>Online RLS Parameter Identification</u> 1: Input: Forgetting factor _λ_, initial parameters _θdq_ [0], covariance matrix _P_ [0] 2: while System is operational do 3: Measure current _idq_ [ _k_ ], voltage _udq_ [ _k_ −1], and speed _ω_ [ _k_ - 1] 4: Compute current variation: _�idq_ [ _k_ + 1] = _idq_ [ _k_ ] − _idq_ [ _k_ - 1] 5: Construct regression vector _ξ_ [ _k_ ] 6: Compute gain matrix: _K_ [ _k_ ] = _P_ [ _k_ ] · _ξ_ [ _k_ ] · ( _λ_ + _ξ_ [ _k_ ] <sup>_T_</sup> _P_ [ _k_ ] _ξ_ [ _k_ ]) <sup>−1</sup> 7: Update parameters: _θdq_ [ _k_ + 1] = _θdq_ [ _k_ ] + _K_ [ _k_ ] - ( _�idq_ [ _k_ + 1] - _ξ_ [ _k_ ] <sup>_T_</sup> _θdq_ [ _k_ ]) 8: Update covariance matrix: where _N_ is the total number of training samples, _Te_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> is the ground truth torque for the _i_ -th sample, and _T_ <sup>ˆ</sup> _e_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> is the corresponding predicted torque. The model parameters are updated using gradient descent: w ← w - _η_ ∇ _L_ ( w ) (12) where _η_ is the learning rate. 3) WORKFLOW The offline modeling process consists of the following stages: 1) Data Collection : Conduct experimental tests on a motor test rig to gather input and output data under various operating conditions. The dataset includes x as inputs and _Te_ as outputs. 2) Model Training : Use supervised learning to train a deep learning model on the collected dataset. The model captures nonlinear relationships between inputs and torque. 3) Model Validation : Evaluate the model’s performance on a validation set to ensure it generalizes well to unseen data. 4) ADVANTAGES AND LIMITATIONS Offline supervised learning-based methods excel at capturing static nonlinear relationships in high-quality datasets. However, they face limitations in adapting to dynamic environmental changes and rely heavily on the availability of labeled data. III. PROPOSED PINN METHOD The proposed method integrates physical laws into the neural network’s training process by embedding governing _D._ _OFFLINE SUPERVISED LEARNING-BASED MODELING_ The offline modeling process utilizes a supervised learning framework [30], relying on a dataset with torque feedback. The inputs include d-axis current ( _id_ ), q-axis current ( _iq_ ), daxis voltage ( _ud_ ), q-axis voltage ( _uq_ ), and rotor speed ( _ω_ ), while the output is the torque ( _Te_ ). The objective is to train a predictive model capable of estimating the torque based on the input conditions. The workflow is illustrated in Fig. 2. 1) MODEL REPRESENTATION The predictive model is represented as: _T_ ˆ _e_ = _f_ ( x ; w ) (10) where x = [ _id_ _, iq, ud_ _, uq, ω_ ] represents the input features, w are the model parameters, and _T_ <sup>ˆ</sup> _e_ is the predicted torque. For a deep learning model, _f_ (·) is typically a neural network. 2) LOSS FUNCTION AND OPTIMIZATION The model parameters w are optimized by minimizing the mean squared error (MSE) loss function: _L_ ( w ) = <sup><u>1</u></sup> _N_ _N_ _i_ =1 - _Te_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _e_ _e_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>−ˆ</sup> <sup>_T_</sup> _e_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> �2 (11) _P_ [ _k_ + 1] = <sup><u>1</u></sup> _λ_ 9: <u>end while</u> - _P_ [ _k_ ] − _K_ [ _k_ ] _ξ_ [ _k_ ] <sup>_T_</sup> _P_ [ _k_ ] FIGURE 2. Simplified scheme of the offline modeling process. equations directly into the loss function [31]. Specifically, in this study, the fundamental voltage and torque equations of the PMSM are used as constraints to enhance the neural network’s parameter learning and prediction capabilities. _A._ _EMBEDDING MOTOR EQUATIONS IN THE NETWORK_ The most innovative aspect of the proposed method is the embedding of the motor’s physical equations into the network. This is achieved by incorporating the PMSM voltage and torque equations directly into the loss function. In the online learning phase, where torque feedback is unavailable, the network relies on voltage residuals to compute the loss and update the parameters. This loss function directly incorporates the motor’s governing equations, ensuring that the network’s predictions remain consistent with the physics of the system. The embedding of physical laws into the learning process not only enhances the model’s prediction accuracy but also improves its physical interpretability, making the model’s behavior easier to understand and validate against physical expectations. FIGURE 3. PINN framework integrating physical equations and data-driven learning. _B._ _NETWORK ARCHITECTURE AND STRUCTURE_ The network architecture is designed to balance the stability of physical parameters and the adaptability of dynamic parameters. As shown in Figure 4, the architecture consists of shared layers for stable parameters, which are learned during offline training, and independent output towers for dynamic parameters, which are updated during online learning. This design enables the model to efficiently adapt to real-time changes in operating conditions, while maintaining consistency with physical laws. FIGURE 4. Network architecture of the proposed PINN method, with stabilized parameters (purple) and dynamically updated parameters (pink). During the initial phase of profile changes in online updates, prediction errors tend to be larger. To address this, we designed the architecture with shared layers to capture the stable aspects and independent output towers to handle dynamic parameters such as q-axis inductance and flux linkage. This structure allows the model to adapt more effectively during transitions between different operating conditions by enabling faster convergence and reducing errors during profile changes. _C._ _OFFLINE-ONLINE COMBINED TRAINING AND_ _MULTI-LABEL STRATEGY_ The training process is divided into two phases: offline pretraining and online updates. In the offline phase, we pretrain the model using long-term data to initialize the model’s weights. After the pretraining, the model is ready for online operation. During online updates, the pretrained model and hyperparameters are loaded, and the model is updated based on real-time, filtered data. The model is then used to make predictions while continuously adapting to the new incoming data. A key component of this approach is the multi-label training strategy. In the offline phase, we use torque feedback as the primary training label, while in the online phase, we combine voltage residuals as additional labels. This allows the model to better generalize by leveraging both labeled (offline) and unlabeled (online) data. The use of multiple labels enhances the model’s robustness, allowing it to handle situations where torque feedback is unavailable during online operation. 1) OFFLINE LEARNING In the offline phase, torque feedback ( _Te_ ) is available. The network is trained to minimize the residuals of the motor’s physical equations while simultaneously fitting the experimental data. The loss function is defined as: Lossoffline = <sup><u>1</u></sup> _N_ _N_ _k_ =1 _Te,_ pred[ _k_ ] − _Te,_ actual[ _k_ ]�2 _._ (13) <u>Algorithm 2</u> <u>Online PINN Learning Algorithm</u> 1: Input: Pre-trained model weights, learning rate _η_, historical data (optional), update interval _w_ in, history window size _w_ hist 2: while System is operational do 3: Perform mini-batch training on historical data 4: Collect real-time data: _idq, udq, ω_ 5: Compute voltage residuals: Residual _Vd,_ Residual _Vq_ 6: Compute loss: 2) ONLINE LEARNING In the online phase, direct torque feedback is unavailable. Voltage residuals are used to compute the loss and update the network in real time: Residual _Vd_ = _Vd_ - ( _Rs_ - _id_ + _Ld_ - <sup><u>d</u></sup> <sup>_<u>id</u>_</sup> d _t_ <sup>−</sup> <sup>_ωe_</sup> <sup>·</sup> <sup>_Lq_</sup> <sup>·</sup> <sup>_iq_</sup> <sup>)</sup> <sup>_,_</sup> <sup>(14)</sup> Loss = Residual <sup>2</sup> _V_ <sup>2</sup> _Vd_ <sup>+ Residual</sup> _V_ <sup>2</sup> _V_ <sup>2</sup> _q_ Residual _Vq_ = _Vq_ - ( _Rs_ - _iq_ + _Lq_ - <sup>d</sup> <sup>_iq_</sup> d _t_ <sup>_iq_</sup> d _t_ <sup>+</sup> <sup>_ωe_</sup> <sup>·(</sup> <sup>_Ld_</sup> <sup>·</sup> <sup>_id_</sup> <sup>+</sup> <sup>_�m_</sup> <sup>))</sup> <sup>_,_</sup> (15) 7: Update model parameters using gradient descent: w ← w - _η_ ∇Loss 8: Evaluate model performance on the most recent _w_ in samples 9: Retain the model with the best performance in the validation window 10: <u>end while</u> torque measurements under various operating conditions. The dataset contains variables such as currents ( _id_, _iq_ ), voltages ( _ud_, _uq_ ), and rotor speed ( _ωr_ ), as detailed in Table 1. All data were preprocessed to remove noise and normalized to ensure consistency across operating conditions. TABLE 1. Dataset variables and descriptions. The dataset comprises 72 operating conditions sampled at 2 Hz, spanning a total of 184 hours. It is divided into three subsets for comprehensive evaluation: - Offline Training Dataset: Includes data from the first 40 operating conditions, with each condition split into training (60%) and validation (40%) subsets. The division into training and validation subsets is based on ensuring a balanced representation of operating conditions to prevent overfitting and to evaluate generalization performance. - Online Testing Dataset: Comprising the remaining 32 operating conditions, this subset is reserved for simulating real-world scenarios and evaluates the model’s generalization capabilities. The separation of offline and online datasets is designed to reflect real-world deployment, where the model is trained on historical data and tested on unseen conditions with intentional distribution shifts. Lossonline = <sup><u>1</u></sup> _N_ _N_ _k_ =1 �Residual _Vd_ [ _k_ ] <sup>2</sup> + Residual _Vq_ [ _k_ ] <sup>2�</sup> _._ (16) To ensure stable and accurate real-time updates, several considerations are essential. The update interval ( _w_ in) must strike a balance between real-time performance and computational cost, ensuring timely updates without overloading the system. Input filtering is applied to mitigate noise in the input signals, enhancing model stability and reducing the impact of measurement errors. Additionally, using recent historical data for mini-batch training improves model robustness and helps smooth abrupt transitions, enabling the model to adapt effectively to dynamic operating conditions. _D._ _ONLINE LEARNING ALGORITHM_ The pseudocode for the online PINN learning process is provided in algorithm 2. The proposed PINN framework effectively combines physical principles and data-driven learning to enhance parameter prediction and torque estimation. Its ability to adapt to real-time data while maintaining consistency with physical laws makes it a robust solution for online motor modeling. IV. EXPERIMENTATION In this section, we present the experimental setup and evaluation of the proposed online PINN method for torque prediction. The main objective is to demonstrate the effectiveness of the PINN approach in real-time dynamic conditions and its advantages over traditional methods. The experiments were conducted using a computing system equipped with an NVIDIA RTX 4070Ti GPU and CUDA 12.3 for parallel computation. _A._ _EXPERIMENTAL DATASET_ The experimental dataset used in this study originates from a publicly available source [32], which includes output Figure 5 visualizes the dataset division, while Figure 6 provides speed-torque heatmaps illustrating the distribution of operating conditions across the three subsets. Distributional consistency was verified via Kolmogorov-Smirnov tests (Appendix D), with all D-statistics below the 0.045 critical threshold for training-validation comparisons. Intentional distribution shifts in testing data (max D=0.217) emulate realworld generalization challenges. FIGURE 5. Dataset split: training (red), validation (green), and online testing (blue) datasets. FIGURE 6. Speed-torque heatmaps showing the distribution and variability across the full dataset, training, validation, and online testing subsets. _B._ _OFFLINE TORQUE PREDICTION VALIDATION_ The proposed offline prediction methods were evaluated using the test bench dataset to validate their effectiveness. We compared two approaches: the least squares method and a neural network-based supervised learning method. Using the RLS method, we identified four key motor parameters for torque prediction. However, this method struggles under nonlinear or high-load conditions, resulting in significant prediction errors. In contrast, the neural networkbased method demonstrated superior performance across most operating conditions. The FNN architecture demonstrated superior torque prediction accuracy (MAE = 0.77N·m, Table 2), attributable to two synergistic factors: - Architectural Suitability : The feedforward structure’s simplicity (vs. RNN/CNN) provides inherent noise robustness [46], crucial for handling sensor measurement uncertainties in the raw torque signals. - Systematic Optimization : Through Optuna’s Bayesian optimization framework [47], we automated hyperparameter tuning with 100 trial iterations, converging to configurations balancing model capacity and regularization (Table 3). This combination of deliberate architecture selection and data-driven optimization establishes a rigorous baseline for evaluating our PINN enhancements. TABLE 2. Performance comparison of network architectures. TABLE 3. Optimal FNN hyperparameters. _C._ _ONLINE MODELING USING RLS_ The least squares method predicts torque by updating motor parameters in real time using voltage and current measurements. This method was evaluated under dynamic and steady operating conditions to assess its effectiveness for online torque prediction. The method exhibited significant prediction errors, especially under dynamic conditions with rapidly changing loads, where current and voltage signals approached zero. Numerical instability due to noise amplification further exacerbated the issue, leading to parameter divergence. To address these challenges, the following strategies were implemented: - Thresholding Small Signals: Parameter updates were suspended when the amplitude of current or voltage signals fell below predefined thresholds to avoid noise amplification. Specifically, the threshold was set as 1% of the signal mean (Threshold = 0 _._ 01 × Mean), calculated based on the standard deviation of the signals. This approach effectively prevents error accumulation under low signal amplitudes while ensuring updates occur within the normal signal range. - Smoothing Filters: The Savitzky-Golay filter was applied to smooth current signals and improve the stability of derivative calculations. The filter was configured with a window length of 11 and a polynomial order of 3. This setup effectively reduces noise while preserving the dynamic characteristics of the signals, enhancing the model’s adaptability to rapidly changing conditions. - Forgetting Factor: A forgetting factor ( _λ_ = 0 _._ 98) was used during recursive updates to gradually reduce the influence of historical data on current model updates. The choice of _λ_ was based on experimental validation: excessively large values reduce adaptability to new data, while overly small values may cause parameter oscillations. The selected value of 0.98 strikes a good balance between stability and adaptability. FIGURE 7. Improved least squares method performance for online torque prediction, with vertical dashed lines indicating operating condition transitions. Figure 7 illustrates the improved performance, with reduced errors during steady-state conditions. However, larger errors persisted at the initial stages of operating condition transitions. _D._ _PERFORMANCE EVALUATION OF THE PINN METHOD_ The proposed online PINN method integrates physical constraints within the neural network to predict motor torque, implementing the theoretical framework of parameter separation. Initial experiments with FNN architectures showed poor convergence (MAE >3.2 N·m) during operating condition transitions due to unconstrained parameter updates. To address this, our multi-task architecture materializes this construct through shared layers and dynamic output towers, which balance stability and adaptability in real-time applications. The training process is divided into offline pretraining and online updates. In the offline phase, long-term data are used to initialize the model’s weights. Our experiments revealed that using only torque feedback during offline pretraining yielded better performance, as it directly utilizes torque as the target value for loss calculation, which is more effective for training regression models. Additionally, the training process incorporates a multi-label strategy, combining offline torque feedback with voltage residuals to enhance prediction accuracy. This approach ensures that the model leverages the advantages of both supervised learning during offline training and physics-informed constraints during online updates, resulting in improved generalization and adaptability in dynamic conditions. Meanwhile, hyperparameters such as learning rate and batch size were optimized using Optuna, which are listed in Table 4. In the online learning phase, we perform an update every Update Interval data points. Each time, we use the most recent History data points to train the model for multiple epochs. The model selection process is based on performance evaluation using the latest Update Interval samples, ensuring that the best-performing model in this validation window is retained for future predictions. TABLE 4. PINN hyperparameters for online and offline training. The experimental results demonstrate the superior performance of the proposed PINN framework compared to baseline methods. As summarized in Table 5, the PINN method achieved the lowest mean absolute error (MAE = 0.77 N·m) and root mean square error (RMSE = 1.64 N·m) on the online testing dataset, along with a 31% reduction in maximum error (59.08 N·m vs. 85.42 N·m in Online RLS). These quantitative improvements translate to critical operational benefits: The sub-1 N·m MAE ensures accurate torque monitoring for overload prevention during sudden load changes, directly enhancing system safety. Combined with the reduced RMSE, this precision enables more efficient current control by minimizing unnecessary corrections from torque estimation errors. TABLE 5. Performance metrics comparison across methods. Furthermore, we analyze the effect of two key hyperparameters, the size of the Update History window and the interval of the update, on both the model accuracy and the training time. As shown in Figure 9, increasing the History window size generally leads to a lower MAE, as more historical data provides better generalization. Similarly, a shorter UpdateIntervalWin allows more frequent model updates, improving adaptation to system changes. However, excessively high update frequencies can lead to model FIGURE 8. Comparison of MSE and RMSE for different methods on the online testing dataset, highlighting the superior performance of the proposed PINN method (red). instability, causing larger maximum errors. This instability arises because frequent updates may amplify noise or overfit to transient fluctuations in the data. These findings highlight the inherent trade-offs between model performance and computational cost. While more data and frequent updates enhance accuracy, we must consider computational feasibility, particularly in real-time embedded deployment. If the training time per update exceeds the update interval itself, real-time execution becomes infeasible. In our selected configuration (HistoryWin = 128, UpdateIntervalWin = 16), the model completes 3 training epochs in approximately 1 second, which corresponds to two sampling intervals. This tradeoff is acceptable, ensuring both real-time performance and high prediction accuracy. To address the potential instability caused by excessively high update frequencies, we have added relevant discussions in the experimental section, emphasizing the need to balance real-time performance and accuracy in practical applications. Table 6 compares the advantages, disadvantages, and applicable scenarios of different torque prediction methods. FIGURE 9. Effect of update interval and history window length on model performance. TABLE 6. Torque prediction methods: comparison of advantages and disadvantages. The PINN Online method demonstrates significant advantages in accuracy and dynamic adaptability, making it the best choice for real-time prediction tasks under complex dynamic conditions. In contrast, Offline RLS and Online RLS methods, while computationally efficient, exhibit lower prediction accuracy under complex conditions and are more suitable for simpler scenarios. The Offline DL method excels in static conditions but lacks the adaptability required for real-time applications. Overall, the PINN Online method strikes a good balance between real-time performance and accuracy, making it the optimal choice for challenging dynamic environments. V. DISCUSSION _A._ _PERFORMANCE ANALYSIS_ The proposed PINN approach demonstrated high accuracy and fast convergence in online torque prediction. As shown in the experimental results, PINN significantly reduced prediction errors during dynamic operating condition transitions compared to RLS-based methods. By integrating physical principles with data-driven techniques, PINN effectively captured dynamic motor parameter variations, providing a robust solution in scenarios where torque sensors are unavailable. A notable limitation of the PINN method is the higher maximum error during the initial phase of operating condition transitions, caused by significant changes in motor characteristics and the time required for the online model to adapt. This sensitivity highlights the need for improved online update mechanisms. Potential solutions include predictive adjustments for condition changes, incorporating historical data to enhance stability [33], or leveraging a hybrid offlineonline strategy where the offline-trained model provides outputs during transition phases to mitigate initial errors [34], [35]. While PINN excels in torque prediction, the identification of individual motor parameters remains challenging. For instance, certain parameters, such as stator resistance ( _Rs_ ), may deviate from their true values. Incorporating _Rs_ as a known parameter in the loss function can improve the accuracy of other parameter estimates. A modified loss function is proposed: Lossmodified = Lossvoltage residuals + _λ_ - ( _R_ <sup>ˆ</sup> _s_ - _Rs_ ) <sup>2</sup> (17) This approach mitigates initial prediction errors caused by incorrect parameter estimates during online updates. _B._ _ROBUSTNESS TO LIMITED OFFLINE DATA_ The robustness of PINN was evaluated under reduced offline training data. Results demonstrate that PINN maintains strong performance during online updates, achieving minimal performance degradation compared to offline deep learning (DL) methods. Table 7 highlights that PINN exhibits smaller performance drops in MAE, RMSE, and Max Error than offline DL, showcasing its adaptability to limited offline data scenarios. TABLE 7. Performance and drop% on online test dataset with limited offline data. For offline methods, larger datasets generally improve performance by reducing overfitting and enhancing generalization. This is particularly beneficial for deep learning models, which rely heavily on diverse and extensive training data to capture complex system behaviors. However, for the proposed online PINN method, the impact of larger datasets is less pronounced. While larger datasets slightly improve the initial offline-trained model, the improvement is marginal during online updates. In some cases, larger datasets can even lead to increased maximum errors during online prediction due to overfitting to the offline data, which reduces the model’s adaptability to real-time changes. _C._ _ADAPTABILITY TO SUDDEN OPERATING CHANGES_ FIGURE 10. Transient performance comparison during condition changes, showing faster steady-state achievement by PINN (red) compared to RLS (blue). Sudden operating condition changes rigorously test the stability and adaptability of online systems. As shown in Figure 10, both methods exhibit initial prediction errors during transitions, but PINN achieves 47% faster convergence ( _τ_ = 2 _._ 8 s vs. 5 _._ 1 s for LS) through targeted parameter updates. The convergence time constant _τ_ is derived from exponential fitting of the error decay envelope _e_ ( _t_ ) = _e_ 0 exp(− _t/τ_ ) during the post-disturbance phase. This accelerated adaptation originates from two inherent advantages of our architecture: the dual-pathway design creates separated gradient manifolds— shared layers preserve stable electromagnetic relationships through frozen weights, while independent towers enable focused adaptation of dynamic parameters. Additionally, the physical loss component ∥∇ _Lphysics_ ∥ provides geometrically constrained update directions. However, there are certain extreme scenarios where the PINN method does not perform as well during the early stages of transitions. In scenarios with extremely high transition frequencies, the complex network structure of PINN requires more computational resources and time for online updates. This can lead to update delays, preventing the model from adjusting weights in time and reducing its adaptability. Furthermore, while the physical constraints enhance the model’s generalization ability, they may limit flexibility under extreme transition conditions, causing the update direction to deviate from the optimal path. Additionally, larger initial errors during transitions can amplify subsequent update deviations, slowing down the model’s convergence. Overall, while the PINN method demonstrates superior performance in most abrupt transition scenarios, RLS, with its simpler recursive formula and lower computational complexity, can respond more quickly under high-frequency transitions. These findings highlight the trade-offs between model complexity, computational efficiency, and adaptability in dynamic environments. Future work could explore strategies to mitigate these limitations, such as predictive adjustments for condition changes or hybrid offline-online strategies to improve initial response during transitions. _D._ _REAL-TIME COMPUTATIONAL OVERHEAD_ In embedded systems, computational efficiency is critical for real-time deployment. We compared the inference time of different methods on our experimental platform, including raw implementations, ONNX-based deployment, and ONNX-optimized versions, as illustrated in Figure 11. From the results, we observe that RLS Online is the fastest method, with an average inference time of 0.565 ms, benefiting from its simple recursive formulation.For the PINN Online method, inference time is naturally higher at 3.121 ms, given its more complex physics-informed architecture. Deploying the PINN model with ONNX reduces the execution time to 2.28 ms (27% faster), while further ONNX optimization brings it down to 1.59 ms (49% faster). These improvements demonstrate the effectiveness of ONNX acceleration, particularly for deep learning models deployed on resource-constrained hardware. FIGURE 11. Prediction time comparison across different methods. It is important to note that while ONNX deployment and optimization significantly accelerate inference, PINN’s online updates still require PyTorch-based weight updates. Converting the updated model to ONNX and re-optimizing it after every online update could introduce additional overhead, making it potentially slower than directly using PyTorch in some cases. To further evaluate real-time feasibility, we deployed the models on an NVIDIA Jetson Orin NX platform. Compared to the 4070Ti testbed, the inference time significantly increased due to the limited computational resources of embedded hardware. As shown in Table 8, the FNN ONNX Optimized model achieves the lowest inference time, while PINN Online remains computationally intensive, making real-time deployment challenging. Even after ONNX optimization, PINN ONNX Optimized still takes 16.12 ms, which may be unsuitable for high-frequency control loops. In practical deployment scenarios, selecting an appropriate update interval is crucial to balancing adaptation capability and computational cost. A longer update interval reduces the computational burden while maintaining sufficient adaptability. Additionally, controlling the history window size ensures that model updates are efficient without excessive overhead. When frequent adaptation is unnecessary, an offline-trained FNN model, such as the ONNX Optimized version with an inference time of 11.16 ms, provides a good trade-off between computational efficiency and prediction accuracy. TABLE 8. Inference time comparison on NVIDIA Jetson Orin. VI. CONCLUSION AND FUTURE WORK This paper presents a PINN framework for real-time motor torque prediction, establishing a novel dual-phase learning paradigm that synergizes offline pre-training with online adaptation. Three key advancements emerge from our experimental validation: First, the achieved 0.7745 N·m MAE (0.3% of full-scale torque) establishes new precision benchmarks for enhanced-precision torque control and online torque monitoring. Second, experimental measurements indicate convergence within 3 seconds during abrupt condition transitions, demonstrating enhanced dynamic adaptability that fulfills industrial real-time control requirements. Third, our dual-pathway architecture—integrating physical constraints with data-driven updates—provides a principled solution to the stability-plasticity dilemma in online learning systems. These technical merits translate to practical values in peak torque prediction and fault diagnosis, particularly for electric vehicles experiencing rapid load variations. Despite these advancements, challenges remain in accurately identifying motor parameters like stator resistance and flux linkage, as well as improving adaptability to rapid system changes. Additionally, this study is limited by the lack of experimental validation for scenarios involving significant parameter drift or motor aging, as the publicly available datasets used in our experiments do not include such conditions. While the proposed online PINN method is theoretically capable of adapting to changing system dynamics through real-time updates, its practical effectiveness under these conditions remains unverified. Future work will focus on addressing these challenges through advanced optimization techniques, extending multitask learning, and developing scalable strategies to reduce computational costs, enabling real-time deployment in complex motor control systems. Furthermore, real-world deployment constraints, such as limited computational resources on embedded systems, require careful consideration of update frequency and historical data size to balance real-time performance and computational efficiency. APPENDIX DETAILED MATHEMATICAL DERIVATIONS This section provides the detailed mathematical derivations and models omitted from the main text for brevity. These include the cross-saturation model and the step-by-step linear regression derivation for offline parameter identification. _A._ _PMSM MODEL CONSIDERING CROSS-SATURATION_ Under high magnetic saturation, the motor’s inductance and flux linkage become functions of the currents _id_ and _iq_, leading to a nonlinear model. The voltage and flux linkage equations are expressed as: 1) VOLTAGE EQUATIONS (CONSIDERING SATURATION EFFECTS) _<u>Rs</u>_ ˙ _id_ = _Ld_ ( _id_ _, iq_ ) <sup>(</sup> <sup>_ud_</sup> <sup>−</sup> <sup>_ψφ_</sup> <sup>(</sup> <sup>_id_</sup> <sup>_, iq_</sup> <sup>)</sup> <sup>_ω_</sup> <sup>) −</sup> <sup>_iα_</sup> _<u>Rs</u>_ ˙ _iq_ = _Lq_ ( _id_ _, iq_ ) <sup>(</sup> <sup>_uq_</sup> <sup>−</sup> <sup>_ψφ_</sup> <sup>(</sup> <sup>_id_</sup> <sup>_, iq_</sup> <sup>)</sup> <sup>_ω_</sup> <sup>) −</sup> <sup>_iβ_</sup> (18) 2) FLUX LINKAGE EQUATIONS (CONSIDERING SATURATION EFFECTS) _ψ_ ˙ _d_ = _Ld_ ( _id_ _, iq_ ) _id_ + _Lq_ ( _id_ _, iq_ ) sin( _θ_ ) _iq_ _ψ_ ˙ _q_ = _Ld_ ( _id_ _, iq_ ) _iq_ - _Lq_ ( _id_ _, iq_ ) cos( _θ_ ) _id_ (19) _B._ _STEP-BY-STEP LINEAR REGRESSION DERIVATION_ To facilitate parameter identification, the voltage equations in the dq-axis were discretized into a linear regression model. The process is detailed below: 1) MATRIX FORM OF VOLTAGE EQUATIONS - 0 _ωe�m_  - _id_ [ _k_ ] _iq_ [ _k_ ]   - _vd_ [ _k_ ]� = _vq_ [ _k_ ]  + + _Rs_ + <sup>_<u>Ld</u>_</sup> _ωeLd_ _Rs_ + <sup>_Lq_</sup> - _ωeLq_ _Ts_ (20) _Ts_ - <sup>_<u>Ld</u>_</sup>  - _id_ [ _k_ - 1]� _iq_ [ _k_ - 1] 0  _Ts_ 0 - <sup>_Lq_</sup>   _Ts_ 2) LINEARIZED MODEL FOR PARAMETER IDENTIFICATION The linearized regression model is expressed as: _dt_ <sup>−</sup> <sup>_ωeiq_</sup> <sup>0</sup> _θ_ _Vd_ = _Vq_ = _id_ _iq_ _ωeid_ _<u>did</u>_ _diq_ _dt_ <sup>_ωe_</sup> [9] T. Windisch and W. Hofmann, ‘‘Loss minimization of an IPMSM drive using pre-calculated optimized current references,’’ in _Proc. IECON 37th_ _Annu. Conf. IEEE Ind. Electron. Soc._, Nov. 2011, pp. 4704–4709. [10] M. Novak, H. Xie, T. Dragicevic, F. Wang, J. Rodriguez, and F. Blaabjerg, ‘‘Optimal cost function parameter design in predictive torque control (PTC) using artificial neural networks (ANN),’’ _IEEE Trans. Ind. Electron._, vol. 68, no. 8, pp. 7309–7319, Aug. 2021. [11] Q. Wang, G. Zhang, G. Wang, C. Li, and D. Xu, ‘‘Offline parameter self-learning method for general-purpose PMSM drives with estimation error compensation,’’ _IEEE_ _Trans._ _Power_ _Electron._, vol. 34, no. 11, pp. 11103–11115, Nov. 2019. [12] S. A. Odhano, R. Bojoi, S. G. Rosu, and A. Tenconi, ‘‘Identification of the magnetic model of permanent-magnet synchronous machines using DCbiased low-frequency AC signal injection,’’ _IEEE Trans. Ind. Appl._, vol. 51, no. 4, pp. 3208–3215, Jul. 2015. [13] C. Ravichandran, R. Balakrishanan, and S. Kamakshy, ‘‘Enhancing quadcopter motor performance prediction using jaya-optimized feed forward neural network,’’ _Electr. Eng._, pp. 1–21, Jan. 2025. [14] A. Brosch, S. Hanke, O. Wallscheid, and J. Böcker, ‘‘Data-driven recursive least squares estimation for model predictive current control of permanent magnet synchronous motors,’’ _IEEE Trans. Power Electron._, vol. 36, no. 2, pp. 2179–2190, Feb. 2021. [15] W. Kirchgässner, O. Wallscheid, and J. Böcker, ‘‘Data-driven permanent magnet temperature estimation in synchronous motors with supervised machine learning: A benchmark,’’ _IEEE Trans. Energy Convers._, vol. 36, no. 3, pp. 2059–2067, Sep. 2021. [16] Y. Zhang, J. Jin, and L. Huang, ‘‘Model-free predictive current control of PMSM drives based on extended state observer using ultralocal model,’’ _IEEE Trans. Ind. Electron._, vol. 68, no. 2, pp. 993–1003, Feb. 2021. [17] D. Huger and D. Gerling, ‘‘The effects of thermal cycling on aging of neodymium-iron-boron magnets,’’ in _Proc._ _IEEE_ _11th_ _Int._ _Conf._ _Power_ _Electron. Drive Syst._, Jun. 2015, pp. 389–392. [18] O. Wallscheid and J. Böcker, ‘‘Wirkungsgradoptimale arbeitspunkts teuerung für einen permanenterregten synchronmotor mit vergrabenen magneten unter berücksichtigung von temperatureinflüssen,’’ in _Proc._ _Internationaler ETG-Kongress_, 2013. [19] M. Ott and J. Böcker, ‘‘Sensitivity analysis on production tolerances for electric drive systems in automotive application,’’ in _Proc._ _Eur._ _Conf._ _Power Electron. Appl._, Sep. 2016, pp. 1–10. [20] F. Mwasilu and J.-W. Jung, ‘‘Enhanced fault-tolerant control of interior PMSMs based on an adaptive EKF for EV traction applications,’’ _IEEE_ _Trans. Power Electron._, vol. 31, no. 8, pp. 5746–5758, Aug. 2016. [21] P. Phowanna, S. Boonto, and M. Konghirun, ‘‘Online parameter identifica tion method for IPMSM drive with MTPA,’’ in _Proc. 18th Int. Conf. Electr._ _Mach. Syst. (ICEMS)_, Pattaya, Thailand, Oct. 2015, pp. 1775–1780. [22] L. Weijie, L. Dongliang, W. Qiuxuan, C. Lili, and Z. Xiaodan, ‘‘A novel deadbeat-direct torque and flux control of IPMSM with parameter identification,’’ in _Proc. 18th Eur. Conf. Power Electron. Appl. (EPE ECCE_ _Eur.)_, Karlsruhe, Germany, Sep. 2016, pp. 1–9. [23] M. Rashed, P. F. A. MacConnell, A. F. Stronach, and P. Acarnley, ‘‘Sensorless indirect-rotor-field-orientation speed control of a permanentmagnet synchronous motor with stator-resistance estimation,’’ _IEEE Trans._ _Ind. Electron._, vol. 54, no. 3, pp. 1664–1675, Jun. 2007. [24] K. Liu and Z. Q. Zhu, ‘‘Online estimation of the rotor flux linkage and voltage-source inverter nonlinearity in permanent magnet synchronous machine drives,’’ _IEEE Trans. Power Electron._, vol. 29, no. 1, pp. 418–427, Jan. 2014. [25] L. Ortombina, F. Tinazzi, and M. Zigliotto, ‘‘Magnetic modeling of synchronous reluctance and internal permanent magnet motors using radial basis function networks,’’ _IEEE_ _Trans._ _Ind._ _Electron._, vol. 65, no. 2, pp. 1140–1148, Feb. 2018. [26] K. Liu, Z. Q. Zhu, and D. A. Stone, ‘‘Parameter estimation for condition monitoring of PMSM stator winding and rotor permanent magnets,’’ _IEEE_ _Trans. Ind. Electron._, vol. 60, no. 12, pp. 5902–5913, Dec. 2013. [27] S. D. Kumar, K. Soundarapandiyan, V. M. Kumar, R. S. Anantharajan, K. V. D. Kannaa, and B. Keerthana, ‘‘Real-time fault detection in electrical systems using machine learning and big data analytics,’’ in _Proc. Int. Conf._ _Power, Energy, Control Transmiss. Syst. (ICPECTS)_, Oct. 2024, pp. 1–8. [28] K. Liu, Q. Zhang, J. Chen, Z. Q. Zhu, and J. Zhang, ‘‘Online multiparameter estimation of nonsalient-pole PM synchronous machines with temperature variation tracking,’’ _IEEE Trans. Ind. Electron._, vol. 58, no. 5, pp. 1776–1788, May 2011. _θ_ (21) where _θ_ = [ _Rs, Ld_ _, Lq, �m_ ] <sup>_T_</sup> represents the unknown parameter vector. _C._ _STATISTICAL VALIDATION_ The Kolmogorov-Smirnov (KS) test quantifies distribution similarity between datasets, where _D_ _<_ 0 _._ 045 indicates statistical equivalence ( _α_ = 0 _._ 05). As shown in Table 9, the training-validation comparisons exhibit _D <_ 0 _._ 024 across all variables, ensuring reliable model validation. The intentionally higher test set _D_ -values (0 _._ 177 − 0 _._ 218) simulate realworld distribution shifts while maintaining critical operating region overlaps. TABLE 9. Kolmogorov-Smirnov test: dataset distribution results. ACKNOWLEDGMENT The authors would like to thank China North Artificial Intelligence and Innovation Research Institute and the Collective Intelligence and Collaboration Laboratory for their support and contributions to this research. REFERENCES [1] X. Liu, H. Chen, J. Zhao, and A. Belahcen, ‘‘Research on the performances and parameters of interior PMSM used for electric vehicles,’’ _IEEE Trans._ _Ind. Electron._, vol. 63, no. 6, pp. 3533–3545, Jun. 2016. [2] M. Ehsani, Y. Gao, and J. M. Miller, ‘‘Hybrid electric vehicles: Architecture and motor drives,’’ _Proc. IEEE_, vol. 95, no. 4, pp. 719–728, Apr. 2007. [3] A. Brosch, O. Wallscheid, and J. Böcker, ‘‘Long-term memory recursive least squares online identification of highly utilized permanent magnet synchronous motors for finite-control-set model predictive control,’’ _IEEE_ _Trans. Power Electron._, vol. 38, no. 2, pp. 1451–1467, Feb. 2023. [4] D. Wang, S. Xu, Y. Li, B. Wang, X. Wang, J. Nie, and X. Wang, ‘‘Sensorless control impact on electromagnetic vibrations and acoustic noises in interior permanent magnet synchronous machines,’’ _IEEE Trans._ _Transport. Electrific._, vol. 11, no. 1, pp. 416–425, Feb. 2025. [5] T. Orlowska-Kowalska, M. Wolkiewicz, P. Pietrzak, M. Skowron, P. Ewert, G. Tarchala, M. Krzysztofiak, and C. T. Kowalski, ‘‘Fault diagnosis and fault-tolerant control of PMSM drives–state of the art and future challenges,’’ _IEEE Access_, vol. 10, pp. 59979–60024, 2022. [6] H. Ahn, H. Park, C. Kim, and H. Lee, ‘‘A review of State-of-the-art techniques for PMSM parameter identification,’’ _J. Electr. Eng. Technol._, vol. 15, no. 3, pp. 1177–1187, May 2020. [7] R. Isermann and M. Münchhof, _Identification_ _of_ _Dynamic_ _Systems:_ _An_ _Introduction With Applications_ . Berlin, Germany: Springer, 2011. [8] W. Peters, O. Wallscheid, and J. Böcker, ‘‘A precise open-loop torque control for an interior permanent magnet synchronous motor (IPMSM) considering iron losses,’’ in _Proc._ _IECON_ _38th_ _Annu._ _Conf._ _IEEE_ _Ind._ _Electron. Soc._, Oct. 2012, pp. 2877–2882. [29] H.-T. Moon, H.-S. Kim, and M.-J. Youn, ‘‘A discrete-time predictive current control for PMSM,’’ _IEEE Trans. Power Electron._, vol. 18, no. 1, pp. 464–472, Jan. 2003. [30] Y. LeCun, Y. Bengio, and G. Hinton, ‘‘Deep learning,’’ _Nature_, vol. 521, no. 7553, pp. 436–444, 2015. [31] S. Cuomo, V. S. Di Cola, F. Giampaolo, G. Rozza, M. Raissi, and F. Piccialli, ‘‘Scientific machine learning through physics–informed neural networks: Where we are and what’s next,’’ _J. Sci. Comput._, vol. 92, no. 3, p. 88, Sep. 2022. [32] W. Kirchgässner, O. Wallscheid, and J. Böcker, ‘‘Estimating electric motor temperatures with deep residual machine learning,’’ _IEEE_ _Trans._ _Power_ _Electron._, vol. 36, no. 7, pp. 7480–7488, Jul. 2021. [33] B. Eken, S. Tufan, A. Tunaboylu, T. Guler, R. Atar, and A. Tosun, ‘‘Deployment of a change-level software defect prediction solution into an industrial setting,’’ _J. Softw., Evol. Process_, vol. 33, no. 11, Nov. 2021, Art. no. e2381. [34] W. Zhang, J. Liu, M. Gao, C. Pan, and J. K. Huusom, ‘‘A fault early warning method for auxiliary equipment based on multivariate state estimation technique and sliding window similarity,’’ _Comput._ _Ind._, vol. 107, pp. 67–80, May 2019. [35] P. Gardner, T. J. Rogers, C. Lord, and R. J. Barthorpe, ‘‘Learning model discrepancy: A Gaussian process and sampling-based approach,’’ _Mech._ _Syst. Signal Process._, vol. 152, May 2021, Art. no. 107381. [36] M. Tursini, F. Parasiliti, and D. Zhang, ‘‘Real-time gain tuning of PI controllers for high-performance PMSM drives,’’ _IEEE Trans. Ind. Appl._, vol. 38, no. 4, pp. 1018–1026, Jul. 2002. [37] G. Lu, J. Su, G. Yang, and F. Liu, ‘‘Offline parameter self-learning method for low-impedance dual three-phase PMSMs: Addressing AC losses and inverter nonlinearity,’’ _IEEE J. Emerg. Sel. Topics Power Electron._, vol. 12, no. 3, pp. 2730–2743, Jun. 2024. [38] J. Stiasny and S. Chatzivasileiadis, ‘‘Physics-informed neural networks for time-domain simulations: Accuracy, computational cost, and flexibility,’’ _Electr. Power Syst. Res._, vol. 224, Nov. 2023, Art. no. 109748. [39] Z. Zou, X. Meng, and G. E. Karniadakis, ‘‘Uncertainty quantification for noisy inputs–outputs in physics-informed neural networks and neural operators,’’ _Comput._ _Methods_ _Appl._ _Mech._ _Eng._, vol. 433, Jan. 2025, Art. no. 117479. [40] J. Hua, Y. Li, C. Liu, P. Wan, and X. Liu, ‘‘Physics-informed neural networks with weighted losses by uncertainty evaluation for accurate and stable prediction of manufacturing systems,’’ _IEEE_ _Trans._ _Neural_ _Netw._ _Learn. Syst._, pp. 1–13, 2023. [41] A. Rajamallaiah, S. P. K. Karri, and Y. R. Shankar, ‘‘Deep reinforcement learning based control strategy for voltage regulation of DC–DC buck converter feeding CPLs in DC microgrid,’’ _IEEE_ _Access_, vol. 12, pp. 17419–17430, 2024. [42] E. A. Antonelo, E. Camponogara, L. O. Seman, J. P. Jordanou, E. R. de Souza, and J. F. Hübner, ‘‘Physics-informed neural nets for control of dynamical systems,’’ _Neurocomputing_, vol. 579, Apr. 2024, Art. no. 127419. [43] Y. Li and L. Liu, ‘‘Physics-informed neural network-based nonlinear model predictive control for automated guided vehicle trajectory tracking,’’ _World_ _Electr. Vehicle J._, vol. 15, no. 10, p. 460, Oct. 2024. [44] S. Tang, T. Shi, Y. Cao, Z. Lin, Z. Wang, and Y. Yan, ‘‘Simultaneous identification of load torque and moment of inertia of PMSM based on variable structure extended sliding mode observer,’’ _IEEE_ _Trans._ _Power_ _Electron._, vol. 39, no. 7, pp. 8585–8596, Jul. 2024. [45] X.-F. Liu, C.-H. Liu, Y. Zheng, J.-F. Yu, W. Zhou, M.-X. Wang, P. Liu, and Y.-F. Zhou, ‘‘Numerical simulation of the electromagnetic torques of PMSM with two-way magneto-mechanical coupling and nonuniform spline clearance in electric submersible pumping wells,’’ _Petroleum_ _Sci._, vol. 21, no. 6, pp. 4417–4426, Dec. 2024. [46] I. Goodfellow, ‘‘Nips 2016 tutorial: Generative adversarial networks,’’ 2016, _arXiv:1701.00160_ . [47] M. Feurer, A. Klein, and K. Eggensperger, ‘‘Efficient and robust automated machine learning,’’ in _Proc._ _Adv._ _Neural_ _Inf._ _Process._ _Syst._, 2015, pp. 2962–2970. YIYANG CHEN received the B.S. degree in measurement and control technology and instrumentation from the Department of Precision Instrument, Tsinghua University, Beijing, China, in 2022, where he is currently pursuing the M.S. degree in electronic information. He is also an Intern with China North Artificial Intelligence and Innovation Research Institute. His research interests include autonomous vehicles, control systems, and machine learning. YANG XIAO received the B.S. degree in aircraft quality and reliability from Beihang University, Beijing, China, in 2020, where he is currently pursuing the Ph.D. degree in electronic information with the School of Reliability and Systems Engineering. His research interests include autonomous safety and uncertainty modeling. CHAO JI, photograph and biography not available at the time of publication. BO SU, photograph and biography not available at the time of publication.

섹션 본문 134문단 · 42,509자

(제목 없음)

1Torque prediction is crucial for the control and safe operation of electric motors.Compared to offline methods, online identification methods can adapt to dynamic changes and individual variations in motor characteristics in real time, but they face challenges such as rank deficiency and the failure of physical equations.Data-driven methods, which do not rely on specific mathematical models, are better suited to address these issues.However, the lack of torque feedback during actual motor operation can render supervised learning ineffective.This paper proposes a method that combines offline learning and online updates using Physics-Informed Neural Networks (PINNs).The method enables online learning of motor parameters through real-time data and constructs a torque output model to support more efficient and safe online systems.Compared to least-squares methods based on physical formulas, the PINN approach demonstrates greater accuracy and dynamic adaptability in real-time testing.Experimental results in a data set from a physical test bench with a torque output range of ±260 N•m demonstrate that the proposed PINN method achieves an MAE of 0.7745 N•m and an RMSE of 1.6393 N•m.The method also converges in seconds in new environments, highlighting its robustness and practical applicability.

I. INTRODUCTION

2Permanent Magnet Synchronous Motors (PMSMs) are extensively applied in robotics, servo systems, and electric vehicles [1].Their appeal stems from high reliability, power density, controllability, and minimal maintenance costs [2].However, advanced techniques, such as torque control [3], sensorless control [4], and fault diagnosis [5], demand precise motor models.The establishment and dynamic updating of such models remain challenging, especially under varying operating conditions.PMSM modeling methods are broadly classified into offline and online approaches [6], depending on whether parameter estimation is performed during system operation.These methods typically include physics-based parameter identification and data-driven techniques.

3The associate editor coordinating the review of this manuscript and approving it for publication was Qinfen Lu .

A. OFFLINE MODELING METHODS

4Offline modeling methods are among the most prevalent approaches for motor modeling.These methods construct models based on experimental data to identify system dynamics and relationships, such as torque-current and fluxcurrent characteristics.Common techniques include leastsquares regression based on physical models [7], lookup tables [8], [9], and supervised learning-based neural network models [10].For instance, resistance parameters can be identified by injecting a linearly increasing current into the d-axis and performing linear regression [11], while inductance parameters can be determined by injecting DC and sinusoidal AC signals [12].These approaches effectively leverage experimental data and are relatively mature.

5In recent years, data-driven methods have garnered significant attention for offline modeling [13].Unlike physics-based approaches, data-driven methods bypass physical model assumptions or domain-specific knowledge, employing deep learning neural networks to directly learn motor characteristics from large-scale experimental data [14], [15], [16].This capability makes them particularly adapt at capturing nonlinear or complex system behaviors.However, their performance heavily depends on the quality and quantity of the training data.

6Despite their strengths in accurately characterizing static properties of motors under known conditions, offline modeling methods face notable limitations.The modeling process often requires extensive experimental data, which is timeconsuming to collect and process.Furthermore, static models struggle to adapt to dynamic environmental changes, such as temperature, humidity, or operational cycles [17].For example, motor aging, temperature variations [18], or production tolerances [19] can degrade model accuracy, leading to significant estimation errors.Moreover, offline methods lack the ability to adjust model parameters in real time during long-term motor operation, rendering them unsuitable for dynamic working conditions.

B. ONLINE MODELING METHODS

7Online modeling methods enable real-time updates of motor models, allowing them to adapt to environmental changes and adjustments to dynamic motor state.Common approaches include the Kalman filter [20] and recursive least squares (RLS) [21], [22], which primarily estimate physical parameters such as L d , L q , stator resistance R s , and flux linkage ψ p .Nevertheless, online modeling methods face two significant challenges: model inaccuracy and rank deficiency.

8Model inaccuracy arises from the complex coupling relationships among PMSM parameters and nonlinear effects [44], such as magnetic saturation and cross-coupling.For instance, Liu et al. [45] demonstrated that two-way magneto-mechanical coupling and nonuniform spline clearance can significantly degrade torque prediction accuracy.Rank deficiency, on the other hand, occurs when the number of equations in the voltage model is insufficient to uniquely determine all required parameters [23].This issue is often mitigated by fixing certain parameters, such as setting the rotor flux linkage λ r to a nominal value, but these remain dependent on specific assumptions, limiting their generalizability in real-time applications.

9Despite these advancements, conventional methods still suffer from computational inefficiencies and limited estimation accuracy.To address these challenges, advanced methods have been explored.High-frequency signal injection and recursive least squares techniques have been employed for real-time identification of resistance [37], flux linkage, and inductance [21], [22].Additionally, studies have integrated motor operating states with experimental data, using parameter sensitivity analysis to enhance identification precision [25] and improve high-frequency injection noise characterization [4].Despite these advancements, conventional methods still suffer from computational inefficiencies and limited estimation accuracy.Data-driven methods, particularly those based on deep learning, have emerged as promising alternatives to address the challenges of model inaccuracy and rank deficiency.In the context of PMSM systems, convolutional neural networks have shown strong potential for improving fault diagnosis and adaptive modeling [27].In parallel, deep reinforcement learning has been effectively applied to adaptive control problems, demonstrating its promise for realtime PMSM parameter estimation [41].Physics-informed neural networks (PINNs), in particular, have demonstrated improved computational efficiency and accuracy in systemlevel simulations [38].Recent advances have also introduced robust uncertainty quantification techniques for PINNs, effectively addressing noise in both inputs and outputs and thereby increasing their reliability in practical scenarios [39].Furthermore, incorporating weighted loss functions in PINNs has proven effective in improving stability and prediction accuracy under dynamic and uncertain environments [40].The application of PINNs in control system modeling is also gaining momentum, with several studies exploring their effectiveness in PMSM-related dynamics and control [42], [43].

10Despite these advances, data-driven approaches still face practical challenges.A major limitation is the reliance on labeled data-particularly torque measurements-which are often unavailable in real-time industrial settings, making conventional supervised learning approaches infeasible.To circumvent this, some studies have attempted to predict intermediate variables, such as inverter nonlinear voltage [24] or flux linkage using tailored loss functions [26], [28].However, these methods often depend on restrictive assumptions, which may not hold under varying operating conditions.Therefore, developing an accurate and generalizable online modeling framework that avoids direct dependence on torque labels, while still fully leveraging the representational power of neural networks, remains an open and critical research challenge.

C. MAIN CONTRIBUTIONS

11This paper proposes a data-driven online torque prediction method based on PINNs, as illustrated in Fig. 1.The method achieves real-time torque prediction by learning motor physical parameters and incorporating physical information, such as motor equations, into the neural network framework.The main contributions of this work are as follows:

121) Physics-Informed Learning: By embedding physical principles into the neural network, the proposed method overcomes the challenges of supervised learning, particularly the lack of real-time feedback, enabling effective online learning without the need for manual model adjustments.2) Enhanced Physical Interpretability: Outputting motor parameters instead of direct torque predictions enables higher interpretability, efficient torque control, and safety threshold prediction.It also allows This approach maximizes the utilization of offline data and ensures high initial model accuracy while enabling continuous improvement through online updates.

II. FUNDAMENTAL THEORIES IN PMSM MODELING A. PMSM MATHEMATICAL MODEL

13The mathematical modeling of PMSM dynamics forms the foundation for motor control and performance analysis.

14To simplify analysis, coordinate transformations and linearized models are commonly employed.

1) COORDINATE TRANSFORMATIONS

15The three-phase abc currents are transformed into the stationary αβ frame using the Clarke transformation (Eq.1), and further into the rotating dq frame via the Park transformation (Eq.2).These transformations facilitate the representation of motor dynamics in a simplified reference frame.

162) LINEARIZED PMSM MODEL Assuming low magnetic saturation, the linearized PMSM model describes the relationship between stator voltage, flux linkage, and currents.The dynamic state-space equations (Eq. 3) and the torque equation (Eq.4) capture the key behaviors:

17)

18Offline parameter identification estimates motor parameters (R s , L d , L q , m ) by discretizing the voltage equations and applying least squares estimation (Eq.5).This approach minimizes the error between observed and predicted voltages to achieve high accuracy under static conditions.

19Although offline methods are effective for static environments, they lack adaptability under dynamic conditions, emphasizing the need for online learning methods.

C. ONLINE PARAMETER IDENTIFICATION METHOD

20In the proposed online identification method, the nonlinear PMSM model considering magnetic saturation is employed.By discretizing the electrical equations, the voltage difference equations are derived to perform parameter identification.Real-time estimation of motor parameters is achieved using RLS regression.The following describes the key steps of this method:

1) DISCRETE VOLTAGE EQUATIONS

21Based on the electrical equations of PMSM, the voltage difference equations are expressed as [29]: (6) 196798 VOLUME 13, 2025 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

22where key parameters are defined as follows:

23• i dq [k]: d-axis and q-axis current components;

24• i dq [k + 1]: variation of current components;

25• L dq : inductance matrix;

26• R s : stator resistance; • T s : sampling time;

27• u dq [k]: d-axis and q-axis voltage components;

28• ω[k]: rotor angular velocity;

29• ψ dq : flux linkage vector;

30• T dq αβ and I : coordinate transformation matrix and identity matrix, respectively.

2) RECURSIVE LEAST SQUARES ESTIMATION

31The RLS algorithm is used to estimate θ d and θ q by minimizing the cumulative squared error between the observed and predicted current variations:

32where e[k] is the error term.The parameter update rule is defined as:

33with the gain matrix K [k] computed as:

34Here, P[k] is the covariance matrix, λ is the forgetting factor, and ξ [k] is the regression vector.This method ensures efficient real-time parameter updates while maintaining numerical stability.

3) ALGORITHM OVERVIEW

35The complete online identification process is outlined in Algorithm 1.

36Algorithm 1 Online RLS Parameter Identification 1: Input: Forgetting factor λ, initial parameters θ dq [0], covariance matrix P[0] 2: while System is operational do

37Compute gain matrix:

38Update parameters:

39Update covariance matrix:

409: end while

D. OFFLINE SUPERVISED LEARNING-BASED MODELING

41The offline modeling process utilizes a supervised learning framework [30], relying on a dataset with torque feedback.The inputs include d-axis current (i d ), q-axis current (i q ), daxis voltage (u d ), q-axis voltage (u q ), and rotor speed (ω), while the output is the torque (T e ).The objective is to train a predictive model capable of estimating the torque based on the input conditions.The workflow is illustrated in Fig. 2.

1) MODEL REPRESENTATION

42The predictive model is represented as:

43where x = [i d , i q , u d , u q , ω] represents the input features, w are the model parameters, and Te is the predicted torque.For a deep learning model, f (•) is typically a neural network.

2) LOSS FUNCTION AND OPTIMIZATION

44The model parameters w are optimized by minimizing the mean squared error (MSE) loss function:

45where N is the total number of training samples,

46e is the ground truth torque for the i-th sample, and T (i) e is the corresponding predicted torque.The model parameters are updated using gradient descent:

47where η is the learning rate.

3) WORKFLOW

48The offline modeling process consists of the following stages:

4) ADVANTAGES AND LIMITATIONS

49Offline supervised learning-based methods excel at capturing static nonlinear relationships in high-quality datasets.However, they face limitations in adapting to dynamic environmental changes and rely heavily on the availability of labeled data.

III. PROPOSED PINN METHOD

50The proposed method integrates physical laws into the neural network's training process by embedding governing equations directly into the loss function [31].Specifically, in this study, the fundamental voltage and torque equations of the PMSM are used as constraints to enhance the neural network's parameter learning and prediction capabilities.

A. EMBEDDING MOTOR EQUATIONS IN THE NETWORK

51The most innovative aspect of the proposed method is the embedding of the motor's physical equations into the network.This is achieved by incorporating the PMSM voltage and torque equations directly into the loss function.

52In the online learning phase, where torque feedback is unavailable, the network relies on voltage residuals to compute the loss and update the parameters.This loss function directly incorporates the motor's governing equations, ensuring that the network's predictions remain consistent with the physics of the system.The embedding of physical laws into the learning process not only enhances the model's prediction accuracy but also improves its physical interpretability, making the model's behavior easier to understand and validate against physical expectations.

B. NETWORK ARCHITECTURE AND STRUCTURE

53The network architecture is designed to balance the stability of physical parameters and the adaptability of dynamic parameters.As shown in Figure 4, the architecture consists of shared layers for stable parameters, which are learned during offline training, and independent output towers for dynamic parameters, which are updated during online learning.This design enables the model to efficiently adapt to real-time changes in operating conditions, while maintaining consistency with physical laws.During the initial phase of profile changes in online updates, prediction errors tend to be larger.To address this, we designed the architecture with shared layers to capture the stable aspects and independent output towers to handle dynamic parameters such as q-axis inductance and flux linkage.This structure allows the model to adapt more effectively during transitions between different operating conditions by enabling faster convergence and reducing errors during profile changes.

C. OFFLINE-ONLINE COMBINED TRAINING AND MULTI-LABEL STRATEGY

54The training process is divided into two phases: offline pretraining and online updates.In the offline phase, we pretrain the model using long-term data to initialize the model's weights.After the pretraining, the model is ready for online operation.During online updates, the pretrained model and hyperparameters are loaded, and the model is updated based on real-time, filtered data.The model is then used to make predictions while continuously adapting to the new incoming data.

55A key component of this approach is the multi-label training strategy.In the offline phase, we use torque feedback as the primary training label, while in the online phase, we combine voltage residuals as additional labels.This allows the model to better generalize by leveraging both labeled (offline) and unlabeled (online) data.The use of multiple labels enhances the model's robustness, allowing it to handle situations where torque feedback is unavailable during online operation.

1) OFFLINE LEARNING

56In the offline phase, torque feedback (T e ) is available.The network is trained to minimize the residuals of the motor's physical equations while simultaneously fitting the experimental data.The loss function is defined as:

572) ONLINE LEARNING

58In the online phase, direct torque feedback is unavailable.

59Voltage residuals are used to compute the loss and update the network in real time:

60To ensure stable and accurate real-time updates, several considerations are essential.The update interval (w in ) must strike a balance between real-time performance and computational cost, ensuring timely updates without overloading the system.Input filtering is applied to mitigate noise in the input signals, enhancing model stability and reducing the impact of measurement errors.Additionally, using recent historical data for mini-batch training improves model robustness and helps smooth abrupt transitions, enabling the model to adapt effectively to dynamic operating conditions.

D. ONLINE LEARNING ALGORITHM

61The pseudocode for the online PINN learning process is provided in algorithm 2.

62The proposed PINN framework effectively combines physical principles and data-driven learning to enhance parameter prediction and torque estimation.Its ability to adapt to real-time data while maintaining consistency with physical laws makes it a robust solution for online motor modeling.

IV. EXPERIMENTATION

63In this section, we present the experimental setup and evaluation of the proposed online PINN method for torque prediction.The main objective is to demonstrate the effectiveness of the PINN approach in real-time dynamic conditions and its advantages over traditional methods.The experiments were conducted using a computing system equipped with an NVIDIA RTX 4070Ti GPU and CUDA 12.3 for parallel computation.

A. EXPERIMENTAL DATASET

64The experimental dataset used in this study originates from a publicly available source [32], which includes output Compute voltage residuals:

65Compute loss:

66Update model parameters using gradient descent:

67Evaluate model performance on the most recent w in samples 9:

68Retain the model with the best performance in the validation window 10: end while torque measurements under various operating conditions.The dataset contains variables such as currents (i d , i q ), voltages (u d , u q ), and rotor speed (ω r ), as detailed in Table 1.All data were preprocessed to remove noise and normalized to ensure consistency across operating conditions.The dataset comprises 72 operating conditions sampled at 2 Hz, spanning a total of 184 hours.It is divided into three subsets for comprehensive evaluation: • Online Testing Dataset: Comprising the remaining 32 operating conditions, this subset is reserved for simulating real-world scenarios and evaluates the model's generalization capabilities.The separation of offline and online datasets is designed to reflect real-world deployment, where the model is trained on historical data and tested on unseen conditions with intentional distribution shifts.

B. OFFLINE TORQUE PREDICTION VALIDATION

69The proposed offline prediction methods were evaluated using the test bench dataset to validate their effectiveness.We compared two approaches: the least squares method and a neural network-based supervised learning method.

70Using the RLS method, we identified four key motor parameters for torque prediction.However, this method struggles under nonlinear or high-load conditions, resulting in significant prediction errors.In contrast, the neural networkbased method demonstrated superior performance across most operating conditions.

71The FNN architecture demonstrated superior torque prediction accuracy (MAE = 0.77N•m, Table 2), attributable to two synergistic factors:

72• Architectural Suitability: The feedforward structure's simplicity (vs.RNN/CNN) provides inherent noise robustness [46], crucial for handling sensor measurement uncertainties in the raw torque signals.

73• Systematic Optimization: Through Optuna's Bayesian optimization framework [47], we automated hyperparameter tuning with 100 trial iterations, converging to configurations balancing model capacity and regularization (Table 3).This combination of deliberate architecture selection and data-driven optimization establishes a rigorous baseline for evaluating our PINN enhancements.

C. ONLINE MODELING USING RLS

74The least squares method predicts torque by updating motor parameters in real time using voltage and current measurements.This method was evaluated under dynamic and steady operating conditions to assess its effectiveness for online torque prediction.

75The method exhibited significant prediction errors, especially under dynamic conditions with rapidly changing loads, where current and voltage signals approached zero.Numerical instability due to noise amplification further exacerbated the issue, leading to parameter divergence.

76To address these challenges, the following strategies were implemented:

77• Thresholding Small Signals: Parameter updates were suspended when the amplitude of current or voltage signals fell below predefined thresholds to avoid noise amplification.Specifically, the threshold was set as 1% of the signal mean (Threshold = 0.01 × Mean), calculated based on the standard deviation of the signals.This approach effectively prevents error accumulation under low signal amplitudes while ensuring updates occur within the normal signal range.

78196802 VOLUME 13, 2025 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

79• Smoothing Filters: The Savitzky-Golay filter was applied to smooth current signals and improve the stability of derivative calculations.The filter was configured with a window length of 11 and a polynomial order of 3.This setup effectively reduces noise while preserving the dynamic characteristics of the signals, enhancing the model's adaptability to rapidly changing conditions.

80• Forgetting Factor: A forgetting factor (λ = 0.98) was used during recursive updates to gradually reduce the influence of historical data on current model updates.

81The choice of λ was based on experimental validation: excessively large values reduce adaptability to new data, while overly small values may cause parameter oscillations.The selected value of 0.98 strikes a good balance between stability and adaptability.Figure 7 illustrates the improved performance, with reduced errors during steady-state conditions.However, larger errors persisted at the initial stages of operating condition transitions.

D. PERFORMANCE EVALUATION OF THE PINN METHOD

82The proposed online PINN method integrates physical constraints within the neural network to predict motor torque, implementing the theoretical framework of parameter separation.Initial experiments with FNN architectures showed poor convergence (MAE >3.2 N•m) during operating condition transitions due to unconstrained parameter updates.To address this, our multi-task architecture materializes this construct through shared layers and dynamic output towers, which balance stability and adaptability in real-time applications.

83The training process is divided into offline pretraining and online updates.In the offline phase, long-term data are used to initialize the model's weights.Our experiments revealed that using only torque feedback during offline pretraining yielded better performance, as it directly utilizes torque as the target value for loss calculation, which is more effective for training regression models.Additionally, the training process incorporates a multi-label strategy, combining offline torque feedback with voltage residuals to enhance prediction accuracy.This approach ensures that the model leverages the advantages of both supervised learning during offline training and physics-informed constraints during online updates, resulting in improved generalization and adaptability in dynamic conditions.

84Meanwhile, hyperparameters such as learning rate and batch size were optimized using Optuna, which are listed in Table 4.In the online learning phase, we perform an update every Update Interval data points.Each time, we use the most recent History data points to train the model for multiple epochs.The model selection process is based on performance evaluation using the latest Update Interval samples, ensuring that the best-performing model in this validation window is retained for future predictions.Furthermore, we analyze the effect of two key hyperparameters, the size of the Update History window and the interval of the update, on both the model accuracy and the training time.As shown in Figure 9, increasing the History window size generally leads to a lower MAE, as more historical data provides better generalization.Similarly, a shorter UpdateIntervalWin allows more frequent model updates, improving adaptation to system changes.However, excessively high update frequencies can lead to model instability, causing larger maximum errors.This instability arises because frequent updates may amplify noise or overfit to transient fluctuations in the data.These findings highlight the inherent trade-offs between model performance and computational cost.

85While more data and frequent updates enhance accuracy, we must consider computational feasibility, particularly in real-time embedded deployment.If the training time per update exceeds the update interval itself, real-time execution becomes infeasible.In our selected configuration (HistoryWin = 128, UpdateIntervalWin = 16), the model completes 3 training epochs in approximately 1 second, which corresponds to two sampling intervals.This tradeoff is acceptable, ensuring both real-time performance and high prediction accuracy.To address the potential instability caused by excessively high update frequencies, we have added relevant discussions in the experimental section, emphasizing the need to balance real-time performance and accuracy in practical applications.

86Table 6 compares the advantages, disadvantages, and applicable scenarios of different torque prediction methods.The PINN Online method demonstrates significant advantages in accuracy and dynamic adaptability, making it the best choice for real-time prediction tasks under complex dynamic conditions.In contrast, Offline RLS and Online RLS methods, while computationally efficient, exhibit lower prediction accuracy under complex conditions and are more suitable for simpler scenarios.The Offline DL method excels in static conditions but lacks the adaptability required for real-time applications.Overall, the PINN Online method strikes a good balance between real-time performance and accuracy, making it the optimal choice for challenging dynamic environments.

V. DISCUSSION A. PERFORMANCE ANALYSIS

87The proposed PINN approach demonstrated high accuracy and fast convergence in online torque prediction.As shown in the experimental results, PINN significantly reduced prediction errors during dynamic operating condition transitions compared to RLS-based methods.By integrating physical principles with data-driven techniques, PINN effectively captured dynamic motor parameter variations, providing a robust solution in scenarios where torque sensors are unavailable.

88A notable limitation of the PINN method is the higher maximum error during the initial phase of operating condition transitions, caused by significant changes in motor characteristics and the time required for the online model to adapt.This sensitivity highlights the need for improved online update mechanisms.Potential solutions include predictive adjustments for condition changes, incorporating historical data to enhance stability [33], or leveraging a hybrid offlineonline strategy where the offline-trained model provides outputs during transition phases to mitigate initial errors [34], [35].

89While PINN excels in torque prediction, the identification of individual motor parameters remains challenging.For instance, certain parameters, such as stator resistance (R s ), may deviate from their true values.Incorporating R s as a known parameter in the loss function can improve the accuracy of other parameter estimates.A modified loss function is proposed: (17) This approach mitigates initial prediction errors caused by incorrect parameter estimates during online updates.For offline methods, larger datasets generally improve performance by reducing overfitting and enhancing generalization.This is particularly beneficial for deep learning models, which rely heavily on diverse and extensive training data to capture complex system behaviors.However, for the proposed online PINN method, the impact of larger datasets is less pronounced.While larger datasets slightly improve the initial offline-trained model, the improvement is marginal during online updates.In some cases, larger datasets can even lead to increased maximum errors during online prediction due to overfitting to the offline data, which reduces the model's adaptability to real-time changes.The convergence time constant τ is derived from exponential fitting of the error decay envelope e(t) = e 0 exp(−t/τ ) during the post-disturbance phase.This accelerated adaptation originates from two inherent advantages of our architecture: the dual-pathway design creates separated gradient manifoldsshared layers preserve stable electromagnetic relationships through frozen weights, while independent towers enable focused adaptation of dynamic parameters.Additionally, the physical loss component ∥∇L physics ∥ provides geometrically constrained update directions.

C. ADAPTABILITY TO SUDDEN OPERATING CHANGES

90However, there are certain extreme scenarios where the PINN method does not perform as well during the early stages of transitions.In scenarios with extremely high transition frequencies, the complex network structure of PINN requires more computational resources and time for online updates.This can lead to update delays, preventing the model from adjusting weights in time and reducing its adaptability.Furthermore, while the physical constraints enhance the model's generalization ability, they may limit flexibility under extreme transition conditions, causing the update direction to deviate from the optimal path.Additionally, larger initial errors during transitions can amplify subsequent update deviations, slowing down the model's convergence.

91Overall, while the PINN method demonstrates superior performance in most abrupt transition scenarios, RLS, with its simpler recursive formula and lower computational complexity, can respond more quickly under high-frequency transitions.These findings highlight the trade-offs between model complexity, computational efficiency, and adaptability in dynamic environments.Future work could explore strategies to mitigate these limitations, such as predictive adjustments for condition changes or hybrid offline-online strategies to improve initial response during transitions.

D. REAL-TIME COMPUTATIONAL OVERHEAD

92In embedded systems, computational efficiency is critical for real-time deployment.We compared the inference time of different methods on our experimental platform, including raw implementations, ONNX-based deployment, and ONNX-optimized versions, as illustrated in Figure 11.

93From the results, we observe that RLS Online is the fastest method, with an average inference time of 0.565 ms, benefiting from its simple recursive formulation.For the PINN Online method, inference time is naturally higher at 3.121 ms, given its more complex physics-informed architecture.Deploying the PINN model with ONNX reduces the execution time to 2.28 ms (27% faster), while further ONNX optimization brings it down to 1.59 ms (49% faster).These improvements demonstrate the effectiveness of ONNX acceleration, particularly for deep learning models deployed on resource-constrained hardware.It is important to note that while ONNX deployment and optimization significantly accelerate inference, PINN's online updates still require PyTorch-based weight updates.Converting the updated model to ONNX and re-optimizing it after every online update could introduce additional overhead, making it potentially slower than directly using PyTorch in some cases.

94To further evaluate real-time feasibility, we deployed the models on an NVIDIA Jetson Orin NX platform.Compared to the 4070Ti testbed, the inference time significantly increased due to the limited computational resources of embedded hardware.As shown in Table 8, the FNN ONNX Optimized model achieves the lowest inference time, while PINN Online remains computationally intensive, making real-time deployment challenging.Even after ONNX optimization, PINN ONNX Optimized still takes 16.12 ms, which may be unsuitable for high-frequency control loops.

95In practical deployment scenarios, selecting an appropriate update interval is crucial to balancing adaptation capability and computational cost.A longer update interval reduces the computational burden while maintaining sufficient adaptability.Additionally, controlling the history window size ensures that model updates are efficient without excessive overhead.When frequent adaptation is unnecessary, an offline-trained FNN model, such as the ONNX Optimized version with an inference time of 11.16 ms, provides a good trade-off between computational efficiency and prediction accuracy.

VI. CONCLUSION AND FUTURE WORK

96This paper presents a PINN framework for real-time motor torque prediction, establishing a novel dual-phase learning paradigm that synergizes offline pre-training with online adaptation.Three key advancements emerge from our experimental validation: First, the achieved 0.7745 N•m MAE (0.3% of full-scale torque) establishes new precision benchmarks for enhanced-precision torque control and online torque monitoring.Second, experimental measurements indicate convergence within 3 seconds during abrupt condition transitions, demonstrating enhanced dynamic adaptability that fulfills industrial real-time control requirements.Third, our dual-pathway architecture-integrating physical constraints with data-driven updates-provides a principled solution to the stability-plasticity dilemma in online learning systems.These technical merits translate to practical values in peak torque prediction and fault diagnosis, particularly for electric vehicles experiencing rapid load variations.

97Despite these advancements, challenges remain in accurately identifying motor parameters like stator resistance and flux linkage, as well as improving adaptability to rapid system changes.Additionally, this study is limited by the lack of experimental validation for scenarios involving significant parameter drift or motor aging, as the publicly available datasets used in our experiments do not include such conditions.While the proposed online PINN method is theoretically capable of adapting to changing system dynamics through real-time updates, its practical effectiveness under these conditions remains unverified.

98Future work will focus on addressing these challenges through advanced optimization techniques, extending multitask learning, and developing scalable strategies to reduce computational costs, enabling real-time deployment in complex motor control systems.Furthermore, real-world deployment constraints, such as limited computational resources on embedded systems, require careful consideration of update frequency and historical data size to balance real-time performance and computational efficiency.

APPENDIX DETAILED MATHEMATICAL DERIVATIONS

99This section provides the detailed mathematical derivations and models omitted from the main text for brevity.These include the cross-saturation model and the step-by-step linear regression derivation for offline parameter identification.

A. PMSM MODEL CONSIDERING CROSS-SATURATION

100Under high magnetic saturation, the motor's inductance and flux linkage become functions of the currents i d and i q , leading to a nonlinear model.The voltage and flux linkage equations are expressed as: (u d − ψ φ (i d , i q )ω) − i α iq = R s L q (i d , i q ) (u q − ψ φ (i d , i q )ω) − i β (18)

1012) FLUX LINKAGE EQUATIONS (CONSIDERING SATURATION EFFECTS) ψd = L d (i d , i q )i d + L q (i d , i q ) sin(θ)i q ψq = L d (i d , i q )i q − L q (i d , i q ) cos(θ)i d (

B. STEP-BY-STEP LINEAR REGRESSION DERIVATION

102To facilitate parameter identification, the voltage equations in the dq-axis were discretized into a linear regression model.The process is detailed below:

103196806 VOLUME 13, 2025 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

2) LINEARIZED MODEL FOR PARAMETER IDENTIFICATION

104The linearized regression model is expressed as:

105−ω e i q 0 θ V q = i q ω e i d di q dt ω e θ

106where θ = [R s , L d , L q , m ] T represents the unknown parameter vector.

C. STATISTICAL VALIDATION

107The Kolmogorov-Smirnov (KS) test quantifies distribution similarity between datasets, where D < 0.045 indicates statistical equivalence (α = 0.05).As shown in

FIGURE 1 .

108FIGURE 1. Overview of the process: data collection, model training, and controller implementation, highlighting offline initialization and online updates with a multi-label training strategy.

FIGURE 2 .

109FIGURE 2. Simplified scheme of the offline modeling process.

FIGURE 3 .

110FIGURE 3. PINN framework integrating physical equations and data-driven learning.

FIGURE 4 .

111FIGURE 4. Network architecture of the proposed PINN method, with stabilized parameters (purple) and dynamically updated parameters (pink).

Algorithm 2

112Online PINN Learning Algorithm 1: Input: Pre-trained model weights, learning rate η, historical data (optional), update interval w in , history window size w hist 2: while System is operational do 3: Perform mini-batch training on historical data 4:Collect real-time data: i dq , u dq , ω 5:

•

113Offline Training Dataset: Includes data from the first 40 operating conditions, with each condition split into training (60%) and validation (40%) subsets.The division into training and validation subsets is based on ensuring a balanced representation of operating conditions to prevent overfitting and to evaluate generalization performance.

Figure 5

114Figure 5 visualizes the dataset division, while Figure 6 provides speed-torque heatmaps illustrating the distribution of operating conditions across the three subsets.Distributional consistency was verified via Kolmogorov-Smirnov tests (Appendix D), with all D-statistics below the 0.045 critical threshold for training-validation comparisons.Intentional distribution shifts in testing data (max D=0.217) emulate realworld generalization challenges.

FIGURE 5 .

115FIGURE 5. Dataset split: training (red), validation (green), and online testing (blue) datasets.

FIGURE 6 .

116FIGURE 6. Speed-torque heatmaps showing the distribution and variability across the full dataset, training, validation, and online testing subsets.

FIGURE 7 .

117FIGURE 7. Improved least squares method performance for online torque prediction, with vertical dashed lines indicating operating condition transitions.

118The experimental results demonstrate the superior performance of the proposed PINN framework compared to baseline methods.As summarized in Table5, the PINN method achieved the lowest mean absolute error (MAE = 0.77 N•m) and root mean square error (RMSE = 1.64 N•m) on the online testing dataset, along with a 31% reduction in maximum error (59.08 N•m vs. 85.42N•m in Online RLS).These quantitative improvements translate to critical operational benefits: The sub-1 N•m MAE ensures accurate torque monitoring for overload prevention during sudden load changes, directly enhancing system safety.Combined with the reduced RMSE, this precision enables more efficient current control by minimizing unnecessary corrections from torque estimation errors.

FIGURE 8 .

119FIGURE 8. Comparison of MSE and RMSE for different methods on the online testing dataset, highlighting the superior performance of the proposed PINN method (red).

FIGURE 9 .TABLE 6 .

120FIGURE 9. Effect of update interval and history window length on model performance.TABLE 6. Torque prediction methods: comparison of advantages and disadvantages.

121B. ROBUSTNESS TO LIMITED OFFLINE DATAThe robustness of PINN was evaluated under reduced offline training data.Results demonstrate that PINN maintains strong performance during online updates, achieving minimal performance degradation compared to offline deep learning (DL) methods.

FIGURE 10 .

122FIGURE 10.Transient performance comparison during condition changes, showing faster steady-state achievement by PINN (red) compared to RLS (blue).Sudden operating condition changes rigorously test the stability and adaptability of online systems.As shown in Figure10, both methods exhibit initial prediction errors during transitions, but PINN achieves 47% faster convergence (τ = 2.8 s vs. 5.1 s for LS) through targeted parameter updates.The convergence time constant τ is derived from exponential fitting of the error decay envelope e(t) = e 0 exp(−t/τ ) during the post-disturbance phase.This accelerated adaptation originates from two inherent advantages of our architecture: the dual-pathway design creates separated gradient manifoldsshared layers preserve stable electromagnetic relationships through frozen weights, while independent towers enable focused adaptation of dynamic parameters.Additionally, the physical loss component ∥∇L physics ∥ provides geometrically constrained update directions.However, there are certain extreme scenarios where the PINN method does not perform as well during the early stages of transitions.In scenarios with extremely high transition frequencies, the complex network structure of PINN requires more computational resources and time for online updates.This can lead to update delays, preventing the model from adjusting weights in time and reducing its adaptability.

FIGURE 11 .

123FIGURE 11.Prediction time comparison across different methods.

124i d , i q )

TABLE 1 .

125Dataset variables and descriptions.

TABLE 2 .

126Performance comparison of network architectures.

TABLE 3 .

127Optimal FNN hyperparameters.

TABLE 4 .

128PINN hyperparameters for online and offline training.

TABLE 5 .

129Performance metrics comparison across methods.

Table 7

130highlights that PINN exhibits smaller performance drops in MAE, RMSE, and Max Error than offline DL, showcasing its adaptability to limited offline data scenarios.

TABLE 7 .

131Performance and drop% on online test dataset with limited offline data.

TABLE 8 .

132Inference time comparison on NVIDIA Jetson Orin.

Table 9

133, the training-validation comparisons exhibit D < 0.024 across all variables, ensuring reliable model validation.The intentionally higher test set D-values (0.177 − 0.218) simulate realworld distribution shifts while maintaining critical operating region overlaps.

TABLE 9 .

134Kolmogorov-Smirnov test: dataset distribution results.

참고문헌

참고문헌 정보가 없습니다.