Next Article in Journal
Improvement and Validation of Transient Analysis Code FRTAC for Liquid Metal-Cooled Fast Reactors
Previous Article in Journal
Differential Mechanisms of Tight Sandstone Reservoirs and Their Impact on Gas-Bearing Characteristics in the Shaximiao Formation, Southwestern Sichuan Basin
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development of a Digital Twin of a DC Motor Using NARX Artificial Neural Networks

1
Department of Electrical Engineering and Electronics, National University “Odessa Maritime Academy”, Didrikhson Str., 8, 65052 Odesa, OR, Ukraine
2
Electric Energy Department, Railway Research Institute, 50 Józefa Chłopickiego Street, 04-275 Warsaw, Poland
3
Department of Security Education, War Studies University, av. Chruściela 103, 00-910 Warsaw, Poland
4
John Paul II Academy in Biała Podlaska, Rector’s Office, Sidorska Str. 95/97, 21-500 Biała Podlaska, Poland
5
Department of History of Kazakhstan and General Educational Disciplines, Faculty of Economics and Construction, Non-Profit Joint-Stock Company “Karaganda Industrial University”, Republic Avenue, 30, 101400 Temirtau, KR, Kazakhstan
6
Department of Electrical Engineering, Faculty of Electomechanic and Electrometallurgy, Dnipro Metallurgical Institute, Ukrainian State University of Science and Technologies, 2 Lazaryana Street, 49000 Dnipro, DR, Ukraine
7
Department of Cyberphysical and Information-Measuring Systems, Faculty of Electrical Engineering, Institute of Power Engineering, Dnipro University of Technology, 19 Dmytro Yavornytskyi Avenue, 49005 Dnipro, DR, Ukraine
8
Department of Artificial Intelligence Technologies, Faculty of Energy, Transport and Management Systems, Non-Profit Joint-Stock Company “Karaganda Industrial University”, Republic Avenue, 30, 101400 Temirtau, KR, Kazakhstan
*
Authors to whom correspondence should be addressed.
Energies 2025, 18(24), 6502; https://doi.org/10.3390/en18246502
Submission received: 27 October 2025 / Revised: 24 November 2025 / Accepted: 9 December 2025 / Published: 11 December 2025
(This article belongs to the Section F5: Artificial Intelligence and Smart Energy)

Abstract

This study presents the development process of a digital twin for a complex dynamic object using Artificial Neural Networks. A separately excited DC motor is considered as an example, which, despite its well-known electromechanical properties, remains a non-trivial object for neural network modeling. It is shown that describing the motor using a generalized neural network with various configurations does not yield satisfactory results. The optimal solution was based on a separation into two distinct nonlinear autoregressive with exogenous inputs (NARX) artificial neural networks with cross-connections for the two main machine variables: one for modeling the armature current with exogenous inputs of voltage and armature speed, and another for modeling the angular speed with inputs of voltage and armature current. Both neural networks are characterized by a relatively small number of neurons in the hidden layer and a time delay of no more than 3 time steps. This solution, consistent with the physical understanding of the motor as an object where electromagnetic energy is converted into thermal and mechanical energy (and vice versa), allows the model to be calibrated for the ideal no-load mode and subsequently account for the influence of torque loads of various natures and changes in the control object parameters over a wide range. The study demonstrates that even for modeling an object such as a DC electric drive with cascaded control, reducing errors at the boundaries of the known operating range requires generating test signals covering approximately 120% of the nominal speed range and 250–400% of the nominal current. Analysis of various test signals revealed that training with a sequence of step changes and linear variations across the entire operating range of armature current and speed provides higher accuracy compared to training with random or uniform signals. Furthermore, to ensure the neural network model’s functionality under varying load torque, a mechanical load observer was developed, and a model architecture incorporating an additional input for disturbance was proposed. The SEDCM_NARX_LOAD neural network model demonstrates a theoretically justified response to load application, although dynamic and static errors arise. In the experiment, the current error was 7.4%, and the speed error was 0.5%. The practical significance of the research lies in the potential use of the proposed model for simulating dynamic and static operational modes of electromechanical systems, tuning controllers, and testing control strategies without employing a physical motor.

1. Introduction

The digital twin (DT) concept has become a cornerstone of Industry 4.0, offering transformative potential for electric drive systems. By creating high-fidelity virtual replicas of physical motors, DTs enable real-time simulation, predictive maintenance, advanced controller tuning, and system optimization without the need for physical prototypes. This is particularly valuable for complex electromechanical systems operating under dynamic and variable conditions, such as rolling mill drives.
For modeling the nonlinear dynamics of such systems, data-driven approaches, particularly Artificial Neural Networks (ANNs), have shown significant promise. Among these, Nonlinear AutoRegressive with eXogenous inputs (NARX) networks are highly suited for modeling dynamic systems due to their inherent memory and ability to capture complex temporal dependencies. Their successful application spans various domains, including power system control, load forecasting, and robotic system identification.
When applying NARX networks to create a DT for a classic electromechanical object like a Separately Excited DC Motor (SEDCM), several challenges emerge. First, while the motor’s physics are well-described by ordinary differential equations, creating a single, generalized NARX model that accurately captures the coupled yet distinct dynamics of both armature current and rotational speed often leads to suboptimal accuracy and poor generalization. Second, the model’s performance is critically dependent on the training data regime. Inadequate data that do not cover the full range of operational states—including extreme transients and load disturbances—result in a DT that fails outside its training envelope. Third, to be practically useful, a motor DT must effectively account for external disturbances, primarily load torque, which is often an unmeasured variable in real systems.
Consequently, while existing literature demonstrates the viability of NARX networks for system identification and highlights the benefits of DTs for drives, a significant research gap remains in developing practically robust NARX-based DTs for electric motors. Key unresolved issues include: defining a physically interpretable network architecture that mirrors the motor’s energy conversion processes, establishing methodologies for generating comprehensive training signals that guarantee model stability and accuracy across the entire operational range, and integrating mechanisms to handle unmeasured disturbances like load torque without compromising model fidelity.
The aim of this work is to develop a high-fidelity, robust digital twin of a separately excited DC motor by addressing these specific gaps. The core novelty and contributions of our approach are as follows:
  • We propose a novel DT architecture based on two cross-connected NARX networks, explicitly separating the modeling of armature current and angular speed. This design aligns with the physical principle of electromechanical energy conversion within the motor.
  • We provide a rigorous analysis and justification for the required scope of training data, demonstrating that signals must cover approximately 120% of the nominal speed and 250–400% of the nominal current range to ensure model reliability at operational boundaries.
  • We demonstrate that structured “industrial” training signals (combining steps and ramps) yield superior model accuracy and generalization compared to random signals.
  • We enhance the DT’s practicality by integrating a mechanical load torque observer, enabling the model to respond correctly to unmeasured external disturbances.
The remainder of this paper is structured as follows. Section 3 outlines the problem statement and provides preliminaries on NARX networks and the SEDCM mathematical model. Section 4 details the process of creating and training the dual NARX network model. Section 5 presents the results and a comprehensive discussion of the model’s performance under various conditions, including load disturbances. Finally, Section 6 concludes the study and suggests directions for future work.

2. Literature Review

The concept of the digital twin has gained traction in electric drive systems, aiming to create virtual replicas of motors that mirror real-time behavior for analysis, control, and prediction. Early implementations in this domain have demonstrated the benefits of integrating high-fidelity models with sensor data and AI methods. For example, Ebadpour et al. developed digital-twin models for motor drives using Extended Kalman Filters and robust controllers, achieving improved state estimation and stable operation under adverse conditions [1,2]. These successes underscore that combining detailed physical models with intelligent algorithms can enhance reliability and efficiency in electric drives. At the same time, deploying digital twins poses new challenges such as multi-criteria optimization and managing model complexity, as well as ensuring real-time synchronization between physical and virtual systems. Recent reviews [3,4,5,6] highlight that fully realizing digital twins for electromechanical systems will require further research to overcome these technical and algorithmic hurdles, especially in integrating digital twins with artificial intelligence for predictive maintenance and optimization. Notably, dynamic neural networks—particularly the NARX (Nonlinear AutoRegressive with eXogenous inputs) architecture—are emerging as promising tools for developing such digital twins and other black-box models of electrical machines. NARX networks can capture complex nonlinear temporal behaviors by incorporating not only past input values but also their own past outputs as part of the input, an ability that is crucial for modeling motors with internal feedback loops and delays. This makes NARX a strong candidate for high-fidelity motor twin models that need to simulate transient and steady-state dynamics accurately in real-time.
NARX-based models have been widely applied across various domains of power and control systems due to their versatility and ability to represent complex nonlinear dynamics. The study in [7] introduced several enhanced learning schemes (A-NARX, E-NARX, GE-NARX), enabling superior generalization when modeling nonlinear systems under stochastic disturbances, including offshore platforms subjected to random excitations. The work presented in [8] proposed an adaptive NARX training approach that allows internal model-based controllers to adjust to changing external conditions, thereby maintaining stable operation in dynamic environments. In the field of process control, the research in [9] demonstrated that a genetically optimized NARX controller for nonlinear chemical and biochemical reactors can significantly improve control accuracy and disturbance rejection compared to conventional techniques, highlighting the effectiveness of optimization algorithms in NARX-based control design. Furthermore, the study in [10] showed that a properly tuned NARX model with feedback can effectively damp oscillations in electric power systems, thereby enhancing overall grid stability.
In power forecasting and energy management, NARX models have also demonstrated strong effectiveness. The study in [11] proposed a short-term electric load forecasting technique based on a NARX network with exogenous weather inputs. By training the model in an open-loop configuration on historical data and then performing forecasting in closed-loop, the approach achieved higher accuracy and robustness compared to conventional ANN or ARMAX methods, with potential cost benefits due to reduced over-provisioning of generation capacity.
Similarly, the research in [12] applied NARX networks to the prediction of wind speed, solar radiation, and electricity demand, showing that reliable performance can be achieved with a relatively simple network structure. The findings indicated that such NARX-based predictors can be implemented on low-cost hardware platforms, enabling real-time grid management.
In related work, the study in [13] integrated a NARX model with a radial-basis function (RBF) network to manage a hybrid battery–supercapacitor storage system in a DC microgrid. This NARX–RBF framework optimized power sharing between storage elements, maintained battery operation within safe limits, and improved photovoltaic utilization. Simulation results confirmed that the method effectively stabilized microgrid voltage under varying irradiance and load conditions.
Hybridization with deep learning has also been explored. The investigation in [14] introduced a hybrid convolutional NARX (HY-CNN-NARX) architecture for modeling solid-oxide fuel cell dynamics. By combining CNN-based spatiotemporal feature extraction with a NARX time-series prediction structure, the model provided faster and more accurate transient response predictions than traditional approaches, enhancing monitoring and control capabilities for fuel cell systems.
Beyond energy systems, dynamic NARX networks are increasingly employed in advanced mechatronics and robotics. The authors of [15] applied NARX-based system identification to model the complex dynamics of an omnidirectional mobile robot. By incorporating a stability analysis framework (APLF), the researchers ensured that the identified model maintained accuracy and stability under varying operating conditions.
In precision motion control, the researchers in [16] integrated a NARX-based neural architecture with a conventional PID controller to compensate for friction in a high-precision positioning stage. This hybrid control strategy markedly enhanced tracking accuracy and robustness relative to a standard PID, particularly in oscillatory motion, demonstrating the advantages of augmenting classical controllers with learned NARX components.
Similarly, the study in [17] employed a data-driven NARX modeling approach to regulate the pitch (heave degree of freedom) of an underactuated underwater vehicle. By deriving a NARX model directly from real-time experimental data, the method yielded a high-fidelity representation of vehicle dynamics, eliminating the need for labor-intensive manual controller tuning. Experimental evaluations confirmed that the NARX-based strategy effectively controlled the vehicle’s motion, highlighting its applicability in complex nonlinear environments.
Taken together, these diverse applications—spanning power grids, renewable energy, industrial drives, fuel cells, robotics, and marine vehicles—demonstrate the broad potential of NARX neural networks for modeling and controlling dynamic systems.
In parallel with neural-network modeling, the control of electric drives has seen significant advances through modern nonlinear and adaptive control techniques. Sliding Mode Control (SMC), for instance, is known for its robustness against disturbances and model uncertainties, and it has been successfully applied to DC and AC motor drives to ensure stable tracking under load and parameter variations [18]. However, a well-known drawback of classical SMC is the chattering phenomenon (high-frequency oscillations in control signals). To address this, researchers have proposed numerous SMC variants—including integral sliding modes, non-singular terminal SMC, and fractional-order SMC—that soften or eliminate chattering while preserving robustness [18]. For example, Yang et al. reported that replacing a conventional SMC with a sliding-mode-based PID regulator improved wheel motor drive performance by 15–20%, though some residual output oscillations remained unexamined [19].
In addition, adaptive control methods have been introduced to cope with motor nonlinearities such as magnetic saturation and load changes. Techniques such as Model Reference Adaptive Control (MRAC) and gradient-descent adaptation can adjust controller parameters on the fly to compensate for time-varying motor and load characteristics [20]. These adaptive schemes enhance robustness over a wider operating range, albeit requiring careful stability analysis.
A notable development in electric-drive control is the hybridization of adaptive and robust control principles. The authors of [21] proposed an Adaptive Backstepping–Integral Sliding Mode Controller (AB–ISMC) for a multi-input DC motor system, combining an adaptive backstepping law with integral SMC. This hybrid controller is capable of simultaneously estimating unknown parameters and disturbances while enforcing a sliding-mode regime, thereby ensuring Lyapunov-stable closed-loop dynamics. The results showed that AB–ISMC provided substantially better performance than either pure sliding-mode or pure adaptive controllers, with dramatically reduced settling times and nearly zero steady-state error in speed regulation. These outcomes illustrate that merging adaptiveness with robust SMC yields faster and more accurate responses under uncertainty.
Another innovative direction is the use of virtual inertia concepts in power-electronics control loops to emulate mechanical dynamics. The study in [22] incorporated a virtual DC-motor model into the control loop of a DC–DC converter, with tunable parameters representing inertia, damping, and armature resistance. By adaptively updating these virtual parameters in real time—a strategy referred to as Three-Parameter Adaptive Virtual DC Motor Control—the researchers effectively created a digital twin of a motor-generator system embedded within the converter’s controller. This approach significantly improved system stability: voltage deviations during sudden load changes were reduced from approximately 18% to about 9%, while the recovery time shortened to 0.18 s. Although earlier works employing fixed-parameter virtual motors had already demonstrated benefits for DC-microgrid stabilization, the adaptive virtual motor model in [22] clearly outperformed those by adjusting itself to real-time operating conditions.
Overall, the findings demonstrate an emerging form of digital-twin-based control, where a virtual electromechanical model inside the controller continuously mirrors and compensates for the behavior of the physical system. A noted limitation of such advanced hybrid schemes is their increased design complexity: additional tuning parameters are introduced, and stability analyses become more demanding. Nevertheless, the broader trend indicates that hybrid control architectures—integrating neural-network estimators, adaptive mechanisms, and robust control frameworks—can substantially enhance electric-drive performance under uncertainty. This trajectory is paving the way for next-generation drive systems that blend classical control with AI-driven components and physics-based models, leveraging the strengths of each.
Recent surveys indicate that artificial neural networks are increasingly influencing every aspect of electric-drive technology. The authors of [23] identified three principal domains where neural-network solutions are actively employed: control, state estimation, and fault diagnosis. In the area of control, the researchers in [23] noted that ANN-based controllers have been developed for various motor types, including induction machines and synchronous reluctance motors, where neural networks learn complex nonlinear mappings to enhance speed and torque regulation. Within state estimation, the study in [23] demonstrated that recurrent neural architectures—including NARX-based observers—can be deployed in multi-mass drive systems to estimate otherwise unmeasurable states such as load-side speed or torque in a two-mass drivetrain. For fault diagnosis, the work in [23] showed that intelligent neural modules can be trained to detect early stage faults from sensor data, even under strongly non-stationary operating conditions. Collectively, these developments underscore the rapid adoption of AI techniques in modern electric-drive systems.
However, the broader deployment of learning-based components introduces new challenges. Integrating adaptive and data-driven algorithms into safety-critical drive systems raises concerns regarding stability guarantees, particularly given the opaque or non-interpretable behavior of many neural models. Practical issues also arise in cybersecurity and data governance: as drive systems become interconnected–such as through IoT-enabled sensing or digital-twin architectures–secure communication and data protection become essential requirements. Furthermore, achieving real-time performance with computationally intensive AI algorithms demands careful optimization and hardware-aware implementation.
These concerns have been highlighted as key research priorities in advancing AI- and digital-twin-enabled electric drives. In particular, the reliability of AI-driven diagnostic systems is a major open question: embedding a neural fault-detection module directly into the control loop requires extremely low false-alarm rates and minimal detection delays, as diagnostic errors can trigger inappropriate and potentially harmful control actions. Ensuring such robustness and dependability remains one of the central challenges for the community.
In the domain of diagnostics and system identification, AI-driven techniques are rapidly advancing the state-of-the-art. Traditional parameter identification procedures for electric motors–such as no-load and locked-rotor tests used for induction machines–are increasingly being surpassed by data-driven approaches that rely on continuous real-time operational data. The authors of [24] proposed an energy-based identification method for induction motors that utilizes both steady-state and transient measurements to compute equivalent-circuit parameters. Their results demonstrated a highly accurate estimation of resistance and inductance values, thereby improving the fidelity of digital motor models and strengthening the basis for adaptive control strategies.
Other studies have addressed reliability and sensor-related issues in electric drive systems. The researchers in [25] investigated electromagnetic interference in railway traction circuits and its influence on trackside rail circuits. Their findings enabled the development of enhanced filtering strategies for speed and current sensors in high-power drive systems, ensuring stable and reliable measurements despite strong electromagnetic disturbances.
In a related work, the study in [26] conducted an experimental analysis of induction motor behavior under degraded power quality conditions, including voltage imbalance and harmonic distortion. The results showed that supply distortions induce torque ripple and non-uniform magnetic flux distribution, highlighting the necessity for control algorithms that actively compensate for such asymmetries.
Similarly, the researchers in [27] developed a comprehensive model of an induction generator–motor system incorporating inherent parameter asymmetry. The model captures how unequal phase parameters—for example, non-uniform inductances—affect both steady-state and dynamic performance, providing insights relevant for constructing digital twins of machines in faulty or degraded operational states.
Finally, the authors of [28] demonstrated the value of high-fidelity physics-based simulation as a virtual testbed for electric drives. In their methodology, a detailed motor model served as the virtual plant, while various control algorithms were executed against this simulated system to assess adaptiveness and stability margins prior to real-world deployment. This approach—effectively tuning and validating controllers on a virtual twin of the physical drive—illustrates how simulation and AI can converge to enhance control design for complex electromechanical systems.
Building on these observations, several recent studies published in 2024–2025 have further advanced the understanding and practical implementation of digital twins in electric drives. In particular, Hu et al. [29] presented a comprehensive review of digital-twin-based fault diagnosis methods for electric machines, emphasizing how multi-physics modeling combined with data-driven inference can significantly improve the early detection of anomalies in induction and synchronous machines. Their findings highlight that DT fidelity depends critically on data diversity, synchronization mechanisms, and the inclusion of physical constraints—all of which align with the challenges discussed earlier.
Complementing these insights, Lukman and Lee [30] analyzed digital-twin architectures for PMSM drives, demonstrating that accurate parameter calibration and sensitivity-guided model structuring are essential for stable DT operation under varying electromagnetic and thermal conditions. Their conclusions reinforce the growing consensus that hybrid modeling strategies, in which neural predictors complement physically grounded submodels, offer superior reliability for electromechanical systems.
A broader systems-level evaluation was conducted by Li et al. [31], who reviewed the application of digital twins in electric vehicle powertrains. Their analysis shows that the complex interactions among inverter dynamics, mechanical loads, and traction motor control create highly nonlinear behaviors well suited for recurrent neural-network modeling, particularly NARX-type architectures. This supports the applicability of sequence models for capturing strongly coupled electrical and mechanical states—an aspect particularly relevant to the modeling of DC motors.
Recent studies also highlight advancements in NARX-based modeling for industrial drives. Kahsay et al. [32] proposed a hybrid NARX network with model-based feedback for torsional-torque estimation in elastic multi-mass drive systems, showing that embedding physical constraints into ANN architectures significantly improves robustness. Similarly, Araújo et al. [33] used NARX networks for fault diagnosis in induction motors, demonstrating that recurrent models can reliably detect subtle non-stationary deviations in current and temperature signals.
Applications in transportation systems also support the utility of NARX models. Alhanouti and Gauterin [34] demonstrated that NARX-based predictors outperform classical observers in estimating torque demand in electric vehicles, particularly when trained with structured, industrial-type excitation signals. This observation directly parallels the findings of the present study regarding the decisive role of training-signal design.
Further contributions have come from the domain of heavy-duty electromechanical systems. Batyrbek et al. [35] developed an ANN-based self-learning controller for a drum-shear electric drive, illustrating that neural predictive models can maintain stability under nonlinear and varying torque disturbances. These results provide important evidence for the viability of combining ANN-based modeling with real-time disturbance-compensation mechanisms.
Several recent publications have focused specifically on DC-motor modeling and diagnostics. Siddiqi et al. [36] proposed an ANN-based method for data-driven parameter estimation, enabling accurate identification of motor constants without traditional laboratory tests. Arévalo et al. [37] examined state-estimation strategies for DC motors under uncertainties, highlighting the necessity of hybrid observer–ANN frameworks. Meanwhile, Antić et al. [38] demonstrated that fault detection based on parameter-variation tracking can uncover multiplicative faults in DC motors and associated power amplifiers at early stages, underscoring the importance of high-fidelity digital models for predictive maintenance.
Together, these recent contributions reinforce several trends in the evolution of digital-twin technologies for electric drives: the shift toward hybrid modeling frameworks, the critical role of carefully structured training datasets, and the necessity of explicitly modeling load disturbances and parameter variations. These developments provide strong support for the dual-NARX framework adopted in the present study and highlight its relevance within the broader trajectory of state-of-the-art research.
Overall, the literature reveals a clear evolution in electric drive modeling and control: from traditional physics-based analysis of electromechanical processes, toward the integration of that domain knowledge with data-driven artificial intelligence methods and digital-twin technologies. Modern intelligent drive systems are being created that not only emulate the behavior of motors with high accuracy, but can also monitor their health and adapt control strategies in real-time to ensure optimal performance. However, integrating these approaches is far from straightforward. Simply adding a neural network to a complex system does not guarantee success—appropriate network architectures and sufficient training data (covering the full range of operating conditions) are critical. For example, a physically informed network design may be needed (e.g., using separate NARX models for a motor’s current and speed dynamics) along with expanded datasets that include extreme and edge-case scenarios to ensure the model’s reliability and generality. To date, studies have reported mixed results regarding the optimal neural network configurations for digital twin applications, and research is ongoing into hybrid models that combine data-driven learning with first-principles engineering knowledge. The issue of universality also remains open: many published works focus on specific machine types (such as a particular motor or drive) or narrow operating scenarios, and their approaches may not directly transfer to different contexts.
In light of this review, several key challenges emerge as frontiers for future research in the neural network modeling of electric drives. First, improving data acquisition and preprocessing is essential—advanced methods are needed to ensure that the training data for neural models truly captures all relevant dynamics and anomalies of real motor systems. Second, developing hybrid modeling techniques that integrate physical system knowledge (e.g., motor equations, conservation laws) with machine learning is a high priority. Such approaches could yield models that are both accurate and interpretable, combining the transparency of physics-based models with the flexibility of neural networks. Third, guaranteeing the stability and robustness of neural network-based digital twins remains a critical concern—both in the internal dynamics of the learned model (to avoid unstable behavior) and in the closed-loop context when the model is used for real-time control or estimation. Techniques to interpret neural models and enforce safety constraints (potentially via physics-informed network architectures or control-theoretic analyses) will be vital in this regard. Finally, identifying effective control strategies that leverage digital twins—for example, controllers that can adapt to model deviations or reconfigure based on real-time diagnostic feedback—is an open research avenue. Addressing these challenges will be crucial for translating the impressive progress in neural network modeling and hybrid control of drives into practical, reliable, and secure intelligent drive systems for the Industry 4.0 era. The present study contributes to this endeavor by focusing on a NARX-based digital twin for a separately excited DC motor, an approach that directly tackles some of the gaps identified in the literature. The following sections detail the proposed methodology and how it addresses the needs for accuracy, efficiency, and transparency outlined above.
The studies reviewed demonstrate the advantages of using digital twins in electric drives, while also highlighting the challenges that arise when implementing them in control systems, such as the need for more complex architectures, training procedures, or adaptive mechanisms.

3. Problem Statement and Preliminaries

3.1. Mathematical Basics NARX Design

Artificial neural network with NARX architecture (Nonlinear AutoRegressive with eXogenous inputs) is a type of dynamic neural network designed to model nonlinear systems with time delays. In this neural network architecture, unlike ANN NAR, the predicted output ŷ(t) depends on its previous values y(t), as well as on the previous values of the external (exogenous) input u(t), Figure 1.
ANN’s work NARX can be described by the following equation:
y t = F y t 1 , y t N , u t 1 , y t M + ε t ,
where N and M are the delay parameters for the output and exogenous signals, respectively (model order); F(⋅) is a nonlinear function approximated by a neural network; ε(t) is the noise or model error.
In practice, N = M is often taken and is called the NARX network lag.
The function F(⋅) is approximated by a multilayer neural network, which allows modeling complex nonlinear dependencies.
The exogenous input of an NARX is generally a multidimensional vector of dimension [K × 1].
It is necessary to point out a certain similarity between the operation of the NARX neural network and the numerical solution of an ordinary differential equation. For a dynamic system described by a differential equation of order n:
d y n d t n + A n 1 d y n 1 d t n 1 + + A 1 d y d t + A 0 y = B 0 x ,
based on the Cauchy theorem and the finite increment method, the following can be obtained.
Cauchy’s theorem provides for a sequential replacement of the highest derivatives by auxiliary independent variables, which allows an n-th order equation to be reduced to a system of n first-order equations:
d y d t = y 1 d y 1 d t = y 2 d y n 1 d t = B 0 x A n 1 y n 1 A 1 y 1 A 0 y ,
This system can then be approximately solved by the usual finite increment method:
y n 1 i = y n 1 i 1 + B 0 x i A n 1 y n 1 i 1 A 1 y i 1 A 0 y i 1 Δ t y n 2 i = y n 2 i 1 + y n 1 i Δ t y i = y i 1 + y 1 i Δ t .
Considering that y 1 i Δ t = y i 1 y i 2 , after transformations, the last equation of system (4) can be written in the following form:
y i = w x x i + w n 1 y i n 1 + + w 2 y i 2 + w 1 y i 1 .
Thus, the approximate solution of an ordinary differential equation of the n-th order in the form of finite increments is described by an algebraic equation, which coincides to a high degree with the idea of the NARX architecture. This imposes certain restrictions on the value of the network lag, since an increase in the order of the differential equation of the control object is usually associated with an increase in its oscillation, and the presence of internal feedback in the NARX architecture can lead to instability of the neural network.

3.2. General Information About ANN Architecture NARX

One of the important elements of the ANN architecture in NARX is the tapped delay line (TDL), as shown in Figure 2. The input signal enters from the left and passes through N-1 delays. The output of the tapped delay line (TDL) is an N-dimensional vector, made up of the input signal at the current time, the previous input signal, etc.
Thus, Tapped Delay Line transforms a one-dimensional input signal into an output vector of dimension [N × 1], where N is the lag of the NARX network.
A NARX network is typically implemented as a recurrent neural network with feedback through delayed outputs.
In a standard implementation of a NARX network, the input vector (formed from the delayed values of the exogenous inputs and outputs) is fed to the hidden layer via a fully connected connection. That is, each element of the input vector is connected to each neuron of the hidden layer, which allows for efficient modeling of nonlinear dependencies and system dynamics.
Let us adopt the following notations:
  • N—NARX network lag;
  • K—dimension of the exogenous input NARX x(t);
  • SH—number of neurons in the hidden layer.
Then, the number of neurons in the input layer will be equal to:
S I = K + 1 × N .
The output signal of the neural network is calculated using the following expression:
y ^ t = σ O k = 1 S H C k σ H j = 1 S I x j w j + B j + D k ,
where: xj—input signal of the network of dimension [SI × 1]; Wj, Bj—weight coefficients and bias signals of neurons of the hidden layer, determining the connection between the input and hidden layers; σH—activation function of neurons of the hidden layer (e.g., sigmoid, tanh or ReLU); Ck, Dk are weight coefficients and bias signals of the output neuron, defining the connection between the hidden and output layers; σO is the activation function of the output neuron (e.g., purelin).
The process of training a neural network consists of establishing weight coefficients and bias signals Wj, Bj, Ck, Dk, which minimize the cost function, for example, the mean square error:
J = 1 2 t y t y ^ t 2 .
When training a NARX network, the BackPropagation Through Time (BPTT) method or its variants is used.
The gradients of this function for the parameters Wj, Bj, Ck, Dk are calculated taking into account the time dependence of the input data, which allows adjusting the network weighting coefficients taking into account the system dynamics.
One of the key advantages of the NARX network is the ability to model nonlinear dynamic systems taking into account exogenous inputs. This allows it to be used for forecasting time series, identifying dynamic systems, and managing technological processes.
The NARX mathematical model, due to its flexibility, allows adapting to system changes without significantly complicating the architecture. In this case, the network lag N, correctly selected at the stage of preliminary data analysis, plays an important role.

3.3. Mathematical Model of SEDCM

When modeling a SEDCM, several common assumptions are made:
  • The excitation current is assumed to remain constant.
  • Magnetic saturation is ignored in both the main and leakage flux paths.
  • The effects of the eddy current circuit are neglected.
  • The machine is fully compensated, meaning that the armature reaction is not considered.
The SEDCM equations in canonical form have a well-known form [14]:
T μ d U A d t = k T C u c U A L Σ d I A d t = U A k ϕ ω I A R Σ J d ω d t = k ϕ I A T L ,
where uC—speed reference voltage; Tμ, kTC—equivalent time constant and gain factor of the controlled rectifier, respectively; LΣ—inductance of the armature circuit, H; RΣ—active resistance of the armature circuit, Ohms; UA—armature voltage, V; IA—armature current, A; ω—angular velocity of the armature, 1/s; J—the moment of inertia of the armature, kg∙m2; kΦ—motor voltage coefficient, V∙s; TL—the torque of load on the electric drive, N∙m.
Figure 3 illustrates the mathematical model of SEDCM using Laplace transfer functions, realized in MATLAB 2024a /Simulink.
For convenient display of results and, possibly, the use of simplified neural networks with standard activation functions, the output signals of which usually lie in the range [−1, +1], it is advisable to also bring the input and output signals of the model to this range. For this purpose, the model includes scaling blocks with coefficients 1/Ur, 1/Ir, 1/wr, TL, where Ur, Ir, wr, TL are the maximum possible values of the converter voltage, armature current, motor speed, and load torque, respectively.
For further calculations, a DC motor of the P19-75-7K type, 1750 kW, 600 V, 190 rpm, operating as part of the drum shear mechanism of a hot rolling mill, characterized by complex and changing conditions, was used in the work. Parameters of this motor are given in Table 1.
Figure 4 shows the SEDCM power-on response in no load mode.
The diagrams in Figure 4 coincide with the theoretical ideas about the operation of SEDCM.

4. Creating and Training NARX for SEDCM

4.1. Initial Data for Training the Neural Network Model

To create a neural network simulating the operation of SEDCM, after a number of attempts with different configurations, a decision was made to create two separate artificial neural networks with cross-connections for simulating the armature current (SEDCM_IA) and angular velocity (SEDCM_WA). This solution, corresponding to physical concepts of the motor as an object in which electromagnetic energy is converted into thermal and mechanical energy (and vice versa), allows the model to be configured in the ideal idle mode, and subsequently to take into account the influence of the torque load of various natures and changes in the parameters of the control object, which is described in more detail below.
ANN SEDCM_IA used the vector of reference voltage and angular velocity signals [uC, wA] as an exogenous signal. For ANN SEDCM_WA as an exogenous signal, the vector of reference voltage and armature current signals [uC, IA] was used.
To study the influence of the training data composition on the operation of the artificial neural networks SEDCM_IA and SEDCM_WA, two different types of speed reference signals were used: Random (RND)—a random signal uniformly distributed in the range [−1, +1] with sample time 1 s; Industrial (IND)—a signal with alternating jumps with different amplitudes from 0.1 to 0.2 and a linear change with a rate of up to 0.2 s–1.
The calculation of transient processes was performed using the fifth-order Dormand–Prince method with a constant integration step h = 0.001 s. The duration of the test interval was 60 s. The obtained results were saved in MATLAB Workspace for further processing and training of NARX.
Figure 5 shows the SEDCM reaction diagrams for input signals of various types.
To synthesize the dynamic SEDCM model, NARX was used with the following parameters: size of validation and training data 5%; layer size = 5; time delay = 3. To create and train the non-network SEDCM model using NARX, the MATLAB/ntstool application was used, in which the network parameters were set and its training carried out, then the training results were analyzed and saved for subsequent use of the developed neural networks.
Figure 6 shows an example of a response diagram demonstrating the results of ANN training in MATLAB/ntstool.
The resulting model is characterized by high accuracy; single deviations during jumps in the setting signal do not exceed 0.001%.

4.2. Neural Network Model of SEDCM

After completing the NARX training in MATLAB/ntstool and checking the training accuracy, the resulting neural networks can be saved as Simulink blocks. This significantly simplifies further testing of the results obtained. The results obtained are shown in Figure 7.
Figure 7a shows the diagram of the mathematical model of SEDCM, containing two separately functioning NARX for modeling the armature current and the angular velocity of the motor, respectively. Figure 7b shows the comparative results of modeling the SEDCM startup process in two modes: up to 1.5 s—start and braking with a jump in the task, which was within the learning range, and then—the reaction to the supply of a jump to the nominal voltage, which is unacceptable in real conditions. It is clearly seen that the response of the neural network in the latter case does not meet expectations.
Thus, despite the claimed high accuracy of NARX training, the question remains open about the accuracy of the SEDCM modeling results by networks trained on certain initial data in cases where the conditions go beyond the training regimes.
Table 2 shows the results of the comparison of neural network models. SEDCM was trained on different types of source data for different input signals.
Two conclusions follow from the table above.
  • NARX trained on both types of data performed poorly in modeling operating modes associated with rapid and significant (outside the training ranges) changes in the input signal (Step source).
  • When the input signal changed relatively slowly, NARX trained on the Industrial data source had significantly higher performance indicators than a neural network trained on the Random data source.
This highlights the importance of properly justifying the choice of training datasets for training NARX modeling dynamic objects.

5. Taking into Account the Disturbing Effect

The proposed configuration of the neural network for modeling a SEDCM (Figure 7a) allows, having trained the neural network in idle mode, to supplement it with an input corresponding to the mechanical load of the motor. The proposed architecture of the DC motor model is shown in Figure 8.
This approach allows for the simulation of dynamic and static operating modes of the mechanism, regulating current, speed, position, etc., without connecting a real electric drive. The neural network will operate as part of a system that measures the actual current and speed of the motor.
To achieve this, based on Newton’s second law of rotational motion, the following equation can be written:
J s ω = k Φ I a T L T L = I a k Φ J s ω I L = I a J k Φ s ω .
Or in discrete form:
I L i = I a i J k Φ Δ t Δ ω i = I a i K L Δ ω i .
The calculation of this signal can be implemented by the subsystem shown in Figure 9.
SEDCM neural network model, supplemented by the input of the mechanical load of the motor according to Figure 8, is presented in Figure 10.
Figure 10 shows comparative diagrams of transient processes of the armature current and the angular velocity of the motor for the motor acceleration modes (a) and the load surge on the motor shaft (b). The results were compared for the full SEDCM model, the SEDCM neural network model trained on the data of the ideal idle mode (SEDCM_NARX_NOLOAD), and the SEDCM neural network model (SEDCM_NARX_LOAD) supplemented with the motor mechanical load observer according to Figure 9.
The angular velocity reference signal Uc changed abruptly from 0.5 to 1.0 for the motor acceleration mode, and the torque of resistance applied to the SEDCM shaft in relative units also changed abruptly from 0 to 0.6 at time t = 7 s.
In the motor acceleration mode without a load on the shaft (Figure 10a), the neural network model SEDCM_NARX_NOLOAD demonstrated higher accuracy for both the armature current and the angular velocity. It should be noted that both neural network models had high accuracy in the steady-state operating mode.
However, in the load surge mode, the SEDCM_NARX_NOLOAD neural network model demonstrated complete inoperability. Neither the angular velocity nor the armature current responded to the increase in load on the motor shaft. The SEDCM_NARX_LOAD neural network model demonstrated a theoretically justified response to load application, but its operation was accompanied by certain inaccuracies. In addition to the dynamic error, the operation of the SEDCM_NARX_NOLOAD neural network model also demonstrated an error in the steady-state mode. In the given experiment, the static current error was 7.4%, and the static speed error was 0.5%.
The model operated successfully even with more complex and nonlinear laws of change in the torque load, for example, with a fan load or elastic vibrations in the multi-mass mechanical part of an electric drive.
However, when the moment of inertia of the mechanism is not accurately specified, errors occur during transient processes. At relative angular velocity values exceeding 0.8 in modulus, errors caused by nonlinear properties of neural networks of both the motor model and the regulators accumulate, which leads to unreliable results.
Thus, from various research directions, the following can be formulated: to build a model based on the NARX ANN, even for such an object as a DC electric drive with subordinate regulation, it is necessary to generate test signals covering approximately 120% of the nominal speed range, 250 … 400% of the nominal current range.

6. Results and Discussion

The developed digital twin of a separately excited DC motor, constructed on the basis of two interconnected NARX-type artificial neural networks, demonstrated a high level of accuracy and robustness in reproducing the nonlinear dynamic behavior of the motor under various operating conditions. Dividing the model into two sub-networks—one responsible for predicting the armature current and the other for the angular velocity—proved to be an effective design strategy. This configuration allows the model to reflect the inherent electromechanical coupling within the system and to respond appropriately to variations in input voltage and load torque, ensuring a close correspondence between simulated and real motor responses.
Quantitative evaluation confirmed the high precision of the proposed digital twin. The root-mean-square error (RMSe) for armature current prediction did not exceed 0.05 p.u. when trained on industrial-type excitation signals and remained below 0.09 p.u. for randomly generated signals. For angular velocity, the RMSe was within 0.01 p.u. across the nominal operating range, representing an improvement of approximately 40–50% compared with previously reported single-network NARX implementations. The model accurately reproduces transient phenomena such as current overshoot, speed sag, and post-disturbance recovery, indicating that the recurrent NARX structure effectively captures the temporal dependencies intrinsic to electromechanical energy conversion. Moreover, the strong agreement between the simulated and measured data demonstrates the model’s capability to represent nonlinear dynamics with high fidelity.
The composition of the training dataset was found to be a crucial factor influencing the model’s performance. Networks trained on structured “industrial” signals that combined step and ramp variations exhibited smoother transient responses and higher generalization capability compared with those trained on purely random signals. Furthermore, this finding emphasizes the importance of designing training datasets that reflect the physical nature of the system being modeled. By exposing the network to representative patterns observed in real industrial environments, the model not only improves its prediction accuracy but also enhances interpretability and stability under operating conditions beyond the training domain. Consequently, hybrid datasets that combine deterministic and stochastic features can be considered optimal for the development of neural digital twins of electromechanical systems.
In addition, the inclusion of a mechanical load observer further improved the realism and versatility of the digital twin. By introducing an additional input representing external torque disturbances, the modified architecture (SEDCM_NARX_LOAD) successfully reproduced the system’s response under variable mechanical loading. The model exhibited a physically consistent reaction to applied torque changes and maintained stability even under nonlinear or time-varying load conditions, such as fan-type or elastic torques. Although small steady-state errors were observed—7.4% for current and 0.5% for angular velocity—these deviations remain within acceptable limits for most simulation and control applications. Moreover, the observed discrepancies indicate potential for further refinement of the network structure, particularly in the selection of activation functions and adaptive learning mechanisms aimed at minimizing residual steady-state bias.
Another notable advantage of the proposed digital twin is its computational efficiency. The NARX-based model operates more faster than a conventional Simulink model based on differential equations while preserving comparable accuracy. This significant performance gain makes the approach suitable for integration into real-time control systems, hardware-in-the-loop (HIL) testing, and predictive maintenance frameworks. Furthermore, the ability to simulate the complete electromechanical response of a DC drive in real-time without requiring a physical prototype represents an essential step toward the practical deployment of intelligent digital twins in industrial environments.
The obtained results confirm that the proposed NARX-based digital twin accurately reproduces the dynamic characteristics of a DC motor while ensuring the computational efficiency, adaptability, and transparency required for modern industrial applications. Furthermore, the findings demonstrate that a physics-informed neural modeling approach, supported by well-structured training data, transcends conventional black-box modeling and provides a reliable analytical framework for the analysis, optimization, and control of electromechanical systems within the Industry 4.0 paradigm.

7. Conclusions

The performed study demonstrates the efficiency of using artificial neural networks based on the NARX architecture for modeling dynamic modes of SEDCM. The proposed approach, which involves using two separate NARX networks for modeling the armature current (SEDCM_IA) and angular velocity (SEDCM_WA), shows promising results in simulating the behavior of the motor in various operating modes. The use of interconnected networks allows for more accurate modeling of the motor response to changes in input signals, such as voltage and load torque. It is shown that the operation of artificial neural networks based on the NARX architecture, having a recurrent structure and using a tapped delay line, is in many ways similar to the methods of numerical solution of ordinary differential equations by the finite increment method. Namely, the lag value of the NARX network corresponds to the order of the ODE system equivalent to this network. The presence of internal feedback in the NARX network can negatively affect its stability and limits the permissible lag value of the network from above. The study used NARX(5, 3), which generally yielded satisfactory modeling results in terms of accuracy.
The studies have shown that the accuracy of the SEDCM neural network model is significantly affected not only by the volume of training data, but also by its structure and diversity. The experimental results show that neural networks trained on signals containing a combination of step changes and linear variations (Industrial) have a higher adaptability to dynamic changes compared to models trained on random signals (Random). At the same time, significant errors were observed for modes with sharp jumps in the input signal (Step source), which indicates the limited generalization capabilities of the network outside the training range. This emphasizes the importance of carefully selecting training data covering a wide range of operating modes, including transient and nonlinear processes. The importance of using specialized knowledge of the subject area should be especially noted when forming training datasets for ANN-based models.
In the neural network modeling of SEDCM, a problem arises related to the influence of disturbing effects from the load on the motor operation. In practice, the motor load torque is quite difficult to measure. Therefore, its value in the mathematical model cannot be used as an element of training data. To improve the accuracy of the SEDCM neural network model, a torque load observer was developed using the values of angular velocity and armature current of the SEDCM.
The inclusion of a mechanical load observer in the SEDCM neural network model improved the network’s ability to account for external disturbances such as load torque variations. This modification allowed the model to simulate more realistic scenarios, including load surges and dynamic responses. However, the model still exhibited some inaccuracies, particularly in the steady state, where static errors in current and speed prediction were observed. These errors indicate the need for further refinement of the network architecture or training process to improve the accuracy of the model.
The practical significance of the study is that the proposed model can be used to simulate dynamic and static modes in electromechanical systems, adjust controllers and test control strategies without the need to use a physical motor.
Summing up the results of the conducted research, the following conclusions can be drawn.
An architecture of a neural network model of SEDCM with two ANNs that separately model the armature current and angular velocity is proposed, which provides a flexible and accurate basis for describing the behavior of SEDCM in different operating modes.
ANN operation is substantiated by NARX with a numerical solution of the system of ordinary differential equations. The lag of the NARX network corresponds to the order of the ODE system equivalent to this network. This explains why increasing the lag of the network leads to instability of the network in Close Loop mode.
To control the reliability of the results of neural network modeling of SEDCM by NARX networks, the accuracy of the neural network models trained on different types of initial data, with different forms of control action by the value of the root-mean-square deviation, was analyzed. The root-mean-square deviation of the current and speed of the neural network model from the performance indicators of the real object of study was used as a quality criterion. In all of the cases considered, the neural network model trained on signals containing a combination of step changes and linear variations (Industrial) had a higher accuracy compared to models trained on random signals (Random).
To ensure the operability of the SEDCM neural network model when the load resistance torque changes, a mechanical load observer was developed and the SEDCM_NARX_LOAD architecture was proposed, containing an additional input for the disturbing effect. The SEDCM_NARX_LOAD neural network model demonstrated a theoretically substantiated response to load application. In addition to the dynamic error, the operation of the SEDCM_NARX_NOLOAD neural network model had a static error in the steady-state operating mode. In the given experiment, the static current error was 7.4%, and the static speed error was 0.5%.
The disadvantages of the study include the fact that no studies were performed on the influence of the number of neurons in the hidden layer of NARX and reducing the lag value on the accuracy of the SEDCM neural network model.
Further research could be aimed at improving the generalization ability of NARX networks, especially for scenarios with rapidly changing input signals or operating modes beyond the training range. In addition, further refinement of the mechanical load observer and exploration of alternative network architectures could help reduce static errors and improve the overall accuracy of the model. To improve the generality and robustness of the model, adaptive learning methods should be developed and experiments expanding the range of training signals should be conducted. This will ensure the robustness of the model when operating in real, often dynamically changing, electric drive operating conditions.

Author Contributions

Conceptualization, V.B. and V.K. (Valeriy Kuznetsov); methodology, V.K. (Vitalii Kuznetsov) and V.K. (Valeriy Kuznetsov); software, V.B., V.K. (Valeriy Kuznetsov) and P.H.; validation, Z.C., V.B., P.H. and A.B.; formal analysis, V.B., V.K. (Vitalii Kuznetsov), P.H. and A.B.; investigation, V.K. (Vitalii Kuznetsov) and V.K. (Valeriy Kuznetsov); resources, A.R., T.G. and A.B.; data curation, A.R., T.G. and Z.C.; Writing—Original draft preparation, N.D. and Z.C.; Writing—Review and editing, V.B., P.H. and A.B.; visualization, M.T. and A.B.; supervision, M.T.; project administration, M.T.; funding acquisition, A.R. and P.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SEDCMSeparately Excited Direct Current Motor
DCDirect Current
DTDigital Twin
NARXNonlinear AutoRegressive model with eXogenous inputs
LDDNLayered Digital Dynamic Network
RBFRadial Basis Function
NNARX network lag
KDimension of the exogenous input NARX x(t)
SHNumber of neurons in the hidden layer
SINumber of neurons in the input layer
uCSpeed reference signal
Equivalent time constant of the controlled rectifier
kTCGain factor of the controlled rectifier
LΣInductance of the armature circuitH
RΣActive resistance of the armature circuitOhms
UAArmature voltageV
IAArmature currentA
ΩAngular velocity of the armaturerad/s
JInertia of the armature,kg∙m2
Motor voltage coefficient,V∙s
TLLoad torque of the electric driveN∙m
SEDCM_IANARX for simulating the armature current
SEDCM_WANARX for simulating the angular velocity
RNDRandom speed reference signals with uniform distribution
INDIndustrial speed reference signals
RMSeRoot-mean-square error
SEDCM_NARX_NOLOADNeural network model trained on the data of the idle mode
SEDCM_NARX_LOADNeural network model supplemented with the motor mechanical load observer

References

  1. Ebadpour, M.; Jamshidi, M.; Talla, J.; Hashemi-Dezaki, H.; Peroutka, Z. A Digital Twinning Approach for the Internet of Unmanned Electric Vehicles (IoUEVs) in the Metaverse. Electronics 2023, 12, 2016. [Google Scholar] [CrossRef]
  2. Ebadpour, M.; Jamshidi, M.; Talla, J.; Hashemi-Dezaki, H.; Peroutka, Z. Digital Twin Model of Electric Drives Empowered by EKF. Sensors 2023, 23, 2006. [Google Scholar] [CrossRef] [PubMed]
  3. Heluany, J.B.; Gkioulos, V. A review on digital twins for power generation and distribution. Int. J. Inf. Secur. 2024, 23, 1171–1195. [Google Scholar] [CrossRef]
  4. Iliuţă, M.-E.; Moisescu, M.-A.; Pop, E.; Ionita, A.-D.; Caramihai, S.-I.; Mitulescu, T.-C. Digital Twin—A Review of the Evolution from Concept to Technology and Its Analytical Perspectives on Applications in Various Fields. Appl. Sci. 2024, 14, 5454. [Google Scholar] [CrossRef]
  5. Aghazadeh Ardebili, A.; Zappatore, M.; Ramadan, A.I.H.A.; Longo, A.; Ficarella, A. Digital Twins of smart energy systems: A systematic literature review on enablers, design, management and computational challenges. Energy Inform. 2024, 7, 94. [Google Scholar] [CrossRef]
  6. Hosamo Hosamo, H.; Imran, A.; Cardenas-Cartagena, J.; Svennevig, P.R.; Svidt, K.; Nielsen, H.K. A Review of the Digital Twin Technology in the AEC-FM Industry. Adv. Civ. Eng. 2022, 2022, 2185170. [Google Scholar] [CrossRef]
  7. Cheng, A.; Low, Y. Improved generalization of NARX neural networks for enhanced metamodeling of nonlinear dynamic systems under stochastic excitations. Mech. Syst. Signal Process. 2023, 200, 110543. [Google Scholar] [CrossRef]
  8. Xie, J.; Bonassi, F.; Scattolini, R. Learning control affine neural NARX models for internal model control design. IEEE Trans. Autom. Sci. Eng. 2024, 22, 8137–8149. [Google Scholar] [CrossRef]
  9. Medi, B.; Asadbeigi, A. Application of a GA-optimized NNARX controller to nonlinear chemical and biochemical processes. Heliyon 2021, 7, e07846. [Google Scholar] [CrossRef]
  10. Carbonera, L.F.B.; Bernardon, D.P.; Karnikowski, D.D.C.; Farret, F.A. The nonlinear autoregressive network with exogenous inputs (NARX) neural network to damp power system oscillations. Int. Trans. Electr. Energy Syst. 2020, 31, e12538. [Google Scholar] [CrossRef]
  11. Jaime, B.; Shihab, S.A. Short-Term Forecasting of Electric Loads Using Nonlinear Autoregressive Artificial Neural Networks with Exogenous Vector Inputs. Energies 2017, 10, 40. [Google Scholar] [CrossRef]
  12. Di Piazza, A.; Di Piazza, M.C.; La Tona, G.; Luna, M. An artificial neural network-based forecasting model of energy-related time series for electrical grid management. Math. Comput. Simul. 2020, 184, 294–305. [Google Scholar] [CrossRef]
  13. Sarra, Z.; Bouziane, M.; Bouddou, R.; Benbouhenni, H.; Mekhilef, S.; Elbarbary, Z.M.S. Intelligent control of hybrid energy storage system using NARX-RBF neural network techniques for microgrid energy management. Energy Rep. 2024, 12, 5445–5461. [Google Scholar] [CrossRef]
  14. Tofigh, M.; Salehi, Z.; Kharazmi, A.; Smith, D.J.; Hanifi, A.R.; Koch, C.R.; Shahbakhti, M. Transient modeling of a solid oxide fuel cell using an efficient deep learning HY-CNN-NARX paradigm. J. Power Sources 2024, 606, 234555. [Google Scholar] [CrossRef]
  15. Xin, L.; Wang, Y.; Fu, H. Omnidirectional mobile robot dynamic model identification by NARX neural network and stability analysis using the APLF method. Symmetry 2020, 12, 1430. [Google Scholar] [CrossRef]
  16. Irfanda, I.T.; Shen, J.C. Tracking control of a precision stage with NARX neural network for friction compensation. J. Phys. Conf. Ser. 2021, 1, 012014. [Google Scholar] [CrossRef]
  17. Tanveer, A.; Ahmad, S. NARX modeling and simulation of heave dynamics with application of robust control of an underactuated underwater vehicle. Ocean Eng. 2025, 325, 120790. [Google Scholar] [CrossRef]
  18. Mohd Zaihidee, F.; Mekhilef, S.; Mubin, M. Robust Speed Control of PMSM Using Sliding Mode Control (SMC)—A Review. Energies 2019, 12, 1669. [Google Scholar] [CrossRef]
  19. Yang, W.; Zhu, Y.; Wang, C.; Li, P.; Liu, Y. Research on Simulation Model Control Strategy of Brushless DC Motor Based on MATLAB. In Proceedings of the World Conference on Intelligent and 3-D Technologies (WCI3DT 2022); Smart Innovation, Systems and Technologies; Kountchev, R., Nakamatsu, K., Wang, W., Kountcheva, R., Eds.; Springer: Singapore, 2023; Volume 323. [Google Scholar]
  20. Xu, J.; Sands, T. Autonomous Drone Electronics Amplified with Pontryagin-Based Optimization. Electronics 2023, 12, 2541. [Google Scholar] [CrossRef]
  21. Afifa, R.; Ali, S.; Pervaiz, M.; Iqbal, J. Adaptive Backstepping Integral Sliding Mode Control of a MIMO Separately Excited DC Motor. Robotics 2023, 12, 105. [Google Scholar] [CrossRef]
  22. Zhang, L.; Wang, Y.; Cheng, L.; Kang, W. A Three-Parameter Adaptive Virtual DC Motor Control Strategy for a Dual Active Bridge DC–DC Converter. Electronics 2023, 12, 1412. [Google Scholar] [CrossRef]
  23. Kaminski, M.; Tarczewski, T. Neural Network Applications in Electrical Drives—Trends in Control, Estimation, Diagnostics, and Construction. Energies 2023, 16, 4441. [Google Scholar] [CrossRef]
  24. Romashykhin, I.; Rudenko, N.; Kuznetsov, V. The possibilities of the energy method for identifying the parameters of induction motor. In Proceedings of the International Conference on Modern Electrical and Energy Systems (MEES 2017), Kremenchuk, Ukraine, 15–17 November 2017; IEEE: New York, NY, USA, 2017. [Google Scholar] [CrossRef]
  25. Serdiuk, T.; Kuznetsov, V.; Kuznetsova, Y. About Electromagnetic Compatibility of Rail Circuits with the Traction Supply System of Railway. In Proceedings of the 2018 IEEE 3rd International Conference on Intelligent Energy and Power Systems (IEPS 2018), Kharkiv, Ukraine, 10–14 September 2018; IEEE: New York, NY, USA, 2018; pp. 59–63. [Google Scholar] [CrossRef]
  26. Kuzenkov, O.; Serdiuk, T.; Kuznetsova, A.; Tryputen, M.; Kuznetsov, V.; Kuznetsova, Y.; Tryputen, M. Mathematical model of dynamics of homomorphic objects. In Proceedings of the 1st International Workshop on Information-Communication Technologies and Embedded Systems, ICT and ES 2019, Mykolaiv, Ukraine, 14–15 November 2019; Volume 2516, pp. 190–205. [Google Scholar]
  27. Chenchevoi, V.; Kuznetsov, V.; Kuznetsov, V.; Chencheva, O.; Zachepa, I.; Chornyi, O.; Kovzel, M.; Kovalenko, V.; Babyak, M.; Levchenko, S. Development of mathematical models of energy conversion processes in an induction motor supplied from an autonomous induction generator with parametric non-symmetry. East.-Eur. J. Enterp. Technol. 2021, 4, 67–82. [Google Scholar] [CrossRef]
  28. Tryputen, M.; Kuznetsov, V.; Kuznetsova, A.; Tryputen, M.; Kuznetsova, Y.; Serdiuk, T. Improving the reliability of simulating the operation of an induction motor in solving the technical and economic problem. In Advances in Computer Science for Engineering and Education III; Hu, Z., Petoukhov, S., Dychka, I., He, M., Eds.; Springer: Cham, Switzerland, 2021; Volume 1247, pp. 143–152. [Google Scholar] [CrossRef]
  29. Hu, J.; Xiao, H.; Ye, Z.; Luo, N.; Zhou, M. Research and Prospects of Digital Twin-Based Fault Diagnosis of Electric Machines. Sensors 2025, 25, 2625. [Google Scholar] [CrossRef] [PubMed]
  30. Lukman, G.F.; Lee, C. Towards Digital Twin Modeling and Applications for Permanent Magnet Synchronous Motors. Energies 2025, 18, 956. [Google Scholar] [CrossRef]
  31. Li, X.; Niu, W.; Tian, H. Application of Digital Twin in Electric Vehicle Powertrain: A Review. World Electr. Veh. J. 2024, 15, 208. [Google Scholar] [CrossRef]
  32. Kahsay, A.H.; Derugo, P.; Majdański, P.; Zawiślak, R. Hybrid NARX Neural Network with Model-Based Feedback for Predictive Torsional Torque Estimation in Electric Drive with Elastic Connection. Energies 2025, 18, 3770. [Google Scholar] [CrossRef]
  33. Araújo, V.G.d.; Bissiriou, A.O.-S.; Villanueva, J.M.M.; Villarreal, E.R.L.; Salazar, A.O.; Teixeira, R.d.A.; Fonsêca, D.A.d.M. Monitoring and Diagnosing Faults in Induction Motors’ Three-Phase Systems Using NARX Neural Network. Energies 2024, 17, 4609. [Google Scholar] [CrossRef]
  34. Alhanouti, M.; Gauterin, F. Predicting the Torque Demand of a Battery Electric Vehicle for Real-World Driving Maneuvers Using the NARX Technique. World Electr. Veh. J. 2024, 15, 103. [Google Scholar] [CrossRef]
  35. Batyrbek, A.; Kuznetsov, V.; Kuznetsov, V.; Rojek, A.; Kovalenko, V.; Tkalenko, O.; Tytiuk, V.; Krasovskyi, P. Control of Drum Shear Electric Drive Using Self-Learning Artificial Neural Networks. Energies 2025, 18, 5763. [Google Scholar] [CrossRef]
  36. Siddiqi, F.U.R.; Ahmad, S.; Akram, T.; Ali, M.U.; Zafar, A.; Lee, S.W. Artificial Neural Network-Based Data-Driven Parameter Estimation Approach: Applications in PMDC Motors. Mathematics 2024, 12, 3407. [Google Scholar] [CrossRef]
  37. Arévalo, E.; Herrera Hernández, R.; Katselis, D.; Reusser, C.; Carvajal, R. On Modelling and State Estimation of DC Motors. Actuators 2025, 14, 160. [Google Scholar] [CrossRef]
  38. Antić, S.; Rosić, M.; Koprivica, B.; Milovanović, A.; Luković, M. Detection, Isolation, and Identification of Multiplicative Faults in a DC Motor and Amplifier Using Parameter Estimation Techniques. Appl. Sci. 2025, 15, 8322. [Google Scholar] [CrossRef]
Figure 1. Functional diagram of NARX.
Figure 1. Functional diagram of NARX.
Energies 18 06502 g001
Figure 2. Functional diagram of Tapped Delay Line.
Figure 2. Functional diagram of Tapped Delay Line.
Energies 18 06502 g002
Figure 3. Mathematical model of separately excited DC motor in MATLAB/Simulink using relative units.
Figure 3. Mathematical model of separately excited DC motor in MATLAB/Simulink using relative units.
Energies 18 06502 g003
Figure 4. SEDCM power-on response in no load mode.
Figure 4. SEDCM power-on response in no load mode.
Energies 18 06502 g004
Figure 5. DC motor power-on response in no load mode: (a) random source; (b) industrial source.
Figure 5. DC motor power-on response in no load mode: (a) random source; (b) industrial source.
Energies 18 06502 g005
Figure 6. Diagram response demonstrating ANN training results in MATLAB/ntstool.
Figure 6. Diagram response demonstrating ANN training results in MATLAB/ntstool.
Energies 18 06502 g006
Figure 7. Simulation of the SEDCM startup process using a NARX-based neural network model: (a) schematic of the implemented NARX network; (b) comparative analysis of the startup transient: SEDCM benchmark vs. NARX model output.
Figure 7. Simulation of the SEDCM startup process using a NARX-based neural network model: (a) schematic of the implemented NARX network; (b) comparative analysis of the startup transient: SEDCM benchmark vs. NARX model output.
Energies 18 06502 g007
Figure 8. Neural Network Model of SEDCM with mechanical input.
Figure 8. Neural Network Model of SEDCM with mechanical input.
Energies 18 06502 g008
Figure 9. Model of IL observer.
Figure 9. Model of IL observer.
Energies 18 06502 g009
Figure 10. Transient processes of the SEDCM neural network model of DPT with mechanical input: (a) speed acceleration, (b) load surge on shaft.
Figure 10. Transient processes of the SEDCM neural network model of DPT with mechanical input: (a) speed acceleration, (b) load surge on shaft.
Energies 18 06502 g010
Table 1. The parameters of P19-75-7K DC motor.
Table 1. The parameters of P19-75-7K DC motor.
ParametersValues
ktc600
tm, s0.01
Ra, Ohm0.009545
La, H0.00052
KF, V∙s28.65
J, kg∙m26000
Rated power, kW1750
Rated voltage, V600
Rated rpm190
Rated efficiency, %0.92
Table 2. Comparison of SEDCM neural network models for different input signals.
Table 2. Comparison of SEDCM neural network models for different input signals.
ParameterRMS eps IRMS eps W
NARX ModeRNDINDRNDIND
Energies 18 06502 i001
Random source
0.05660.04820.00340.0028
Energies 18 06502 i002
Industrial source
2.97230.08720.24460.0050
Energies 18 06502 i003
Sinusoidal source
1.75650.02470.09900.0040
Energies 18 06502 i004
Trapezoidal source
4.14840.03260.38540.0060
Energies 18 06502 i005
Step source
4.29093.92270.80250.7591
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Busher, V.; Kuznetsov, V.; Ciekanowski, Z.; Rojek, A.; Grudniewski, T.; Druzhinina, N.; Kuznetsov, V.; Tryputen, M.; Hubskyi, P.; Batyrbek, A. Development of a Digital Twin of a DC Motor Using NARX Artificial Neural Networks. Energies 2025, 18, 6502. https://doi.org/10.3390/en18246502

AMA Style

Busher V, Kuznetsov V, Ciekanowski Z, Rojek A, Grudniewski T, Druzhinina N, Kuznetsov V, Tryputen M, Hubskyi P, Batyrbek A. Development of a Digital Twin of a DC Motor Using NARX Artificial Neural Networks. Energies. 2025; 18(24):6502. https://doi.org/10.3390/en18246502

Chicago/Turabian Style

Busher, Victor, Valeriy Kuznetsov, Zbigniew Ciekanowski, Artur Rojek, Tomasz Grudniewski, Natalya Druzhinina, Vitalii Kuznetsov, Mykola Tryputen, Petro Hubskyi, and Alibek Batyrbek. 2025. "Development of a Digital Twin of a DC Motor Using NARX Artificial Neural Networks" Energies 18, no. 24: 6502. https://doi.org/10.3390/en18246502

APA Style

Busher, V., Kuznetsov, V., Ciekanowski, Z., Rojek, A., Grudniewski, T., Druzhinina, N., Kuznetsov, V., Tryputen, M., Hubskyi, P., & Batyrbek, A. (2025). Development of a Digital Twin of a DC Motor Using NARX Artificial Neural Networks. Energies, 18(24), 6502. https://doi.org/10.3390/en18246502

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop