Research on Optimized Fuzzy PID Temperature Control Strategy Based on Improved Particle Swarm Optimization
Abstract
Precise temperature control is critical in industrial automation, governing product quality in processes from chemical reactors to furnaces. However, high-order inertia, time delays, and parameter drift render traditional PID and manual fuzzy controllers inadequate. To surmount these hurdles, this study presents a robust framework: a Fuzzy PID strategy optimized by a novel Levy-flight Improved Particle Swarm Optimization (LMPSO) algorithm. Addressing the ”curse of dimensionality” in fuzzy tuning, LMPSO integrates Levy flight mutation to shatter premature convergence and an Elite Memory Pool to secure evolutionary efficiency. Simulations on a First-Order Plus Dead Time (FOPDT) model reveal the algorithm’s potency: it slashes settling time to 105.5 s—approximately 46.7% faster than standard PSO and 42.5% faster than competitive improved PSO variants—while achieving an optimal ITAE value. Robustness tests confirm superior stability under severe model mismatches, proving its viability for high-precision industrial applications.
DOI: https://doi.org/10.1145/3807246.3807306
I Introduction
Precise temperature regulation is paramount in process industries, serving as the cornerstone for safety and product consistency in equipment ranging from CSTRs to heating furnaces [1]. This necessity spans traditional heavy industries and emerging fields such as hydrogen fuel cells [12], intelligent waste management [18], and industrial cooling towers [3]. However, thermal processes are inherently challenging due to significant inertia, time delays, and nonlinearities. Furthermore, equipment aging causes ”slow time-varying” parameter drift, which Zhu et al. [17] noted can severely degrade the performance of fixed-parameter controllers.
While Fuzzy PID offers a viable alternative by adapting gains to system states [10], manually tuning its membership functions is inefficient and subjective. Swarm Intelligence, particularly Particle Swarm Optimization (PSO), has thus gained prominence for automating parameter tuning [2, 8], demonstrating success in complex systems like RGV scheduling [7] and robotic welding [14].
Nevertheless, standard PSO often suffers from premature convergence in the ”flat” fitness landscapes typical of fuzzy parameters. To address this, this paper proposes the Levy-Memory PSO (LMPSO), which integrates Levy flights and an Elite Memory Pool to balance global exploration with local exploitation, ensuring robust industrial control.
II Related Work
Fuzzy Logic Control (FLC) has demonstrated efficacy in handling nonlinearities across diverse domains. Xu et al. [15] successfully deployed fuzzy control for fertilizer mixing systems, while Zhang et al. [16] applied it to agricultural machinery. Similarly, intelligent trajectory tracking in autonomous robots [5] confirms the robustness of fuzzy logic. However, traditional FLC relies on static rules, which are often feasible but sub-optimal, especially in systems with large delays [4].
To optimize these controllers, meta-heuristic algorithms have been extensively explored. While Standard PSO is widely applied [2, 8], its tendency to trap in local optima has prompted the development of variants. Researchers have introduced the Grey Wolf Optimizer (GWO) [11], Enhanced Dung Beetle Optimization [6], and Improved Sparrow Search Algorithm (ISSA) [13] to improve convergence speed. Hybrid strategies, such as multi-strategy fusion [9], also aim to enhance optimization. Distinct from these approaches, the proposed LMPSO specifically targets the high-dimensional fuzzy parameter space by utilizing heavy-tailed random walks to maintain population diversity, thereby resolving the stagnation issues common in standard improved variants.
III System Modeling and Fuzzy Controller Design
III-A Mathematical Modeling of the Thermal Process
To rigorously evaluate the proposed control strategy, we employ the First-Order Plus Dead Time (FOPDT) model, the standard approximation for industrial thermal processes. The transfer function is defined as:
| (1) |
where represents the process gain, denotes the time constant reflecting thermal inertia, and is the pure time delay. The ratio indicates a significant delay, a characteristic that typically destabilizes conventional high-gain controllers.
Crucially, to simulate the realistic ”slow time-varying” behavior caused by equipment aging (e.g., heater degradation or insulation loss), we define a ”Composite Perturbation” scenario. In this stress test, the gain is attenuated by 10% (to 1.35) and the time constant is increased by 25% (to 150 s). A controller that performs well only on the nominal model but fails under these perturbed conditions would be of little practical value in a real plant.
III-B Design of the Self-Adjusting Fuzzy PID Controller
The proposed control architecture seamlessly integrates a fuzzy inference engine with a conventional PID structure, allowing for the real-time modulation of control parameters based on the system’s instantaneous state. Fig. 1 illustrates the fundamental schematic block diagram, showing how the system computes correction factors based on the error and its rate of change in a closed-loop feedback mechanism.
Based on this theoretical framework, a detailed simulation model was constructed in the MATLAB/Simulink environment, as presented in Fig. 2. This implementation includes the FOPDT plant module, the fuzzy inference subsystem, and the signal routing for real-time performance monitoring.
The adaptive control law is governed by:
| (2) | ||||
where represents the baseline parameters and represents the fuzzy outputs determined by the Mamdani inference engine. The magnitude of these outputs is strictly determined by scaling factors , which serve as the decision variables for our optimization algorithm.
The rule base follows precise control logic: When the error magnitude is large, the primary goal is rapid elimination; thus, is boosted while is minimized. Conversely, in the steady phase (small error), and are increased to overcome static friction. This nonlinear mapping creates a sophisticated variable-gain controller—aggressive when needed to reduce rise time, yet cautious when approaching the setpoint to prevent overshoot.
IV Improved Levy-Memory Particle Swarm Optimization (LMPSO)
IV-A Standard PSO Limitations and the LMPSO Solution
Standard PSO frequently stagnates in complex fitness landscapes when particles collapse into local optima. To counter this, LMPSO introduces a mutation mechanism based on Levy flights (Eq. 3), utilizing Mantegna’s Algorithm to generate heavy-tailed step sizes:
| (3) |
This mechanism triggers long-distance jumps upon stagnation detection, effectively ”teleporting” particles to unexplored regions. To balance this exploration with exploitation, an Elite Memory Pool preserves the top performing solutions. Empirical sensitivity analysis suggests an optimal pool size of 10%, ensuring that valuable evolutionary history (”genetic memory”) is retained to guide the swarm efficiently.
IV-B Optimization Workflow
The integration of these mechanisms creates a robust optimization cycle. The process begins with random initialization of fuzzy scaling factors. In each iteration, the fitness (ITAE) is evaluated via Simulink. The Elite Memory Pool is then updated with superior solutions. If stagnation is detected, Levy mutation is applied; otherwise, standard velocity updates guided by the Elite Pool are performed. This cycle repeats until the maximum iteration count is reached, ensuring a balance between global search and local refinement. The detailed iterative execution of this process is explicitly visualized in Fig. 3.
V Simulation Experiments and Result Analysis
V-A Experimental Setup
To validate the proposed strategy, a comprehensive simulation environment was constructed in MATLAB/Simulink. The objective function employed for optimization is the Integral of Time-weighted Absolute Error (ITAE), which penalizes long-duration errors and encourages faster settling:
| (4) |
The specific parameters for the LMPSO algorithm and the simulation environment are detailed in Table I. These parameters were selected to ensure a fair comparison across all control strategies.
| Parameter Name | Symbol | Value |
|---|---|---|
| Population Size | 20 | |
| Max Iterations | 30 | |
| Learning Factors | 2.0 | |
| Inertia Weights | 0.9, 0.4 | |
| Levy Flight Index | 1.5 | |
| Step Factor | 0.01 | |
| Sampling Time | 0.1 s | |
| Process Gain | 1.5 | |
| Time Constant | 120 s | |
| Time Delay | 30 s |
V-B Parameter Selection and Sensitivity Analysis
Before conducting performance comparisons, it is crucial to determine the optimal hyperparameters for the algorithm. The Levy flight index () is the core parameter governing the mutation step size. We conducted a sensitivity analysis testing .
As illustrated in Fig. 4, the choice of significantly impacts search efficiency. A smaller index () induces excessive randomness, leading to oscillation. Conversely, a larger index () mimics Gaussian behavior, causing the algorithm to trap in local optima. The selected value of provides the optimal trade-off, achieving the lowest ITAE.
V-C Convergence Analysis
With , we compared the convergence behavior of LMPSO against Standard PSO and a competitive Improved PSO (IPSO) variant. Note that the IPSO employed here is based on the widely cited Dynamic Inertia Weight strategy [12, 15], representing a strong benchmark in the literature.
The superiority of LMPSO is immediately evident in Fig. 5.
-
•
Standard PSO: Exhibits an ”L-shaped” curve, dropping rapidly but flatlining early (around generation 10), indicating premature convergence.
-
•
IPSO: Converges faster than Standard PSO due to dynamic weights, but eventually traps in a local optimum (around generation 15).
-
•
LMPSO: Demonstrates a distinctive multi-stage descent. As marked in Fig. 5, around the 16th generation, the Levy flight mechanism is triggered by the stagnation detection, effectively dislodging the swarm from the local optimum where IPSO stalled, allowing it to discover a deeper minimum.
V-D Dynamic Response Analysis
To rigorously validate the algorithm, we compared it with Conventional PID, Empirical Fuzzy, Standard PSO, and the IPSO benchmark. The qualitative differences are profound (Fig. 6), and the detailed quantitative metrics are explicitly summarized in Table II.
| Scheme | Overshoot (%) | Settling Time (s) | ITAE Index |
|---|---|---|---|
| A: Conv. PID | 27.00 | 600.0 | |
| B: Emp. Fuzzy | 6.00 | 204.0 | |
| C: Std. PSO | 0.00 | 194.5 | |
| D: IPSO (Comp.) | 0.48 | 183.5 | |
| E: LMPSO (Proposed) | 1.63 | 105.5 |
Scheme A (PID) shows a massive 27% overshoot. Scheme C (Standard PSO) is overly conservative. The IPSO significantly improves the settling time to 183.5 s compared to Standard PSO. However, the proposed Scheme E (LMPSO, black solid line) is decisive: it achieves an aggressive rise time of 105.5 s—42.5% faster than IPSO—while maintaining a negligible overshoot of 1.63%.
V-E Disturbance Rejection and Robustness
The ultimate test of an industrial controller is its resilience. At s, a 20% negative load disturbance was injected. As shown in Fig. 7, while IPSO recovers reasonably well (better than Std PSO), the LMPSO controller limits the temperature deviation to a mere 3.24∘C and recovers the setpoint significantly faster.
Furthermore, under severe model mismatch (Gain -10%, Time Constant +25%), as shown in Fig. 8, LMPSO maintains a response profile remarkably similar to its nominal performance. The degradation in ITAE is minimized, verifying that LMPSO has located a ”robust” optimum that is less sensitive to parameter drift compared to the IPSO solution.
VI Conclusion
This paper addressed the persistent challenge of optimizing fuzzy PID controllers for industrial thermal processes characterized by large delays and time-varying parameters. By synthesizing the global exploration capability of Levy flights with the stable exploitation of an Elite Memory Pool, the proposed LMPSO algorithm offers a compelling solution. Rigorous simulations support three key conclusions:
-
1.
Algorithmic Superiority: LMPSO effectively resolves the premature convergence issue of standard PSO and outperforms competitive IPSO variants by reducing the settling time by over 40%.
-
2.
Performance Efficiency: The optimized controller achieves a settling time of 105.5 s without compromising stability.
-
3.
Industrial Robustness: The strategy demonstrates exceptional resilience against model mismatches, maintaining high performance even when process time constants increase by 25%.
Limitations and Future Work: While the simulation results are promising, this study is currently limited to a theoretical model environment. The lack of real-world hardware validation is a noted constraint. Future work will focus on validating this approach on a Hardware-in-the-Loop (HIL) PLC platform to further verify its applicability in physical industrial control systems.
References
- [1] A. Q. Adnan, M. K. Hussain, A. Mohammadzadeh, and K. Sabahi, “Optimal hybrid type-3 fuzzy controller for horizontal axis wind turbines: Comparative study,” ISA Transactions, vol. 161, pp. 200–215, 2025. DOI: 10.1016/j.isatra.2025.03.025.
- [2] R. Baz, K. El Majdoub, F. Giri, and O. Ammari, “Fine-Tuning Quarter Vehicle Performance: PSO-Optimized Fuzzy PID Controller for In-Wheel BLDC Motor Systems,” IFAC-PapersOnLine, vol. 58, no. 13, pp. 715–720, 2024. DOI: 10.1016/j.ifacol.2024.07.566.
- [3] A. K. Dewi, M. M. Gomez, and C. N. Hamdani, “PID-Fuzzy Controller to Control System Temperature On Cooling Tower,” IOP Conference Series: Earth and Environmental Science, vol. 1504, no. 1, p. 012007, 2025. DOI: 10.1088/1755-1315/1504/1/012007.
- [4] Y. Gao and W. Zhu, “A Segmented Adaptive PID Temperature Control Method Suitable for Industrial Dispensing System,” Electronics, vol. 14, no. 11, p. 2306, 2025. DOI: 10.3390/electronics14112306.
- [5] G. L. Hailu and T. T. Yatayew, “Intelligent trajectory tracking in autonomous plantation robots using PSO-tuned nonlinear fuzzy PID, fuzzy PID, and conventional PID controllers,” Scientific Reports, vol. 15, no. 1, p. 45357, 2025. DOI: 10.1038/s41598-025-30167-2.
- [6] I. Hattabi, A. Kheldoun, R. Bradai, and H. Belmadani, “Optimized fractional order Takagi-Sugeno Fuzzy-PID power system stabilizer: An enhanced dung beetle optimization approach,” Computers and Electrical Engineering, vol. 128, p. 110767, 2025. DOI: 10.1016/j.compeleceng.2025.110767.
- [7] C. He, et al., “Fuzzy-PID controller design for RGV speed track based on improved PSO algorithm,” Journal of the Brazilian Society of Mechanical Sciences and Engineering, vol. 46, no. 11, p. 669, 2024. DOI: 10.1007/s40430-024-05210-4.
- [8] A. H. Hooshmand, “Smart modular greenhouse control via IoT, LabVIEW, and PSO-PID integration,” Computers and Electrical Engineering, vol. 128, p. 110713, 2025. DOI: 10.1016/j.compeleceng.2025.110713.
- [9] J. Hu, Y. Zheng, S. Wang, and C. Zhou, “Improved Particle Swarm Optimization Based on Fuzzy Controller Fusion of Multiple Strategies for Multi-Robot Path Planning,” Big Data and Cognitive Computing, vol. 9, no. 9, p. 229, 2025. DOI: 10.3390/bdcc9090229.
- [10] Q. Li, X. Bai, Y. Lu, X. Deng, and Z. Lu, “Flow Control of Tractor Multi-Channel Hydraulic Tester Based on AMESim and PSO-Optimized Fuzzy-PID,” Agriculture, vol. 15, no. 11, p. 1190, 2025. DOI: 10.3390/agriculture15111190.
- [11] M. F. A. Limon, R. S. Upoma, N. Sinha, et al., “Grey wolf optimization-based fuzzy-PID controller for load frequency control in multi-area power systems,” Journal of Automation and Intelligence, vol. 4, no. 2, pp. 145–159, 2025. DOI: 10.1016/j.jai.2025.01.002.
- [12] Z. Liu, H. Dong, and X. Ma, “Temperature Control Strategy for Hydrogen Fuel Cell Based on IPSO-Fuzzy-PID,” Electronics, vol. 13, no. 24, p. 4949, 2024. DOI: 10.3390/electronics13244949.
- [13] M. Ouyang, Y. Wang, F. Wu, and Y. Lin, “Continuous Reactor Temperature Control with Optimized PID Parameters Based on Improved Sparrow Algorithm,” Processes, vol. 11, no. 5, p. 1302, 2023. DOI: 10.3390/pr11051302.
- [14] A. Sathish Kumar, S. Naveen, R. Vijayakumar, et al., “An intelligent fuzzy-particle swarm optimization supervisory-based control of robot manipulator for industrial welding applications,” Scientific Reports, vol. 13, p. 8253, 2023. DOI: 10.1038/s41598-023-35189-2.
- [15] Y. Xu, Y. Jin, Z. Sun, and X. Xue, “PSO-Based System Identification and Fuzzy-PID Control for EC Real-Time Regulation in Fertilizer Mixing System,” Agronomy, vol. 15, no. 5, p. 1259, 2025. DOI: 10.3390/agronomy15051259.
- [16] W. Zhang, M. Lu, L. Wei, S. Yang, et al., “Design and Research of High-Speed Synchronous Membrane-Covering Device for Rice Membrane-Covering Transplanter Based on PSO-Fuzzy PID,” Agronomy, vol. 15, no. 8, p. 1962, 2025. DOI: 10.3390/agronomy15081962.
- [17] J. Zhu, B. Wei, and Y. Huang, “Research on the temperature system of an evaporator based on Smith-VUF PID,” Journal of Measurements in Engineering, vol. 13, no. 4, pp. 770–785, 2025. DOI: 10.21595/jme.2025.24699.
- [18] X. Zhu, T. Gu, J. Wang, C. Li, X. Feng, and H. Li, “Intelligent Dustbin Temperature Control System Based on Evaporative Cooling: Enhanced Prediction and Control of Temperature Systems Using Fuzzy PID strategies,” Journal of Intelligent & Fuzzy Systems, vol. 49, no. 4, pp. 1088–1106, 2025. DOI: 10.1177/10641246251328398.