1. Introduction
Accurate dynamic models of electromechanical actuators are essential in robotics, automation, and industrial drives because controller performance, stability, and safety margins depend directly on how well the model represents the real plant [
1]. For this reason, parameter estimation based on time-domain experiments, including step responses, remains widely used, as such experiments provide practical and reliable motor models that reflect real operating conditions [
2].
Parallel to these classical identification approaches, numerous studies have explored metaheuristic search methods such as particle swarm optimization, differential evolution, and genetic algorithms. These techniques can handle nonconvex cost functions but are often slower, more sensitive to hyperparameter tuning, and less predictable in practical performance [
3].
Machine-learning-based parametric estimators have also been proposed to address nonlinearities in electromechanical systems, although they typically require large training datasets. In robotics, additional research has focused on the joint identification of inertial and motor parameters using PWM excitations and six-axis force/torque sensing along the kinematic chain [
4].
An early example of constrained nonlinear fitting is provided by Wu [
5], who estimated DC motor parameters from speed step responses. However, the method relied on filtered velocity measurements and omitted current data, reducing robustness and making the estimates susceptible to ill-conditioning or compensating parameter trade-offs. Later work, such as Hernández et al. [
6], achieved accurate fits using the Steiglitz–McBride algorithm, but required digital filtering and did not enforce steady-state algebraic relationships. Recent studies have explored learning-based estimators, such as the neural-network parameter identification method of Siddiqi et al. [
7], as well as rapid-control-prototyping approaches [
8]; however, these methods are often validated only on synthetic or highly idealized datasets, limiting their applicability under realistic noise conditions.
Survey papers on motor modeling report comparisons between widely used identification strategies—including least squares (LS), particle swarm optimization (PSO), grey wolf optimizer (GWO), bat algorithm (BA), genetic algorithms (GAs), and neural networks. These reviews generally show that GWO achieves the smallest errors in open-loop settings, whereas LS remains the most computationally efficient method for closed-loop cases.
Overall, the literature reveals a persistent gap between physical interpretability and numerical performance. An identification method that is (i) explicitly grounded in an electromechanical model, (ii) robust to unfiltered measured signals, and (iii) consistent with steady-state relations and physically meaningful bounds is still lacking. Accurate modeling is also crucial for analyzing disturbances caused by noise, load variations, and environmental effects [
9].
In this work, we address this gap with a grey-box identification method formulated as a simulation-in-the-loop constrained nonlinear optimization problem. The method preserves the physical meaning of the parameters, incorporates both steady-state and transient relationships, and enforces a current-limit condition to prevent nonphysical solutions. It estimates the five standard DC motor parameters directly from open-loop current and speed step responses and remains effective even with low-cost sensors and significant measurement noise, eliminating the need for digital filtering.
In summary, this paper makes the following contributions:
We formulate a constrained grey-box identification framework for permanent-magnet DC motors that embeds electromechanical coupling, steady-state algebra, and a current-limit condition directly into the residual of a Levenberg–Marquardt optimizer, enabling joint estimation of the full parameter set from step-response data.
We provide a detailed structural identifiability analysis based on normalized sensitivities and singular-value decomposition of a stacked sensitivity matrix, showing that all five parameters remain theoretically separable for two actuators with markedly different electrical and mechanical scales.
We demonstrate that the proposed method achieves low trajectory errors on unfiltered experimental data from low-cost sensors, without any digital filtering or manual tuning, and we quantify parameter uncertainty using both Gauss–Newton covariance approximations and bootstrap-based dispersion measures.
We empirically validate the robustness of the approach through Monte Carlo experiments over randomized initializations and by comparing against a standard least-squares baseline on the same raw datasets, highlighting the impact of physics-based constraints on both physical plausibility and NRMSE.
The remainder of the paper is organized as follows.
Section 2 reviews related research.
Section 3 presents the model, residual design, constraints, and optimization procedure.
Section 4 reports results on simulated datasets and unfiltered measured datasets for two motors and discusses robustness and physical coherence.
Section 5 summarizes the main findings and outlines potential directions for future work.
2. Related Work
To contextualize the contribution of this work,
Table 1 summarizes representative studies on DC motor parameter identification, highlighting their data requirements, physical constraints, and methodological focus.
Early studies on DC motor identification relied on analytical expressions derived from simplified physical models. Classical procedures estimate the main parameters from steady-state and no-load tests, avoiding mechanical loading, and similar test-based strategies remain common in recent DC and BLDC work [
10]. Later, Wu [
5] introduced a continuous-time nonlinear fitting approach to recover all parameters from speed step responses; however, this method depends on filtered velocity data and ignores current measurements, which limits robustness under realistic noise. Hernández et al. [
6] applied the Steiglitz–McBride algorithm to discrete-time models and achieved adequate fits, but their approach also required digital filtering and did not enforce steady-state consistency. Although these analytical or semi-analytical techniques remain attractive for their simplicity, they typically treat electrical and mechanical subsystems separately and overlook frictional nonlinearities.
A second family of approaches introduced numerical optimization and grey–box modeling. Hadef and Mekideche [
12] and Hassan et al. [
13] employed inverse-problem formulations and iterative simulation fitting to estimate motor parameters from dynamic tests, while Chakraborty et al. [
11] demonstrated a practical Simulink-based workflow for servo-drive parameter estimation using nonlinear least-squares optimization. These methods improved automation and reproducibility but still required clean or preprocessed data and offered limited guarantees regarding the physical admissibility of the estimated parameters.
With the growth of computational power, several authors have explored metaheuristic and hybrid search algorithms. Munciño et al. [
15] investigated evolutionary and swarm-based techniques for DC motor parameter identification and demonstrated their flexibility in navigating nonconvex error surfaces. Boudjemai et al. [
14] introduced an experimental MATLAB-based workflow for parameter fitting. Jesenik et al. [
16] and Demirtas and Efe [
17] combined differential evolution and particle swarm optimization within rapid-control-prototyping frameworks. Although these global-search methods can achieve robust convergence under noisy data, they remain computationally expensive, require multiple hyperparameters, and do not explicitly enforce algebraic or steady-state constraints. Alternative real-time estimation strategies, such as extended Kalman filters [
18], have also been explored, but their performance depends strongly on model accuracy and sufficiently fast sampling.
More recently, learning-based estimators have also been explored. Siddiqi et al. [
7] proposed a neural-network-based data-driven approach for estimating the parameters of permanent-magnet DC motors. Kim et al. [
8] reported a rapid control-prototyping system for online identification. Traversaro et al. [
4] extended parameter identification strategies to include inertial and frictional effects in robotic actuators, illustrating the advantages of modeling electromechanical coupling. Despite these advances, neural and metaheuristic approaches often rely on synthetic or filtered datasets and provide limited physical interpretability compared with grey-box formulations.
In summary, most previous studies either simplify the motor model to facilitate analytical computation or adopt black–box algorithms that disregard physical consistency. Very few works integrate both electrical and mechanical coupling while simultaneously enforcing steady–state algebra and physical constraints on unfiltered data. The present study bridges this gap by formulating a constrained grey–box identification scheme that unifies algebraic consistency, current–limit enforcement, and parameter positivity in a single physically coherent optimization process. This combination of physical interpretability, robustness to noise, and reduced preprocessing complexity defines the main methodological contribution of this work.
3. Materials and Methods
The identification procedure was designed to estimate the complete set of electromechanical parameters of brushed DC motors, namely the armature resistance R, inductance L, torque and back-emf constant K, viscous friction coefficient B, and total inertia J, by directly fitting the coupled electrical and mechanical model to measured step-response data of current and angular velocity. The study considered both real experiments on two DC motors (a Mavilor CML-050 and, for cross-validation, an RMCS2004 unit) and a small synthetic dataset generated from the same continuous-time model to provide a noise-free baseline for verification. This framework integrates experimental signal acquisition under controlled excitation with a continuous-time nonlinear optimization that enforces physical consistency and state-space constraints, bridging classical grey-box modeling with modern constrained estimation.
Experimental data were recorded using a small laboratory test bench, assembled similarly to the setup described by Hernández et al. [
6]. The bench included a Mavilor CML-050 motor as the main unit and an RMCS2004 motor that was used only for cross-validation. A programmable power source supplied the voltage steps; in all cases, the maximum applied voltage was
. Current readings came from a precision shunt resistor connected to a differential amplifier, and the terminal voltage was taken directly from the motor leads. The shaft speed was obtained from a quadrature encoder attached to the axis. Data were captured using a PIC18F4550 microcontroller running at
with 12-bit resolution and later sent to a computer through USB. Simple analog low-pass filters were added to the voltage and current channels to reduce aliasing. In practice, the signals contained typical laboratory noise, which was deliberately retained to evaluate how the algorithm performs on raw data. Each test consisted of applying a single voltage step from rest until the motor reached a steady state. All collected data were saved in CSV format for later processing.
In order to quantify the measurement quality of the unfiltered signals used in all experiments, the main noise characteristics of the acquisition chain are summarized here. The quadrature encoder provides an effective angular resolution of approximately – per count at the typical operating speeds of the motors, which establishes the lower bound on velocity quantization. The current measurements are obtained through a precision shunt resistor followed by a differential amplifier with an effective bandwidth of several kilohertz, which is well above the electromechanical bandwidth of the actuators; the resulting RMS noise level, estimated from the pre-step segments, is approximately 1–2 LSB of the 12-bit converter. The applied voltage exhibits the expected PWM ripple from the laboratory supply, but this effect remains bounded and is captured directly in the raw data. These values characterize the disturbances present in the unfiltered signals. They justify treating encoder quantization, sensor noise, and PWM ripple as bounded perturbations within the identification framework.
In addition to real measurements, a synthetic dataset was generated from the dynamic model using nominal parameters from the Mavilor CML-050 datasheet. Two step voltages of 6 V and 8 V, each with a 20 ms onset, were simulated over 1.2 s at 1 kHz without added noise to produce reference trajectories of current and speed. These synthetic trials served a dual purpose: they verified the correctness of numerical integration and residual normalization, and they provided a baseline for assessing estimator behavior under ideal noise-free conditions prior to evaluation with raw measurements.
The dynamic behavior of the DC motor was modeled by the coupled nonlinear system
which jointly describes the electrical and mechanical subsystems. The unknown parameter vector
was estimated by minimizing the
-norm of a composite residual vector
, defined as the concatenation of deviations between measured and simulated trajectories of current and angular velocity, together with algebraic penalty terms that enforce physical consistency. The optimization problem was formulated as
subject to constraints on parameter positivity, steady-state equilibrium, and current limitation.
Steady-state consistency was imposed through the analytical relationships
while the instantaneous current was bounded by
. These conditions ensure that the identified parameters remain physically meaningful and that the fitted model reproduces the torque–speed characteristics observed in practice. Moreover, the combined use of transient and steady-state information is intended to enhance parameter separability of the complete set
from a single step excitation, provided that both current and velocity are measured with sufficient signal-to-noise ratio. In practice, encoder quantization and limited bandwidth may reduce sensitivity to inertia
J, but the inclusion of algebraic penalties is designed to mitigate this effect by guiding the optimization toward physically consistent regions.
To summarize the internal logic of the framework, the following procedural outline presents the main computational stages in a compact form:
Procedure (constrained grey-box identification).
Inputs: measured signals (unfiltered), weighting factors , penalty coefficients , and initial parameters .
Forward simulation: integrate (
1) over the full horizon to obtain simulated trajectories
and
.
Residual composition: construct as the concatenation of
normalized trajectory errors: and ;
steady-state penalties:
and
based on (
4);
current-limit penalty: .
Optimization: solve the minimization in (
3) using a Levenberg–Marquardt scheme with log-parameterization
to enforce positivity and improve numerical conditioning.
Outputs: estimated parameters , derived time constants , , damping ratio , and normalized trajectory errors (NRMSEs) for current and velocity.
The selection of the weighting factors follows a normalization-based and physics-based rationale rather than empirical tuning. The trajectory terms and are normalized by the RMS of their corresponding measured signals, which naturally balances the relative contribution of current and velocity; thus is sufficient and avoids additional manual scaling. The steady-state penalty is assigned a moderate value () because its algebraic constraints are dimensionally consistent with the normalized residual and should have comparable influence without dominating the solution. The peak-consistency term uses a larger weight () to strongly discourage violations of the physical current-limit condition (), which we treat as a hard constraint.
The time evolution of
and
for each candidate parameter vector was obtained by direct numerical integration of (
1) using the stiff solver
ODE15s, which prevents instability caused by the disparity between electrical and mechanical time constants. To ensure numerical robustness and positivity without explicit bounds, a logarithmic reparameterization
was employed, where ⊙ denotes the element-wise product. Each residual component was normalized by the RMS of its measured counterpart, ensuring a balanced contribution of current and velocity even with varying signal-to-noise ratios. The optimization was performed with
Matlab’s
lsqnonlin implementation of Levenberg–Marquardt, using gradient and step tolerances of
and
, respectively.
Overall, the formulation is designed to enable the estimation of all five parameters directly from raw experimental signals without digital filtering or manual tuning. The inclusion of physical constraints, residual normalization, and steady-state algebra is intended to improve robustness to high-frequency noise and to promote physically interpretable results suitable for laboratory and robotic applications.
4. Results and Discussion
The proposed grey-box identification approach was validated on two permanent-magnet DC motors of different electrical and mechanical scales: the Mavilor CML-050 and the RMCS2004. In both cases, the algorithm estimated the five fundamental parameters by minimizing a normalized residual that combined current, velocity, steady-state algebra, and a current-limit constraint. Experimental data were recorded directly from current sensors and encoders without any digital filtering, allowing us to evaluate noise tolerance and physical consistency under realistic measurement conditions.
Model validation was performed using both synthetic and experimental datasets. For each trial, the measured and simulated current and velocity trajectories were compared over the full response window. The main performance indicators were the root mean square error (RMSE), normalized RMSE (NRMSE), steady-state relative error, and compliance with the current-limit constraint. In addition, the Gauss–Newton approximation of the parameter covariance matrix was used to assess local sensitivity and uncertainty, and a bootstrap dispersion analysis was conducted to quantify empirical variability under measurement noise. Across all tests, the proposed formulation produced narrow parameter dispersions, low trajectory errors, and highly consistent fits, confirming that the embedded physical constraints and the normalization strategy result in a robust and well-conditioned identification framework.
This section presents structural identifiability analyses, simulated and experimental identification results for both motors, uncertainty analysis, robustness to initialization, and a comparison against a least-squares baseline.
4.1. Structural Identifiability Analysis
In addition to robustness considerations, it is essential to examine whether the five parameters of the electromechanical model, , are structurally identifiable under the step–response experiments conducted in this study. To assess this, we computed numerical sensitivities of both armature current and angular velocity with respect to each parameter using finite–difference perturbations around the identified operating points.
For the Mavilor CML-050 motor, the sensitivity of the simulated output
with respect to parameter
was approximated as
where
is the
j-th canonical vector and
is a small relative perturbation (
). To obtain comparable and dimensionless curves, the sensitivities were normalized as
Figure 1 displays the normalized current sensitivities for the Mavilor motor, while
Figure 2 shows the corresponding normalized speed sensitivities. Each parameter exhibits a clearly distinguishable temporal signature:
K dominates the fast electromechanical interaction and produces the characteristic current dip;
R and
L primarily affect the sharp electrical transient;
J shapes the medium–scale acceleration phase; and
B influences the late decay and steady-state level of the speed. These distinct patterns indicate that the measured outputs respond differently to each parameter, suggesting good theoretical separability.
To formalize the separability of these signatures, the normalized sensitivities of current and speed were stacked into the matrix
where
N denotes the number of time samples. A singular–value decomposition of
for the Mavilor experiment produced the strictly positive singular values
yielding
and a moderate condition number
. The full-column-rank property and the singular-value spectrum, summarized in
Figure 3, confirm that all five parameters are structurally identifiable under the considered step–response excitation. Although
L and
J exhibit the smallest sensitivity magnitudes—a natural consequence of electrical–mechanical time-scale separation and encoder quantization—their signatures remain linearly independent. The practical implications of their weaker excitation are further examined through Monte Carlo analyses over randomized initializations in
Section 4.5.
The same procedure was repeated for the RMCS2004 motor using the parameters identified from its real step response. The normalized current and speed sensitivities are shown in
Figure 4 and
Figure 5, respectively. As in the CML-050 case, each parameter exhibits a distinct temporal pattern:
K and
R dominate the sharp electrical transient,
J and
B shape the medium and long time scales of the speed response, and
L mainly affects the current dynamics around the step onset. The relative magnitudes differ from those of the smaller motor, reflecting the higher inertia and lower resistance of the RMCS2004, but the qualitative separation between parameters is preserved.
Stacking the normalized current and speed sensitivities into the corresponding matrix
and performing an SVD yields the singular values
again with full column rank
and a condition number
as shown in
Figure 6. The tighter spread of singular values relative to the Mavilor case indicates slightly better conditioning of the parameter estimation problem for this actuator, despite its larger inertia and longer mechanical time constant.
These analyses confirm that the five-parameter model is structurally identifiable under the tested conditions. This supports the use of the proposed grey-box framework as a general tool for DC motor actuators.
4.5. Robustness to Initial Conditions
Beyond structural identifiability, it is crucial to evaluate the sensitivity of the proposed grey-box estimator to poor or highly distorted initial guesses of the parameter vector. To this end, we conducted Monte Carlo experiments in which the Levenberg–Marquardt solver was repeatedly initialized from randomized perturbations of the reference solution, while keeping all other settings (log-parameterization, residual normalization, ODE tolerances, and constraints) identical to those used in the main identification runs.
Given a reference parameter vector
obtained from the experimental step response of each motor, we generated randomized initial guesses of the form
where
denotes a log-uniform distribution over
, and ⊙ is the element-wise product. In other words, each parameter was independently scaled between
and
of its reference value before optimization. For each run, the solver operated in log-parameter space,
, thereby enforcing strict positivity and improving numerical conditioning.
To quantify robustness, two metrics were monitored:
A run was classified as a “good fit” if it satisfied and (10%), which are conservative thresholds compared with the errors achieved in the main identification experiments.
For the Mavilor CML-050 motor, 100 randomized initializations were tested. In all cases, the algorithm terminated with finite residual norm and physically admissible parameters (
), without numerical failure or violation of the current-limit constraint. The vast majority of runs converged back to the same basin of attraction as the reference solution, with
remaining close to the nominal value reported in
Section 4 and only a few runs exhibiting slightly larger but still acceptable trajectory errors. Even when individual parameters were simultaneously mis-scaled by factors approaching
their reference values, the fitted models continued to reproduce the measured step responses with small deviations in speed and current.
A more extensive experiment was performed for the RMCS2004 actuator, using
randomized initializations within the same
range. According to the criteria in (
7), 89 runs were classified as good fits, while 11 runs exhibited larger parameter deviations and were therefore classified as poor fits. Among the good fits, the statistics were as follows:
For the group of poor-fit runs, the average trajectory error remained moderate, with , and no run produced nonphysical (negative) parameters. In practice, most good-fit runs converged to nearly indistinguishable parameter vectors and error levels, indicating a large basin of attraction around the physically plausible solution.
These Monte Carlo experiments over random initializations show that the proposed constrained grey-box formulation is only weakly sensitive to the choice of initial parameters. The combination of log-parameterization, steady-state algebraic penalties, and the current-limit constraint effectively guides the optimizer toward a robust basin of attraction in parameter space, even when starting from initial guesses that deviate by more than one order of magnitude from the final estimates. This empirical robustness complements the structural identifiability analysis of
Section 4.1 and addresses practical concerns about convergence from poor starting points.