Next Article in Journal
Design Optimization of a Submersible Chemiluminescent Sensor (DISCO) for Improved Quantification of Reactive Oxygen Species (ROS) in Surface Waters
Previous Article in Journal
Road Recognition Based on Vehicle Vibration Signal and Comfortable Speed Strategy Formulation Using ISA Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

GAPSO-Optimized Fuzzy PID Controller for Electric-Driven Seeding

1
College of Engineering, Heilongjiang Bayi Agricultural University, Daqing 163319, China
2
College of Software, Shanxi Agricultural University, Taigu, Jinzhong 030801, China
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(17), 6678; https://doi.org/10.3390/s22176678
Submission received: 12 August 2022 / Revised: 29 August 2022 / Accepted: 30 August 2022 / Published: 3 September 2022
(This article belongs to the Section Smart Agriculture)

Abstract

:
To improve the seeding motor control performance of electric-driven seeding (EDS), a genetic particle swarm optimization (GAPSO)-optimized fuzzy PID control strategy for electric-driven seeding was designed. Since the parameters of the fuzzy controller were difficult to determine, two quantization factors were applied to the input of the fuzzy controller, and three scaling factors were introduced into the output of fuzzy controller. Genetic algorithm (GA) and particle swarm optimization (PSO) were combined into GAPSO by a genetic screening method. GAPSO was introduced to optimize the initial values of the two quantization factors, three scaling factors, and three characteristic functions before updating. The simulation results showed that the maximum overshoot of the GAPSO-based fuzzy PID controller system was 0.071%, settling time was 0.408 s, and steady-state error was 3.0693 × 10−5, which indicated the excellent control performance of the proposed strategy. Results of the field experiment showed that the EDS had better performance than the ground wheel chain sprocket seeding (GCSS). With a seeder operating speed of 6km/h, the average qualified index (Iq) was 95.83%, the average multiple index (Imult) was 1.11%, the average missing index (Imiss) was 3.23%, and the average precision index (Ip) was 14.64%. The research results provide a reference for the parameter tuning mode of the fuzzy PID controller for EDS.

1. Introduction

The quality of seeding greatly depends on the rotating speed of the metering disc driven by the seeding motor. Motor control strategies mainly include PID control, adaptive control, vector control, and intelligent control. The intelligent control has a blocked hierarchical control organization structure, which is convenient for handling a large amount of information, stored knowledge ability, and reasoning ability. Intelligent control carried out real-time control of the dynamic environment of the seeding motor movement process according to the characteristics of nonlinear, time-varying, dynamic, and complex uncertain control objects under the steady state, when driving the seeding motor speed regulation in the electric-driven seeding (EDS) [1,2,3]. Intelligent control strategies mainly include: fuzzy control [4,5,6,7,8], neural network [9,10,11,12], and the heuristic optimization algorithm [13,14,15,16,17]. Among them, the heuristic optimization algorithm has a significant role in tuning the parameters of the controller. The stronger the global optimization ability of the algorithm, the better the robustness of the controller adjusted by the algorithm. In recent years, scholars in various fields have also improved and applied the heuristic optimization algorithm and achieved remarkable achievements [18,19,20].
Zhai et al. [21] designed a control system for precision seed-metering device. The system adjusts the relationship between the operating speed of the seeder and the seeding motor speed, according to seed spacing and seeding rate of the seeder. Zhang et al. [22] designed an electronic control seeding system for maize. The desired rotating speed and actual rotating speed of the seed-metering device were taken as inputs, and the PID parameters were adjusted by genetic algorithm to obtain the target speed of the seed-metering device. He et al. [23] developed an electro-mechanic control system for the seed-metering unit of single seed corn seeders. To improve seeding quality and the speed of the traditional seeder, PID algorithm was used to control the rotating speed of seed-metering device. Cay et al. [24] developed an electro-mechanic control system for seed-metering unit of single seed corn seeders that combined with PID controller for corn seed-metering device. Yin et al. [25] developed a low-cost corn precision seeding control system for a corn drill. The system uses digital PID controller to compensate the seed metering speed. Chen et al. [26] designed a control system of maize precision seeding, based on a double closed loop PID fuzzy algorithm to achieve self-adjustment for parameters of PID controller.
Facing off diversified seeding objects of EDS, it must adapt to the environment of high-density seeding. Such as mung beans, red beans and other coarse grains, with seed spacing of about 100 mm. Adjusting the parameters of the PID controller [27,28] is the most critical part of this research. The controller parameter tuning problem is a multi-objective optimization problem; heuristic optimization algorithms shine as the most suitable options [29]. It is proposed to use heuristic optimization algorithms to adjust the parameters of the fuzzy PID controller. In order to further improve the ability of the current algorithm to solve the optimal solution, the genetic algorithm (GA) and particle swarm optimization algorithm (PSO) are considered to be combined for genetic screening, which can enhance the convergence ability of the PSO while giving the GA the memory ability, and thus enhancing the global optimization efficiency of the algorithm. In order to improve the auto-tuning and tamper-resistance ability of PID controller and reduce the modification and optimization difficulty of the fuzzy controller for EDS after parameter setting, a GAPSO-optimized fuzzy PID controller for EDS was studied.
Section 2 describes the process of modeling for seeding motor and specifies the control object. Section 3 introduces the establishment of an adaptive fuzzy controller in detail and determines the optimization object of heuristic optimization algorithm. Section 4 describes the GAPSO-optimized fuzzy PID controller for EDs and describes the algorithm fusion process and simulation process in detail. Section 5 is the results and discussion, mainly including the simulation experiment, the speed accuracy experiences of seed metering device, and the field experiment. Section 6 is the conclusion of the study.

2. Modeling for Seeding Motor

The research object was the air suction mung bean-metering device. Assuming that there was m seed cells in the metering disc of the seed-metering device, the time difference between two adjacent mung bean seeds falling is as follows:
Δ t = 60 n m
where Δt is the falling time difference between two mung bean seeds, s; n is the rotating speed of the seed-metering device, r/min.
The equation of mung bean seed spacing is
Z = 277.78 v Δ t = 1.67 × 10 4 v n m
where Z is mung bean seed spacing, mm; v is the operating speed of seeder, km/h.
The seed cells number m is 27 in the mung bean seed-metering disc in the selected seed-metering device, so the following equation is obtained from Equation (2).
n = 618.52 v Z
According to the technical specification for the Heilongjiang Province local standard Technical Regulations for Mechanized Production of Mung Bean (DB23/T 2767-2020), when mung beans are sown in a single row by a tractor with more than 25 horsepower, the seed spacing is 80 mm~100 mm. Take 100 mm in study and substitute the plant spacing value into Equation (3) to obtain:
n = 6.19 v
In order to establish the simulation system for designed intelligent control strategy of the seeding motor, it was necessary to establish a mathematical model of the seeding motor. JGB37-3650-1280 DC brushless reducer motor produced by ASLONG Company was selected as the seeding motor for research. The seeding motor parameters are shown in Table 1.
The mechanical characteristics equation of brushless DC motor is the same as that of separately excited DC motor. Because the fluctuation of back-EMF and torque of DC brushless motor is relatively large, the concepts of average torque and average back-EMF are used in the mechanical characteristics equation. According to the principle of brushless DC motor, the voltage–balance equation of brushless DC motor is obtained:
U 0 = L d I dt + I R + C e n
where U0 is armature voltage, V; L is armature inductance, H; I is armature current, A; R is armature resistance, Ω; Ce is the back-EMF coefficient, V·(rad·s−1)−1; n is the seeding motor speed, r/min.
The torque–balance equation of brushless DC motor is as follows:
T e = J d n dt + T f
where Te is the electromagnetic torque, g·cm; J is the moment of inertia, kg·m2; Tf is the load torque, g·cm.
According to Equations (5) and (6), the differential equation of DC brushless motor can be calculated as follows:
T d T m d 2 n dt 2 + T m d n dt + n = 1 C e U 0
where Td is the electromagnetic time constant, ms; Tm is the mechanical time constant, ms.
By Laplace transform from Equation (7), the transfer function of brushless DC motor can be obtained as follows:
G ( s ) = 1 C e T m T d s 2 + T m s + 1
The Td and Tm are calculated as follows:
T m = R J K t C e
T d = L R
where Kt is the torque constant, N·m·A−1.
The Td and Tm can be calculated by Equations (9) and (10). The seeding motor parameters Tm is 0.017, Td is 0.855, and Ce is 0.192. They are substituted into Equation (8) to obtain the seeding motor mathematical model:
G ( s ) = 5.21 0.01454 s 2 + 0.17 s + 1

3. Establishment of Adaptive Fuzzy Controller

Compared with the general fuzzy system, the adjustment process of the error and error rate of the whole system was controlled by the same fuzzy reasoning rules. The change range of error e and error rate ec of the system was defined as the domain on the fuzzy set. According to the set fuzzy inference rules, the system can adaptively modify kp, ki and kd. The modified parameters could be obtained by deblurring the obtained results Δkp, Δki, and Δkd, which were the three outputs of the fuzzy controller. After substituting them into Equations (12)–(14), respectively, the three modified characteristic functions kp, ki, and kd can be obtained by calculation.
k p ( k ) = k p ( k 1 ) + Δ k p ( k )
k i ( k ) = k i ( k 1 ) + Δ k i ( k )
k d ( k ) = k d ( k 1 ) + Δ k i ( k )
where kp(k−1), ki(k−1), and kd(k−1) are the three PID characteristic functions before updating; Δkp(k), Δki(k), and Δkd(k) are the correction parameters of PID characteristic functions; kp(k), ki(k), and kd(k) represent the updated PID characteristic functions.
Then, kp(k), ki(k), and kd(k) were placed into the transfer function of PID and the online automatic correction of PID parameters was completed. In order to establish a fuzzy PID controller, two input and three output structures were chosen for the fuzzy controller. Mamdani method was selected as the fuzzy inference method, and the membership function of the fuzzy controller is shown in Figure 1.
According to the membership assignment rules of each fuzzy subset and the fuzzy control model of each parameter, the PID parameters could be modified online by adopting fuzzy control rules. The fuzzy matrix table of PID modification parameters Δkp, Δki, and Δkd was designed by using fuzzy synthetic reasoning. The fuzzy inference rules were 49 kinds of conventional fuzzy inference rules. According to the membership degree assignment table of each fuzzy subset and the fuzzy control model of each parameter, the PID parameters can be modified online by using the fuzzy control rules. The fuzzy matrix table of PID controller correction parameters is designed by using fuzzy synthesis reasoning, and the designed PID correction parameters are studied Δkp, Δki, and Δkd. The 49 fuzzy inference rules are shown in Table 2. The fuzzy surfaces, corresponding to the modified parameters, are shown in Figure 2.
In the Simulink module, the quantization coefficients ke and kec can be introduced to the inputs e and ec as the quantization factors of the fuzzy controller. The definition of the quantization factors ke and kec is:
k e = n e e max , k e c = n e c e c max
where ke is the quantization factor of error, kec is the quantization factor of error change rate, ne is the fuzzy series of error, nec is the fuzzy series of error change rate, emax is the maximum error value, and ecmax is the error value of error change rate.
PID parameter calibration is carried out by formulating fuzzy rules of the fuzzy controller in advance. According to Equations (12)–(14), the output Δkp, Δki, and Δkd adaptively adjusts three parameters kp, ki, and kd in the PID controller; in the Simulink module, Δkp, Δki, and Δkd introduced the scaling factors dkp, dki, and dkd as the scaling factors of the fuzzy controller. The definition of the scaling factors dkp, dki, and dkd is:
d k p = k p max N , d k i = k i max N , d k d = k d max N
where dkp is the scaling factor of the proportional correction parameter; dki is the scaling factor of the differential correction parameter; dkd is the scaling factor of the integral correction parameter; kpmax, kimax, and kdmax are the maximum change values of the three characteristic parameters of the PID controller; and N is the fuzzy output series of the fuzzy controller.
It can be found clearly from Figure 1 and Figure 2, the fuzzy domain of fuzzy input and fuzzy output was taken as {−3, −2, −1, 0, 1, 2, 3}. Because there was no fixed rules for the selection of the fuzzy domain and the setting process of two inputs and three outputs, the fuzzy domain is cumbersome. The essence of fuzzy control was to change the fuzzy series under the preset fuzzy rules through fuzzy input and fuzzy output. The quantitation-scaling coefficient could be introduced into the fuzzy input and fuzzy output, respectively, and the fuzzy series could be adjusted by optimizing the coefficient, so as to achieve the best control effect.
Figure 3 shows the simulink model of fuzzy PID control system. The control system takes the theoretical speed of the seed metering device as the step input and makes the difference between the input and the feedback through the comparator to obtain the system error e. The system error is differentiated and the system error change rate ec is obtained. e and ec are the inputs of the fuzzy controller, and the three correction values of the PID controller can be obtained through the fuzzy rules. The correction value and the set value can be added to obtain the three modified characteristic functions, the corrected characteristic function is multiplied by the error, the integral characteristic function is multiplied by the error integral value, and differential characteristic function is multiplied by error differential values. The above three values are characteristic functions that affect the control effect of the PID controller, and then the PID controller outputs the control amount to the seeding motor until the target value is reached. Therefore, the introduction of scaling factors and quantization factors can directly change the correction ability of the characteristic functions of the PID controller. Quantization coefficients ke and kec were used as quantization factors of inputs e and ec of the fuzzy controller. To the fuzzy outputs Δkp, Δki, and Δkd, the scaling coefficients dkp, dki, and dkd were used as the scaling factor of the fuzzy controller. According to Z-N method, the values of three characteristic functions before the updating of the PID controller were kp = 3.5, ki = 0.9, and kd = 0.08. All quantization factors and scaling factors were set to 1. After experiment, the results of the EDS system were as follows: the maximum overshoot was 6.399%, settling time was 3.31 s, and steady-state error was −0.5287.
Fuzzy PID had obvious disadvantages, that there was no general setting rule for membership functions. The fuzzy rules and membership functions after setting the fuzzy series of the fuzzy controller could not be adjusted. The process of setting the domain and fuzzy rules was complicated; the process of resetting the domain was complex; the ideal control effect might not be obtained; and maximum overshoot, settling time, and steady-state error are difficult to achieve optimum.
In the seeding, because of the uneven terrain, the operating speed will be often disturbed, so the settling time of the system has a great influence on the results. In the seeding, with the increase in operating time, the steady-state error accumulation of the system will become larger and larger, which is the total seeding rate deviation caused by the total stroke deviation of the seeding motor, so the system should also keep small steady-state error.

4. GAPSO-Optimized Fuzzy PID Controller for EDS

PSO is a swarm intelligence algorithm based on birds flocking behavior. Let NP be the number of particles in PSO. A particle Pi has position Xi and velocity Vi. The fitness function is used to evaluate each particle for checking the quality of the solution. Initially, each particle is assigned with a random position and velocity values. Each particle computes its own best called Pbesti and global best called Gbest for every iteration [30]. To reach the global best solution, it uses its personal and global best to update the velocity Vi and position Xi using the following Equations (17) and (18).
V i ( t + 1 ) = ω × V i + c 1 × χ 1 × ( X P b e s t i X i ) + c 2 × χ 2 × ( X G b e s t X i )
X i ( t + 1 ) = X i + V i ( t + 1 )
where w is the inertia weight, c1, c2 are acceleration coefficients and χ1, χ2 are randomly generated values.
After getting a new updated position, the particle evaluates the fitness function and updates Pbesti as well as Gbest from Equations (19) and (20).
P b e s t i = { P i , i f ( F i t n e s s ( P i ) < ( F i t n e s s ( P b e s t i ) P b e s t i , o t h e r w i s e
G b e s t = { P i , i f ( F i t n e s s ( P i ) < ( F i t n e s s ( G b e s t ) G b e s t , o t h e r w i s e
The GA is based on the principles of natural selection. It mimics the process of survival of the fittest principle in nature by trying to maximize the fitness function. The population, which represents the optimization variable sets, is updated after each learning cycle through three evolutionary processes, i.e., selection, crossover, and mutation [31].
PSO has the memory ability, and the optimal filial-population particles can be preserved, and per-generation memory will not be forgotten because of population evolution. GA does not have memory ability, and the per-generation memory will be forgotten because of population evolution. In terms of convergence, GA has a perfect convergence analysis method, and estimates the convergence rate. However, the convergence analysis on PSO is still weakness. Although there have been a simplified version of convergence analysis, the transformation from certainty to randomness needs to be further studied. In addition, unlike GA, PSO has no evolution tools, such as crossover or mutation [31]. Both GA and PSO have disadvantages, as genetic screening combination of them can not only enhance the memory ability but also enhance the convergence ability.
The study adopts the genetic screening mechanism and proposes a GAPSO combined GA and PSO. Compared with the other two algorithms, its memory ability is enhanced with the optimal solution preservation of PSO. At the same time, it can also increase the global optimization probability. The combination steps of GA and PSO are as follows:
Step 1. Initialize the particle swarm and set the initial parameters. Such as population size, crossover probability, mutation probability, particle dimension, constraint matrix.
Step 2. Calculate the fitness value of the particle swarm using the objective function, determine the optimal position of the individual particle and particle swarm, update the optimal particle, and calculate the optimal position of individual particles (Pbesti) of the particle swarm.
Step 3. Judge whether the ultimate objective of the optimization process is achieved. The ultimate objective is usually preset as the maximum number of iterations and the fitness value of the GAPSO reaching the standard. If the ultimate objective is achieved, the iterative process will be stopped, otherwise, Step 4 will be continued.
Step 4. Update particle velocity, particle position, and optimal value. The roulette wheel selection was used to select the particle swarm. It was decided to keep three quarters of the particle swarm and eliminate a quarter of the particle swarm. The probability distribution equation of the selection probability Pi is as follows:
P i = f ( x i ) j = 1 n f ( x j )
where Pi is the selection probability of particle i; n is the population size; f(xi) is the single particle fitness of particle xi; f(xi) is the fitness of all particles.
Step 5. Crossover in the intermediate generation particles. The new generation of individuals is generated by adaptive arithmetic uniform crossover with the crossover probability Pc of 80%. The calculation equation of Pc is as follows:
P c = { k 1 ( f max f ) f max f a v g , f f a v g k 2 , f < f a v g
where Pc is the crossover probability; fmax is the maximum fitness of particle swarm; favg is the average fitness of particle swarm; f is the maximum fitness of two crossover particles; k1 and k2 are constant.
Step 6. The non-consistent mutation is used to mutate part of all particles according to the mutation probability Pm. Because it needs to conform to the natural law, Pm is generally set to be less than 0.05. In order to avoid falling into local optimum. Pm is 0.1 in this study. The equation for calculating Pm is as follows:
P m = { k 3 ( f max f ) f max f a v g , f f a v g k 4 , f < f a v g
where Pm is the mutation probability; k3 and k4 are constant.
Step 7. Update the particle swarm. The Pbesti is updated by calculating, and then return to Step 4. When the preset maximum iteration is reached, Gbest is output, and the GAPSO stops.
The process of setting control parameters by GAPSO is shown in Figure 4.
The input signal was the operating speed, and the desired rotating speed of seed-metering device was calculated from Equation (3). The seeding motor driven the seed-metering device to rotate, and the feedback value of the system was the rotor speed value of the seeding motor. The difference between the desired rotating speed of the seed-metering device and the actual rotating speed value was calculated as the error e, and the error change rate ec was the differential of the error e. The flowchart of the GAPSO-optimized fuzzy PID controller for EDS is shown in Figure 5.
The integral of time multiplied by the absolute value of error criterion (ITAE) is taken as an evaluation index in GAPSO. The optimized parameters are the initial values of three characteristic functions before updating in the PID controller, two quantization factors and three scaling factors in the fuzzy controller. Thus, the step response curve of the optimality is obtained in set iteration number.
The system designed according to the index has less oscillation and selectivity to parameters. The ITAE was used in the objective function in the study, which synthesizes the total running time and the absolute value of the system steady-state error; the smaller its value, the better the performance of the system, and the equation is:
J I T A E = 0 + t | e ( t ) | d t
where t is the system running time; e(t) is the system steady-state error.
ITAE index could evaluate the static and dynamic performance of the system, such as rapidity, accuracy, and stability. This index could achieve remarkable optimization effect on the steady-state error and settling time of the seeding motor.

5. Results and Discussions

5.1. Simulation Experiences and Results

Because there are eight parameters to be optimized, the overlong simulation running time should be avoided. Before the simulation, the iteration range of these eight parameters is set according to the previous debugging experience of the fuzzy PID controller. The iteration ranges of the three characteristic functions before updating in the PID controller are: kp ∈ [0.0001, 40], ki ∈ [0.0001, 20], kd ∈ [0.0001, 1]; the iteration ranges of the two quantization factor in the fuzzy controller input are: ke ∈ [0.0001, 10], kec ∈ [0.0001, 10]; the iteration ranges of the three scaling factor in the fuzzy controller output are dkp ∈ [0.0001, 15], dki ∈ [0.0001, 15], dkd ∈ [0.0001, 15].
In the coding process, the fuzzy PID controller adopts the form of two inputs and three outputs, and each input and output corresponds to seven fuzzy subsets. The fuzzy subsets from negative to positive are represented by integers from 1 to 7. The fuzzy control rule table is transformed into a two-dimensional matrix. The two-dimensional matrix is straightened and arranged to form chromosome individuals, and the length of chromosome is 72 × 3 = 147.
In the GA, the crossover probability Pc is set to 0.8 (80%), the mutation probability Pm is set to 0.1 (10%), the chromosomes number is 1, the chromosomes length is 147, the population size n is set to 20, and the maximum number of iterations is 100.
In the PSO, the inertia coefficient ω is set to 1, the acceleration coefficients C1 and C2 are 1.4945, the population number is 10, the population size n is 20, and the maximum number of iterations is 100.
In the GAPSO, the crossover probability Pc is set to 0.8 (80%), the mutation probability Pm is set to 0.1 (10%), the chromosomes number is 1, the chromosome length is 147, the population size n is set to 20, the inertia coefficient ω is set to 1, the acceleration coefficients C1 and C2 are set to 1.4945, and the maximum number of iterations is 100.
The Matlab2020b is used as the simulation environment of experiment. The performances of GA, PSO, and GAPSO on optimizing fuzzy PID controller parameters were compared, and the advantages and disadvantages of the designed control strategy were discussed. The optimization performance data table of the three control strategies are shown in Table 3. The unit step response curves optimized by the three control strategies are shown in Figure 6. The fitness function control curves are shown in Figure 7.
According to Figure 6 and Table 3, compared with fuzzy PID control, the various performance indexes have been improved by three intelligent control strategies. Compared with the other two intelligent control strategies, GAPSO-optimized fuzzy PID controller had advantages in the maximum overshoot, settling time, and steady-state error. The maximum overshoot was 0.071%, the settling time was 0.408 s, the steady-state error was 3.0693e−5, and that was no oscillation after reaching steady-state. Although the control strategy of optimizing fuzzy PID parameters by GA and PSO obviously improved the performance of the system, compared with fuzzy PID, they was still a poor performance in optimizing maximum overshoot and settling time, and there was still a small amount of oscillation after reaching steady-state.
According to Figure 7 and Table 3, the GA-optimized fuzzy PID controller reached the optimum in the 41st iteration, and the fitness value was 0.7531. The PSO-optimized fuzzy PID controller reached the optimum in the 48th iteration, and the fitness value was 0.6311. The GAPSO-optimized fuzzy PID controller reached the optimum in the 65th iteration, and the fitness value was 0.5575. Compared with the other two intelligent control strategies, GAPSO needed more iterations to optimize the fuzzy PID controller. However, compared with the other two intelligent algorithms, GAPSO had the smaller fitness value optimized and the better system performance.
With the GAPSO-optimized fuzzy PID controller, at the 65th iteration, the value of ke was 6.5752. At the 65th iteration, the value of kec was 7.5865. At the 5th iteration, the value of dkp was 0.0060. At the 5th iteration, the value of dki was 14.5898. At the 4th iteration, the value of dkd was 0.0020. At the 5th iteration, the value of kp was 30.1425. At the 65th iteration, the value of ki was 14.2584. At the 40th iteration, the value of kd was 0.3333.
In the optimization process of quantization factors and three characteristic functions before updating, the GA-optimized fuzzy PID controller had more advantages than the other two control strategies and could faster iterate the optimal value. In the optimization process of scaling factors, the PSO-optimized fuzzy PID controller had more advantages than the other two control strategies and could reach the optimal value faster. Although the GAPSO-optimized fuzzy PID controller has many iterations, it had smaller fitness value and better control performance. Therefore, the intelligent control strategy was selected as the EDS control strategy in this study.

5.2. Speed Accuracy Experiences of Seed Metering Device

In order to explore the speed accuracy of the three intelligent electric-driven mung bean air suction precision seed metering device control systems studied; the actual speed of the seed metering device at the theoretical seed spacing of 100 mm; the operation speed of 3 km/h, 5 km/h, 7 km/h, and 9 km/h; the speed of 30 s after the speed of the seed metering motor is stabilized; and the average speed N of the seed metering device is calculated through the DT-2234A digital photo tachometer (accuracy: ±0.1 rpm) developed by Lutron company. The speed of each group is repeated five times (N1~N5), and the variation coefficient (CV), mean, standard deviation (SD), and confidence interval (CI, 99% confidence) of the actual speed of the seed metering device is calculated. In order to compare the actual control effect of three intelligent control strategies. Figure 8 is the seed metering device speed accuracy experiment. Table 4 is the verification experiment table of the speed accuracy of the seed metering device.
It can be seen from Table 4 that the mung bean EDS control system based on the GAPSO-Fuzzy-PID algorithm has a good precision effect of the seed metering device speed, good uniformity of the speed, and the variation coefficient of the seed metering device speed is less than 6.00%. When the operation speed is 9 km/h, the maximum variation coefficient of the seed metering device actual speed reaches 5.90%; when the operating speed is 7 km/h, the minimum variation coefficient of the seed metering device actual speed is 2.99%. According to the standard deviation, it can be shown that GAPSO fuzzy PID has higher speed accuracy of the seed metering device, compared with the other two intelligent control systems, especially in the high-speed seeding state. At 7 km/h, the average speed of GAPSO fuzzy PID is the closest to the theoretical value, and the difference is only 0.02. In addition, the deviation rate of the seed metering device actual speed is small, and the speed deviation rate is less than 12%. When the operation speed is 9 km/h, N4 reaches the maximum deviation speed, and the speed deviation rate is 11.31%; when the operation speed is 7 km/h, N5 reaches the minimum deviation speed, and the speed deviation rate is 0.69%. Therefore, GAPSO-Fuzzy-PID with higher rotational speed accuracy is selected for field experiments.

5.3. Field Experiments and Results

The field experiment was conducted on April 20th, 2021 in the Heilongjiang Province Green Grassland Pasture experimental field, zhonglv-5 mung bean hybrid was selected as experiment materials, and two-rows air-suction precision seeder reformed by Heilongjiang Bayi Agricultural University was used for the experiment. The left seeding unit was the ground wheel chain sprocket seeding (GCSS), and the right seeding unit was the EDS. The field experiment is shown in Figure 9.
The length of the plot in the experiment area was 60 m, and the preparation areas at both ends were 20 m, respectively, 120 groups of stable continuous operation data were collected in the middle section 20 m, repeated three times, and the average value of the results were calculated. Fixed parameters of the experiment: the wind pressure of the blower was 2.5 kpa, and the starting angle of seeding was 20°. According to the Chinese national standard test method of single seed (Precision) seeder (GB/T 6973-2005). The qualified index (Iq), multiple index (Imult), missing index (Imiss), and precision index (Ip) were selected as the index of seeding performance. According to the method, when the theoretical seeding spacing is 100 mm, the qualified range of seeding spacing is 50–150 mm. Under different operating speeds of 3 km/h, 6 km/h, 9 km/h, and 12 km/h, the Iq, Imult, Imiss, and Ip between GCSS and EDS were analyzed and compared, so as to verify the superiority of the control strategy studied. The experiment statistical results are shown in Table 5.
According to Table 5, various indexes had been promoted and improved by EDS in the field experiment, compared with the GCSS. According to the technical conditions of single seed (precision) seeder (JB/T 10293-2013), which was seed spacing ≤ 100 mm under, the Iq ≥ 60%, the Imult ≤ 30%, the Imiss ≤ 15%, and the Ip ≤ 40%.
According to Figure 10, In each operation speed, each seeding performance of EDS was better than that of GCSS, when the operating speed was 6 km/h, both the GCSS and the EDS achieved the best seeding performance, but EDS compared with the GCSS, the Iq of EDS was increased by 9.16%, the Imult was increased by 1.11%, the Imiss was increased by 7.88%, and the Ip was increased by 8.44%. At the operating speed of 12 km/h, the Imiss of three GCSS experiments were higher than 15%. It showed that under the high-speed seeding operation, the GCSS had been difficult to meet the Chinese national standard, but the Imiss of EDS could meet the Chinese national standard.
The electric-driven mung bean air suction precision seed metering device control system based on GAPSO-Fuzzy-PID can effectively reduce the missing index and precision index of the original seed metering device control system, reduce the system’s false rate, make the seed spacing more uniform, and meet the qualified range of each index in the national standard. However, there was no significant increase in the multiple index. The distance distribution of GCSS under each index is shown in Figure 11. The distance distribution of intelligent EDS under each index is shown in Figure 12.
It can be seen from Figure 11 and Figure 12 that, compared with the GCSS and the intelligent EDS, the intelligent EDS can significantly reduce the missing index and the coefficient of variation in the mung bean seeding, which can make the dispersion of the actual seeded mung beans closer to the theoretical seed spacing line. This ensures that the mung bean seeds between the ridges are evenly aligned and the number is consistent, which is convenient for the follow-up field management of farmers.

5.4. Discussions

(1) In the process of parameter optimization of the fuzzy PID controller, GAPSO had more iterations and longer off-line optimization time. Therefore, we should consider designing a new combination method of GA and PSO. The intelligent optimization algorithm with convergence and memory function could be used to shorten the off-line optimization time and improve the optimization efficiency.
(2) With the operating speed of 12 km/h, the Imiss of the EDS was obviously higher than that in medium- and low-speed operation. It did not obviously change the drawback of the increase sharply of the Imiss in the high-speed seeding operation of the GCSS. After removing a number of unstable factors, such as chain-driven, this might be related to the designed defects of the air-suction seed-metering device, and it might not be able to achieve high-speed seeding under GCSS.

6. Conclusions

This paper has presented a GAPSO-optimized Fuzzy PID controller for electric-driven seeding. Through simulation experiments, speed accuracy experiments of seed metering device, and field experiments, it is verified that the proposed GAPSO is better than the traditional GA and PSO in the parameter tuning of the fuzzy controller; compared with the other two algorithms, the GAPSO fused by genetic screening mechanism has stronger global optimization ability under the same iteration time.; Macroscopically, the rotational speed accuracy of the seeding motor driven by the three different intelligent controllers of GAPSO-Fuzzy-PID is also higher, and the field experiments results are excellent, which provides the basic conditions for the high-density planting of crops.

Author Contributions

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

Funding

This research was financially supported by the Natural Science Foundation of Heilongjiang Province of China (NO. LH2019E073), Major Science and Technology Special Projects of ’Hundred, Thousand and Ten Thousand Talents Project’ in Heilongjiang Province of China (NO. SC2020ZX17B0009) and Guiding Science and Technology Plan Project in Daqing City of China (NO. zd-2020-46).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Not applicable.

Acknowledgments

The authors thank Ming Sun and Zhaohua Feng for their assistance in refitting and testing the seed metering device.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Cushion, E.; Warmenhoven, J.; North, J.; Cleather, D.J. Task demand changes motor control strategies in vertical jumping. J. Mot. Behav. 2021, 53, 471–482. [Google Scholar] [PubMed]
  2. Erdal, E.; Murat, K.; Serdar, E.; Davut, I. A new fusion of ASO with SA algorithm and its applications to MLP training and DC motor speed control. Arab. J. Sci. Eng. 2021, 46, 3889–3911. [Google Scholar]
  3. Li, F. Research on DC motor intelligent control algorithm. Appl. Mech. Mater. 2014, 462–463, 775–781. [Google Scholar] [CrossRef]
  4. Yao, J.; Lu, J.; Zheng, Y.; Wang, X.; Zhao, Y.; Chen, X.; Lei, G.; Tang, S. DC motor speed control of annual-ring measuring instrument based on variable universe fuzzy control algorithm. Trans. CSAE 2019, 35, 57–63. [Google Scholar]
  5. Du, P.; Liu, Y.; Chen, W.; Zhang, S.; Deng, J. Fast and precise control for the vibration amplitude of an ultrasonic transducer based on fuzzy PID control. IEEE Trans. Ultrason. Ferroelectr. Freq. Control. 2021, 68, 2766–2774. [Google Scholar]
  6. Qi, W.; Li, Y.; Zhang, J.; Qin, J.; Liu, C.; Yin, Y. Double closed-loop fuzzy PID control method for tractor body leveling on hilly and mountainous areas. Trans. CSAM 2019, 50, 17–23. [Google Scholar]
  7. Santos, P.; Dmitriev, V.; da Costa, K.; Caratelli, D. Optimization of modified Yagi-Uda nanoantenna arrays using adaptive fuzzy GPSO. Int. J. Antennas Propag. 2021, 2021, 8874385. [Google Scholar] [CrossRef]
  8. Chen, M.; Lu, W.; Wang, X.; Sun, G.; Zhang, Y. Design on optimization control system and experiment of variable nitrogen application in winter wheat based on fuzzy PID control. Trans. CSAM 2016, 47, 71–76. [Google Scholar]
  9. Wang, G.; Zhang, H. A second-order sliding method observer optimized by neural network for speed and position estimation of PMSMs. J. Electr. Eng. Technol. 2021, 17, 415–423. [Google Scholar] [CrossRef]
  10. Zhang, Q.; Wei, Z.; Zhang, Y.; Zhang, L.; Jia, W.; Wei, H. Rapid-response PID control technology based on generalized regression neural network for multi-user water distribution of irrigation system head. Trans. CSAE 2020, 36, 103–109. [Google Scholar]
  11. Zhang, J.; Li, Y.; Qi, W.; Liu, C.; Yang, F.; Li, Z. Synchronous control system of tractor attitude in hills and mountains based on neural network PID. Trans. CSAM 2020, 51, 356–366. [Google Scholar]
  12. Yang, L.; Ma, B.; Li, H. Steering neural network PID control for tracked vehicle with hydrostatic drive. Trans. CSAM 2010, 41, 15–20. [Google Scholar]
  13. Kumar, A.; Suhag, S. Whale optimization algorithm optimized fuzzy-PID plus PID hybrid controller for frequency regulation in hybrid power system. J. Inst. Eng. Ser. B 2021, 103, 633–648. [Google Scholar] [CrossRef]
  14. Xu, J.; Wang, L.; Tan, X.; Wang, Y.; Zhao, Z.; Shao, M. Research on intelligent irrigation control strategy based on SOA optimizing PID control parameters. Trans. CSAM 2020, 51, 261–267. [Google Scholar]
  15. Xiao, Y.; Yu, A.; Qi, H.; Jiang, Y.; Zhou, W. Research on the tension control method of lithium battery electrode mill based on GA optimized fuzzy PID. J. Intell. Fuzzy Syst. 2021, 40, 10211–10234. [Google Scholar] [CrossRef]
  16. Li, Y.; Hou, J.; Yuan, J.; Zhao, X.; Liu, X.; Zhang, L. Experiment and vibration suppression algorithm for high-branch pruning manipulator based on fuzzy PID with improved PSO. Trans. CSAE 2017, 33, 49–58. [Google Scholar]
  17. Lv, X.; Sun, H. Optimization of meshing motor structure parameters based on genetic algorithm. Trans. CSAM 2008, 1, 208–211. [Google Scholar]
  18. Leung, M.; Coello, C.; Cheung, C.; Ng, S.; Lui, A. A hybrid leader selection strategy for many-objective particle swarm optimization. IEEE Access 2020, 8, 189527–189545. [Google Scholar] [CrossRef]
  19. Leung, M.; Ng, S.; Cheung, C.; Lui, A. A new algorithm on PSO for multi-objective optimization. In Proceedings of the 2015 IEEE Congress on Evolutionary Computing, Sendai, Japan, 24–28 May 2015; pp. 3156–3162. [Google Scholar]
  20. Bhaskar, M.S.; Padmanaban, S.; Blaabjerg, F.; Norum, L.E.; Ertas, A.H. 4Nx non-Isolated and non-Inverting hybrid interleaved multilevel boost converter based on VLSIm Cell and Cockcroft Walton voltage multiplier for renewable energy applications. In Proceedings of the 2016 IEEE International Conference on Power Electronics, Drives and Energy Systems (PEDES), Trivandrum, India, 14–17 December 2016; pp. 1–6. [Google Scholar]
  21. Zhai, J.; Xia, J.; Zhou, Y.; Zhang, S. Design and experimental study of the control system for precision seed-metering device. Int. J. Agric. Biol. Eng. 2014, 7, 13–18. [Google Scholar]
  22. Zhang, C.; Wu, R.; Chen, L. Design and test of electronic control seeding system for maize. Trans. CSAM 2017, 48, 51–59. [Google Scholar]
  23. He, X.; Cui, T.; Zhang, D.; Wei, J.; Wang, M.; Yu, Y.; Liu, Q.; Yan, B.; Zhao, D.; Yang, L. Development of an electric-driven control system for a precision seeder based on a closed-loop PID algorithm. Comput. Electron. Agric. 2017, 136, 184–192. [Google Scholar] [CrossRef]
  24. Anil, C.; Habib, K.; Sahin, M. Development of an electro-mechanic control system for seed-metering unit of single seed corn seeders Part I: Design and laboratory simulation. Comput. Electron. Agric. 2018, 144, 71–79. [Google Scholar]
  25. Yin, X.; Noguchi, N.; Yang, T.; Jin, C. Development and evaluation of a low-cost precision seeding control system for a corn drill. Int. J. Agric. Biol. Eng. 2018, 11, 95–99. [Google Scholar] [CrossRef]
  26. Chen, L.; Xie, B.; Li, Z.; Yang, L.; Chen, Y. Design of control system of maize precision seeding based on double closed loop PID fuzzy algorithm. Trans. CSAE 2018, 34, 33–41. [Google Scholar]
  27. Wang, J.; Li, M.; Jiang, W.; Huang, Y.; Lin, R. A design of FPGA-based neural network PID controller for motion control system. Sensors 2022, 22, 889. [Google Scholar] [CrossRef]
  28. Lin, J.; Zheng, R.; Zhang, Y.; Feng, J.; Li, W.; Luo, K. CFHBA-PID algorithm: Dual-loop PID balancing robot attitude control algorithm based on complementary factor and honey badger algorithm. Sensors 2022, 22, 4492. [Google Scholar] [CrossRef]
  29. Ertas, A.H. Optimization of fiber-reinforced laminates for a maximum fatigue life by using the particle swarm optimization. Part I. Mech. Compos. Mater. 2013, 48, 705–716. [Google Scholar] [CrossRef]
  30. Ganesan, R.; Raajini, X.M.; Nayyar, A.; Sanjeevikumar, P.; Hossain, E.; Ertas, A.H. BOLD: Bio-inspired optimized leader election for multiple drones. Sensors 2020, 20, 3134. [Google Scholar] [CrossRef]
  31. Akbulut, M.; Sarac, A.; Ertas, A.H. An investigation of non-linear optimization methods on composite structures under vibration and buckling loads. Adv. Comput. Des. 2020, 5, 209–231. [Google Scholar]
Figure 1. Membership functions of EDS fuzzy controller input and output.
Figure 1. Membership functions of EDS fuzzy controller input and output.
Sensors 22 06678 g001
Figure 2. Fuzzy surface of the three correction parameters with fuzzy input.
Figure 2. Fuzzy surface of the three correction parameters with fuzzy input.
Sensors 22 06678 g002
Figure 3. Simulink model of fuzzy PID control system with quantitation-scaling coefficients.
Figure 3. Simulink model of fuzzy PID control system with quantitation-scaling coefficients.
Sensors 22 06678 g003
Figure 4. The process of setting control parameters by GAPSO.
Figure 4. The process of setting control parameters by GAPSO.
Sensors 22 06678 g004
Figure 5. Flowchart of GAPSO-optimized fuzzy PID controller for EDS.
Figure 5. Flowchart of GAPSO-optimized fuzzy PID controller for EDS.
Sensors 22 06678 g005
Figure 6. Response curves of three control strategies.
Figure 6. Response curves of three control strategies.
Sensors 22 06678 g006
Figure 7. Comparison of control curves of fitness function.
Figure 7. Comparison of control curves of fitness function.
Sensors 22 06678 g007
Figure 8. Seed metering device speed accuracy experiment.
Figure 8. Seed metering device speed accuracy experiment.
Sensors 22 06678 g008
Figure 9. Field experiment. 1. GCSS, 2. EDS.
Figure 9. Field experiment. 1. GCSS, 2. EDS.
Sensors 22 06678 g009
Figure 10. Comparison of seeding performance between GCSS and EDS.
Figure 10. Comparison of seeding performance between GCSS and EDS.
Sensors 22 06678 g010
Figure 11. The distance distribution of GCSS under each index.
Figure 11. The distance distribution of GCSS under each index.
Sensors 22 06678 g011
Figure 12. The distance distribution of intelligent EDS under each index.
Figure 12. The distance distribution of intelligent EDS under each index.
Sensors 22 06678 g012
Table 1. Seeding motor parameters.
Table 1. Seeding motor parameters.
Motor ParametersValueUnit
Back-EMF coefficient0.0192V·(rad·s−1)−1
Armature resistance8.3Ω
Armature inductance7.1H
Rotational inertia0.0012kg·m2
Torque constant0.31N·m·A−1
Working voltage12V
Reduction ratio1:56/
Table 2. Fuzzy inference rules table.
Table 2. Fuzzy inference rules table.
NBNMNSZOPSPMPB
NBPB\NB\PSPB\NB\PSPM\NB\ZOPM\NM\ZOPS\NM\ZOPS\ZO\PBZO\ZO\PB
NMPB\NB\NSPB\NB\NSPM\NM\NSPM\NM\NSPS\NS\ZOZO\ZO\PSZO\ZO\PM
NSPM\NM\NBPM\NM\NBPM\NS\NMPS\NS\NSZO\ZO\ZONS\PS\PSNM\PS\PM
ZOPM\NM\NBPS\NS\NMPS\NS\NMZO\ZO\NSNS\PS\ZONM\PS\PSNM\PM\PM
PSPS\NS\NBPS\NS\NMZO\ZO\NSNS\PS\NSNS\PS\ZONM\PM\PSNM\PM\PS
PMZO\ZO\NMZO\ZO\NSNS\PS\NSNM\PM\NSNM\PM\ZONM\PB\PSNB\PB\PS
PBZO\ZO\PSNS\ZO\ZONS\PS\ZONM\PM\ZONM\PB\ZONB\PB\PBNB\PB\PB
Table 3. Performance data sheet of simulation results.
Table 3. Performance data sheet of simulation results.
Optimization AlgorithmMaximum Overshoot δ/%Settling Time ts/sSteady-State Error essFitness Value
GA5.479%0.5480.002140.7531
PSO3.748%0.4130.001540.6311
GAPSO0.071%0.4083.0693 × 10−50.5575
Table 4. Verification experiment table of seed metering device speed accuracy.
Table 4. Verification experiment table of seed metering device speed accuracy.
Control StrategyOperation Speed/km·h−1Theoretical Speed/r·min−1Actual Speed/r·min−1CV/%MeanSdCI
N1N2N3N4N5
GA-Fuzzy-PID318.617.519.220.016.420.89.6218.781.81±2.1
531.028.233.431.529.334.08.0531.282.52±2.9
743.340.345.541.244.744.25.3043.182.29±2.6
955.751.462.859.349.150.711.0254.666.02±6.9
PSO-Fuzzy-PID318.618.316.717.520.120.28.4018.561.56±1.8
531.032.829.231.928.233.47.3431.102.28±2.6
743.345.841.244.739.743.45.8242.962.50±2.9
955.750.258.952.859.649.09.0654.104.90±5.6
GAPSO-Fuzzy-PID318.617.518.319.416.818.95.7618.181.05±1.2
531.028.930.231.932.230.54.3730.741.34±1.5
743.344.642.143.941.744.12.9943.281.29±1.5
955.749.456.657.254.552.55.9054.043.19±3.7
Table 5. Statistical results of seeding performance of two seeding methods at different operating speeds.
Table 5. Statistical results of seeding performance of two seeding methods at different operating speeds.
Operating Speed/km·h−1Test NO.GCSSEDS
Iq/%Imult/%Imiss/%Ip/%Iq/%Imult/%Imiss/%Ip/%
3180.837.5011.6726.9288.336.675.0022.66
281.675.8312.5027.3291.674.174.1718.85
380.005.8313.3328.3689.175.835.0022.17
6485.002.5012.5023.6795.830.833.3315.24
587.501.6710.8323.6396.671.671.6713.76
687.502.5010.0021.9395.000.834.1714.91
9782.501.6715.8324.8392.501.675.8317.51
883.332.5014.1626.0791.672.505.8319.10
981.675.0013.3327.2490.832.506.6718.72
121077.503.3319.1729.7787.500.8311.6720.04
1176.672.5020.8329.7188.33011.6719.18
1278.332.5019.1728.2187.501.6710.8324.22
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wang, S.; Zhao, B.; Yi, S.; Zhou, Z.; Zhao, X. GAPSO-Optimized Fuzzy PID Controller for Electric-Driven Seeding. Sensors 2022, 22, 6678. https://doi.org/10.3390/s22176678

AMA Style

Wang S, Zhao B, Yi S, Zhou Z, Zhao X. GAPSO-Optimized Fuzzy PID Controller for Electric-Driven Seeding. Sensors. 2022; 22(17):6678. https://doi.org/10.3390/s22176678

Chicago/Turabian Style

Wang, Song, Bin Zhao, Shujuan Yi, Zheng Zhou, and Xue Zhao. 2022. "GAPSO-Optimized Fuzzy PID Controller for Electric-Driven Seeding" Sensors 22, no. 17: 6678. https://doi.org/10.3390/s22176678

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

Article Metrics

Back to TopTop