1. Introduction
To optimize transient processes in electromechanical systems, an accurate mathematical representation of the controlled plant is essential. In order to apply the full range of analytical methods from linear automatic control theory, system models are typically expressed as sets of ordinary differential equations. However, real control objects are inherently nonlinear. A characteristic feature of electromechanical systems is the presence of power–law relationships in their mathematical descriptions—for example, the dependence of the resisting torque on angular velocity in turbomachinery.
One of the fundamental physical phenomena responsible for the nonlinear behavior of electromechanical energy conversion is magnetic saturation in electrical machines, where the magnetic flux depends nonlinearly on the winding current. This relationship is typically described by a power–law function. DC motors with series excitation, brushless DC motors, and electromagnetic brakes are notable examples of electrical machines that frequently, or almost continuously, operate near the magnetic saturation region [
1,
2,
3].
Permanent-magnet direct-current motors (BLDC, PMSM) are among the most common types of electrical machines. This popularity is explained by several advantages: a simple mechanical design, high rotational speed (up to 20,000 rpm), relatively low manufacturing cost (compared with permanent-magnet machines), and the ability to operate from both DC and AC power sources. Such universal motors are widely used in household appliances, including washing machines, drills, angle grinders, and vacuum cleaners. In addition, series-excited DC motors provide high starting torque, which makes them suitable for applications such as electric vehicles, elevators, and cranes.
Brushless direct-current motors (BLDCMs) have become increasingly widespread in recent decades. Their production is more resource-efficient: the rotor contains no windings, and the stator requires 30–40% less copper compared with asynchronous motors. The manufacturing process is also simpler. Switched reluctance motors (SRMs) are up to four times cheaper, offer a wider speed range, and can operate across a broader temperature span than permanent-magnet synchronous machines. One reason for these advantages is their salient pole structure. However, this structure also introduces drawbacks: the electromechanical energy conversion occurs in a pulsed mode, generating acoustic noise, and magnetic saturation leads to nonlinear characteristics that complicate control.
These nonlinearities—and their representation in mathematical models by power–law dependences—give rise to characteristic features in the dynamic behavior of electromechanical systems: fast initial transients followed by prolonged settling phases. Similar transient characteristics also appear in systems affected by diffusion-dominated processes and memory effects [
4,
5]. In such cases, modeling nonlinear plants with integer-order differential equations results in significant errors or forces an unjustified increase in the order of the linear model [
6].
Fractional differential equations provide significantly higher identification accuracy for nonlinear electromechanical systems while preserving a relatively simple mathematical structure [
2,
5,
6,
7,
8]. Although fractional calculus has been under development since the late seventeenth century, its most rapid advancement has occurred over the past 30–35 years. This progress is closely linked to the evolution of computing technologies, as numerical computation of fractional operators requires processing large datasets. With the development of various approximation techniques for fractional integrals, controllers incorporating fractional-order components have become applicable even in high-speed systems. This enables improved control quality based on more accurate dynamic models and allows for the optimization of transient behaviors [
3,
5,
9,
10].
The main advantage of fractional differential equations over traditional integer-order models with embedded nonlinearities is that they remain within the class of linear differential equations. As a result, classical automatic control theory tools—such as stability analysis, robustness assessment, and frequency-domain techniques—can be applied to fractional-order systems in a manner analogous to their application to integer-order systems [
8,
11,
12].
In control theory, PID controllers are among the most widely used system components. They consist of proportional, integral, and derivative elements. In its simplest representation, a control loop employing such a controller can be described as two transfer-function blocks—one for the controller and one for the plant—connected through a single negative feedback loop [
7,
9,
12].
The mathematical model of a classical PID controller in the Laplace domain is expressed as a weighted sum of the input signal and its integral and derivative components:
where
are input and output signals, coefficients of the proportional, integral and differential components of the controller, respectively.
It is evident that incorporating fractional-order integral and derivative components in (1) enables the design of a more flexible controller, capable of replacing a substantially higher-order integer controller while preserving or even enhancing the quality of both transient and steady-state responses [
5,
7,
8]. Such controllers are denoted by an abbreviation
and their transfer function is as follows:
If it is possible to use the property of integral and differential calculus
, that is, to accept
, then the transfer function of the controller can be written in the following form:
which can significantly simplify the calculation of the output signal of the controller.
The issue of applying fractional-order regulators has been the subject of numerous studies.
In [
13], a comparative analysis of different types of controllers was performed, showing that a complex PI-PD controller outperforms traditional and fractional counterparts in terms of accuracy, speed, and noise immunity, but its practical implementation is difficult due to high computational costs. Nevertheless, both complex and fractional controllers demonstrate significant potential for improving the accuracy and robustness of nonlinear system control, which determines the prospects for their further research and optimization.
The results of the study [
14] confirm that a complex PI-PD controller has the best accuracy, speed, and interference suppression characteristics, while fractional-order controllers, representing a compromise solution, open up significant prospects for improving the robustness and accuracy of nonlinear object control, which determines the directions for their further study and optimization.
The study conducted in [
15] compares the effectiveness of various control strategies–the classic PI controller, its versions optimized using Gray Wolf Optimization (GWO) computational intelligence method and with the help of a deep learning agent with RL-TD3 reinforcement, as well as a fractional-order controller, to improve the performance of a universal power quality compensator (UPQC). The simulation results confirm that the best performance in terms of steady-state error, voltage ripple, and harmonic distortion reduction is provided by control systems based on a reinforcement learning agent (RL-TD3), which outperform classic PI controllers.
The paper [
16] presents a comparative study of a fractional-order PID controller (FO-PID) and a standard PID controller for a nonlinear two-link manipulator system, where a genetic algorithm was used to tune the controllers. The simulation results, evaluated according to a number of integral criteria (ISE, IAE, ITAE, ITSE) and dynamic characteristics, demonstrated the advantages of the fractional-order controller, and a comparative performance matrix was proposed to facilitate the choice between controllers.
The paper [
17] addresses the problem of improving the control accuracy of a nonlinear electromechanical object, namely a valve-inductor motor, using fractional-order PID controllers. Their advantage over similar integer-order controllers is demonstrated.
However, studies [
13,
14,
15,
16,
17] do not address issues of improving control quality when using ANNs in fractional-order controllers.
However, in [
18], a study was conducted on hybrid control systems combining classical and fractional PID controllers with artificial neural networks to solve the problem of precise positioning of a two-link manipulator. The best results in position tracking and resistance to external disturbances were shown by the neural network fractional PID controller (NNFOPID), whose parameters were optimized using the Gorilla Forces Troops Optimization algorithm (GTO).
Research goal. To develop and rigorously evaluate an adaptive control framework for BLDC motor drives based on fractional PI–PIμD controllers with neural network adaptation, aimed at improving tracking accuracy, enhancing stability margins, and strengthening transient performance under pronounced nonlinearities, parameter variations, and changes in the plant’s fractional order.
2. Identification of the Control Object
Accurate modeling of nonlinearities and transient behaviors is essential for analyzing dynamic processes in electromechanical systems. To properly evaluate the performance of the proposed control algorithms under real operating conditions, it is necessary to examine the dynamic characteristics of the controlled object—a brushless direct-current motor.
When subjected to voltage surges, a brushless direct current motor exhibits characteristic transient processes ω(t), which describe the system’s dynamic response to sudden changes in the supply voltage. To analyze these transients and verify the adequacy of the mathematical model, a detailed simulation of the motor was performed in Matlab/Simulink model. The simulation is based on the standard three-phase BLDC motor with Rs = 0.7 Ohm, Ls = 2.7 mH, flux linkage = 0.1194, and J = 0.0027 kg·m2. The model uses a BLDC motor with four pole pairs available in the Simulink library, ensuring accurate implementation of the electromechanical equations and providing a realistic representation of the motor’s dynamic behavior.
This standard model enables a comprehensive analysis of the BLDC motor’s operation under various control modes, parameter variations, and load disturbances. The obtained simulation results, illustrating the motor’s transient responses in terms of angular speed
ω(t), are presented in
Figure 1.
When such transient processes are modeled using an integer-order differential equation, acceptable accuracy can be achieved only if the equation order is at least three. In this case, synthesizing a speed controller that ensures astatic behavior with respect to both reference and disturbance inputs results in at least two derivative terms in the controller structure, which creates practical difficulties for implementation.
When applying fractional-order calculus, powerful tools for system identification are provided by MATLAB R2020a or later toolboxes such as FOMCON, CRONE, and Ninteger [
9,
11,
19,
20,
21]. However, they are characterized by a common drawback—they select models with several components of differentiation and integration of different orders, not related to each other by relations of the form
. This also leads to difficulties in the technical implementation of synthesized controllers.
Let us consider the following transfer function as the basic model:
When this element is placed under a single feedback loop, the resulting transfer function can be interpreted as a model of the motor, with its output variable normalized to relative units:
Considering the uncompensated time constant of the control system
and the gain of the power converter
, we obtain the equivalent transfer function of the control object in the following form:
For different operating speeds, the parameters of this model were determined and can be approximated with sufficient accuracy by linear dependencies on the ideal no-load speed expressed in relative units (
Figure 2):
As a result, transient characteristics Y(t) of the motor speed during a voltage surge were obtained, some of which are shown in
Figure 3.
Table 1 presents the accuracy metrics of the resulting model.
The resulting model provides sufficient static and dynamic accuracy for the synthesis of a closed-loop speed control system.
3. Synthesis of Linear Controllers
Considering the obtained model as a basic one, we synthesize a family of speed controllers to process the given tachograms.
Several assumptions were made in the simulation: the supply voltage limit is set much higher than the nominal one so that the controllers operate mainly in the active mode, not the saturation mode. The motor speed is calculated in relative units, the step is assumed to be the same in all the graphs below, and the relative time is displayed on the abscissa axes.
The solution of fractional differential equations describing the object is based on the transfer function (4), which allows calculating the fractional integral of the signal only once. Here and earlier, during identification, calculations of transient processes were performed by the finite increment method, using the Oustaloup decomposition [
13] with several subranges
from 0 on a logarithmic scale in the frequency range
for precise coverage of the area
:
With such conversion parameters in the frequency range of , the deviation of the logarithmic amplitude-frequency characteristic (LAFC) is 0.0129 dB/dec, and the logarithmic phase frequency characteristic (LPFC) is 0.0243 rad, and in the range of interest to us—0.0007 dB/dec and 0.0030 rad, respectively—which ensures the calculation of the fractional integral of a single jump with an error of no more than 0.00080.
Let us consider several options.
The simplest is the classic controller, which can be configured to ensure the modular optimum, assuming that
. For this, the open-loop transfer function, including the controller and the control object, should have the following form [
3]:
Then we obtain a PID controller with parameters:
Let us refer to this controller as IntPID. Since it contains an integrating element, placing it under a single negative feedback loop yields an astatic system of order one with respect to both reference and disturbance inputs.
For an object that includes a fractional order element
, it is possible to synthesize a controller that provides an astatic order
with a transfer function of the tuned open loop of the following form:
The synthesis procedure is described in detail in [
2,
3], and here, we will only use the necessary formulas for calculating the constants
:
is obtained. Let us call such a controller FrPID.
It contains only one component with a fractional order of integration, the value of which
for the input signal
can be calculated by the finite increment method, using the following formula for the factors in (8) for each j-th moment of time:
This procedure can be readily adapted to a microcontroller programming language and implemented directly into the control software.
A notable feature of the synthesized controller is that it provides the system with an astaticism order greater than one while maintaining stability margins comparable to those achieved with modulus-optimal tuning. As a result, the system exhibits reduced oscillations and eliminates not only the steady-state error but also the speed tracking error.
Let us examine a system with different types of controllers. From here on, the control object will be the BLDC motor, accelerating to its nominal speed under the same conditions considered when identifying this motor at the start of operation.
As a result of simulating a system with the two controller types under a linearly varying reference signal, the transient response plots shown in
Figure 4a were obtained. Visually, the responses appear almost identical for both controllers. However,
Figure 4b clearly demonstrates that the error trajectories differ significantly: the root-mean-square error over the initial segment of the transient process (from point 1 to 10,000) and over the full interval (from point 1 to 50,000) is nearly five times lower.
Table 2 shows the root-mean-square errors characterizing the beginning (1:10,000) and the entire transient process (1:50,000).
Table 2 and
Figure 4 show the advantages of the fractional-integral controller: it not only reduced the mean square error by five times, but also ensured a constant or even decreasing speed error with a linear change in the reference signal, and in the steady-state mode the error is 5–10 times smaller and tends to 0.
4. Synthesis of Neurocontrollers
The synthesized linear controllers provided reasonably satisfactory results. However, variations in plant parameters at different operating speeds—and potentially under the influence of additional external or internal factors such as temperature—may adversely affect control accuracy.
One possible approach to achieving adaptability is the use of neural controllers [
22,
23,
24,
25], whose structure is identical to that of the synthesized linear IntPID and FrPID controllers. In these controllers, the fixed-gain amplifiers are replaced by relatively simple fully connected feedforward neural networks with a small number of neurons (
Figure 5).
Let us designate such controllers as NN-IntPID, NN-FrPID, respectively.
Then we can conditionally (mindful about the incorrectness of using the nonlinear functions in the Laplace transform) write the transfer functions of the controllers in the following form:
where
are nonlinear functions of neural networks that complement the corresponding components of PID controllers.
Such neural networks should contain one neuron in the input layer, one in the output layer, and 5–10 neurons in the hidden layer. If hyperbolic tangent is used as activation functions, then they form some centrally symmetric nonlinear dependence between the magnitude of error and the output values of individual components. Such three-layer ANNs are generated as sets of matrices of a given configuration with random weight coefficients of neurons of the hidden layer w2 and output neurons w3. The following are fragments of the program in the language used in the Matlab m-files; however, they can be easily adapted to almost any other programming language that is intended for working with matrices:
% initialization
w2 = rand(1,10) ∗ 3.5;
w3 = rand(10,1) ∗ 3.5.
Traditionally, the mean square error is calculated on a certain test interval with subsequent correction of the network weight coefficients by the backpropagation method using the Levenberg–Marquardt or gradient descent algorithms for training ANNs [
25,
26,
27]. However, for the considered class of objects, a fast-training algorithm can be applied during each cycle of executing the transient process calculation program [
28]. For this purpose, the model of the control object is used, and the error is calculated in each cycle of calculating the controller output signal and the model response
. Since the synthesized controller is designed to achieve an error equal to zero, its value is used to correct the weight coefficients by the backpropagation method. We will also take into account that when using a hyperbolic tangent as the activation function of the hidden layer neurons and the output neuron
, the gradient descent method is based on a simple relationship
. Then, the calculation of the correction value of the weight coefficients is carried out according to the formula [
29]:
where
E—round mean square error,
—error of output neurons,
—error of hidden neurons, the learning coefficient
is set in the range from 0.1 to 1.0 and, understanding the matrix processing procedures as the operators «*»—vector product, «.*»—element-wise multiplication, and «’»—matrix transposition. Based on this formula, the core of the program is obtained:
% regulator
e = Uref − Yc;
Uc = Kr ∗ S(S(e ∗ w2) ∗ w3);
% object in finite increments
Yc = f(Uc, dt, …);
% learning–error back-propagation with scaled conjugate gradient for w2, w3
e2 = w3’ ∗ e;
s3 = tanh(e2);
S3 = (1 + s3) .∗ (1 − s3);
dE3 = e .∗ (S3 .∗ s3)’;
w3 = w3 + alfa ∗ dE3;
e1 = w2’ ∗ e2;
s2 = tanh(e1);
S2 = (1 + s2) .∗ (1 − s2);
dE2 = e2 .∗ (S2 .∗ s2)’;
w2 = w2 + alfa ∗ dE2;
It is important to note that it is advisable to conduct training with a changing reference signal so that the controller does not enter saturation mode. We chose a signal linearly increasing from 0 to 1.
As a result of repeating this procedure for 100–200 epochs, we obtained the settings of the controller, which we then tested by applying a jump and a linearly changing signal.
The changes in the system’s behavior with NN-IntPID during training are shown in
Figure 6 (one can see how the error gradually decreases during the learning process, especially when changing the derivative of the input signal), and the response to testing the signals after training is shown in
Figure 7.
A similar procedure was carried out with the NN–FrPID controller (
Figure 8).
Figure 9 compares the graphs of the change in the error in transient processes when using different controllers, and
Table 3 shows the change in the relative root mean square error depending on the controller type.
It is important to note that using the parameters of the IntPID and FrPID controllers as a preliminary setting allows us to find the required parameters of the neurocontroller faster, even if the parameters of the object differ from the calculated ones. Transient processes were obtained with significant differences between the “calculated” and “actual” parameters ( is 25% higher, is twice less; are 25% lower, is twice more); however, in both cases, the training result was achieved—during acceleration, RMSE was 0.00089 and 0.00071, respectively.
Additionally, the developed controllers successfully operate in a system with not only time constants that have changed or are changing, but also the order of the fractional differential equation, which may correspond to changes in the properties of the BLDC motor at different speeds and loads. Thus, in a system configured with an object described by a fractional differential equation with order
, testing was carried out with a changing order during the transient process from 0.5 to 0.8 and from 0.8 to 0.5. In both cases, NN–FrPID provides the best accuracy (
Table 4).
5. Experimental Implementation of the Controller Based on the Intel Galileo Gen. 2 Microcontroller
Currently, examples of control systems with fractional-integral controllers are known, for example, [
2,
13,
14,
15], along with their advantages over classical PID controllers [
2,
16,
17]. Various methods for approximately calculating the fractional integral of a time-varying signal are also known. The procedure proposed in this paper for optimizing the parameters of these controllers using artificial neural networks requires verification of the feasibility of calculating the fractional integral and procedures related to the operation and training of feedforward neural networks based on single-chip microcontrollers used in industrial devices.
The main operation that the controller must perform is the calculation of the fractional integral. Therefore, to verify the feasibility of implementing the proposed regulator based on Formulas (8) and (14), a program was developed for Arduino series controllers: Mega2560 and Intel Galileo Gen. 2 (
Figure 10). The program code is provided in the Addendum.
The first controller is based on a 16-bit ATmega328 (ATMEGA2560) processor from Microchip Technology (Chandler, AZ, USA) with integer arithmetic. The Arduino IDE environment provides the necessary libraries for handling standard C++ data types and performing mathematical operations with real numbers. However, such operations are executed through separate subroutines, and testing showed that for calculating a fractional integral of order 0.5 with a time step of 0.01 s, this processor requires an approximately 200 times longer computation time—2.17 to 2.39 s.
The second controller is based on a 32-bit Intel® Quark™ SoC X1000 processor from Intel Corporation (Santa Clara, CA, USA) equipped with a mathematical coprocessor, including support for real numbers in double format. For this processor, performing fractional-integral calculations using the Oustaloup transformation over the frequency range of 0.1
3.75… 10
3.75 with a time step of 0.01 s takes about twice the required computation time. However, reducing the frequency range to 0.1
2.75…10
2.75 s
−1 significantly accelerates the calculations—the program execution time for an actual interval of 2 s was 0.407 s, meaning that the processor achieves a speed five times greater than the minimum required (
Appendix A. Sketch_fractional_integral.ino). Under these frequency range conditions, between 0.01 and 100 s
−1, the deviation of the LAFC is 0.0160 dB/dec, and of the LPFC is 0.0095 rad (vs. 0.0113 dB/dec and 0.0030 rad), the root-mean-square error increases to 0.0089 (compared to 0.00080), and the graph of the instantaneous error, which increases by approximately seven times, is shown in
Figure 11.
Using the Serial Plot tool, a graph of the output signal from the program calculating the fractional integral of order 0.5 under a unit step input was constructed. The calculation in the program is performed with the time step
required to achieve the desired accuracy, while the display step in Serial Plot is chosen according to the number of points stored in this tool, 50 (
Figure 12).
It is evident that the graph coincides with the one obtained using computer-based calculations. For engineering computations in feedback control systems, this level of error is considered acceptable.
The neural network training procedure (
Appendix A. Sketch_ANN_learning.ino) is performed significantly faster (
Figure 13): we deliberately increased the number of epochs to 1000 and 10,000 and obtained the following average computation times for 10 neurons in the hidden layer—61…62 ms/1000 epochs and 599…601 ms/10,000 epochs, i.e., approximately 0.06 ms per epoch; for 3 neurons—0.02 ms per epoch; and for 2 neurons—0.014 ms per epoch.
Thus, it can be concluded that the feasibility of implementing the proposed controllers is well supported.
6. Discussion and Conclusions
In this study, the start-up processes of a brushless direct-current motor were modeled, and it was demonstrated that, with an error not exceeding 2%, the resulting transient responses can be described as the solution to a fractional differential equation, with the plant characterized by the corresponding transfer function (6). Using a classical PI or PID controller in the control system of such a plant yields a relative error under a linear reference signal of approximately 0.010–0.012; however, the speed error increases to about 0.025, and the static error only decreases slowly, which is a behavior characteristic of fractional-aperiodic systems. A substantial improvement—namely a fivefold or greater reduction in the root-mean-square error, along with a rapid decrease in both the static error and the relative speed error to 0.002—is achieved when employing a controller with fractional-order integral and derivative components, which imparts to the system an astatic behavior of order 1.8 with respect to reference and disturbance inputs.
Nevertheless, even these performance levels can be further enhanced. Higher control accuracy was obtained through a synergistic approach combining two areas within the field of soft computing–neural network control and fractional differential and integral computation. A neurocontroller with the same structural configuration as the FrPID, but augmented with fully connected three-layer feedforward neural networks acting as preamplifiers for the fractional integral and proportional components, enables both the static error and the speed error to approach zero over most of the transient response.
In our opinion, this result became possible due to two more factors: 1. using a fast training algorithm—in each cycle of the transient process calculation program—based only on the instantaneous error value and considering that the aim of training is to reduce the error to zero; 2. preliminary selection of the structure and coefficients of the controller, which allows you to quickly find the necessary weighting coefficients of the neurocontroller, even if the actual parameters of the object differ from the calculated ones. The check has shown that not only deviations of the time constants, but also a change in the order of the fractional differential equation in the description of the object do not lead to instability, oscillation or any significant changes in the dynamic and static indicators, as evidenced by a comparison of the error graphs in
Figure 10 and the root-mean-square errors given in
Table 3 and
Table 4.
It is also important to note that, given the similarity in the mathematical descriptions of BLDC motors, series-excited DC motors, and universal commutator motors, the proposed approach for synthesizing neural controllers can be applied to all of these machine types, as well as to other classes of controllers.
Using the developed approach for controller synthesis, we designed a control system for a DC drive of a complex mechanism equipped with a 3.5 MW motor with series excitation, which is subject to high accuracy requirements for following the specified tachogram (s-shaped diagram of start and braking to/from the nominal speed), including during rapid nominal load drops and surges in process of cutting rolling steel.
The DC drive model accounts for numerous characteristics of both the electrical and mechanical subsystems, including a three-loop cascade control structure for voltage, current, and speed regulation; the delay introduced by the thyristor voltage converter; the multi-mass kinematic configuration; and the dependence of the magnetic flux on the armature current.
As a result of combining a neural and fractional-integral speed controller, extremely efficient control performance is achieved.
Figure 14 compares the transient response graphs and the speed error in the basic cascade control system (a) and in the system with the developed NN-PI-PI
μD speed controller (b).
The speed error during start–stop operations decreased from 0.057 to 0.0048, and during load surges and drops from –0.048/+0.06 to –0.0067/+0.004 (in relative units of the nominal speed).
Verification of these statements, including experimental studies taking into account quantization in time and level in the control system, and the noise level of feedback signals, may be the subject of further research.