Abstract

An effective method is proposed to estimate the parameters of a dynamic grain flow model (DGFM). To this end, an improved artificial bee colony (IABC) algorithm is used to estimate unknown parameters of DGFM with minimizing a given objective function. A comparative study of the performance of the IABC algorithm and the other ABC variants on several benchmark functions is carried out, and the results present a significant improvement in performance over the other ABC variants. The practical application performance of the IABC is compared to that of the nonlinear least squares (NLS), particle swarm optimization (PSO), and genetic algorithm (GA). The compared results demonstrate that IABC algorithm is more accurate and effective for the parameter estimation of DGFM than the other algorithms.

1. Introduction

Grain flow sensor is an important part of yield monitoring system in precision agriculture. There are mainly four types of grain flow sensor: impact-type [1], ray-type [2], volume-type [3], and weight-type [4]. Most commercial yield monitoring systems rely on impact-type for security, reliability, and simple structure. Impact-type measures the grain force exerted on the sensing device usually at the exit of the clean grain elevator, shown in Figure 1. The measured force is related to the grain flow.

Grain flow model is used to characterize the relationship between the grain flow and the impact force, which contains linear models and nonlinear models. Linear models have been utilized due to being easy for model building [58]. The results of the experiment, by contrast, denote a strongly nonlinear relation between the grain flow and the impact force at larger grain flow [9], so nonlinear models have been proposed for grain flow sensor to estimate a wide range of grain flow [10, 11] and are gradually employed for mass flow sensors to minimize the effects of changes in material properties [12, 13]. At this time, nonlinear regression methods are used to estimate parameter of nonlinear models with minimizing a given objective function [11, 14, 15]. But these methods have disadvantages of low convergence precision and slow convergence rate.

Recently, many artificial intelligent techniques have emerged as useful tool to solve complex problems, and these techniques have been utilized to parameter estimation of nonlinear models. In [16], application of an ant colony optimization (ACO) algorithm on estimation of the ultrasonic echo parameters shows the feasibility of ACO algorithm. The artificial bee colony algorithm (ABC) is used to search the appropriate combinations of the driving waveform parameters [17]. The particle swarm optimization (PSO) to determine the unknown photovoltaic (PV) model parameters was proposed by Soon and Low [18]. A multiobjective genetic algorithm (MOGA) is utilized to determine reliable estimates of the physical parameters of a complex robotic arm which are not known in advance [19]. Artificial intelligence techniques are superior to the traditional methods and have the obvious advantages of solving the global optimization problem with high precision and short time. However, artificial intelligent techniques still have some challenges to overcome, such as problem of falling into local optimums and problem of convergence rate.

ABC has been proven to be a powerful and efficient tool for real-world optimization problems [2022]. In order to efficiently and accurately estimate parameters of nonlinear grain flow models, this paper is to develop an improved artificial bee colony (IABC) algorithm and employ IABC to estimate parameter of DGFM and compare the results with other methods. Therefore, we have redefined new food sources in original ABC algorithm to obtain a new variant version of this algorithm which, compared to the other ABC variants, is highly effective for improved search performance.

The paper is organized as follows. In Section 2, related works about DGFM and ABC algorithm are introduced. In Section 3, IABC algorithm is detailed. In Section 4, IABC algorithm is compared with the other ABC variants on benchmark functions. In Section 5, IABC algorithm is used to estimate parameters of DGFM and comparison results are presented. Conclusions are made in Section 6.

2. Relate Works

2.1. DGFM

As mentioned above, it is a trend to model grain flow using nonlinear models. DGFM is proposed to give an accurate estimation of grain flow [23]. DGFM is classified into four stages: the filling stage, the settling stage, the release stage, and the flight stage.

2.1.1. Filling Stage

Total grain mass on a paddle is obtained as follows:where is total grain mass on a paddle, is the mass flow, is the coefficient of opening of the auger at time , is the distance between two paddles, and is the linear velocity of the paddles.

2.1.2. Settling Stage

is the distance between the sprocket center and inner boundary of the grains at any angle. is calculated as follows:where is length of the paddle and is the maximal angle achieved by the grain distribution. Specifically, , . and can be obtained from (3) and (4), respectively.where is the grain shape coefficient to be estimated, is the density of the grain, and is the width of the paddle.

2.1.3. Release Stage

Horizontal velocity and vertical velocity at the end of the release stage are given bywhere is the horizontal velocity, is the vertical velocity, is the sprocket rotational speed, is the coefficient of friction, is coefficient of radial distance, and is the travel time of grain and can be obtained from

2.1.4. Flight Stage

The impact force caused by grain can be expressed aswhere is impact force, is installation angle of grain flow sensor, is the coefficient of restitution, is used to compute the opening angle , and is the critical radius, which meet the condition: , . and are calculated as follows:where is the horizontal distance between the lowest point of grain flow sensor and sprocket center and is the vertical distance between the lowest point of grain flow sensor and sprocket center.

DGFM is represented by (7), which describes a physical relationship between the impact force and the grain flow with multiple parameters. The simplified form of the model is as follows:

In (9), as discussed above, the eight parameters are the machine geometric parameters obtained by measurement; the four parameters are theoretical parameters to be estimated, and is the value calculated with DGFM. Mass flow is calculated by applying a bisection algorithm to DGFM. Establishment and application of the DGFM can be found in the literature [23].

2.2. Objective Function

As discussed above, the DGFM consists of four unknown parameters. Unknown parameter estimation problem can be transformed into an optimization problem by minimizing a root mean square error (RMSE). For this purpose, the impact force is measured and computed by grain flow sensor and DGFM, respectively. Unknown parameters are estimated by the proposed objective function defined as follows:where is the number of samples, is the th calculated impact force in terms of (9), and is the th measured impact force.

2.3. Review of ABC Algorithm

The ABC algorithm simulating the foraging process of honey bees was proposed to solve complex optimization problems [24]. ABC algorithm contains three types of bees: employed bees, onlooker bees, and scout bees. Three types of bees share the information of the food sources with each other. Employed bees find the food sources and deliver the information of the food sources to onlooker bees in the hive. Onlooker bees follow employed bees to explore the food sources based on the information they have received. In the process of looking for the food sources, if the food source is not improved after a continuous trial at predetermined value, then employed bee abandon that food sources and turn into a scout searching around randomly. Predetermined value for abandoning a food source is called “limit,” which is an important control parameter in the ABC algorithm. The flow of the ABC algorithm is listed as follows.

Step 1. food sources are generated randomly from the following:where represents that artificial bee is at the th position of the th food source; ; ; is the number of food sources; is the search space dimension; and are the upper and lower limits of the th variable, respectively.

Step 2. If the current food position is , the following solution search equation is used by the employed bees to generate a new food source .where represents the position of new source found by the th employed bee, , , , and ; is a random number selected from .

Step 3. Each onlooker bee chooses and follows the employed bees based on the quality of food sources. The quality of food sources denoted as is given bywhere is the fitness value of the th solution. For a minimization problem, the fitness value of a solution can be defined aswhere is the value of the objective function at .

Step 4. If a food source fails to get better after predetermined value “limit,” then that food source needs to be abandoned. The employed bees become scouts later. A new food source is randomly generated in space using (11).

3. IABC Algorithm

This section presents the detailed description of the proposed improved artificial bee colony (IABC) algorithm. There are two improvements on basic ABC algorithm: modifying the search method of the onlooker bees and proposing a novel probability model.

3.1. Search Method for the Onlooker Bees

In ABC, production of new food source (see in (12)) reduces the effectiveness of algorithm because existing information is not used to produce new food source. Inspired by differential evolution (DE), Zhu and Kwong [25], proposed a modified ABC algorithm (MABC) which uses information of global best food source. Search method of MABC can be expressed as follows:where is the best food source in the all food source. The indices and are mutually exclusive integers randomly chosen from and different from the base index .

In IABC, the search method of MABC is modified to further improve the exploitation. The new method used to calculate a new food source is shown in

Compared with (15), (16) not only produces the new food source around the best food source but also makes use of the information of the best food source to guide the search trajectory. Thus, the exploitation of algorithm is improved greatly.

3.2. Probability Model

It is obvious that (16) has a good capability of exploitation. As a result, the diversity of population decreases. In IABC, hence, a probability model is used to increase the diversity of population, and it can be expressed as follows:where is the maximum fitness value of population.

In (17), values 0.8 and 0.2 are the optimal through simulation test and ensure some diversity in the case when one solution is superior to all others by allowing 20% of onlooker bees to select different solution.

From the above analysis, two equations are modified ((12) and (13) are replaced with (16) and (17), resp.), but the main framework of IABC is consistent with that of ABC.

4. Simulation Results and Analysis

A set of six benchmark functions is applied to verify the performance of IABC in the simulation experiments. The benchmark functions are summarized in Table 1.

Three ABC variants, GABC [25], MABC [26], and EABC [27], are used to compare with IABC. To be fair, the population size is set to 80 that are the same as that in [25]. To investigate the effect of limit, a test is made on four 30-dimensional test functions (Sphere, Griewank, Rastrigin, and Ackley) with IABC and the results are shown in Table 2. As seen from Table 2, limit can influence the optimization results. For the Griewank function, a faster convergence speed and better results are obtained, when limit is 200. For the other three test functions, the effect of limit on the performance of IABC is very little except Rastrigin at limit = 400. Therefore, in our experiments, the limit is set to 200 for all test functions.

Given the above, the population size, the maximum number of generations, and the limit values are set to 80, 5000, and 200, respectively. To be specific, the constant value is equal to 1.5 in GABC and the selective probability is set to 0.7 in MABC. Each of the experiments is repeated 30 times independently. The final results are given in Table 3.

Table 3 clearly shows that IABC works better than ABC, GABC, EABC, and MABC. Although the result of IABC is inferior to that of MABC on the Rosenbrock, there is little difference between MABC and IABC. And it is worth noting that IABC maintains the framework of original ABC and does not use chaotic maps and opposition-based learning techniques that are used in the initialization step of MABC.

Figure 2 presents the convergence curves of ABC, GABC, MABC, and IABC on six benchmark functions with different dimension. From Figure 2, accuracy and convergence rate of IABC has been greatly improved compared to ABC, GABC, and MABC algorithm.

5. Parameter Estimation of Dynamic Grain Flow Model with IABC

To make it more accurate for DGFM to calculate grain flow, it is very necessary to use a more efficient optimization algorithm to solve parameters estimation problem of DGFM. In view of the excellent performance of the proposed IABC algorithm in this paper, the IABC algorithm is used for parameters estimation of DGFM. A schematic diagram of the approach is illustrated in Figure 3.

Impact force and grain flow signals were obtained from a test rig illustrated in Figure 4. The experiment conditions are as follows: a novel grain flow sensor was installed at the top of the clean grain elevator, using PVDF piezoelectric film as the active element to measure the impact force [28, 29]. Grain flow was measured by weighing sensor with accuracy of 0.05%. The sprocket rotational speed was measured by speed sensor. Frequency converter was used to change the motor speed and the sprocket rotational speed. Signal modulate circuit was necessary to bring signals to an acceptable range for recording. The data acquisition system consisted of NI USB-6216 card and computer and LABVIEW software, and the sample rate was set at 150 Hz. All experimental data were preprocessed using EMD [30]. The theoretical parameters were estimated based on the machine geometric parameters and experimental data from test rig in the sprocket rotational speed of 320 r/min, 360 r/min, and 400 r/min, respectively. The machine geometric parameters are summarized in Table 4.

To estimate the theoretical parameters of DGFM, the population size, the maximum number of generations, and the limit values are set to 80, 1000, and 100, respectively. Figure 5 shows the curve of DGFM and experimental data points, respectively. As seen from Figure 5, the curves got by IABC are perfectly matched with the real data points. The accuracy of the proposed method is confirmed by this observation.

To verify the superiority of IABC algorithm in parameter estimation of DGFM, the IABC algorithm is compared with nonlinear least squares (NLS), particle swarm optimization (PSO), and genetic algorithm (GA). In all experiments in this section, the population size and the maximum number of generations used in each algorithm were chosen to be the same as the IABC algorithm, respectively. The other specific parameters of algorithms are given below.

For PSO algorithm, the learning rates and are both 2.05; the constriction factor χ = 0.729. For GA algorithm, a binary coded standard GA with elite units, random selection, and crossover mutation was used in the experiment. Meanwhile, single point crossover operation with the rate of 0.8 and stochastic uniform sampling technique were employed in the experiment. Mutational manipulation resumes the loss of genetic diversity during replication and hybridization applications. Mutation rate was set to be 0.01.

Table 5 illustrates the estimated results for the theoretical parameters of DGFM when four algorithms are applied. For comparing purposes, the values of RMSE are also listed in Table 5. As it can be observed, the theoretical parameters are relatively insensitive to changes of the sprocket rotational speed. IABC and PSO result in relatively closer values of RMSE compared to NLS and GA under different sprocket rotational speed.

To make a better comparison between IABC and PSO, search range of the theoretical parameters was enlarged. The comparison results are shown in Table 6. The value of RMSE increases obviously due to enlarging search range from Table 6; however, under different sprocket rotational speed the values of RMSE obtained by IABC algorithm are , , and , respectively, which are still better than the results obtained by PSO (, , and ). Figure 6 shows that the convergence rate of IABC algorithm is better than PSO algorithm at sprocket rotational speed of 360 r/min. The above results show that IABC has stronger search ability for complex optimization problems and can obtain higher accuracy solutions. Therefore, IABC algorithm is better than NLS algorithm, GA algorithm, and PSO algorithm in estimating parameters of DGFM.

6. Conclusions

This paper presented a method of estimating parameters of DGFM using IABC algorithm. In the proposed algorithm, the research method of original ABC was modified to improve its convergence rate. But the research method resulted in diversity loss, so a probability model was proposed to maintain diversity of population. With testing against a set of six benchmark functions, the IABC algorithm had a better performance than the other ABC variants. Then, the proposed algorithm was used to estimate parameters of DGFM. By comparing IABC algorithm with NLS algorithm, GA algorithm, and PSO algorithm, the proposed algorithm had higher accuracy solutions and a faster convergence rate, which is more suitable for parameter estimation of DGFM.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This project is fully supported by the Scientific Research Foundation of the Education Department of Liaoning Province, China (no. 2017LNQN22); the Young Teachers Foundation of University of Science and Technology Liaoning, China (no. 2017QN04); and the Nature Science Foundation of Liaoning Province, China (no. 2015020128).