Movatterモバイル変換


[0]ホーム

URL:


Next Article in Journal
Simultaneous Multifocal Plane Fourier Ptychographic Microscopy Utilizing a Standard RGB Camera
Previous Article in Journal
Visual-Aided Obstacle Climbing by Modular Snake Robot
 
 
Search for Articles:
Title / Keyword
Author / Affiliation / Email
Journal
Article Type
 
 
Section
Special Issue
Volume
Issue
Number
Page
 
Logical OperatorOperator
Search Text
Search Type
 
add_circle_outline
remove_circle_outline
 
 
Journals
Sensors
Volume 24
Issue 13
10.3390/s24134425
Font Type:
ArialGeorgiaVerdana
Font Size:
AaAaAa
Line Spacing:
Column Width:
Background:
Article

Research on Gate Opening Control Based on Improved Beetle Antennae Search

by
Lijun Wang
1,*,
Yibo Wang
1,
Yehao Kang
1,
Jie Shen
1,
Ruixue Cheng
2,
Jianyong Zhang
2 and
Shuheng Shi
1,*
1
School of Mechanical Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, China
2
School of Computing, Engineering and Digital Technologies, Teesside University, Middlesbrough TS1 3BX, UK
*
Authors to whom correspondence should be addressed.
Sensors2024,24(13), 4425;https://doi.org/10.3390/s24134425
Submission received: 16 April 2024 /Revised: 13 June 2024 /Accepted: 5 July 2024 /Published: 8 July 2024
(This article belongs to the SectionPhysical Sensors)

Abstract

:
To address the issues of sluggish response and inadequate precision in traditional gate opening control systems, this study presents a novel approach for direct current (DC) motor control utilizing an enhanced beetle antennae search (BAS) algorithm to fine-tune the parameters of a fuzzy proportional integral derivative (PID) controller. Initially, the mathematical model of the DC motor drive system is formulated. Subsequently, employing a search algorithm, the three parameters of the PID controller are optimized in accordance with the control requirements. Next, software simulation is employed to analyze the system’s response time and overshoot. Furthermore, a comparative analysis is conducted between fuzzy PID control based on the improved beetle antennae search algorithm, and conventional approaches such as the traditional beetle antennae search algorithm, the traditional particle swarm algorithm, and the enhanced particle swarm algorithm. The findings indicate the superior performance of the proposed method, characterized by reduced oscillations and accelerated convergence compared to the alternative methods.

    1. Introduction

    Water conservancy serves as the lifeblood of the national economy, with gate stations representing pivotal water conservancy infrastructure. These projects shoulder critical responsibilities for basin and regional flood control, drainage, irrigation, and water transfer. They play an indispensable role in managing floods, mitigating droughts, and effectively managing water resources. Furthermore, they serve as vital sources for industrial and agricultural water supplies, as well as urban and rural water supplies, underscoring their significant societal importance.
    Direct current (DC) motors exhibit commendable performance in terms of starting and speed regulation, making them a preferred choice for applications with stringent requirements. They find extensive usage in scenarios such as winch-type openers, ship machinery, large precision machine tools, and heavy-duty cranes, among other industrial machinery. Consequently, in water conservancy gate systems, the DC motor is often favored as the primary gate opener. By simplifying the gate opening control to control the DC motor, it is imperative for the motor to achieve stable and precise control parameters [1].
    The proportional integral derivative (PID) control scheme used in traditional motor control systems is most widely used in industrial production due to its simple control structure, strong robustness, high accuracy, etc. The main function of the PID controller is to regulate the feedback signal to be as similar as possible to the input signal, and a faster response speed and higher accuracy can be obtained by choosing the appropriate PID parameters. However, with the advancement of science and technology and the improvement of accuracy requirements, classical PID control technology has increasingly shown that signal processing is too simple and that the control parameters are not adjusted due to the environment and other shortcomings; therefore, the PID parameter tuning method has become a popular research topic.
    With the development of artificial intelligence, artificial intelligence algorithms, such as the particle swarm optimization algorithm, are widely used in PID controllers to select reasonable PID parameters [2]. The beetle antennae search algorithm is an efficient intelligent search algorithm, proposed by Jiang Xiangyuan and Li Shuai in 2017. It is a genetic algorithm derived from the foraging behaviors of beetles. The algorithm is able to recognize individuals and environments without knowing functional information, and the algorithm has simple code implementation, fast computation speed, and the ability to obtain the optimal solution under stable convergence. BAS algorithms have been applied in the fields of neural network optimization [3], electrohydraulic servo position control optimization [4], industrial robot control [5], and unmanned aerial vehicle (UAV) sensing and avoidance [6].
    In summary, the optimization of PID parameters by a genetic algorithm still has the disadvantages of requiring a long adjustment time and easily falling into a locally optimal state. Therefore, in this paper, the improved beetle antennae search algorithm is used for the adaptive optimization of fuzzy PID controller parameters so that the parameters can be adaptively adjusted to adapt to load and environmental changes. By optimizing the step size of the beetle antennae search algorithm, the response speed and convergence accuracy of the system are effectively improved, and the step size is changed with the iteration to prevent the algorithm from falling into the local optimal solution, which ensures the speed and accuracy of the algorithm.
    In this paper, we use MATLAB/Simulink software to construct a corresponding control system simulation model, simulate the response speed and accuracy, and test and verify the performance of the electric winch gate opener in a real working environment. By monitoring the motor speed when the motor is raised under different optimization algorithms, the simulation and experimental results show that the improved beetle antennae search algorithm has a better effect on fuzzy PID parameter tuning than other algorithms, and the motor control system has a better control effect.

    2. Modeling of the Brushless DC Motor Control System

    2.1. Brushless DC Motor System

    According to the schematic diagram of the two-phase conduction star three-phase six-state control system of the brushless DC motor shown inFigure 1, the brushless DC motor (BLDCM) mathematical model is established, and the following assumptions are made to simplify the establishment and analysis of the mathematical model of the motor:
    The three-phase windings U, V, and W inside the motor are assumed to be symmetrically and uniformly continuously distributed;
    The tube voltage drop across the power tubes and the continuity diode in the inverter of the motor control system are neglected;
    The effects of the cogging effect, magnetic circuit saturation, and armature reaction on the motor are neglected;
    The effects of hysteresis, eddy current effect, skin effect, and temperature change during operation on the motor parameters are neglected.
    Sensors 24 04425 g001
    Figure 1. Schematic diagram of the brushless DC motor control system.
    Figure 1. Schematic diagram of the brushless DC motor control system.
    Sensors 24 04425 g001
    Based on the above assumptions, the matrix expression for the stator voltage balance equation of the brushless DC hub motor can be written as
    uaubuc=R000R000Riaibic+LsMMMLsMMMLsddtiaibic+eaebec
    whereua,ub, anduc are the U, V, and W three-phase voltages, V;ia,ib, andic are the U, V, and W three-phase currents, A;ea,eb, andec are the U, V, and W three-phase opposite electromotive forces, V; R is the motor three-phase winding resistance,Ω;Ls is the inductance of the winding, H; and M is the mutual inductance of each of the two phases of the winding before H.
    The motor electromagnetic torque expression is
    Te=(eaia+ebib+ecic)/ω
    where:Te is the electromagnetic torque of the motor, Nm, andω is the mechanical angular velocity of the motor when rotating, rad/s.
    The equations of equilibrium of motion of the motor rotor are
    TeTL=Jdωdt+Bω
    where:TL is the motor load torque, Nm;J is the motor rotor moment of inertia,kg·m2; andB is the motor viscous friction factor.

    2.2. Modeling of a DC Motor Drive Train Considering the Structural Stiffness of the Drive Shaft

    The motor is directly coupled to the load, but the drive shaft is inherently elastic and therefore subject to deformation, and the bearings and frame cannot be completely rigid. For systems with large acceleration requirements, high speed and accuracy requirements, or systems with large rotational inertia and high performance requirements, the effect of elastic deformation on the system performance cannot be ignored; therefore, to establish a similar motor-load model, the stiffness coefficient of the shaft, i.e., the torque generated by the unit angle of rotation, is an important parameter.
    Considering the presence of the various elastomers described above, the controlled system can be considered the system structure illustrated inFigure 2: a three-mass system consisting of a motor, a purely inertial load, and an equivalent transfer axis connected to both.
    Building upon the aforementioned analysis and disregarding the rotational inertia of the shaft, the electrical equations along with the dynamic equations for the entire system can be formulated as follows:
    Electric motors:
    iRa+Ladidt=uaKeθ·m
    Tm=ikm
    Jmθ··m=TmDmθ·mk12(θmθL)
    where:θm is the motor rotor;θL is the load angle;i is the motor armature current;Ua is the motor armature voltage;La is the motor armature inductance;Ra is the motor armature resistance; andJm is the rotational inertia of the motor rotor.
    Load:
    JLθ··L=TmLDLθ·L
    K12(θmθL)TmL=0
    where:JL is the rotational inertia of the motor rotor;TmL is the load moment of the motor;Km is the electromagnetic torque coefficient of the motor;Ke is the reaction potential of the motor;K12 is the stiffness coefficient of the shaft;DL is the viscous damping coefficient of the motor; andDm is the viscous damping coefficient of the frame.
    Figure 3 illustrates the structure of the gate opening control system. To enhance the control process efficiency, minimize the corresponding control system time, and optimize the control system accuracy, a control system model for the gate is developed. The control model for the gate control system presented in this paper is based on the preset gate position determined by the system as input, the real-time position acquired through the position sensor as feedback, and the motor-controlled gate opening mechanism.

    3. Fuzzy Pid Control System Based on an Improved Beetle Antennae Search

    3.1. Fuzzy PID Control

    Fuzzy PID control is a method that combines fuzzy logic with PID control, harnessing the strengths of both control strategies. This approach surpasses the constraints of conventional PID control when dealing with nonlinear, time-varying, and intricate systems. Moreover, fuzzy PID control exhibits greater adaptability in application, catering to diverse systems and control requirements. The fuzzy controller employs the error (e) and the rate of change of error (ec) between the preset gate position and the real-time position as input variables. The three stages of fuzzification, fuzzy inference, and defuzzification yield the three parameter variablesΔkp,Δki, andΔkd, respectively, which enable real-time adjustment of the PID parameters. A block diagram depicting the principle of fuzzy PID control is shown inFigure 4.
    The adjusted controller parameters are
    kp=kp0+Δkpki=ki0+Δkikd=kd0+Δkd
    where:kp,ki, andkd are the adjusted parameters;kp0,ki0, andkd0 are the three initial PID values; andΔkp,Δki, andΔkd are the output parameter variables of the fuzzy controller.
    In fuzzy control, the formulation of fuzzy rules is the cornerstone of a fuzzy controller. Typically, the input signal undergoes fuzzification, followed by fuzzy inference, and ultimately, the signal-derived postfuzzy inference is defuzzified, underscoring the significance of fuzzy rules [7]. A fuzzy rule encompasses a sequence of fuzzy conditions amalgamated to construct a fuzzy database. Within a fuzzy set,R denotes the overall set,i represents theith subrule,n signifies the total number of rules,Si denotes theith subset, and the aggregation of all subsets equals the total setR, as depicted in Equation (10):
    R=i=1nRi=R1R2Rn1Rn
    This system divides the PID deviation e into seven subfuzzy control sets when establishing fuzzy rules: negative big (NB), negative medium (NM), negative small (NS), zero (Z), positive small (PS), positive medium (PM), and positive big (PB). Moreover, the fuzzy rules based on the deviation range of variable e are divided into seven partial value ranges: −3, −2, −1, 0, 1, 2, 3, andKp/Ki/Kd, as shown inTable 1.
    The quantization factor and proportionality factor are pivotal parameters utilized to fine-tune the output of fuzzy controllers. They serve to regulate the discrete output level, precision, and gain, thereby facilitating precise system control and ensuring system stability. Initially, deriving these factors entails approximate calculations and accumulated experience, a process that is both time-consuming and challenging.
    Fuzzy inference represents a crucial stage within fuzzy control systems, converting fuzzy inputs into fuzzy outputs. During this process, input values are initially mapped to appropriate membership values within the fuzzy set based on system inputs and predefined fuzzy rules. Subsequently, the corresponding fuzzy output values are computed by applying logical relationships inherent in the fuzzy rules. Defuzzification involves mapping the fuzzy output to the actual output space for practical control or decision-making purposes. Commonly employed defuzzification methods include the maximum affiliation method, median method, and center of gravity method. When selecting a method, considerations such as system performance requirements, real-time constraints, complexity, and computational efficiency must be considered. The center of gravity method, notable for its intuitiveness and simplicity in calculation, offers resolution and clear physical interpretation. Therefore, this paper adopts the center of gravity method for defuzzification purposes [8]. The center of gravity method is described by the following equation:
    u*=abu*μ(u)duabμ(u)du
    whereu* is the amount of clarity,u is the amount of control of the output,µ is the affiliation function,b is the upper limit of the clarity value, anda is the lower limit of the clarity value.

    3.2. Beetle Antennae Search

    Beetle Antennae Search (BAS) represents a sophisticated and intelligent optimization algorithm introduced in 2017. This algorithm draws inspiration from biological principles, particularly the foraging behavior of the aspen insect. Unlike traditional optimization methods, BAS operates without prior knowledge of the function’s exact form or the need for gradient information, enabling efficient optimization. In contrast to other optimization algorithms such as particle swarm optimization, BAS distinguishes itself by requiring only a single individual, akin to a solitary aspen, to execute the optimization search. This characteristic significantly diminishes the computational overhead, making BAS a compelling choice for optimization tasks [9].
    The principle behind the beetle antennae search algorithm is that when a beetle forages for food, it does not know the exact location of the food but rather forages because of the strength of the food’s odor. The beetle has two antennae, and if the left side receives a stronger odor pheromone than does the right side, the aspens will move to the left, and vice versa. Based on this simple principle, the beetle is able to find food efficiently. Inspired by this, people compare the function to the food of the aspens; the food smells differently at different locations in space; that is, the function has different values at different points, and the beetle finds the location of the food by collecting the maximum point of the odor value around it to solve the optimal value of the function problem [10]. The basic steps of optimization are as follows:
    Step 1: For an n-dimensional spatial optimization problem, determine the left and right whisker coordinatesxl andxr, the center of mass coordinatesx, the distance between the two whiskersd0, and the step sizestep.
    Step 2: The tenebrous ox is arbitrarily oriented, so the vectors of the left and right whiskers are also arbitrarily oriented, generating a random directiondir=rand(n,1). Thisdir=dir/norm(dir) is normalized to yield:
    xl=x+d0·dir/2xr=xd0·dir/2
    Step 3: For the function to be optimizedf, find the values of the left and right whiskersFleft=f(xl),Fright=f(xr), and determine the size of the two values.
    xt+1=xt+step·dir(xlxr)Fleft<Frightxtstep·dir(xlxr)Fleft>Fright
    wherext+1 denotes the center of mass coordinates fort + 1 iterations of the beetle andstep=eta·step,eta is between (0, 1).
    Step 4: Determine whether the optimization accuracy is met or the maximum number of iterations is reached; if it is met, then the optimization ends; otherwise, repeat the process of steps 2 and 3.

    3.3. Improvement of the Beetle Antennae Search Algorithm

    Compared with other genetic algorithms, the beetle antennae search algorithm is characterized by individual search behavior and a simpler structure. It does not require specific knowledge of the objective function or gradient information, making it capable of achieving better convergence speed and solution accuracy in optimization tasks. However, the step size of the beetle antennae search algorithm has a more significant effect on the convergence speed of the algorithm and the strength of its ability during the search [11]. In the traditional beetle antennae search algorithm, the value of the step decay factor is a fixed value, so each iteration of the step is a fixed multiple of the previous round [12]. If the step decay is too slow, the algorithm has a strong global search capability, but the convergence speed is slow; if the step decay is too fast, the algorithm will fall into the local optimum, and the global optimal solution cannot be obtained.
    Therefore, the step factor needs to be optimized, and the algorithm is improved by adopting the method of dynamic step size; in the early stage of the algorithm iteration, a larger step factor is used to improve the global search ability of the algorithm, and in the late stage of the algorithm iteration, a smaller step factor is used to improve the search accuracy of the algorithm to seek the optimal solution. The specific algorithm optimization formula is as follows:
    step(t)=stepstartstepstartstependTmax2t2
    where:stepstart is the initial weight value;stepend is the weight value at the end of the iteration;t is the current iteration number; andTmax is the maximum iteration number.
    According to the above formula, it can be seen that the time and step length of the algorithm are negatively correlated, and the step length is a quadratic function of time: the step length changes slowly at the beginning of the algorithm iteration, which enables the algorithm to carry out global optimization at the beginning of the iteration, avoiding falling into the local optimal solution; when the algorithm iterates to the later stage, the change in the step length is faster, which enables the algorithm to quickly converge to the optimal value after searching for optimal value domains to improve local search accuracy. The combination of these two can improve the search speed under the condition of guaranteeing accuracy. According to the above improved design, this paper proposes an improved step-size beetle antennae search algorithm, and the specific flow of the algorithm is as follows:
    Step 1: Initialize the parameters. Initialize the population, the maximum number of iterations, the initial step size and so on.
    Step 2: Based on the current position, the beetle starts to search.
    Step 3: Update the position of the left and right tentacles of the beetle, calculate the fitness value, and update the position of the beetle. If the fitness value of the left tentacle is small, the beetle moves to the left; if the converse, it moves to the right.
    Step 4: Calculate the evaluation function ITAE to update the global optimal beetle position.
    Step 5: Determine whether the maximum number of iterations is reached; if not satisfied then perform step 6; otherwise, perform step 7.
    Step 6: Update the step factor and perform the next round of iteration.
    Step 7: Output the optimal value, the algorithm ends.
    The flowchart of algorithm improvement is shown inFigure 5:

    3.4. Improved Beetle Antennae Search Algorithm for Optimizing Fuzzy PID Parameters

    Appropriate proportional, differential, and integral coefficients play a vital role in enhancing the error performance and response time of a control system. By employing a fuzzy algorithm to handle the system’s error and its rate of change, the optimal proportional, differential, and integral coefficients can be determined more effectively [13].
    In this paper, we use the improved BAS algorithm to optimize the fuzzy PID controller in terms of the errorke, error rate of changekec, proportional coefficientskp, integral coefficientski, and differential coefficientskd, integrating the five parameters together as a “beetle” in the given search space (the beetle according to the left and right whisker position of the adaptability of the value of the adjustment of the update of the next iteration of position), until the specific optimization steps meet the conditions. Until the iteration conditions are met, the specific optimization steps are as follows:
    The initial population size is defined, and the maximum number of iterations is set.
    A five-dimensional space is constructed where each dimension represents the error, error change rate, proportional coefficient, integral coefficient, and differential coefficient.
    Define the fitness function. This paper utilizes the integral of time multiplied by the absolute error (ITAE) criterion as the fitness function, which serves as a performance index for the control system. A smaller ITAE indicates better performance. The ITAE expression is as follows:
    J(ITAE)=0tte(t)dt
    The beetle antennae search optimization algorithm is executed, and the optimized values of the five parameters (ke,kec,kp,ki, andkd) are extracted as the optimal solution for the given problem.
    The Simulink simulation model of the gate motor control system is utilized by invoking the “sim” function within the program. The optimized parameters are integrated into the system, and the optimized control waveform is generated for the control system.
    The optimization process for the fuzzy PID parameters using the beetle antennae search algorithm is illustrated inFigure 6.

    4. Control System Simulation Analysis

    4.1. PID Control System Simulation

    Identifying the controlled object is a fundamental aspect of control system simulation. In this paper, the focus is on the gate system, whose operational component is primarily driven by the motor [14].Table 2 provides an overview of the motor parameters that are essential for the experiment.
    Based on the control model and system parameters, the closed-loop feedback control transfer function for the gate motor control system is represented as follows:
    G(s)=10.65s2+8.493s8.341s4+10.51s3+235.5s2+70.73s
    According to the PID control model of the gate motor control system established in this paper, the amplitude of the input step signal is set to 1, and the parameters of the PID controller are adjusted to analyze the waveform of the system output. The simulation waveform is shown inFigure 7.
    FromFigure 7, when the control system steady-state error is within 3%, the response time is 1.53 s, and the overshoot is 0.34. When this system is stabilized at a value of 1.03, it can be concluded that a certain error exists in the steady-state value over the input value of 0.03, which is not ideal for its control effect.

    4.2. Fuzzy PID Control System Simulation

    Fuzzy PID control is an extension of the traditional PID algorithm. It utilizes both the error (e) and the rate of change of error (ec) as inputs to the fuzzy system. Through fuzzy logic rules and reasoning, the fuzzy PID controller adjusts the PID parameters, allowing for adaptive rectification of the PID parameters. This approach theoretically enables fuzzy PID control to achieve a certain level of adaptability and robustness in controlling systems [15].
    The simulation results of the fuzzy PID control of the control system in this paper are shown inFigure 8.
    As depicted inFigure 8, upon stabilizing the system error within a 3% range, the response time of the fuzzy PID controller is observed to be 1.8 s, indicating a 0.27 s increase compared to traditional PID control. Additionally, the overshoot of the fuzzy PID system is 0.25, showing a reduction of 0.09 units compared to traditional PID control. However, even after optimizing the PID parameters using the fuzzy algorithm, although the steady-state error is reduced, it remains nonnegligible. This suggests that solely relying on a fuzzy controller for adjusting PID control system parameters may not yield ideal results. While the overshoot has been mitigated, it comes at the cost of increased system response time, indicating a trade-off that prevents achieving the best of both worlds.

    4.3. Simulation of a Fuzzy PID Control System Based on an Improved Beetle Antennae Search Algorithm

    By fine-tuning the step size within the beetle antennae search algorithm, this study enhances the traditional antennae algorithm to achieve optimal solutions for the system while ensuring swift optimization of the search processes. This paper establishes a simulation model of the control system by integrating the design process for optimizing fuzzy PID parameters with the beetle antennae search algorithm. System characteristics are assessed using the ITAE performance index.Figure 9 andFigure 10 illustrate the optimal individual fitness and its corresponding iterative process control system curves.
    Figure 10 clearly shows that the control system, following the optimization of the fuzzy PID parameters through the enhanced beetle antennae search algorithm, achieves notable performance metrics. With the system error stabilized at 3% or less, the control system exhibits a remarkable response time of 0.81 s and a minimal overshoot of 0.0028. Moreover, the steady-state error, subsequent to tuning the PID parameters via the beetle antennae search algorithm, aligns closely with the input step signal.
    As shown inTable 3, the FPID controller optimized by the beetle antennae search algorithm has a faster response time and less overshooting than do the PID and FPID controllers, and is more accurate at controlling the steady-state values.

    5. Results and Discussion

    Given that real-world control engineering often involves complex higher-order systems, the transfer function of the controlled object in this paper is depicted by Equation (9), which represents a higher-order unstable system. Through the simulation experiments conducted in the preceding sections on traditional PID and fuzzy PID control, it becomes evident that relying solely on traditional methods for integrating PID parameters yields subpar results. The response time, overshoot magnitude, and time to reach steady state are all comparatively larger, underscoring the limitations of traditional approaches in addressing the complexities of higher-order systems.
    In this study, we apply the traditional beetle antennae search algorithm (BSA), the improved beetle antennae search algorithm (IBAS), the particle swarm algorithm (PSO), and the improved particle swarm algorithm (IPSO) to the parameter tuning of fuzzy PID controllers. Subsequently, a comprehensive analysis is conducted to compare and evaluate the outcomes derived from each algorithmic approach [16,17,18].
    The parameters of the beetle antennae search algorithm are set as follows: the population size is 30, the number of iterations is 100, the distance between two whiskersd0 = 2, the step size is 1, and the minimum fitness value is 0.1.
    The parameters of the improved beetle antennae search algorithm are set as follows: the population size is 30, the number of iterations is 100, the distance between the two whiskers isd0 = 2, the initial step size is 1, the minimum fitness value is 0.1, and the step size is adjusted by using Equation (14).
    The parameters of the particle swarm algorithm are set as follows: the particle swarm size is 80, the number of iterations is 100, the learning factor isc1 =c1 = 2, the inertia weight coefficients areω=0.8, the particle velocities arevmax=1 andvmin=1, and the three parametersKp,Ki, andKd take values in the range of [0 100].
    The parameters of the particle swarm algorithm are set as follows: the particle swarm size is 80, the number of iterations is 100, the learning factorc1 =c1 = 2, the inertia weight coefficientsωmax=0.8 andωmin=0.4, the particle velocitiesvmax=1 andvmin=1, and the three parametersKp,Ki, andKd have values in the range of [0 100].
    The convergence curves depicting the optimal individual fitness values for the performance metrics of the optimized fuzzy PID controller parameters, evaluated under the ITAE criterion, are presented inFigure 11. These curves illustrate the convergence behavior of the beetle antennae search algorithm, the improved beetle antennae search algorithm, the particle swarm algorithm, and the improved particle swarm algorithm.
    Figure 11 clearly shows that the optimized beetle antennae search algorithm converges after approximately five iterations, showing superior initial fitness during the convergence phase. In contrast, the standard beetle antennae search algorithm tends to converge toward a local optimum, resulting in marginally inferior fitness compared to its improved counterpart. Comparatively, both the particle swarm algorithm and the improved particle swarm algorithm demonstrate poorer convergence performance when juxtaposed with the optimized beetle antennae search algorithm.
    The corresponding curves depicting the simulation steps of the fuzzy PID system for the four algorithms are illustrated inFigure 12.
    From the experimental findings, it is apparent that the Particle Swarm Algorithm exhibits a quicker response rate. However, it demonstrates poorer performance in terms of overshoot amount and regulation time. Although the optimized particle swarm algorithm mitigates some overshooting, it still lags in regulation time. Conversely, the classical beetle antennae search algorithm shows superior control and shorter regulation time concerning overshooting. However, its response performance is comparatively subpar, necessitating a longer response time. Notably, the improved beetle antennae search algorithm outperforms all three algorithms in terms of overshoot reduction, response speed, and adjustment time. These results underscore the efficacy of the improved beetle antennae search algorithm in fine-tuning fuzzy PID parameters, particularly under the ITAE performance index.

    6. Experimental Analysis

    To further verify the actual control effect of the gate control system under the improved beetle antennae search algorithm, this paper carries out a real working environment verification, and the experimental results are shown inFigure 13 andFigure 14. The experimental equipment mainly consists of a gate and a winch-type opener, programmable logic controller (PLC) control cabinet, and host computer. To verify the effect of the system under real working conditions, the rated power of the motor used is 30 kW, the rated pull force is 150 kN, the motor speed range is 885 r/min, and the gate load is 11.2 tons.
    The specific working principle of the experiment is as follows: the MATLAB/Simulink environment in the host computer is opened, the motor control model of the improved fuzzy PID controller optimized by the beetle antennae search algorithm is compiled, and then the TIA portal software is run to establish communication between the host computer and the PLC control cabinet, which can send the scheduling signals to the host computer to control motor movement after the algorithm model is processed.
    To verify that the improved beetle antennae search algorithm optimizes the fuzzy PID controller effect under real working conditions, whether it has the same superior effect on the processing of step signals, the experimental model setup is consistent with the setup of the simulation experiment set up above, and the rotational speed of the motor of the opener is monitored to determine the control effect of the algorithm model. Since the PSO algorithm presented poor results in the simulation experiment session, the algorithm was eliminated in the validation phase: the IPSO, BAS, and IBAS algorithms were used for validation, and the experimental results are shown inFigure 15.
    Compared with the IPSO and BAS algorithms, the optimized fuzzy PID controller with the improved beetle antennae search algorithm is able to follow the speed of the motor more accurately, and in the motor start-up phase, the fluctuation value of the motor speed estimation with the improved tensile whiskers algorithm is smaller than that of the other two algorithms, and is closer to the real speed of the motor. When the motor speed tends to stabilize, the speed following is more accurate, and the speed estimation fluctuates less with the actual value.

    7. Conclusions

    The conclusion drawn from this paper underscores the effectiveness of the improved step-size beetle antennae search algorithm in tuning fuzzy PID parameters, offering a viable scheme for hydraulic gate control studies. The optimized algorithm showed rapid convergence and superior optimization outcomes. In Fuzzy PID control, the establishment of fuzzy rules often relies on expert intuition, introducing subjectivity and limiting accessibility for those unfamiliar with fuzzy control. However, for the complex system investigated in this study, the optimization achieved by the improved step-size beetle antennae search algorithm outperforms that achieved by the traditional beetle antennae and particle swarm algorithms. Consequently, this algorithm adequately meets the control demands of complex systems, significantly enhancing the accuracy and response time of the gate control system.

    Author Contributions

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

    Funding

    This research was supported by “ZHONGYUAN Talent Program” (ZYYCYU202012112), Foreign Expert Project of Ministry of Science and Technology of the People’s Republic of China (G2023026004L), Water Conservancy Equipment and Intelligent Operation & Maintenance Engineering Technology Research Centre in Henan Province (Yukeshi2024-01), Henan International Joint Laboratory of Thermo-Fluid Electro Chemical System for New Energy Vehicle (Yuke2020-23), and Scientific and Technological Project of Henan Province (242102240133).

    Data Availability Statement

    Data are contained within the article.

    Conflicts of Interest

    The authors declare no conflicts of interest.

    References

    1. Shen, J.; Kang, B.; Tao, Y.; Lin, F.; Song, X. Study of a Control Algorithm with the Disturbance of Massive Discharge on an Open Channel.Water2022,14, 3252. [Google Scholar] [CrossRef]
    2. Jia, L.; Zhao, X. An Improved Particle Swarm Optimization (PSO) Optimized Integral Separation PID and its Application on Central Position Control System.IEEE Sensors J.2019,19, 7064–7071. [Google Scholar] [CrossRef]
    3. Sun, Y.; Zhang, J.; Li, G.; Wang, Y.; Sun, J.; Jiang, C. Optimized neural network using beetle antennae search for predicting the unconfined compressive strength of jet grouting coalcretes.Int. J. Numer. Anal. Methods Geomech.2019,43, 801–813. [Google Scholar] [CrossRef]
    4. Fan, Y.; Shao, J.; Sun, G. Optimized PID Controller Based on Beetle Antennae Search Algorithm for Electro-Hydraulic Position Servo Control System.Sensors2019,19, 2727. [Google Scholar] [CrossRef] [PubMed]
    5. Kou, B.; Huang, Y.; Wang, P.; Ren, D.; Zhang, J.; Guo, S. A New Parameter Identification Method for Industrial Robots with Friction.Machines2022,10, 349. [Google Scholar] [CrossRef]
    6. Wu, Q.; Shen, X.; Jin, Y.; Chen, Z.; Li, S.; Khan, A.H.; Chen, D. Intelligent Beetle Antennae Search for UAV Sensing and Avoidance of Obstacles.Sensors2019,19, 1758. [Google Scholar] [CrossRef] [PubMed]
    7. Dutta, P.; Nayak, S.K. Grey Wolf Optimizer Based PID Controller for Speed Control of BLDC Motor.J. Electr. Eng. Technol.2021,16, 955–961. [Google Scholar] [CrossRef]
    8. Prasad, K.M.A.; Nair, U. Sensor less fuzzy control of DC motor.Nonlinear Dyn.2014,78, 1933–1941. [Google Scholar] [CrossRef]
    9. Ji, T.; Wei, H.; Wang, J.; Tian, S.; Yao, Y.; Hu, S. Research into the Beetle Antennae Optimization-Based PID Servo System Control of an Industrial Robot.Mathematics2023,11, 4066. [Google Scholar] [CrossRef]
    10. Zheng, Q.; Xiang, D.; Fang, J.; Wang, Y.; Zhang, H.; Hu, Z. Research on performance seeking control based on Beetle Antennae Search algorithm.Meas. Control2020,53, 1440–1445. [Google Scholar] [CrossRef]
    11. Kou, B.; Ren, D.; Guo, S. Geometric Parameter Identification of Medical Robot Based on Improved Beetle Antennae Search Algorithm.Bioengineering2022,9, 58. [Google Scholar] [CrossRef] [PubMed]
    12. Qian, Q.; Deng, Y.; Sun, H.; Pan, J.; Yin, J.; Feng, Y.; Fu, Y.; Li, Y. Enhanced beetle antennae search algorithm for complex and unbiased optimization.Soft Comput.2022,26, 10331–10369. [Google Scholar] [CrossRef] [PubMed]
    13. Chen, H.-C. Optimal fuzzy PID controller design for an active magnetic bearing system based on adaptive genetic algorithms.Math. Struct. Comput. Sci.2014,24. [Google Scholar] [CrossRef]
    14. Bai, J.; Tian, M.; Li, J. Control System of Liquid Fertilizer Variable-Rate Fertilization Based on Beetle Antennae Search Algorithm.Processes2022,10, 357. [Google Scholar] [CrossRef]
    15. Zhang, Z.; Li, Y. An AEFA-Based Optimum Design of Fuzzy PID Controller for Attitude Control Flywheel with BLDC Motor.Aerospace2022,9, 789. [Google Scholar] [CrossRef]
    16. Wu, X.; Shan, Y.; Fan, K. A Modified Particle Swarm Algorithm for the Multi-Objective Optimization of Wind/Photovoltaic/Diesel/Storage Microgrids.Sustainability2024,16, 1065. [Google Scholar] [CrossRef]
    17. Yumin, D.; Li, Z. Quantum Behaved Particle Swarm Optimization Algorithm Based on Artificial Fish Swarm.Math. Probl. Eng.2014,2014, 592682. [Google Scholar] [CrossRef]
    18. Zhou, D.; Gao, X.; Liu, G.; Mei, C.; Jiang, D.; Liu, Y. Randomization in particle swarm optimization for global search ability.Expert Syst. Appl.2011,38, 15356–15364. [Google Scholar] [CrossRef]
    Sensors 24 04425 g002
    Figure 2. Load model of the DC motor drive mechanism.
    Figure 2. Load model of the DC motor drive mechanism.
    Sensors 24 04425 g002
    Sensors 24 04425 g003
    Figure 3. Gate opening control system.
    Figure 3. Gate opening control system.
    Sensors 24 04425 g003
    Sensors 24 04425 g004
    Figure 4. Schematic diagram of fuzzy PID control.
    Figure 4. Schematic diagram of fuzzy PID control.
    Sensors 24 04425 g004
    Sensors 24 04425 g005
    Figure 5. Flowchart of the improved beetle antennae search algorithm.
    Figure 5. Flowchart of the improved beetle antennae search algorithm.
    Sensors 24 04425 g005
    Sensors 24 04425 g006
    Figure 6. Flowchart of fuzzy PID parameter optimization by the beetle antennae search algorithm.
    Figure 6. Flowchart of fuzzy PID parameter optimization by the beetle antennae search algorithm.
    Sensors 24 04425 g006
    Sensors 24 04425 g007
    Figure 7. PID control simulation waveforms.
    Figure 7. PID control simulation waveforms.
    Sensors 24 04425 g007
    Sensors 24 04425 g008
    Figure 8. Simulated waveform of Fuzzy PID control.
    Figure 8. Simulated waveform of Fuzzy PID control.
    Sensors 24 04425 g008
    Sensors 24 04425 g009
    Figure 9. Optimal individual fitness curve.
    Figure 9. Optimal individual fitness curve.
    Sensors 24 04425 g009
    Sensors 24 04425 g010
    Figure 10. Fuzzy PID simulation waveform of the improved beetle antennae search algorithm.
    Figure 10. Fuzzy PID simulation waveform of the improved beetle antennae search algorithm.
    Sensors 24 04425 g010
    Sensors 24 04425 g011
    Figure 11. Convergence curve of the fitness function.
    Figure 11. Convergence curve of the fitness function.
    Sensors 24 04425 g011
    Sensors 24 04425 g012
    Figure 12. Comparison of step response curves.
    Figure 12. Comparison of step response curves.
    Sensors 24 04425 g012
    Sensors 24 04425 g013
    Figure 13. Winch opener and PLC control cabinet.
    Figure 13. Winch opener and PLC control cabinet.
    Sensors 24 04425 g013
    Sensors 24 04425 g014
    Figure 14. Water conservancy sluice gate.
    Figure 14. Water conservancy sluice gate.
    Sensors 24 04425 g014
    Sensors 24 04425 g015
    Figure 15. Comparison of motor speed response under different algorithmic controls.
    Figure 15. Comparison of motor speed response under different algorithmic controls.
    Sensors 24 04425 g015
    Table 1. Fuzzy rules.
    Table 1. Fuzzy rules.
    Kp/Ki/Kdec
    NBNMNSZPSPMPB
    NBPB/NB/PSPB/NB/NSPM/NM/NBPM/NM/NBPS/NS/NBZ/Z/NMZ/Z/PS
    NMPB/NB/PSPB/NB/NSPM/NM/NBPS/NS/NMPS/NS/NMZ/Z/NSNS/Z/Z
    NSPM/NB/ZPM/NM/NSPM/NS/NMPS/NS/NMZ/Z/NSNS/PS/NSNS/PS/Z
    ZPM/NM/ZPM/NM/NSPS/NS/NSZ/Z/NSNS/PS/NSNM/PM/NSNM/PM/Z
    PSPS/NM/ZPS/NS/ZZ/Z/ZNS/PS/ZNS/PS/ZNM/PM/ZNM/PB/Z
    PMPS/Z/PBZ/Z/NSNS/PS/PSNM/PS/PSNM/PM/PSNM/PB/PSNB/PB/PB
    PBZ/Z/PBZ/Z/PMNM/PS/PMNM/PM/PMNM/PM/PSNB/PB/PSNB/PB/PB
    Table 2. Main structure and performance parameters of the electric motor.
    Table 2. Main structure and performance parameters of the electric motor.
    ParameterParameter Value
    Armature resistanceRa4.8 Ω
    Armature inductanceLa21 mH
    Torque coefficientkm46.32 N·m/A
    Reverse potential coefficientke55.3 V/(rad/s)
    Motor moment of inertiaJm0.5 Kg·m2
    Motor damping factorDm40 Nm/(rad/s)
    Load moment of inertiaJL25 Kg·m2
    Motor housing damping factorDL230 Nm/(rad/s)
    Shaft stiffnessk1232,000 Nm/Deg
    Table 3. Comparison of control effects of PID, FPID and BSA-FPID.
    Table 3. Comparison of control effects of PID, FPID and BSA-FPID.
    Control MethodsOvershootResponse TimeSteady State Value
    PID0.341.531.03
    FPID0.251.80.997
    BAS-FPID0.00280.811
    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.

    © 2024 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 (https://creativecommons.org/licenses/by/4.0/).

    Share and Cite

    MDPI and ACS Style

    Wang, L.; Wang, Y.; Kang, Y.; Shen, J.; Cheng, R.; Zhang, J.; Shi, S. Research on Gate Opening Control Based on Improved Beetle Antennae Search.Sensors2024,24, 4425. https://doi.org/10.3390/s24134425

    AMA Style

    Wang L, Wang Y, Kang Y, Shen J, Cheng R, Zhang J, Shi S. Research on Gate Opening Control Based on Improved Beetle Antennae Search.Sensors. 2024; 24(13):4425. https://doi.org/10.3390/s24134425

    Chicago/Turabian Style

    Wang, Lijun, Yibo Wang, Yehao Kang, Jie Shen, Ruixue Cheng, Jianyong Zhang, and Shuheng Shi. 2024. "Research on Gate Opening Control Based on Improved Beetle Antennae Search"Sensors 24, no. 13: 4425. https://doi.org/10.3390/s24134425

    APA Style

    Wang, L., Wang, Y., Kang, Y., Shen, J., Cheng, R., Zhang, J., & Shi, S. (2024). Research on Gate Opening Control Based on Improved Beetle Antennae Search.Sensors,24(13), 4425. https://doi.org/10.3390/s24134425

    Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further detailshere.

    Article Metrics

    No
    No

    Article Access Statistics

    For more information on the journal statistics, clickhere.
    Multiple requests from the same IP address are counted as one view.
    Sensors, EISSN 1424-8220, Published by MDPI
    RSSContent Alert

    Further Information

    Article Processing Charges Pay an Invoice Open Access Policy Contact MDPI Jobs at MDPI

    Guidelines

    For Authors For Reviewers For Editors For Librarians For Publishers For Societies For Conference Organizers

    MDPI Initiatives

    Sciforum MDPI Books Preprints.org Scilit SciProfiles Encyclopedia JAMS Proceedings Series

    Follow MDPI

    LinkedIn Facebook X
    MDPI

    Subscribe to receive issue release notifications and newsletters from MDPI journals

    © 1996-2025 MDPI (Basel, Switzerland) unless otherwise stated
    Terms and Conditions Privacy Policy
    We use cookies on our website to ensure you get the best experience.
    Read more about our cookieshere.
    Accept
    Back to TopTop
    [8]ページ先頭

    ©2009-2025 Movatter.jp