Next Article in Journal
An Investigation of the Heating Performance of a Groundwater-Based Air Conditioning System for an Agricultural Greenhouse
Previous Article in Journal
Theoretical Study on Critical Liquid-Carrying Capacity of Gas Wells in Fuling Shale Gas Field
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Optimization of Diesel Engine Speed Control Based on UKF-Filtered Data and PSO Fuzzy PID Control

1
Key Laboratory of Hunan Province for Efficient Power System and Intelligent Manufacturing, Shaoyang University, Shaoyang 422000, China
2
Department of Mechanical and Energy Engineering, Shaoyang University, Shaoyang 422000, China
3
Department of Mechanical and Energy Engineering, Beijing University, Beijing 100124, China
4
Hunan Binhu Diesel Engine Co., Ltd., Yiyang 413002, China
*
Author to whom correspondence should be addressed.
Processes 2025, 13(3), 777; https://doi.org/10.3390/pr13030777
Submission received: 23 January 2025 / Revised: 3 March 2025 / Accepted: 5 March 2025 / Published: 7 March 2025
(This article belongs to the Section Process Control and Monitoring)

Abstract

:
With the continuous development of industrial automation, diesel engines play an increasingly important role in various types of construction machinery and power generation equipment. Improving the dynamic and static performance of the speed control system of single-cylinder diesel engines can not only significantly improve the efficiency of the equipment, but also effectively reduce energy consumption and emissions. Particle swarm optimization (PSO) fuzzy PID control algorithms have been widely used in many complex engineering problems due to their powerful global optimization capability and excellent adaptability. Currently, PSO-based fuzzy PID control research mainly integrates hybrid algorithmic strategies to avoid the local optimum problem, and lacks optimization of the dynamic noise suppression of the input error and the rate of change of the error. This makes the algorithm susceptible to the coupling of the system uncertainty and measurement disturbances during the parameter optimization process, leading to performance degradation. For this reason, this study proposes a new framework based on the synergistic optimization of the untraceable Kalman filter (UKF) and PSO fuzzy PID control for the speed control system of a single-cylinder diesel engine. A PSO-optimized fuzzy PID controller is designed by obtaining accurate speed estimation data using the UKF. The PSO is capable of quickly adjusting the fuzzy PID parameters so as to effectively alleviate the nonlinearity and uncertainty problems during the operation of diesel engines. By establishing a Matlab/Simulink simulation model, the diesel engine speed step response experiments (i.e., startup experiments) and load mutation experiments were carried out, and the measurement noise and process noise were imposed. The simulation results show that the optimized diesel engine speed control system is able to reduce the overshoot by 76%, shorten the regulation time by 58%, and improve the noise reduction by 25% compared with the conventional PID control. Compared with the PSO fuzzy PID control algorithm without UKF noise reduction, the optimized scheme reduces the overshoot by 20%, shortens the regulation time by 48%, and improves the noise reduction effect by 23%. The results show that the PSO fuzzy PID control method with integrated UKF has superior control performance in terms of system stability and accuracy. The algorithm significantly improves the responsiveness and stability of diesel engine speed, achieves better control effect in the optimization of diesel engine speed control, and provides a useful reference for the optimization of other diesel engine control systems. In addition, this study establishes the GT-POWER model of a 168 F single-cylinder diesel engine, and compares the cylinder pressure and fuel consumption under four operating conditions through bench tests to ensure the physical reasonableness of the kinetic input parameters and avoid algorithmic optimization on the distorted front-end model.

1. Introduction

With the strengthening of global environmental awareness and the increasingly serious energy crisis, countries around the world have introduced strict emission regulations and energy efficiency standards to reduce the environmental pollution and energy consumption of internal combustion engines. In China, with the introduction of the National VI emission standard, the emission requirements of diesel engines are higher, and the manufacturers of internal combustion engines are constantly adjusting the performance of internal combustion engine products to meet the requirements of emission regulations [1]. In recent years, the country has vigorously developed agricultural mechanization and small power generation equipment intelligence, and the state has invested much manpower and material resources, as well as policies to implement various plans. The National Agricultural Mechanization Development “14th Five-Year Plan” [2] clearly put forward the improvement of the level of agricultural machinery intelligence, and promoted efficient, safe, and environmentally friendly agricultural production. The above policy opens up a broad market and policy conditions for the research on, and application of, single-cylinder diesel engine speed control systems.
The single-cylinder diesel engine is widely used in agricultural machinery, small power generation equipment [3], and ship propulsion and other fields. The stability of the speed control of this engine has a vital impact on its operational efficiency and reliability in the whole system; therefore, improving the dynamic and static performance of the speed control system of the single-cylinder diesel engine is one of the key points in the research on the control of its power mechanical system. Figure 1 shows the complexity of the control system of the diesel engine, from the generation of the speed signal to the adjustment of the control system, the injection of fuel, the combustion of the cylinder to do work, and then to synchronization of the output to produce the crankshaft torque and thus the output of power. This is a very complex mechanical body involving a variety of disciplines such as fluid dynamics, combinatorics, mechanical principles, and control theory. This diesel engine has very strong nonlinearities, response hysteresis, and coupling phenomena [4].
Because the diesel engine system has relatively complex time-varying nonlinear and multi-input and multi-output characteristics, in the whole process of diesel engine operation, the sudden changes in load, mechanical wear, and other problems often make the control performance problematic [5]; at the same time, in the diesel engine, after a long period of time, the mechanical wear and tear makes the system dynamic characteristics change, which will also increase the difficulty of control. These factors will trigger the system’s dynamic and static performance deterioration, affecting the overall stability of the system as well as the operating efficiency [6], so the use of simple PID control of the diesel engine speed may not be ideal for performance improvement. Especially regarding diesel engine load changes and other complex operating conditions, some parameters in the PID controller cannot be adapted to the changes in the control requirements, and system performance is easily and obviously reduced. Therefore, how to find a suitable diesel engine speed control system is of particular significance.
In response to the above problems of control performance optimization, many scholars have proposed and used a fuzzy PID controller combining fuzzy logic and PID in the literature, and achieved certain practical results in some engineering fields: reference [7] proposed a fuzzy PID-based control method to solve the problem of a rice-planting robotic arm being affected by external disturbances, which affected the displacement tracking of the hydraulic rice-planting system, leading to the problem of reduced output accuracy. The method improves the step response time of the system by 56%. By using fuzzy PID control, the system is able to solve the problems related to nonlinearity and low control accuracy, thus improving its stability and dynamic performance. Reference [8] describes an enhanced fuzzy PID control system based on a grey model that adjusts the residuals using an improved gated recursive unit (GM-IPSO-GRU) based on particle swarm optimization. In addition, the system optimizes the control parameters by using the Improved Gray Wolf Optimization (IGWO) algorithm. Although the system overcomes the problems of nonlinearity, time variation, and time delay, the response speed and stability of the system still need to be improved. Compared with the traditional PID controller, the fuzzy PID controller can better deal with nonlinearity, uncertainty, and ambiguity in complex systems, and it can automatically adjust the parameters without manual adjustment, thus saving the adjustment time and adjustment cost [9].
However, the fuzzy PID control methodology still faces limitations such as reliance on manual parameter configuration, absence of self-adaptive adjustment mechanisms, and suboptimal performance when applied to complex systems with nonlinear and time-varying characteristics. Specifically, these constraints may lead to convergence to local optima and exhibit sluggish response dynamics in practical implementations. In order to facilitate the automatic optimization of control parameters to improve the performance, in recent years, global optimization algorithms such as Particle Swarm Optimization (PSO) have become an effective method to optimize the fuzzy PID parameters. PSO simulates the search of particles in the solution space, and is able to search for optimal scaling factors and quantization factors in the multidimensional space, thus significantly improving the control performance of fuzzy PID control. In terms of agricultural machinery, reference [10] used an IPSO-optimized fuzzy PID controller to implement adaptive head trimming for a cabbage harvester and verified the control accuracy of ±3 mm of gripping gap in a field test. However, this work failed to account for the real-time effects of dynamic changes in crop size on the control parameters. Similarly, reference [11] developed a dual closed-loop seeding system with radar speed measurement that achieved a field pass rate of 93.99% for corn seeding, but terrain-induced speed measurement errors still constrained the uniformity of seeding spacing. In vehicle engineering, reference [12] proposed a PSO fuzzy PID controller for in-wheel brushless DC motors, which can reduce the tire slip rate by 12%. Reference [13] pioneered a PSO-Fuzzy-PID controller for a greenhouse glass cleaner, which achieved an inter-wheel speed difference of 0.086 deg/s through Adams–Matlab co-simulation. For wind energy applications, reference [14] combined fuzzy inverse stepping sliding mode control with MOPSO to improve the power extraction efficiency by 18.7%, but the mechanical load fluctuation under sudden change of wind speed was still not optimal. For grid frequency regulation, reference [15] innovatively integrated supercapacitors and redox flow batteries to suppress system oscillations by 64%.
In the field of robotics and motor control, in reference [16], three different PSO algorithms based on cost function were used to optimize the fuzzy logic controller parameters of a two-degree-of-freedom planar robot, and the improved controller was derived by changing the model parameters and the reference trajectory, varying the model parameters, adding white noise for testing, and testing the robustness of the adjusted controller to provide valuable test method improvement results. Reference [17] proposed a two-dimensional fuzzy fractional PID controller to cope with a large number of parameters in a fractional order controller and designed a multi-objective PSO algorithm capable of determining the system parameters to optimize the parameter determination process. Reference [18] proposed a Genetic Particle Swarm Optimization (GAPSO) strategy for optimizing fuzzy PID control parameters for motor control. The method combines a genetic algorithm and particle swarm optimization through a genetic screening method to optimize the initial values of quantization factor, scale factor, and eigenfunction, which provides a new method for the adjustment of fuzzy PID control parameters.
Like fuzzy PID control, PSO-optimized fuzzy control is also widely used in many temperature control systems. The heat transfer process in temperature control is a typical nonlinear process, which is affected by factors such as the heat source, heat capacity, environmental conditions, etc. For the research object involved in this study, the system diesel engine speed control is affected by nonlinear factors such as engine load, fuel supply, and mechanical friction, and both systems are nonlinear systems. The application of the literature [19] can optimize the proportional weight coefficients of the fuzzy PID controller in the temperature control system of the resistance furnace, and this method better improves the key control indexes such as overshoot and steady-state error of this control system, and improves the quality and stability of temperature control. Reference [20] reduced the temperature response time of a PEM fuel cell under step disturbance to 2.3 s; reference [21] reduced the failure rate of an air handling unit by 64% through NARMAX modeling. While these studies validate the robustness of the PSO fuzzy PID architecture, few studies have fully utilized the state of the thermodynamic system for temperature estimation.
Currently, there are two common limitations in engineering research for PSO fuzzy PID algorithms: firstly, the problems of sensor error and noise; and secondly, the lack of real-time prediction of changes in environmental dynamics (e.g., gusts of wind, road friction, and crop morphology, etc.). The use of filters can effectively improve the above problems and enhance the control accuracy, while the speed control of diesel engines has certain nonlinearities, load perturbations, fuel supply issues, etc., that will affect the dynamic response of the speed, and the traditional Kalman filter (KF) is only applicable to linear systems, and is not able to solve the nonlinear problems. The Untraceable Kalman Filter (UKF), as an advanced filtering method, can provide high-precision state estimation in complex nonlinear systems and effectively suppress noise disturbances. Reference [22] describes a novel algorithm to simultaneously estimate the state of charge (SOC) and state of health (SOH) using a strongly tracking dual adaptive extended Kalman filter (ST-DAEKF). To enhance the tracking capability, an attenuation factor is incorporated in the method and an adaptive filter is used to dynamically adjust the noise parameters of the system. This approach is designed to mitigate the problems arising from large estimation errors in the SOC and SOH. Reference [23] designed an irrigation system based on Kalman filter PID controller using IAE, ISE, and cumulative ITAE for simulation. By modeling the dynamics using historical real-time data, the KF reduces the sensor output noise and improves the estimation accuracy. Reference [24] presents a hybrid optimization model that integrates an adaptive neuro-fuzzy inference system (ANFIS), a recursive Kalman filter, and neural wavelets for wind power prediction driven by a doubly-fed induction generator, which exhibits excellent performance. Reference [25] designed an algorithm for vehicle traveling state estimation by applying an adaptive Kalman filter combined with a fuzzy PID controller, demonstrating the accuracy of the Kalman filter in state estimation. Reference [26] optimized the PID gain of a hydraulic servo system using a genetic algorithm and combined it with Kalman filtering to reduce the external disturbances and amplitude fluctuations, and verified the effectiveness of the method in hydraulic servo systems. Reference [27] developed an observer for diagnosis and fault tolerant control of aging SCR (Selective Catalytic Reduction) systems using UKF, further highlighting the effectiveness of the filtering approach in fault detection and system management. Reference [28] proposed a temperature control system based on Kalman filtering fuzzy PID design. From the experimental results, the algorithm has short tuning time and almost zero overshoot, but its adaptability under complex operating conditions has not yet been clearly addressed. The current research results show that traceless Kalman filtering is an advanced filtering method that can provide high-precision state estimation in complex nonlinear systems and effectively suppress noise interference. If UKF is combined with PSO fuzzy PID control, it is expected to further improve the estimation accuracy and control performance of the system, and overcome the limitations of PID control and fuzzy PID control under noise and disturbances.
In response to the above research analysis, a PSO fuzzy PID control strategy for diesel engine speed optimization based on UKF filtered data is proposed. The strategy provides accurate estimation of diesel engine speed through UKF, effectively eliminating the influence of measurement noise and process noise on speed accuracy. Based on the accurate rotational speed data, the parameters of the fuzzy PID controller are optimized in combination with the PSO algorithm to achieve more accurate and robust control performance. We established a dynamic model of a single-cylinder diesel engine and built a simulation model of the algorithm in Matlab/Simulink (R2022b). By comparing it with four algorithms such as traditional PID control, we analyzed the optimization improvement of the proposed algorithm in terms of response time, overshooting amount, and steady-state error. Meanwhile, in the extension work of this study, the GT-POWER model of a 168 F single-cylinder diesel engine is built, and the cylinder pressure and fuel consumption parameters are verified through bench experiments, which lays the foundation for future joint simulation studies.

2. Single-Cylinder Diesel Engine Model

2.1. Diesel Engine Dynamics Model

The speed control system of a single-cylinder diesel engine is mainly composed of a governor, a fuel injection system, engine working parts, dynamic parts, and a measuring unit. The schematic diagram of the diesel engine system is shown in Figure 2, and the descriptions of the variables are shown in Table 1.
Under balance conditions, the output torque M of the diesel engine equals the sum of the friction and torque M f and the crankshaft load torque M t . By linearizing the system using the small deviation method, the motion equation of the diesel engine shaft system is obtained as follows:
J d ( M ) d t = M M f M t
where
  • J is the rotational inertia of the diesel engine unit.
  • ω is the crankshaft angular velocity.
Under balanced conditions, with the diesel load remaining constant, and only considering the effect of the rack position, Equation (1) is simplified to give the diesel engine’s motion equation as
T α d y ( t ) d t + T g y t = K η η t
where
  • y(t) is the diesel engine speed.
  • η(t) is the rack displacement.
  • Tα is the acceleration time constant of the diesel engine, representing the time required for the engine to reach the rated speed from zero in an idle state.
  • Tg is the self-stability coefficient, representing the diesel engine’s ability to automatically stabilize its speed.
  • Kη is the dynamic characteristic parameter of the diesel engine, representing the effect of the oil pump rack position change on the output torque of the crankshaft.
By applying the Laplace transform, the transfer function is derived as
G d ( s ) = Y s η s = K η T α s + 1
During the operation of the diesel engine, factors such as the thermal inertia of the combustion chamber in the fuel injection system cause delay in the engine’s response. The transfer function for this delay is
G τ ( s ) = e τ s
The diesel engine speed control system has many state variables and exhibits time-varying characteristics. Through practical application, it has been proven that after dimensionless and linear processing, the diesel engine speed control system can be modeled using a first-order inertia system. The simplified model is as follows:
G 1 s = G d s G τ S = 1 T τ s + 1 · e τ s K η = 1 , T g = 1
The technical parameters of the 168 F single-cylinder diesel engine are shown in Table 2.
Based on the above diesel engine technical parameters, the following diesel engine parameters can be calculated:
Rated angular velocity:
ω e = π 30 n e = 345.4   r a d / s
Rated torque:
M e = 30 P e π n e = 0.0092   N · M
Referring to the diesel engine speed characteristic experimental literature [29], the rotational inertia of the diesel engine unit is calculated as
J = 0.0006   k g · m 2
The diesel engine acceleration time constant T α is given by
T α = J ω e M e = 0.22   s
The delay time τ of the diesel engine is related to the number of cylinders z , stroke number, and speed n . For a four-stroke diesel engine, the delay time can be estimated as
15 n τ 15 n + 120 n z
Thus, 0.0045 τ 0.036   ( t a k i n g   τ = 0.02   s ) .
The diesel engine speed control actuator is an electromagnetic actuator. Electromagnetic actuators have advantages such as good dynamic characteristics, fast response, and strong anti-interference performance. The transfer function for the electromagnetic actuator is
G 2 ( s ) = F s P s = k 1 + T k s
where
  • k is the maximum displacement of the actuator, which is selected as 20 mm in this study.
  • Tk is the first-order inertia parameter, taken as 1.
Therefore, the whole speed control model of the diesel engine is
G ( s ) = G 1 ( s ) G 2 ( s ) = 20 0.22 s 2 + 1.22 s + 1 e 0.02 s

2.2. GT-POWER Model

The focus of this study is the optimization of the diesel engine speed control algorithm, and the control objective is to improve the speed tracking accuracy and anti-interference ability. The cylinder pressure of a diesel engine directly affects the output torque, which is closely related to the speed. Although the existing transfer function model takes into account the delay of the fuel injection system, engine inertia, and the dynamic characteristics of the actuator, there are still certain simplifications and limitations, such as not fully considering the complex effects of cylinder pressure and temperature fluctuations, changes in fuel characteristics, and other factors. In order to compensate for this deficiency, cylinder pressure was used as an internal state variable for model validation in the previous study to verify the accuracy of the transfer function. In the future, Matlab/Simulink and GT-POWER can be co-simulated to significantly improve the dynamic accuracy of the diesel engine model, especially in the cylinder pressure–fuel consumption multi-condition coupled analysis, to provide a more accurate dynamic response and a more realistic prediction of the operating state.
In Figure 3, the basic working principle of the diesel engine speed control system is as follows: First, the system sets a target speed. The microcontroller then receives this input signal and begins executing the fuzzy PID control algorithm. This algorithm primarily calculates the output duty cycle of the adjustable pulse width modulation (PWM) square wave signal based on the deviation between the target speed and the actual speed [30]. This PWM signal is then used by the driving circuit to control the opening of the electronic throttle, thereby accurately adjusting the speed of the diesel engine to ensure it reaches or maintains the set target speed.
The speed sensor is responsible for real-time monitoring of the diesel engine’s speed and converting it into an analog signal. This analog signal is converted into a digital signal by the TLV2548 analog-to-digital conversion chip, which is then transmitted to the microcontroller. Within the microcontroller, a dedicated speed data conversion program processes the received digital signal to obtain specific speed values and their trends, displaying this data and graphics on the upper computer’s monitoring interface through a serial port. Figure 4 illustrates the diesel engine test bench.
In this study, a simulation model of a 168 F single-cylinder diesel engine was built using GT-POWER, as shown in Figure 5. This diesel engine model includes several modules such as the external environment model, intake and exhaust duct system, intake and exhaust valves, fuel injector, cylinder, crankcase, and an external receiving device for the fuel injector signal [31]. The detailed key parameters in the GT-POWER simulation model are shown in Table 3.
In the calculation of the in-cylinder heat transfer model, the main use of the “Woschni” model, the “Woschni” formula is more recognized at home and abroad in the internal combustion engine heat transfer model; the calculation formula is as follows:
g = 2.06 × 10 7 p 0.8 T 0.53 D 0.2 S 1 S m + S 2 T a · V s p a · V a ( p p 1 ) 0.8 ( 2 1 )
where D ( m m ) is the cylinder diameter; S m ( m / s ) is the average piston speed; p a ( P a ) ,   T a ( P a ) ,   V a ( p a ) are the pressure, temperature ( K ) , and volume ( L ) of the work material in the cylinder at the end of compression, respectively; p 1 ( P a ) is the cylinder pressure when the engine is backed up and dragged; S 1 is the coefficient of the airflow velocity; and S 2 is the shape coefficient of the combustion chamber, and the direct-injection combustion chamber is taken to be 2 .
The dual Weber combustion model is selected for calculating cylinder combustion, which simulates combustion in two main parts: premixed combustion and diffusion combustion. The formula for premixed combustion is as follows:
d x 1 d φ = 6.908 m q + 1 1 2 γ m q + 1 φ φ B m q e 6.908 1 2 γ m q + 1 φ φ B m q + 1 ( 1 Q d )
where x 1 is the percentage of combustion in premixed combustion; φ is the crankshaft rotation angle, φ B is the combustion start angle, γ is the premixed combustion leading angle; and m q is the combustion quality index of premixed combustion. The formula for diffusion combustion is shown below:
d x 2 d φ = 6.908 m p + 1 1 φ z d m p + 1 φ φ B γ m p e 6.908 1 2 γ m p + 1 φ φ B γ m p + 1 Q d
where x 2 is the percentage of combustion in premixed combustion, φ z d is the diffusion combustion duration angle, and m p is the combustion quality index of diffusion combustion.
Injections can be set in the “Profile” column according to the actual situation of the corresponding injection flow map curve, which also supports the signal receiver module or external actuator to receive the injection signal from the outside world. The single-cylinder cycle injection volume is calculated from the simulation analysis of power, fuel consumption rate, operating speed, and other parameters:
m f u e l = P e · g e 60 · n · N c · ρ ( g / c y l )
where P e is the average effective power, eg is the fuel consumption rate, N c is the number of cylinders, n is the rotational speed, and ρ is the stroke coefficient, taking 1 for two-stroke and 0.5 for four-stroke.
To verify the accuracy of the model and its reliability, the single-cylinder diesel engine model was simulated under different loads of 100%, 75%, 50%, and 25%. The cylinder pressure curves obtained from the simulation calculations at different loads were compared with the actual cylinder pressure curves, as well as the fuel consumption data. The comparison results are as follows.
As can be seen in Figure 6 and Figure 7, the simulated cylinder pressure curves as well as the trajectories of the simulated and experimental fuel consumption values are very similar under the four different operating conditions. Comparison with the experimental values shows that the error of cylinder pressure calculation is about 3%; specifically, the maximum value of the error rate is 5.7% and the average value is 3.3%, while the error of the fuel consumption data is about 7.6%. Therefore, it can be concluded that the combustion sub-model simulation calculations of this diesel engine model under different loads have high accuracy and can be used for further analytical calculations in the future [32].

3. Methods

In order to further improve the static and dynamic performance of the diesel engine speed control system, this paper proposes an improved method that combines the untraceable Kalman filter with the particle swarm optimized fuzzy PID control technique. The speed sensor data received by the untraceable Kalman filter (UKF) accurately estimates the diesel engine speed through information such as torque and fuel injection, while filtering for the interference of Hall sensor measurement noise and process noise in the control system, and provides accurate speed data for the control system. Fuzzy PID control utilizes fuzzy logic to change the k p , k i , k d of the PID controller, effectively overcoming the shortcomings of the traditional PID method of poor control performance under nonlinear, time-varying, and complex operating conditions. At the same time, a PSO optimization algorithm is introduced to globally optimize the proportional factor and quantization factor in the fuzzy controller. By simulating the process of particle swarm searching for the optimal solution, the PSO algorithm realizes the indirect dynamic adjustment of the PID parameters, which further enhances the adaptability and robustness of the controller. By combining the accurate state estimation of the UKF with PSO-optimized fuzzy PID control, not only can the control parameters be precisely adjusted, but also can effectively deal with disturbances and uncertainties to ensure that the diesel engine maintains accurate speed control under different operating conditions. The technical flow chart of this paper is shown in Figure 8, and the principle of the collection of the UKF and PSO Fuzzy PID controllers is shown in Figure 9. The design and implementation methods of this control strategy are described in detail in the following section.

3.1. Unscented Kalman Filter

The Kalman filter is optimal for linear systems with Gaussian noise, but the noise in diesel engines is high and nonlinear, with time-varying dynamics and coupled disturbances. In the environment of a diesel generator system, diesel engines experience significant interference and noise. To improve the system’s control performance, this study uses UKF filtering to control the impact of disturbances and measurement noise on the system. The UKF filtering method approximates the nonlinear distribution using a sampling strategy, where the probability distribution of the nonlinear function is approximated. Based on the Unscented Transform, the Unscented Kalman Filtering framework is employed, with deterministic sampling as the form of sampling, unlike the random sampling in Particle Filtering, thus avoiding the particle degradation issue. It outperforms the Extended Kalman Filter and does not require the calculation of the Jacobian matrix [33].
The nonlinear system model in this study is converted into a discrete model, and its state and observation equations are
x k + 1 = f x k , u k + w k y k + 1 = h x k , u k + v k  
where x k = [ ω k   L k ] T is the system state vector, where ω k represents the diesel engine speed and L k is the system load.
f x is the state transition function, describing the dynamic evolution of the diesel engine from time step k to time step k + 1 .
The rotational inertia J governs the speed response to net torque:
ω k + 1 = ω k + Δ t J T e ( ω k , u k ) T l ( L k ) T f ( ω k ) + w ω , k
where T e depends nonlinearly on fuel injection quantity and combustion efficiency, and u k is the control input, which includes factors such as fuel injection quantity, throttle position, etc. T f represents speed-dependent friction losses, and w ω , k is the process noise for speed, assumed to be Gaussian noise with covariance Q k .
y k is the observation vector, which here represents the actual measured engine speed. h x k is the observation function, describing the system’s measurement process. v k is the observation noise, assumed to be Gaussian noise with covariance R k .
Load torque L k evolves as
L k + 1 = L k + Δ L k + w L , k
where Δ L k models external load variations, and w L , k captures unmodeled disturbances.
The observation equation h ( x k ) = ω k + v k directly measures the engine speed, with v k representing Hall sensor quantization noise ( R k = d i a g ( σ ω 2 ) ). Sensor noise is calibrated using the root mean square error (RMSE):
σ ω = 1 N i = 1 N ( r i r ) 2   ( N = 1000 )
where r i is the i t h rotational speed sampling point.
The calibration method is to calculate the standard deviation by recording 1000 rpm sampling points under the steady-state error condition, and the typical value is taken as ±50 rpm, which corresponds to 5 % FS.
The flowchart of the UKF is shown in Figure 10.
Step 1: Initialization.
k = 0 , E x 0 = x ^ 0 , E x 0 x ^ 0 x 0 x ^ 0 T = P 0
Calculate the Sigma sample points of the input variable within each sampling period k = 1,2 , 3 , n :
χ k 1 = x ^ k 1 , x ^ k 1 + γ P k 1 i , x ^ k 1 γ P k 1 i
where γ = n + λ , λ = α 2 n + κ n , where the parameter α [ 0.0001 , 1 ] ; κ is a secondary sampling factor; P k 1 i represents the i -th row or column of the matrix square root.
Step 2: For each sigma point, perform the nonlinear transformation and then take the average to update the state.
χ i , k | k 1 = f χ i , k 1 , u k 1
Then compute predicted mean x ^ k | k 1 and covariance P k | k 1 :
x ^ k | k 1 = i = 0 2 L W i m χ ^ i , k | k 1
P k | k 1 = i = 0 2 L W i c { χ ^ i , k | k 1 x ^ k | k 1 } { χ ^ i , k | k 1 x ^ k | k 1 } T + Q k
where W 0 ( c ) = λ n + λ + 1 α 2 + β , W 0 ( m ) = λ n + λ , W i ( c ) = W i ( m ) = 0.5 n + λ β , i = 1,2 , 3 , , 2 n ; where β is a higher-order error sampling factor. The optimal value of β when the error is Gaussian distributed is 2.
Step 3: Measurement update.
y ^ i , = h ( χ ^ i , k | k 1 )
y k = i = 0 2 n W i m y i , k | k 1
P y ^ k y ^ k = i = 0 2 n W i ( c ) { y ^ i , k | k 1 y ^ k } { y ^ i , k | k 1 y ^ k } T + R k
P x k y k = i = 0 2 n W i ( c ) { χ ^ i , k | k 1 x ^ k | k 1 } { y ^ i , k | k 1 y ^ k } T
Step 4: Update the state estimate using Kalman gain K k .
K k = P x k y k P y ^ k y ^ k 1
x ^ k | k = x ^ k | k 1 + K k ( y k y k )
P k | k = P k | k 1 K k P y ^ k y ^ k K k T
Process noise Q k = d i a g ( σ ω 2 , σ L 2 ) accounts for mechanical nonlinearities (gear backlash, friction hysteresis) and electromagnetic interference, approximated as Gaussian white noise. Measurement noise R k = σ ω 2 is calibrated via RMSE.
Above is the processing of the UKF algorithm for filtering and estimation of diesel engine speed. The algorithm uses the state augmentation method [34]. After determining the process noise covariance matrix Q k , the measurement noise covariance matrix R k , and the initial filter values x ^ 0 / 0 and P 0 / 0 , the state estimate x ^ k / k at time k can be obtained from the computed measurement value y k using the above calculation formulas.
In order to verify the noise reduction effect of the unscaled Kalman filter on the speed measurement data, we use Matlab (R2022b) to simulate the diesel engine speed step from 1500 rpm to 1000 rpm, and the results are shown in Figure 11.
It can be shown in Table 4 that the UKF can effectively suppress the measurement noise and provide a more accurate estimation of the diesel engine speed.
Under environmental disturbances, when using fuzzy PID control alone, the system often fails to avoid fluctuations and struggles to effectively handle control disturbances and eliminate measurement noise, resulting in suboptimal control performance. Given the significant advantage of the Unscented Kalman Filter in suppressing and eliminating noise, this paper proposes combining the Unscented Kalman Filter with a Particle Swarm Optimization fuzzy PID controller for joint system control.

3.2. Fuzzy PID Controller

In the single-cylinder diesel engine speed control system, the fuzzy PID control algorithm is used to adjust the fuel supply of the diesel engine in real time to ensure speed stability and response speed. When the working environment of the diesel engine is more complex and the load change is too large, due to the fluctuation of fuel quality, the change in ambient temperature and other factors will cause engine speed fluctuation, and the PID control algorithm is hard to adapt to the complex diesel engine operating conditions, which are prone to overshooting, oscillating, or excessive adjustment time [35]. Consequently, we selected the fuzzy PID control algorithm in this study, and the PID parameters were adjusted according to the changes in the operating conditions in which the diesel engine was located.
When the diesel engine load increases abruptly, the system generates a large deviation; at this time, the fuzzy controller recognizes this condition and immediately increases its proportionality coefficient K p and integral coefficient K i , increasing the response speed of the system and reducing the steady-state error. Conversely, when the system tends towards stability, the fuzzy controller will gradually decrease the proportional coefficient and increase the integral coefficient to eliminate residual deviations, thus ensuring stable engine speed under various operating conditions.
Accurate real-time data acquisition and processing are fundamental to ensuring control precision. The current actual speed of the diesel engine is obtained through sensors, and these data are filtered to remove noise interference. Subsequently, the filtered actual speed is compared with the preset target speed to obtain the speed deviation e and the rate of change of the deviation e c , which serve as the inputs to the fuzzy PID controller. After fuzzification, fuzzy reasoning is performed based on the established fuzzy rules, and finally, the defuzzified output provides the adjustment values for the PID parameters k p , k i , and k d .
A traditional PID controller performs proportional, derivative, and integral operations on the input–output error e ( t ) . It then weights and sums the results of these three operations to output control commands to the actuator, ensuring that the controlled object reaches the desired value. The proportional coefficient K p , integral coefficient K i , and derivative coefficient K d are critical factors that influence the system’s response speed, overshoot, stability, and steady-state error.
The PID control law is as follows:
u n = K p e n + T T i i = 0 n 1 + T d T e n e n 1
The output of the controller at the nth sampling instant is u ( n ) , and the input value at this instant is e ( n ) . K p is the proportional gain, T is the sampling period, and T i and T d are the integral and derivative time constants, respectively. From this, the gain of the control action between the ( n 1 ) -th and n -th sampling instants can be derived as follows:
u n = u n u n 1
= K p e n e n 1 + T T i e n 1 + T d T e n 2 e n 1 + e n 2
= K p e n e n 1 K i e n + K d e n 2 e n 1 + e n 2
where K p , K i , and K d are the proportional, integral, and derivative coefficients, respectively. The fuzzy sets for speed deviation e , rate of change of speed deviation e c , and outputs K p , K i , and K d are all {NB, NM, NS, ZE, PS, PM, PB}. The membership functions for the fuzzy subsets NB and PB are Gaussian functions, while the others are uniformly distributed, equidistant, and highly sensitive triangular functions [36]. The universes of discourse for e and e c are set to [ 6 ,   6 ] , and K p , K i , and K d are set to [ 3 ,   3 ] , with quantization levels {−3, −2, −1, 0, 1, 2, 3}. A fuzzy control rule table is formulated based on actual conditions. Summarized in Table 5 are 49 fuzzy control rules [36]. Figure 12 is the characteristic face of the fuzzy inference system.
Through fuzzy logic inference, the output is a fuzzy set, and defuzzification is performed using the centroid method:
u n = i = 1 n u i A u i i = 1 n A u i
where A ( u i ) is the membership function of the fuzzy set A at the element u i in the universe of discourse u , and u i is the i -th element in the universe of discourse u .
By combining the PID controller and the fuzzy controller, the system continuously monitors the error e and the rate of change of the error e c . Through a specified fuzzy algorithm, appropriate K p , K i , and K d values are determined and then output to the PID controller, thereby controlling the system’s operation.

3.3. PSO-Fuzzy-PID Controller

While fuzzy control can dynamically adjust PID parameters to effectively respond to environmental changes, the initial PID parameters and the quantization and scaling factors of the fuzzy control remain fixed and cannot be modified in real time, suggesting room for further optimization. The Particle Swarm Optimization (PSO) algorithm [37] is a heuristic optimization technique that mimics the collective behavior of bird flocks or fish schools. It searches for the optimal solution by adjusting the position and velocity of particles, updating based on both individual and group best historical solutions, with the goal of identifying the global optimum. In this study, the PSO optimization is run offline, mainly considering the computational time-consuming and safety issues. Since each simulation takes several minutes to hours, it cannot meet the real-time control requirements, and the offline optimization can avoid the interference of online debugging on the operating state of the diesel engine. The optimized parameters are solidified into the controller after experimental verification, and can be combined with edge computing to realize quasi-online optimization in the future. The steps of the PSO optimization algorithm are shown in Figure 13.
In a 1- D search space, there are N particles forming a population, with the i th particle represented as a D -dimensional vector:
X i = ( x i 1 , x i 2 , , x i D ) , i = 1,2 , , N
The velocity of the i -th particle is
V i = v i 1 , v i 2 , , v i D , i = 1,2 , , N
Each particle also needs to store the best solution it has found so far, denoted as P b e s t , as well as the global best solution found by the entire population, denoted as P g b e s t . The velocity and position of the i -th particle are revised using the following equation:
v i d = w v i d + c 1 r 1 ( p i d x i d ) + c 2 r 2 ( p g d x i d )
x i d = x i d + v i d
where
  • pid is the personal best solution for the i-th particle.
  • pgd is the global best solution for the entire population.
  • w is the inertia weight.
  • c1 and c2 are learning factors.
  • r1 and r2 are random numbers in the range [0, 1].
Steps for PSO fuzzy PID Control in this study:
Step 1: Initialize the particle swarm:
  • Swarm size N = 10, reducing computation time while ensuring convergence.
  • Dimension D = 5.
  • Inertia weight w = 0.8.
  • Acceleration constants and c1 = c2 = 0.2, lower learning rate to avoid particle oscillations.
  • Maximum particle velocity Vmax = 0.01, minimum velocity Vmin = −0.01.
  • Maximum number of iterations kmax = 50.
  • Minimum fitness value F = 0.2.
Step 2: Evaluate all particles in the population and calculate their fitness values. Compare each particle’s current fitness with its personal best, P b e s t , and assess the fitness of all particles against the global best, P g b e s t . In this study, the fitness is measured using the ITAE, which represents the integral of the absolute time error. A lower ITAE value indicates better performance [38]. ITAE serves as a comprehensive metric to assess both the dynamic and static performance of the system. The calculation method is as follows:
f I T A E = 0 T t e t d t
where T is the finite simulation time, which corresponds to the total duration of the simulation. In the initial stage, each particle calculates its fitness value based on its current position and takes it as the initial personal best solution. Meanwhile, the fitness values of all particles in the population are compared with the historical global best solution. If a better fitness value is found, the current global best solution is updated.
Step 3: Update the particle state. Compute the new velocity and new position for the particle to be updated [39]. Then, calculate the fitness of the new position. If the fitness of the new position is higher, the particle’s position is updated; otherwise, the position is not updated.
Step 4: Check if the termination conditions are met. Determine if the iteration count or other conditions meet the stopping criteria. If satisfied, exit the loop and output the optimal result; otherwise, return to Step 2 and continue iterating.
The PSO-optimized quantization factors and scale factors are shown in Table 6, and the optimization results of the fitness values are shown in Figure 14.

4. Results

The model of the algorithm discussed in this study is shown in Figure 15. Four algorithms are modeled using Matlab/Simulink (R2022b): traditional PID control algorithm, fuzzy PID control algorithm, combination of UKF and fuzzy PID control, and fuzzy PID control algorithm based on particle swarm optimization of UKF, as shown in Figure 16.
The 168 F single cylinder diesel engine used for simulation and experimentation has a maximum power of 3.3   k w and a maximum speed of 3000   r p m . The step response experimental condition is that the diesel engine is under a constant load 0   N · m ; the speed was increased to 1000   r p m , and the load decreased from 6   N · m to 2   N · m at 1000   r p m for sudden load change experiments. The entire simulation process lasted for 100 s, with a sampling interval of 0.5 s.
To better simulate the interference and measurement noise present in the actual working environment of the diesel engine, the same noise was attached to each of the control algorithms. During the simulation process, the system response characteristics and control effects of each control algorithm were recorded. Figure 17 and Figure 18 present the response curves of the different control algorithms, while Table 7 and Table 8 list a comparison of their parameters.
By analyzing the response curves in Figure 17 and Figure 18, it is obvious that the UKF PSO-Fuzzy-PID algorithm has significant advantages under the same disturbing noise conditions. The specific advantages are as follows:
Reduced Overshoot: Compared with the traditional PID algorithm, the speed overshoot of the diesel engine using the UKF PSO-Fuzzy-PID algorithm is reduced by 76% under the starting condition, and the overshoot is reduced by 27% under the load disturbance condition. This shows that the system is more stable when reaching the target speed.
Shorter Adjustment Time: The UKF PSO-Fuzzy-PID algorithm reduces the tuning time for the speed step by 1.89 s, and the tuning time for the load disturbance condition by 0.1 s. The diesel engine speed reaches the target speed faster under the step condition, but the responsiveness performance is less improved for the load disturbance condition.
Smaller steady-state error: Under steady-state conditions, the steady-state error of UKF PSO-Fuzzy-PID algorithm is smaller; compared with PID, the steady-state error is reduced by 87% and 55%, respectively, which indicates that the diesel engine can accurately maintain the target speed under the influence of noise, and the algorithm performs well in filtering the noise.
Stronger noise reduction capability: The use of UKF improves the noise reduction ability of the system and reduces the influence of interference noise on the control accuracy; the experimental results verify that the UKF PSO-Fuzzy-PID algorithm improves the noise reduction effect under the high-noise environment by 25% and 31%, respectively.

5. Conclusions

Aiming at the single-cylinder diesel engine speed control, an improved fuzzy PID controller is designed based on the mathematical model of the diesel engine, analyzing the fuzzy control theory and using empirical data to design the type, number, and membership functions of the input and output fuzzy subsets.
The Unscented Kalman Filter is used to improve the robustness of the system against noise and disturbances. The UKF has the predictive ability to filter noise and disturbances, which improves the estimation accuracy of the system state, and thus can improve the accuracy of the feedback data of the speed control system of the diesel engine. The estimation of the system state by the UKF can tell the actual speed of the diesel engine more accurately, so that the fuzzy controller can obtain more accurate input data.
Finally, the PSO fuzzy PID diesel engine speed controller is designed according to the data screened by the UKF. The globally optimized PI parameters of the PSO-optimized fuzzy PID algorithm improve the adaptability of the system to nonlinear and dynamic changes, and the PSO fuzzy PID algorithm possessed the capability to adapt itself to the complex conditions of the diesel engine speed control by online adjusting of the PID control parameters, so that the system control accuracy and accuracy can be improved. Through the online adjustment of PID control parameters, the PSO fuzzy PID algorithm has the ability to adapt itself to the complex working conditions of diesel engine speed control, so that the control accuracy and robustness of the system are improved.
The cylinder pressure and fuel consumption parameters in the mathematical model of the modeled diesel engine are compared through simulation of, and experiment on, various diesel engine conditions. Finally, a joint simulation was conducted to compare the improved controller with the conventional PID controller, and the results show that the control accuracy and stability of the PSO fuzzy PID control over the UKF data are significantly better than those of the conventional PID controller.
The computational model of this study has several potential limitations and uncertainties, as follows:
The error due to model simplification is mainly reflected in the limitation of the first-order inertia assumption, Equation (5), which simplifies the complex diesel engine system to G 1 s = G d s G τ S = 1 T τ s + 1 · e τ s , but this assumption may fail under transient operating conditions (e.g., sudden unloading), especially when high-frequency characteristics such as turbocharger dynamics, intake and exhaust fluctuations, and so forth are not taken into account.
The shortcomings of the linear actuator model are also of concern. The electromagnetic actuator transfer function in Equation (11) ignores nonlinear factors such as magnetic saturation and hysteresis loops, which may lead to phase lag under high-frequency control signals. Regarding parameter uncertainty, the time-varying nature of the friction torque T f is caused by mechanical wear during long-term operation, resulting in a change in the friction coefficient, while the model assumes that T f is a constant value, whose potential impact on the stability of the control needs to be further discussed.
The idealized assumptions of the sensor noise model is assumed to be Gaussian white noise, and do not take into account the periodic disturbances of the actual Hall sensors (e.g., harmonic noise due to the eccentricity of the gear disk mounting).
The current work only verifies the static matching between GT-POWER and Matlab/Simulink (R2022b), but does not realize the dynamic co-simulation with the GT-POWER model, which may underestimate the coupling effect under transient conditions.
The goal of future research is to implement the controller in the hardware of a real diesel engine system to further verify its effectiveness and reliability in industrial applications.

Author Contributions

Conceptualization, J.F.; methodology, S.G. and L.W.; software, S.G.; validation, S.G.; formal analysis, N.W. and L.W.; investigation, S.G.; resources, Z.C.; data curation, S.G. and L.L.; writing—original draft preparation, S.G.; writing—review and editing, J.F. and L.W.; visualization, S.G.; supervision, J.F.; project administration, J.F.; funding acquisition, J.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Science Foundation of Hunan Province, grant number 2022JJ58025, the Graduate Research Innovation Project of Hunan Province, grant number CX20231297, and the Graduate Research Innovation Project of Hunan Province, grant number CX20231298.

Data Availability Statement

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

Conflicts of Interest

Author Zhenghong Chen was employed by the company Hunan Binhu Diesel Engine Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. The company had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Nomenclature

SymbolDescriptionUnit
c1,c2PSO Learning Factor
eRPM errorrad/s
ecRotation speed error rate of changerad/s2
JDiesel engine shaft system moment of inertiakg∙m2
KElectromagnetic actuator gain factor/
Ke,KecQuantitative factor/
Ke,KecScale factor/
NPSO particle swarm size/
QUKF process noise covariance matrix(rad/s)2
RUKF measurement noise covariance matrix(rad/s)2
τDiesel acceleration time constants
τeElectromagnetic actuator time constants
XiPSO particle position/
ViPSO particle velocity/

References

  1. Bie, P.; Ji, L.; Cui, H.; Li, G.; Liu, S.; Yuan, Y.; He, K.; Liu, H.J. A review and evaluation of nonroad diesel mobile machinery emission control in China. J. Environ. Sci. 2023, 123, 30–40. [Google Scholar] [CrossRef]
  2. Wang, S. Interpretation of the “14th Five-Year” National Agricultural Mechanization Development Plan—Focusing on Improving the Full Mechanization Level of Grain Crop Production. Contemp. Agric. Mach. 2023, 11, 80–82. [Google Scholar]
  3. Shao, R. The Value of Single-Cylinder Diesel Engines. Agric. Mach. Mark. 2021, 10, 30–32. [Google Scholar]
  4. Huang, W. Research on Self-Correction Control Method of Diesel Engine Speed Based on System Identification. Master’s Thesis, Harbin Engineering University, Harbin, China, 2023. [Google Scholar]
  5. McGowan, D.J.; Morrow, D.J.; Fox, B. Integrated governor control for a diesel-generating set. IEEE Trans. Energy Convers. 2006, 21, 476–483. [Google Scholar] [CrossRef]
  6. Zhou, X. Research and Design of High Speed Common Rail Diesel Engine Speed Control System. Master’s Thesis, Kunming University of Science and Technology, Kunming, China, 2020. [Google Scholar]
  7. Jin, X.; Chen, K.; Zhao, Y.; Ji, J.; Jing, P. Simulation of hydraulic transplanting robot control system based on fuzzy PID controller. Measurement 2020, 164, 108023. [Google Scholar] [CrossRef]
  8. Singh, M.; Arora, S.; Shah, O.A. Enhancing Hybrid Power System Performance with GWO-Tuned Fuzzy-PID Controllers: A Comparative Study. Int. J. Robot. Control Syst. 2024, 4, 709. [Google Scholar] [CrossRef]
  9. Carvajal, J.; Chen, G.; Ogmen, H. Fuzzy PID controller: Design, performance evaluation, and stability analysis. Inf. Sci. 2000, 123, 249–270. [Google Scholar] [CrossRef]
  10. Zheng, J.; Wang, X.; Huang, X.; Shi, Y.; Zhang, X.; Wang, Y.; Wang, D.; Wang, J.; Zhang, J. Adaptive control system of header for cabbage combine harvester based on IPSO-fuzzy PID controller. Comput. Electron. Agric. 2025, 232, 110044. [Google Scholar] [CrossRef]
  11. Zhao, S.; Zhang, Y. Design and Field Test of Corn Seeding System Base on Fuzzy Pid Control Method Combine with PSO. Eng. Agrícola 2024, 44, e20230123. [Google Scholar] [CrossRef]
  12. Baz, R.; El Majdoub, K.; Giri, F.; Ammari, O. Fine-tuning quarter vehicle performance: PSO-optimized fuzzy PID controller for in-wheel BLDC motor systems. IFAC-PapersOnLine 2024, 58, 715–720. [Google Scholar] [CrossRef]
  13. Xu, R.; Chen, Z.; Wu, M.; Shen, Y. Research on controller of glass greenhouse cleaner based on PSO-fuzzy-PID. Processes 2023, 11, 3405. [Google Scholar] [CrossRef]
  14. Eskandari, A.; Vatankhah, R.; Azadi, E. Optimization of wind energy extraction for variable speed wind turbines using fuzzy backstepping sliding mode control based on multi objective PSO. Ocean Eng. 2023, 285, 115378. [Google Scholar] [CrossRef]
  15. Joshi, M.; Sharma, G.; Çelik, E. Load frequency control of hydro-hydro power system using fuzzy-PSO-PID with application of UC and RFB. Electr. Power Compon. Syst. 2023, 51, 1156–1170. [Google Scholar] [CrossRef]
  16. Bingül, Z.; Karahan, O. A Fuzzy Logic Controller tuned with PSO for 2 DOF robot trajectory control. Expert Syst. Appl. 2011, 38, 1017–1031. [Google Scholar] [CrossRef]
  17. Wang, H.; Lu, J. Research on fractional order fuzzy PID control of the pneumatic-hydraulic upper limb rehabilitation training system based on PSO. Int. J. Control Autom. Syst. 2022, 20, 310–320. [Google Scholar] [CrossRef]
  18. Wang, S.; Zhao, B.; Yi, S.; Zhou, Z.; Zhao, X. GAPSO-Optimized fuzzy PID controller for electric-driven seeding. Sensors 2022, 22, 6678. [Google Scholar] [CrossRef] [PubMed]
  19. Mien, T.L.; Van An, V.; Tam, B.T. A Fuzzy-PID controller combined with PSO algorithm for the resistance furnace. Adv. Sci. Technol. Eng. Syst. 2020, 5, 568–575. [Google Scholar] [CrossRef]
  20. Ruan, Z.; Wu, H.; Wang, R.; Tian, Z.; Li, W. Particle swarm optimization Fuzzy algorithm applied to temperature control in PEM fuel cell systems. In Proceedings of the 15th International Conference on Applied Energy (ICAE2023), Doha, Qatar, 3–7 December 2023. [Google Scholar]
  21. Ambroziak, A.; Chojecki, A. The PID controller optimisation module using Fuzzy Self-Tuning PSO for Air Handling Unit in continuous operation. Eng. Appl. Artif. Intell. 2023, 117, 105485. [Google Scholar] [CrossRef]
  22. Xiong, R.; Wang, S.; Fernandez, C.; Yu, C.; Fan, Y.; Cao, W.; Jiang, C. A novel joint estimation method of state of charge and state of health based on the strong tracking-dual adaptive extended Kalman filter algorithm for the electric vehicle lithium-ion batteries. Int. J. Electrochem. Sci. 2021, 16, 211114. [Google Scholar] [CrossRef]
  23. Abioye, E.A.; Abidin, M.S.Z.; Mahmud, M.S.A.; Buyamin, S.; Ijike, O.D.; Otuoze, A.O.; Afis, A.A.; Olajide, O.M. A data-driven Kalman filter-PID controller for fibrous capillary irrigation. Smart Agric. Technol. 2023, 3, 100085. [Google Scholar] [CrossRef]
  24. Aly, H.H. A hybrid optimized model of adaptive neuro-fuzzy inference system, recurrent Kalman filter and neuro-wavelet for wind power forecasting driven by DFIG. Energy 2022, 239, 122367. [Google Scholar] [CrossRef]
  25. Fan, R.; Li, G.; Wu, Y. State Estimation of Distributed Drive Electric Vehicle Based on Adaptive Kalman Filter. Sustainability 2023, 15, 13446. [Google Scholar] [CrossRef]
  26. Guo, Y.-Q.; Zha, X.-M.; Shen, Y.-Y.; Wang, Y.-N.; Chen, G. Research on PID Position Control of a Hydraulic Servo System Based on Kalman Genetic Optimization. Actuators 2022, 11, 162. [Google Scholar] [CrossRef]
  27. Hu, J.; Zheng, S.; Liu, X.; Wang, M.; Deng, J.; Yan, F.J.F. Optimizing the fault diagnosis and fault-tolerant control of selective catalytic reduction hydrothermal aging using the Unscented Kalman Filter observer. Fuel 2021, 288, 119827. [Google Scholar] [CrossRef]
  28. Jin, A.; Wu, H.; Zhu, H.; Hua, H.; Hu, Y. Design of temperature control system for infant radiant warmer based on Kalman filter-fuzzy PID. J. Phys. Conf. Ser. 2020, 1684, 012140. [Google Scholar] [CrossRef]
  29. Wan, X. Research on Fuel Injection Control Strategy and External Characteristic Calibration of High-Pressure Common Rail Diesel Engines. Master’s Thesis, Jilin University, Changchun, China, 2007. [Google Scholar]
  30. Liu, Z. Research on the UKF Algorithm and Its Improved Versions. Master’s Thesis, Central South University, Changsha, China, 2009. [Google Scholar]
  31. Li, G.; Gao, D.; Lu, Y.; Ping, H.; Zhou, Y. Design of fuzzy PID heat treatment temperature control system based on Kalman filter. Heat Treat. Met. 2023, 48, 235–241. [Google Scholar]
  32. Rakopoulos, C.; Rakopoulos, D.; Giakoumis, E.; Kyritsis, D.C. Validation and sensitivity analysis of a two zone Diesel engine model for combustion and emissions prediction. Energy Convers. Manag. 2004, 45, 1471–1495. [Google Scholar] [CrossRef]
  33. Zhou, J. Research on Particulate Matter Emission Characteristics and Control Technologies of Marine Diesel Engines. Doctor’s Thesis, Harbin Engineering University, Harbin, China, 2019. [Google Scholar]
  34. Julier, S.J.; Uhlmann, J.K. Unscented filtering and nonlinear estimation. Proc. IEEE 2004, 92, 401–422. [Google Scholar] [CrossRef]
  35. Hang, C.C.; Åström, K.J.; Ho, W.K. Refinements of the Ziegler–Nichols tuning formula. IEE Proc. D (Control Theory Appl.) 1991, 138, 111–118. [Google Scholar] [CrossRef]
  36. Zhang, J. Research on Control Algorithm of Electronic Speed Control System for Diesel Engine Based on Fuzzy PID Control. Master’s Thesis, Chang’an University, Xi’an, China, 2023. [Google Scholar]
  37. Chiou, J.-S.; Tsai, S.H.; Liu, M.T. A PSO-based adaptive fuzzy PID-controllers. Simul. Model. Pract. Theory 2012, 26, 49–59. [Google Scholar] [CrossRef]
  38. Liu, Y.; Jiang, D.; Yun, J.; Sun, Y.; Li, C.; Jiang, G.; Kong, J.; Tao, B.; Fang, Z. Self-tuning control of manipulator positioning based on fuzzy PID and PSO algorithm. Front. Bioeng. Biotechnol. 2022, 9, 817723. [Google Scholar] [CrossRef] [PubMed]
  39. Bejarbaneh, E.Y.; Bagheri, A.; Bejarbaneh, B.Y.; Buyamin, S.; Chegini, S.N. A new adjusting technique for PID type fuzzy logic controller using PSOSCALF optimization algorithm. Appl. Soft Comput. 2019, 85, 105822. [Google Scholar] [CrossRef]
Figure 1. Diesel engine speed control system schematic diagram.
Figure 1. Diesel engine speed control system schematic diagram.
Processes 13 00777 g001
Figure 2. Diesel engine system schematic diagram.
Figure 2. Diesel engine system schematic diagram.
Processes 13 00777 g002
Figure 3. Schematic diagram of the overall architecture of the speed control system.
Figure 3. Schematic diagram of the overall architecture of the speed control system.
Processes 13 00777 g003
Figure 4. Diesel engine test bench.
Figure 4. Diesel engine test bench.
Processes 13 00777 g004
Figure 5. GT-POWER model of 168 F single cylinder diesel engine.
Figure 5. GT-POWER model of 168 F single cylinder diesel engine.
Processes 13 00777 g005
Figure 6. Comparison of cylinder pressure under different loads.
Figure 6. Comparison of cylinder pressure under different loads.
Processes 13 00777 g006
Figure 7. Fuel consumption comparison chart under different loads.
Figure 7. Fuel consumption comparison chart under different loads.
Processes 13 00777 g007
Figure 8. Schematic diagram of overall technical scheme.
Figure 8. Schematic diagram of overall technical scheme.
Processes 13 00777 g008
Figure 9. Schematic diagram of the PSO fuzzy PID controller based on UKF data.
Figure 9. Schematic diagram of the PSO fuzzy PID controller based on UKF data.
Processes 13 00777 g009
Figure 10. UKF algorithm flowchart.
Figure 10. UKF algorithm flowchart.
Processes 13 00777 g010
Figure 11. Unscented kalman filtering noise reduction effect diagram.
Figure 11. Unscented kalman filtering noise reduction effect diagram.
Processes 13 00777 g011
Figure 12. Characteristic face of the fuzzy inference system: (a) Δ k p (Proportional term characteristic surface), (b) Δ k i (Integral term characteristic surface), (c) Δ k d (Derivative term characteristic surface).
Figure 12. Characteristic face of the fuzzy inference system: (a) Δ k p (Proportional term characteristic surface), (b) Δ k i (Integral term characteristic surface), (c) Δ k d (Derivative term characteristic surface).
Processes 13 00777 g012
Figure 13. Particle swarm optimization flowchart.
Figure 13. Particle swarm optimization flowchart.
Processes 13 00777 g013
Figure 14. Fitness value optimization results.
Figure 14. Fitness value optimization results.
Processes 13 00777 g014
Figure 15. Model of fuzzy PID control algorithm optimized by particle swarm optimization based on UKF in Matlab/Simulink (R2022b).
Figure 15. Model of fuzzy PID control algorithm optimized by particle swarm optimization based on UKF in Matlab/Simulink (R2022b).
Processes 13 00777 g015
Figure 16. Model of PID, Fuzzy PID, Fuzzy PID based on data of UKF, and PSO Fuzzy PID based on data of UKF in Matlab/Simulink (R2022b).
Figure 16. Model of PID, Fuzzy PID, Fuzzy PID based on data of UKF, and PSO Fuzzy PID based on data of UKF in Matlab/Simulink (R2022b).
Processes 13 00777 g016
Figure 17. Step response experiment results.
Figure 17. Step response experiment results.
Processes 13 00777 g017
Figure 18. Load disturbance experiment results.
Figure 18. Load disturbance experiment results.
Processes 13 00777 g018
Table 1. Diesel engine dynamics modeling symbol.
Table 1. Diesel engine dynamics modeling symbol.
SymbolDescriptionUnit
ω r Set crankshaft angular speed r a d / s
ω f Measure crankshaft angular speed r a d / s
ω Speed difference r a d / s
T Fuel injection time s
I f Fuel injection quantity m g
M i Output torque N · m
M f Friction torque N · m
M t Load torque N · m
M Torque difference s
Table 2. Main parameters of single cylinder diesel engine.
Table 2. Main parameters of single cylinder diesel engine.
ParameterValue
Engine168 F Single Cylinder Diesel Engine
Main TypeInline, Four-Stroke
Bore68 mm
Stroke54 mm
Connecting Rod Length84 mm
Piston Displacement0.196 L
Maximum Power2.2 kw/3000 rpm
Compression Ratio8.5:1
Piston Top Dead Center Clearance0.85 mm
Table 3. Key parameters in the GT-POWER simulation model.
Table 3. Key parameters in the GT-POWER simulation model.
ModuleAttributeUnitValue
Environment
Inlet/Outlet
Pressure
(Absolute)
b a r 2.4
Temperature K 350
Composition/ A i r
Intake/Exhaust
Manifold
Diameter at
Inlet End
m m 40 / 30
Length m m 120 / 150
Discretization Length m m 40 / 55
Intake/Exhaust
Port
Diameter at
Inlet End
m m 40 / 30
Length m m 80 / 60
Discretization Length m m 40 / 55
Intake/Exhaust
Value
Cam Timing Angle C a m A n g l e 239 / 126
Cam Timing Anchor
Reference
/TDCFiring
Fuel Injection SystemInjected Mass m g 50
Fluid Object/diesel
Injected Fluid
Temperature
K 300
Injection Timing d e g 10
Injection Duration d e g 18
Engine
(The remaining parameters are shown in Table 2)
Engine Type/4-stroke
Speed or Load
Specification
/speed
Engine Friction
Object or FMEP
/friction
Start of Cycle (CA at IVC)/ 95
Table 4. Data from the UKF filtered diesel engine speed simulation experiment.
Table 4. Data from the UKF filtered diesel engine speed simulation experiment.
NormSensor DataUKFImprovement
Standard deviation (rpm)51.813.573.9%
Peak Noise (rpm)98.720.878.9%
Table 5. Fuzzy control rules.
Table 5. Fuzzy control rules.
uec
NBNMNSZEPSPMPB
eNBPBPBPBPBPMPSZ
NMPBPBPMPMPSZZ
NSPBPMPMPSZZNS
Z0PBPMPSZNSNMNB
PSPSZZNSNMNMNB
PMZZNSNMNMNBNB
PBZNSNMNBNBNBNB
Table 6. PSO-optimized quantization factors and scale factors.
Table 6. PSO-optimized quantization factors and scale factors.
ParametersDescriptionBefore
Optimization
After
Optimization
k p Proportional gain13.542.2
k i Integral gain1.90.5
k d Derivative gain9.326.31
k e Scaling factor for e 6.327.86
k e c Scaling factor for e c 0.2400.226
Table 7. Comparison of parameters for different control methods in step response experiment.
Table 7. Comparison of parameters for different control methods in step response experiment.
Control AlgorithmRise Time/sOvershoot/%Response Time/sSteady-State Error/n
PID2.44303.210.98
F-PID2.65212.730.62
PSO-F-PID1.877.62.190.37
UKF PSO F-PID1.327.11.320.12
Table 8. Comparison of parameters for different control methods in Load disturbance experiment.
Table 8. Comparison of parameters for different control methods in Load disturbance experiment.
Control AlgorithmOvershoot/%Response Time/sSteady-State Error/n
PID27.50.741.26
F-PID26.30.691.38
PSO-F-PID22.30.621.24
UKF PSO F-PID20.70.630.56
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

Fu, J.; Gu, S.; Wu, L.; Wang, N.; Lin, L.; Chen, Z. Research on Optimization of Diesel Engine Speed Control Based on UKF-Filtered Data and PSO Fuzzy PID Control. Processes 2025, 13, 777. https://doi.org/10.3390/pr13030777

AMA Style

Fu J, Gu S, Wu L, Wang N, Lin L, Chen Z. Research on Optimization of Diesel Engine Speed Control Based on UKF-Filtered Data and PSO Fuzzy PID Control. Processes. 2025; 13(3):777. https://doi.org/10.3390/pr13030777

Chicago/Turabian Style

Fu, Jun, Shuo Gu, Lei Wu, Nan Wang, Luchen Lin, and Zhenghong Chen. 2025. "Research on Optimization of Diesel Engine Speed Control Based on UKF-Filtered Data and PSO Fuzzy PID Control" Processes 13, no. 3: 777. https://doi.org/10.3390/pr13030777

APA Style

Fu, J., Gu, S., Wu, L., Wang, N., Lin, L., & Chen, Z. (2025). Research on Optimization of Diesel Engine Speed Control Based on UKF-Filtered Data and PSO Fuzzy PID Control. Processes, 13(3), 777. https://doi.org/10.3390/pr13030777

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