Abstract
To address the issues of large overshoot, slow response, poor stability, and suboptimal control performance of traditional PID algorithms caused by the nonlinear relationship between the rotational speed and output flow rate of micro screw pump motors, this study proposes a PID parameter optimization method based on an improved spider wasp optimizer algorithm. First, this method incorporates the Tent chaotic mapping into the Spider Wasp Optimizer algorithm (SWO) to enhance initial population diversity, integrates differential evolution strategies to accelerate convergence, and employs Levy flight to boost local search capabilities, thereby balancing global exploration with local exploitation. Subsequently, comparative validation using 12 benchmark functions demonstrates that the improved algorithm (ISWO) outperforms SWO, PSO, SA, GOOSE, and CPO across metrics including mean, standard deviation, and Wilcoxon rank-sum test. Finally, integrating ISWO with PID control yields ISWO-PID, applied to a screw pump model. Simulation results demonstrate superior optimization efficiency and control performance: runtime was reduced by over 60% compared to benchmark algorithms, with enhanced system robustness and adaptability.
1. Introduction
Micro-screw pumps, as core equipment for high-precision fluid delivery, are widely used in microfluidic control scenarios across biopharmaceuticals, microelectronics manufacturing, chemical catalysis, and other fields [1]. Their control performance directly impacts product quality and process stability. Traditional PID control, favored for its simplicity and high reliability, remains the mainstream method for screw pump flow regulation. However, under microfluidic conditions, the system exhibits strong nonlinearity, time-varying characteristics, and sensitivity to external disturbances. Fixed PID parameter strategies struggle to meet the demands for high-precision dynamic response [2]. Consequently, achieving adaptive optimization of PID parameters has become a critical challenge for enhancing the control accuracy of micro-screw pumps.
To enhance dynamic performance, numerous researchers have proposed various methods for adaptive parameter tuning. Ma C employs fuzzy PID control by fuzzifying input and output variables and setting appropriate fuzzy rules [3]. Compared to traditional PID control, this approach demonstrates superior adaptive adjustment capabilities. However, the cumbersome setup of fuzzy rules and the requirement for separate design of inputs and outputs render it unsuitable for applications demanding high precision in system modeling. Wang S and Liu F employs Lyapunov stability theory to design adaptive control laws, achieving repeatable flow accuracy within ±1.5% [4]. However, this approach involves high computational complexity. Zhang M proposes an improved sparrow search algorithm by updating the sparrow position formula and modifying the step size control parameter to optimize PID tuning. The optimized PID tuning exhibits enhanced robustness and faster response speed, but suffers from instability [5]. Hu Z employs a particle swarm optimization algorithm to refine PID parameters. It utilizes a free particle position update method based on a midline strategy to accelerate particle convergence, thereby enhancing the algorithm’s optimization speed and accuracy. However, it suffers from significant overshoot and system instability [6]. Wang Y optimizes PID control parameters using an improved seeker algorithm. It employs inertial weight random variation to determine step size and enhances the boundary reflection strategy, improving the PID controller’s disturbance rejection and tracking performance. However, its universality across different industrial scenarios and real-time computational efficiency require further validation [7]. Xiao L employed an enhanced genetic algorithm for PID parameter tuning. However, when applied to liquid level control in a beer filling machine, the optimized controller rapidly eliminated steady-state error but simultaneously induced significant overshoot, compromising system stability [8].
This study proposes a PID control method for micro-screw pumps based on an improved spider wasp optimizer (SWO) algorithm. As a newly proposed intelligent algorithm, the SWO simulates the reproductive behavior of female spider wasps to obtain optimal solutions, yet its application in PID control remains limited [9]. However, the traditional SWO algorithm suffers from drawbacks such as susceptibility to local optima and suboptimal convergence performance, necessitating further refinement. Therefore, this study proposes three strategies: the Tent chaos mapping strategy, the hybrid differential evolution strategy, and the Levy flight strategy. These strategies are integrated into the SWO algorithm. Performance validation of the proposed improved algorithms is conducted using MATLAB R2024b simulation software. A simulation control system is established in the SIMULINK module to demonstrate its practical application effectiveness.
2. Establishment of Micro Screw Pump Structure and Mathematical Model
2.1. Structure of Micro Screw Pump
The basic structure of a micro-screw pump is illustrated in Figure 1: Component 1 supplies power for pump operation. When the motor’s rated torque is lower than the driving torque required for the screw pump rotor, Component 2 can be installed to reduce speed and increase torque. To prevent leakage of the pump medium, Component 4 is typically installed near the drive end, usually employing mechanical seals or packing seals. Component 5 serves as the power transmission part, transferring the power supplied by the motor. During pump operation, component 7 undergoes planetary motion, causing its axis to deviate from the axis of the power source. Therefore, component 6 is installed to enable variable-angle power transmission, allowing the power source to drive the rotor rotation during planetary motion. Components 3, 9 and 10 are structural elements within the screw pump, serving to connect and secure the assembly.
Figure 1.
Basic structure of micro screw pumps. 1—Servo motor; 2—Speed reducer; 3—Direct-connect rack; 4—Sealing element; 5—Transmission shaft; 6—Universal joint; 7—Rotor; 8—Stator; 9—Short circuit of outlet; 10—Imported cavity.
The rotor and stator in Figure 1 are the primary components of a single-screw pump. The rotor is a specially designed screw featuring a continuous helical groove. The stator is an elastomer that surrounds the rotor, typically made of rubber or other wear-resistant materials. Inside the stator is a double-helix-shaped passageway that closely mates with the outer surface of the rotor while maintaining a controlled clearance. The stator’s primary function is to provide a sealed environment, enabling the chambers formed by the rotor to effectively contain the fluid and ensuring it flows only in the predetermined direction. Simultaneously, the stator serves a supporting role, ensuring the rotor rotates stably without radial displacement. When the screw rotor is installed inside the stator, independent sealed chambers are formed between the rotor surface and the inner surface of the stator. At any cross-section along the shaft, these chambers are divided into two crescent-shaped sealed chambers on the left and right sides. As the rotor continuously rotates, its helical structure propels the liquid along the axial direction. The solution moves through each sealed chamber to the opposite end of the stator, where it is ultimately discharged. With each complete revolution of the rotor, the solution advances one sealed chamber’s distance within the sealed chambers.
The formation of the rotor is shown in Figure 2. The cross-section of the rotor is a circle with radius . The overall formation of the rotor can be understood as being produced by scanning the rotor cross-section along a helix with radius e (eccentricity) and pitch . The three-dimensional model of the rotor is shown in Figure 3.
Figure 2.
Formation of screw pump rotors.
Figure 3.
Screw pump rotor model.
The stator configuration is shown in Figure 4. The main structure of the stator is a solid cylinder. Its interior is formed by a double-helix surface (the cross-section of which consists of two semicircular arcs with a radius equal to the rotor radius R and a rectangle with a length of 4e and a width of 2R) cut along a helix with a radius of 4e + 2R and a pitch of T (T = 2t). Figure 5 shows a cross-sectional view of the rotor and stator after assembly.
Figure 4.
Formation of screw pump stator.
Figure 5.
Section of assembly model of stator and rotor of screw pump.
2.2. Establishment of Mathematical Model of Micro Screw Pump
When the rotor completes one revolution, the theoretical discharge flow rate of the screw pump should equal the volume of solution contained within a single sealing chamber. This can be defined as the volumetric difference at the contact surface between the stator and rotor during one rotor pitch. The theoretical flow rate is expressed as shown in Equation (1):
In this formula, Q1 represents the volumetric flow rate discharged by the screw pump per revolution of the rotor (unit: mm3/r), A denotes the equivalent sealing chamber cross-sectional area (unit: mm2), t is the pitch (unit: mm/r), e is the eccentricity (unit: mm), D is the diameter of the rotor cross-sectional circle (unit: mm), and R is the radius of the rotor cross-sectional circle (unit: mm). To convert the units of Q1 from mm3/r to mL/r, we obtain:
Multiply by rotational speed n to obtain units of mL/min. Convert mL/min to mL/s:
Based on a set of actual operating conditions, this paper selects appropriate structural parameters for the stator and rotor to design a micro-screw pump. According to the actual operating requirements: the displacement volume per revolution of the rotor is Q1 = 0.648 mL/s, which converts to Q1 = 648 mm3/r. Substituting this value into Equation (1) yields:
Solving yields eDt = 162. From Equations (3) and (4), we obtain:
Since the reduction ratio of the gear reducer is 5:1 (, is the motor speed), combine the angular velocity and rotational speed formula (, is the motor angular velocity), and substitute both into the theoretical flow rate formula for the micro-screw pump to replace , yielding Equation (6).
The electromagnetic torque of the servo motor is denoted as M. To highlight the electromagnetic-electromechanical dynamic characteristics of the servo motor itself, this paper establishes a small-signal reference model at the motor terminals, treating the load torque uniformly as an external disturbance and temporarily neglecting it. According to the torque balance theorem, we have Equation (7):
This simplification applies to operating conditions with small pressure differential and flow fluctuations. Under high-pressure differential or high-viscosity conditions, further corrections should be introduced by incorporating pressure-related load torque and friction terms. The electromagnetic torque of the motor can be expressed by the electromagnetic torque equation in (8):
The electromagnetic torque of the motor can also be expressed by the electromagnetic torque equation in (9):
In Equation (9), represents the motor’s load current. Solving Equations (8) and (9) simultaneously yields Equation (10):
The counter-electromotive force generated by the motor during operation is shown in Equation (11):
The voltage balance equation for a motor during regular operation is shown in Equation (12):
Combining Equations (10)–(12) yields Equation (13):
Applying the Laplace transform to both Equation (13) and Equation (6) yields Equation (14) containing :
From U(s) in Equation (14), we obtain Equation (15):
Substituting Q(s) from Equation (14) into Equation (15) yields:
In this paper, U(s) represents the armature voltage output from the servo drive to the motor terminals; Q(s) denotes the instantaneous volumetric flow rate of the pump. If the input is defined as the controller output/drive command voltage, the dynamics of the drive and current loop must be incorporated. If the output is the measured or filtered flow rate from the sensor, a measurement/filtering stage must be added in series after Q(s). The physical interpretation of the transfer function and the controller design must be adjusted accordingly.
The selected servo motor model is Huichuan, with the servo drive being LW100. The servo motor can withstand loads up to three times its rated torque. Its basic parameters are shown in Table 1.
Table 1.
Basic Parameters of Servo Motors.
Substituting the data from Table 1 into Equation (16) yields Equation (17):
This is then normalized by 0.2585 to obtain Equation (18):
From Equation (18), it can be seen that the micro-screw pump flow control system can be regarded as a second-order system with an undamped and a damping ratio . Typically, when the damping ratio is around 0.707, the System exhibits favorable dynamic response characteristics. If the damping ratio is too low, feedback control must be introduced to improve the System’s damping ratio, thereby enhancing the System’s stability and response speed.
To more intuitively assess the stability of the system, it is necessary to analyze its amplitude-frequency characteristics and phase-frequency characteristics [10].
As shown in Equation (19), at low frequencies , ; at high frequencies , the gain decreases at a slope of ; near the natural frequency , due to the damping ratio , the system exhibits a resonance peak. From Equation (20), it can be seen that: at low frequencies , the phase approaches 0°; at high frequencies , the phase approaches −180°; near the natural frequency , the phase rapidly decreases from 0° to −180°.
In summary, the system is stable but exhibits poor stability. Correction through a closed-loop control system is required to enhance the accuracy and stability of the pump’s flow rate during solution delivery operations.
3. Improved Spider Wasp Optimizer Algorithm
3.1. The Basic Principles of the Spider Wasp Optimizer Algorithm
The Spider Wasp Optimizer (SWO) algorithm simulates the four behaviors—searching, chasing, nest-building, and mating—that female spider wasps adopt to ensure the reproduction of their species [11].
First, the position of the spider in the search space is randomly initialized, with the initialization method shown in Equation (21):
where is the solution at time ; represents the population size; denote the lower and upper bounds of the initial solution, respectively; is a random vector between [0, 1].
Once the initial spatial position of the spider wasp optimizer is determined, it enters exploration mode. There are two types of exploration modes: fixed-step-length random exploration (as shown in Equation (22)) and variable-step-length small-range exploration (as shown in Equation (23)):
where represents the solution at the next time step ; , , denote randomly selected individuals from the population; are the coefficients for adjusting the step size; is a random number generated using a normal distribution; are random numbers between [0, 1]; is the coefficient controlling the amplitude of ; is the natural constant; is a random number between (−2, 1).
After locating prey during the exploration phase, the spider wasp optimizer enters the pursuit phase, where two outcomes may occur: successful capture of the prey or the prey escaping [12]. Upon successfully capturing prey, its behavioral expression can be represented as shown in Equation (24); when prey escapes, the spider swarm generates new positions during pursuit due to excessive distances between individuals, with the update method for these new positions shown in Equation (25):
where represents the factor determining the change in wasp speed; denote random numbers between [0, 1]; denote the current fitness and maximum fitness, respectively; represents a vector generated from a normal distribution between [−k, k], with .
After successfully capturing prey, spider wasp optimizers enter the nest-building phase. During this phase, their nest-building behavior involves two distinct approaches: one involves dragging the prey to the optimal location and constructing the nest at that site (its behavioral expression can be represented as in Equation (26)), while the other involves building the nest at the location where the prey was captured within the colony (its behavioral expression is shown in Equation (27)) [13]. In the second nesting method, the spider wasp optimizer uses additional strides to avoid constructing two nests at the same location.
where represents the currently generated optimal solution; denotes the number generating the search size and direction via the Levy flight distribution; is a random number between [0,1]; is a random vector consisting entirely of 0s or 1s.
After completing nest construction, spider wasp optimizers enter the mating and reproduction phase. Spider wasp optimizer eggs represent new potential solutions, which can be generated as shown in Equation (28). To distinguish gender differences, male spider wasp optimizers are generated by selecting according to Equation (29).
where represents the uniform crossover operator; denotes the vector of the male spider wasp optimizer; indicates the crossover probability; denote random numbers generated from a normal distribution to adjust the characteristics of the offspring solution; indicates the information about other solutions in the population that determine the features of solutions and in the new solution.
3.2. Improvements to the Spider Wasp Optimizer Algorithm
In the original spider wasp optimizer algorithm, the four behaviors—searching, hunting, nest-building, and mating—offer advantages such as escaping local optima and low disturbance during optimization. However, they also suffer from issues including premature local convergence, suboptimal convergence performance, and an imbalance between global exploration and local exploitation. To address these shortcomings, a multi-strategy fusion improvement method was adopted, as detailed below.
3.2.1. Tent Chaos Mapping Strategy
The Tent chaos mapping strategy is employed as the population initialization method [14]. This strategy leverages the uniform random traversal characteristic of the Tent chaos map, enabling the algorithm to escape local optima more readily and enhancing its global search capability. Consequently, the introduction of the Tent chaos mapping strategy helps maintain population diversity while improving the algorithm’s convergence speed and optimization accuracy, as expressed by the following formula:
where is a random point between 0 and 1, and denotes the current iteration count. Subsequently, the variable values generated by the Tent chaos map are mapped to spider wasp optimizer individuals, thereby initializing the entire chaotic population.
In Equation (31), denotes the mapped individual; and represent the upper and lower bounds for each individual and each dimension, respectively. is the Tent chaotic sequence generated according to Equation (30).
3.2.2. Fusion of Differential Evolution Strategies
During algorithm iteration, an evolutionary strategy based on differential algorithms was introduced to accelerate convergence speed and enhance convergence accuracy [15]. First is the global mutation operation based on the current optimal solution. This operation directly utilizes the currently found optimal solution, combined with the differential vectors of random individuals, to generate mutated individuals. This approach leverages existing excellent search results while introducing randomness through differential vectors, effectively balancing global exploration and local exploitation. Mutation formula:
where represents the current optimal solution, while and denote randomly selected individuals from the population. Setting as a fixed scaling factor balances exploration intensity and stability.
Although mutation operations introduce new search directions for individuals, differential crossover is necessary to enrich population diversity further and prevent the algorithm from prematurely converging to local optima. By establishing a crossover probability , the system randomly determines whether an individual’s dimension should adopt the corresponding dimension value from the mutated individual. Simultaneously, it enforces the retention of mutation information in one randomly selected dimension, ensuring the crossover operation effectively generates new solutions. The dynamic crossover probability formula is:
where , is a random number in the interval [0, 1], is the intersection probability in the interval [0, 1], and is a random integer in the interval [0, D].
After undergoing mutation and crossover operations, new trial individuals are generated. To continuously evolve the population toward better solutions, fitness comparisons must be performed between target individuals and trial individuals. A greedy selection strategy is employed, directly retaining individuals with superior fitness in the next generation population. This straightforward selection method rapidly eliminates inferior solutions, propelling the algorithm toward its optimization goal.
3.2.3. Levy Flight Strategy
The original spider wasp optimizer employs fixed step sizes for both exploration modes during the search phase. This limits the algorithm’s ability to identify high-quality solutions early on rapidly and significantly impacts convergence accuracy in later stages. To address this issue, the Levy flight strategy was introduced during the search phase. By utilizing non-uniform step sizes to explore the solution space, the Levy flight enhances the algorithm’s adaptability. The step size formula is derived as follows:
Among these, is fixed at 1.5 to control the probability of long-distance jumps; is a dynamic scaling factor related to the search space range, ensuring the step size adapts to the problem scale; and are random numbers following a standard normal distribution, providing randomness; is calculated using the gamma function to normalize the step size distribution. After introducing the adaptive step size factor into the original spider wasp optimizer algorithm’s search phase, its step size update formula becomes:
The updated step size dynamically balances global exploration and local exploitation. With a large step size, it rapidly covers the solution space; with a small step size, it performs fine-grained optimization to enhance accuracy. This enhances flexibility in individual position changes, expands the search space, and prevents the algorithm from getting stuck in local optima.
3.2.4. Overall Architecture of the ISWO Algorithm
The improved Spider-Wasp Optimizer (ISWO) algorithm enhances diversity by initializing the population using the Tent chaotic map. It integrates mutation, crossover, and selection strategies from Differential Evolution to boost global search capabilities. The introduction of the Levy flight strategy refines the step-length update mechanism to overcome local optima, forming a three-tier optimization framework: Chaotic Initialization-Differential Evolution-Levy Flight. This approach ensures convergence speed while improving optimization accuracy. The improved Spider-Wasp Optimization algorithm is abbreviated as ISWO. The overall architecture of the enhanced ISWO algorithm is illustrated in the Figure 6:
Figure 6.
ISWO overall architecture diagram.
3.3. Algorithm Performance Testing
To validate the improved performance of ISWO, this study selected a subset of functions from the CEC-2005 test suite as test functions. The CEC-2005 test set comprises a collection of challenging benchmark functions characterized by complex local optima, effectively simulating the complexity of real-world search spaces. Testing these benchmark functions enables a comprehensive evaluation of algorithm performance and robustness. The selected test functions are detailed in Table 2.
Table 2.
Selected Test Function.
F1–F7 represent multidimensional single-peak functions, which are typically challenging to solve and are suitable for evaluating an algorithm’s solution and optimization capabilities. Meanwhile, F8–F12 denote multidimensional multi-peak functions characterized by multiple local optima and multiple local optimal obstacles, making them ideal for assessing an algorithm’s ability to escape local optima.
The hardware environment for this experiment consists of 16 GB of RAM and an Intel Core i5-7300HQ 2.50 GHz CPU. The simulation software used is MATLAB R2024b. During the evaluation of the ISWO algorithm’s performance, it was compared against SWO and four other widely recognized meta-heuristic algorithms: SA, PSO, GOOSE, and CPO [16,17]. Additionally, an enhanced spider-wasp optimization algorithm (ESWO) was incorporated for comparative analysis [18].
During testing, each algorithm was executed 30 times with a population size of 100 and a maximum iteration count of 2000. The Simulation results were obtained from datasets generated by 30 independent runs of each benchmark function. The mean and standard deviation through 13 test functions were used as the final performance evaluation metrics, with the results presented in Table 3.
Table 3.
Test Results for Six Algorithms.
Table 3 presents the mean results and standard deviation from 30 independent runs of seven algorithms on a 30-dimensional benchmark function. A smaller mean indicates better optimization performance, while the standard deviation reflects system stability. As shown in Table 3, ISWO consistently outperforms the other five algorithms in both search accuracy and optimization stability for both unimodal and multimodal benchmark functions. Furthermore, compared to other swarm-based optimization algorithms and their original versions, as well as improved variants of ESWO, the ISWO algorithm demonstrates significant advantages in solution accuracy and robustness. It effectively enhances the performance of the SWO algorithm, exhibiting robustness and reliability when solving complex optimization problems.
3.4. Wilcoxon Rank-Sum Test
Relying solely on the mean and standard deviation is insufficient to fully reflect an algorithm’s performance. Therefore, to further validate the effectiveness of the improved algorithm (ISWO), this study employs the Wilcoxon rank-sum test. When performing the Wilcoxon rank-sum test on the experimental data and calculating the corresponding p-values, p < 0.05 indicates a significant difference between ISWO and the comparison algorithm. In contrast, p > 0.05 suggests no significant difference. Each algorithm was run independently 30 times, with the p-values recorded. The test results are shown in Table 4.
Table 4.
Wilcoxon rank sum test result.
The table shows that among all p-values, only the F8 function of the SWO algorithm exceeds 0.05, while the others are below 0.05. This indicates that the improved ISWO algorithm exhibits significant differences compared to the other five algorithms, validating the effectiveness of the ISWO algorithm.
4. Optimized Design of PID Controllers
4.1. Traditional PID Controller
In the field of control systems, the PID (Proportional-Integral-Derivative) control method, as a classic feedback control approach, is widely applied to optimize system performance in dynamic regulation. PID controllers regulate system stability by tuning three parameters: Kp (proportional gain), Ki (integral gain), and Kd (derivative gain). Equation (37) represents its fundamental principle and expresses the relationship between input, output, and the control system:
where C(s) denotes the transfer function of the PID controller, while the controlled object (plant) is denoted by G(s). The closed-loop framework is shown in Figure 7, where the controller C(s) drives the plant G(s) using the error e(t).
Figure 7.
PID Control System Framework Diagram.
4.2. PID Controller Based on ISWO
The ISWO algorithm is employed to optimize the deviation of the system’s acquired signals by adjusting the controller’s three parameters Kp, Ki, and Kd to achieve optimal overall controller performance. This ensures the system meets the required control accuracy specifications. The self-tuning controller principle diagram is shown in Figure 8.
Figure 8.
ISWO-PID Controller Parameter Self-Tuning Schematic Diagram.
The ISWO-PID controller parameter self-tuning procedure is as follows:
Step 1: Set the population size N = 100 for the ISWO algorithm, with a maximum iteration count Tmax = 2000. Define the ranges for Kp and Kd as [0, 500], and for Ki as [0, 5000]. Randomly generate an initial set of PID parameters to serve as the starting point for optimization.
Step 2: The ISWO algorithm begins iteration. The optimization process is illustrated in Figure 6.
Step 3: When the iteration count reaches the upper limit, stop optimization and select the optimal PID parameter combination from the iteration results. Inject the optimal PID parameters into the controller, continuously collect the deviation between the target value r(t) and the actual output y(t), dynamically compute the control signal u(t), drive the controlled object to stably track the target, and automatically adjust parameter adaptability when disturbances occur.
4.3. Determination of Fitness Function
The fitness function serves as a crucial metric for evaluating the performance of PID control systems, and its selection has a direct impact on the overall system performance. A smaller fitness function value indicates that the intelligent algorithm has identified more suitable Kp, Ki, and Kd parameters, resulting in improved overall control system performance. Therefore, selecting an appropriate performance metric is particularly important. Commonly used performance optimization metrics include:
In the formula: ISE denotes the integral of squared error criterion; ITSE denotes the integral of time multiplied by squared error criterion; IAE denotes the integral of absolute error criterion; ITAE denotes the integral of time multiplied by absolute error criterion. Different optimization performance metrics emphasize distinct aspects of optimization. Control systems designed based on ISE and IAE exhibit rapid response speeds and significant oscillations, with relatively poor stability. ITSE and ITAE prioritize errors that emerge during the late transient response phase, while minimizing consideration of significant initial errors in the response. This approach reduces oscillations, allowing the system to approach the target transient response within a shorter timeframe.
A key step in applying the ISWO algorithm is selecting a fitness function that reflects the core control performance requirements, including rapid response, high steady-state accuracy, and *low* (rather than strictly zero) overshoot. In this study, the Integral of Time multiplied by Absolute Error (ITAE) is adopted as the single-objective fitness function. Although ITAE does not explicitly include a peak-overshoot term, it penalizes persistent errors over time and thus tends to discourage long-lasting oscillations. Consequently, parameter sets that minimize ITAE typically yield a well-balanced transient response with fast error convergence and, in many cases, relatively small or acceptable overshoot. It should be noted, however, that minimizing ITAE alone cannot guarantee a strictly no-overshoot response, and some overshoot may still occur for complex reference signals and/or specific plant dynamics under a fixed PID structure, as observed in our results.
5. Simulation Results and Analysis
5.1. Simulation
To validate the effectiveness of the optimization in the improved algorithm, a simulation control system was established using the Simulink module in MATLAB. R2024b Six methods, ISWO, SWO, PSO, SA, GOOSE, and CPO, were employed to tune the parameters of the PID controller. During parameter tuning, the range of each parameter was approximated through preliminary manual iterative tuning of the PID controller parameters, significantly narrowing the scope for optimizing PID parameters. Through repeated experimental runs, the ranges for Kp and Kd were determined to be [0, 500], and for Ki, [0, 5000].
During the simulation, the population size N was set to 100 for all six algorithms (ISWO, SWO, PSO, SA, GOOSE, and SA), the maximum iteration count Tmax was set to 2000, and the simulation time t was set to 2 s. The main parameters for each algorithm are listed in Table 5.
Table 5.
Main parameters of the algorithm.
5.2. Experimental Results and Analysis
The fitness function values obtained through simulation for the six algorithms—ISWO, SWO, PSO, SA, GOOSE, and CPO—are shown in Figure 9. As seen in the figure, although the convergence curves of SA, PSO, and GOOSE stabilize relatively quickly, their accuracy is not high. CPO stabilizes after approximately 800 iterations, avoiding local optima but exhibiting slow convergence and low accuracy; SWO rapidly declines initially before repeatedly getting stuck in local optima, continuing to decrease slowly even at the maximum iteration count with similarly low accuracy. In contrast, ISWO converged to a stable minimum around 180 iterations, achieving higher accuracy than the other five algorithms. Thus, ISWO demonstrates superior resistance to local optima and converges to lower values. Compared to SWO, PSO, and SA, it offers the best overall performance in both convergence speed and accuracy.
Figure 9.
Optimization algorithm convergence comparison.
The output response curves of the control systems using six algorithms are shown in Figure 10, while the PID parameter tuning results obtained through algorithm optimization are presented in Table 6. As seen in the figure, both the PSO and CPO algorithm-optimized PID control systems exhibit significant overshoot exceeding 10%. The step response curve of the SA algorithm fluctuates within a narrow range and takes a considerable amount of time to stabilize. In contrast, the PID control systems optimized by the ISWO, SWO, and GOOSE algorithms exhibit negligible overshoot, approaching zero. However, the ISWO algorithm achieves the fastest rise time. Overall, the ISWO-optimized PID controller for micro-screw pumps demonstrates superior control performance. Compared to the other five algorithms, it reduces settling time by over 60% and significantly lowers overshoot.
Figure 10.
Controller step response comparison.
Table 6.
PID parameter tuning result.
To further evaluate tracking capability under time-varying reference signals beyond step regulation, two representative reference signals were selected: a sine wave and a ramp signal. The simulated time range and sampling time were kept consistent with the step response test to ensure a fair comparison.
Figure 11 and Figure 12 respectively compare the closed-loop tracking responses of six PID controllers to sinusoidal and ramp signals. In addition to the output trajectories, the corresponding tracking errors are plotted to highlight subtle differences that are difficult to discern from the output curves alone.
Figure 11.
Controller Sine Wave Tracking comparison.
Figure 12.
Controller Ramp Signal Tracking comparison.
For the sinusoidal input (Figure 11), tracking performance is primarily reflected in amplitude decay and phase lag. The ISWO-tuned controller produces the smallest tracking error envelope, indicating superior dynamic tracking capability under periodic conditions.
For ramp inputs (Figure 12), tracking performance reflects the controller’s ability to suppress dynamic bias and maintain low steady-state tracking error. The error curves reveal that controllers with insufficient integral action exhibit significant steady-state tracking deviation, whereas the ISWO-tuned controller consistently maintains lower error levels throughout the entire range.
5.3. Discussion
Micro-screw pumps require high control precision due to their low flow rates. Enhancing PID control accuracy through swarm intelligence algorithms is a common approach to improving control accuracy. Therefore, this study selects and improves a novel swarm intelligence algorithm to elevate control precision. The chaotic Tent map resolves search bias issues prone to occur with random initialization by employing traversal initialization of the population. Differential mutation introduces intra-population variability, enhancing the algorithm’s ability to escape local optima. The Levy flight strategy achieves a dynamic equilibrium between global exploration and local exploitation through dual-dimensional adjustment of iteration stages and individual fitness.
Additionally, SWO is a bio-inspired heuristic optimization algorithm featuring an efficient biomimetic mechanism. Simulating the behavior of the spider wasp optimizer achieves rapid convergence and high solution accuracy. ISWO effectively inherits SWO’s biomimetic mechanism while delivering superior optimization performance. As demonstrated in Figure 9, Figure 10, Figure 11 and Figure 12 and Table 6, ISWO consistently exhibits optimal results when compared against both traditional and state-of-the-art optimization algorithms.
The rapid convergence and high precision demonstrated by ISWO stem from the synergistic effects of its enhanced strategies: The Tent chaos mapping ensures diversity in the initial population, laying the foundation for global exploration; the integrated differential evolution strategy accelerates the population’s evolution toward the optimal solution region; while the Levy flight strategy provides dynamic step sizes in the later iterations, effectively balancing global exploration with local exploitation. This design renders it particularly suitable for engineering optimization problems demanding high convergence reliability and precision, such as PID parameter tuning.
In micro-screw pump control applications, the “near-zero overshoot” achieved by ISWO-PID delivers direct engineering value. In precision dispensing or metering scenarios, overshoot translates to material waste or dosage inaccuracy; the zero-overshoot characteristic directly translates into enhanced process control precision and economic benefits. Simultaneously, the “over 60% reduction in settling time” enables the system to track setpoint changes more rapidly, which is crucial for enhancing production cycle times or responding to dynamic commands. Unlike comparative algorithms, ISWO does not sacrifice other performance metrics to pursue a single objective (e.g., zero overshoot or fast response). Instead, it identifies a parameter set achieving optimal balance across key dynamic performance indicators, demonstrating its comprehensive advantage in solving real-world multi-objective optimization problems.
It must be explicitly noted that the excellent results achieved in this study are based on a linearized second-order nominal model. Actual micro-screw pump systems exhibit rich nonlinear characteristics, such as friction between stator and rotor, variations in medium viscosity, potential internal leakage, and dynamic limitations of actuators and sensors. None of these factors were represented in the simulations conducted here. Therefore, the core contribution of this work lies in validating ISWO’s potential as an efficient and robust offline parameter auto-tuning tool. It provides a high-performance initial parameter solution or optimization baseline for controller tuning in complex systems, significantly reducing the time and labor costs associated with traditional trial-and-error methods reliant on experience. The ultimate engineering applicability and robustness of this method require further validation through hardware-in-the-loop simulations or physical experiments incorporating more practical constraints.
6. Conclusions
To address issues such as low flow control accuracy and poor stability caused by nonlinear characteristics in micro-screw pump operations like dispensing, this paper proposes a PID parameter self-tuning method based on an improved Spider-Wasp Optimization Algorithm (ISWO). By incorporating the Tent chaotic mapping, integrating differential evolution strategies, and adopting the Lévy flight strategy, the algorithm’s convergence speed and robustness are effectively enhanced.
Simulation studies demonstrate that on standard test functions, ISWO significantly outperforms comparison algorithms in mean, standard deviation, and Wilcoxon tests. In micro-screw pump control applications, the ISWO-optimized PID controller based on the established model achieves comprehensive performance improvements—including near-zero overshoot and significantly reduced settling time—validating the method’s effectiveness in enhancing system control quality.
It should be noted that this study primarily validates algorithm performance using linear simulation models. Future work will focus on integrating simulations with more comprehensive nonlinear factors and advancing hardware-in-the-loop or physical experiments to further evaluate the method’s engineering applicability and robustness.
Author Contributions
Conceptualization and methodology, Z.Z.; software and validation, D.S.; formal analysis and investigation, Y.L.; writing—original draft preparation, writing—review and editing, Z.L.; visualization and supervision, H.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research is funded by the Open Project of Key Laboratory of Intelligent Equipment Quality and Reliability of Anhui Polytechnic University (IEQRKL2403), the Open Fund Project of Anhui Provincial Engineering Laboratory for Intelligent Demolition Equipment (APELDE2023A005), and the Open Fund of Key Laboratory of Electric Drive and Control of Anhui Province (DQKJ202410).
Data Availability Statement
The dataset used is included in the study.
Conflicts of Interest
Author Huichuang Luo was employed by the company Huangshan Huang Pump Single Screw Pump Co. 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.
References
- Shi, S.-Z.; Nie, Z.; Wang, C.-P.; Huang, X.-Q.; Zhang, Y.-N. Study of the Screw Pump Influence on the Characteristics. In International Field Exploration and Development Conference; Springer Nature: Singapore, 2022; pp. 3167–3181. [Google Scholar]
- Yang, Q.; Chen, G.; Guo, M.; Chen, T.; Luo, L.; Sun, L. Model Predictive Hybrid PID Control and Energy-Saving Performance Analysis of Supercritical Unit. Energies 2024, 17, 6356. [Google Scholar] [CrossRef] [Scilit]
- Ma, C.; Huang, B.; Basher, K.; Rob, A.; Jiang, Y. Fuzzy PID Control Design of Mining Electric Locomotive Based on Permanent Magnet Synchronous Motor. Electronics 2024, 13, 1855. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Liu, F. Adaptive PID Fault-Tolerant Control with Output Constraints for Flexible Space Manipulators Considering Gravity Effects. High Technol. Lett. 2024, 34, 960–971. [Google Scholar]
- Zhang, M.; Xu, C.; Li, L.; Wang, Z.; Zong, X. Optimization of PID Controller for Stepper Motor Speed Control System Based on Improved Sparrow Search Algorithm. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2024, 238, 9397–9411. [Google Scholar] [CrossRef] [Scilit]
- Hu, Z.; Guo, W.; Zhou, K.; Wang, L.; Wang, F.; Yuan, J. Optimization of PID Control Parameters for Marine Dual-Fuel Engine Using Improved Particle Swarm Algorithm. Sci. Rep. 2024, 14, 12681. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, Y.; Kou, Z.; Wu, L. Optimization of PID Control Parameters for Belt Conveyor Tension Based on Improved Seeker Optimization Algorithm. Electronics 2024, 13, 3907. [Google Scholar] [CrossRef] [Scilit]
- Xiao, L. Parameter Tuning of PID Controller for Beer Filling Machine Liquid Level Control Based on Improved Genetic Algorithm. Comput. Intell. Neurosci. 2021, 2021, 7287796. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Abdelbasset, M.; Mohamed, R.; Jameel, M.; Abouhawwash, M. Spider Wasp Optimizer: A Novel Meta-Heuristic Optimization Algorithm. Artif. Intell. Rev. 2023, 56, 11675–11738. [Google Scholar] [CrossRef] [Scilit]
- Liu, W. Study on Design of Feedback System for LED Driver. China Light. Electr. Appl. 2015, 2, 11–15. [Google Scholar]
- Li, W.; Zhang, H.; Xu, C.; Zhang, M.; Fang, H. Optimization of EHA Sliding Mode Controller Based on the Spider Wasp Optimizer. Chin. J. Ship Res. 2025, 20, 246–253. [Google Scholar]
- Zhang, Y.; Jiang, W.; Chen, Y.; Guan, W. 3D Path Planning for Unmanned Aerial Vehicles Based on Improved Spider Wasp Algorithm. Electron. Meas. Technol. 2024, 47, 101–111. [Google Scholar]
- Sheng, Q.; Zhang, D. Dynamic Spider Wasp Optimization Algorithm Combined with Duality Learning and Its Applications. Foreign Electron. Meas. Technol. 2024, 43, 160–173. [Google Scholar]
- Li, X.; Gu, J.; Sun, X.; Li, J.; Tang, S. Parameter Identification of Robot Manipulators with Unknown Payloads Using an Improved Chaotic Sparrow Search Algorithm. Appl. Intell. 2022, 52, 10341–10351. [Google Scholar] [CrossRef] [Scilit]
- Ren, L.; Sun, Y.; Ding, W.; Ju, H. Multiple Lesions Detection of Fundus Images Based on CNN Algorithm Optimized by Single Population Frog-Leaping Algorithm. J. Front. Comput. Sci. Technol. 2021, 15, 1762–1772. [Google Scholar]
- Hamad, R.; Rashid, T. GOOSE Algorithm: A Powerful Optimization Tool for Real-World Engineering Challenges and Beyond. Evol. Syst. 2024, 15, 1249–1274. [Google Scholar] [CrossRef] [Scilit]
- Mohamed, A.; Mohamed, R.; Mohamed, A. Crested Porcupine Optimizer: A New Nature-Inspired Metaheuristic. Knowl.-Based Syst. 2024, 284, 111257. [Google Scholar]
- Xu, H.; Bai, L.; Huang, W. An optimization-inspired intrusion detection model for software-defined networking. Electron. Res. Arch. 2025, 33, 231–254. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.











