Keywords

1 Introduction

Maize production in Jilin Province, agricultural production occupies an extremely important position, is the largest planting area in Jilin Province, food crops, production accounted for 12.5% of the country, to 27.88 million t. corn production of Jilin Province is essential to China’s food security. Reasonable application of chemical fertilizers is one of the important guarantees of high and stable yield of maize. According to the soil type, soil fertility and maize fertilizer characteristics to fertilize scientifically and reasonably is particularly important. Variable fertilization technology is an important part of precision agriculture, It is based on the actual needs of crops, based on scientific fertilization methods, Identify variables inputs on crop To a certain extent, increased corn production. In the case of reasonable control of the amount of fertilizer, you can achieve both the purpose of reducing investment and increase production. Because of the high nonlinearity between yield and soil nutrient and fertilization, neural network is considered to be a powerful tool to solve nonlinear problems, Therefore, a number of different forms of neural networks are used for precise fertilization decisions. In 2001, Pokrajac et al. Presented a neural network-based decision support system to provide precise fertilization recommendations; In 2002, Teng Qingfang and others tried to use the neural network to establish the soil fertilization model; In 2004, Ma Weilin et al. Proposed a method of variable fertilization decision-making based on data envelopment analysis and artificial neural network. In 2007, Lan Weijuan et al. Applied radial basis function network to variable fertilization decision. The use of RBF network to study the variable fertilization decision has the advantages of simple structure, rapid training process and good promotion ability. It is superior to the BP network in terms of approaching ability and learning speed, and can simplify the structure and learning rules of the network. Therefore, this paper uses FCM algorithm and OLS fusion algorithm to optimize RBF neural network, and constructs a RBF neural network prediction model based on fusion algorithm, To adapt the content of soil nutrients, fertilizer and food production randomness, complexity and nonlinear variation, Through the different soil types and yield prediction fertilization, to explore the realization of high yield of corn nitrogen, phosphorus, potassium fertilizer the best amount of application, For the rational use of fertilizer on the production, improve fertilizer utilization to provide a reference. To guide the variable fertilization in production of maize in central Jilin Province, in order to improve food productivity, to achieve sustainable development of productivity.

2 Technology and Methods

Techniques employed herein route is divided into three parts: first, Normalizing treatment the Data samples, and using the FCM algorithm select primary data center; the second usage OLS to train RBF neural network to generate a regression matrix, preferably the data center; Thirdly, using the RBF neural network to construct the precision fertilization model. The specific description shown in Fig. 1:

Fig. 1.
figure 1

The technical roadmap for this article

2.1 RBF Neural Network Prediction Algorithm

The RBF (Radial Basis Function) neural network model was proposed by Moody and Darken in 1988, it is a three-layer feedforward neural network, the first layer is the input layer, composed of the source node; the second layer for the hidden layer, the activation function using radial basis function (this article is Gaussian function), and Usually defined as any data sample to a data center Euclidean distance between the monotonic function; The third layer is the output layer, the hidden layer to the output layer using linear activation function. In this paper, four factors affecting the amount of maize fertilizer were obtained, so the input vector n = 4, h hidden layer, m output vector is the amount of soil fertilization of Alkaline N (N) Available phosphorus (P) Available potassium (K), so m = 3 (Fig. 2).

Fig. 2.
figure 2

RBF network structure

By RBFNN learning process and its network mapping relationship, RBF performance depends on the strong choice of the center number, the center value and its location. Therefore, if all the input as a candidate space, it will bring a very large amount of calculation, reducing network performance. In order to overcome this deficiency, FCM algorithm can be used to narrow the candidate space and reduce the network size to improve the computational efficiency.

2.2 FCM Clustering Algorithm Primary Network Center

Fuzzy C-means (FCM) is proposed by Bezdek et al. FCM compared with the traditional clustering analysis algorithm, It introduced the fuzzy mathematics theory, which is an unsupervised clustering algorithm based on objective function. Corn soil nutrient, yield and fertilizer data samples usually have serious non-linear characteristics, Single model is difficult to describe, so it is necessary to divide the data sample set into different subclasses. The in order to reduce the number of RBFNN centers, FCM clustering is used to initialize the sample training set. And can improve the speed of network computing efficiency, so that the forecast is more accurate.

The basic idea of FCM is to divide all data samples into c fuzzy groups, The cluster center of each fuzzy group is determined by minimizing the objective function value. And the degree of membership in the [0, 1] is used to determine the degree to which each given data belongs to each fuzzy group. Its membership matrix U must satisfy Eq. (1):

$$ \sum\limits_{{{\text{i}} = 1}}^{c} {u_{ij} = 1,\forall j = 1, \ldots ,n} $$
(1)

The objective function of FCM algorithm is generally as follows (2):

$$ J\left( {U,c_{1} , \ldots ,c_{c} } \right) = \sum\limits_{i = 1}^{c} {J_{i} } = \sum\limits_{i = 1}^{c} {\sum\limits_{j}^{n} {u_{ij}^{k} d_{ij}^{2} } } $$
(2)

In the formula, uij is the degree of membership; \( {\text{d}}_{\text{ij}} \, = \,\left\| {{\text{c}}_{\text{i}} - {\text{x}}_{\text{j}} } \right\| \) represents the Euclidean distance between the i-th cluster center and the j-th data point; ci is the clustering center of each fuzzy group; k ∈ [1, ∞) is a weighted power exponent. In order to achieve the minimum target function, We introduce the Lagrangian multiplier \( \uplambda_{\text{j}} \left( {{\text{j}}\, = \,\left[ {1,{\text{n}}} \right]} \right) \). The constructor is shown in Eq. 3:

$$ J(U,c_{i} , \ldots ,c_{c} ,\lambda_{n} ) = J(U,c_{1} , \ldots ,c_{c} ) + \sum\limits_{j = 1}^{n} {\lambda_{j} \left( {\sum\limits_{i = 1}^{c} {u_{ij} - 1} } \right) = \sum\limits_{i = 1}^{c} {\sum\limits_{j}^{n} {u_{ij}^{k} d_{ij}^{2} + \sum\limits_{i = 1}^{n} {\lambda_{j} \left( {\sum\limits_{i = 1}^{c} {u_{ij} - 1} } \right)} } } } $$
(3)

Derivating the parameters for each parameter, the requirement of Making Formula 3 Minimal is

$$ {\text{c}}_{i} = \frac{{\sum\limits_{j = 1}^{n} {u_{ij}^{k} x_{j} } }}{{\sum\limits_{i = 1}^{n} {u_{ij}^{k} } }} $$
(4)

And

$$ {\text{u}}_{\text{ij}} = \frac{1}{{\sum\limits_{k = 1}^{c} {\left( {\frac{{d_{ij} }}{{d_{kj} }}} \right)^{{{2 \mathord{\left/ {\vphantom {2 {(k - 1)}}} \right. \kern-0pt} {(k - 1)}}}} } }} $$
(5)

The specific FCM algorithm steps are as follows:

  • Step 1: Given the clustering category c, 2 ≤ c ≤ N, N is the number of initial data samples, Initial membership matrix is U(0), And set the threshold ε;

  • Step 2: initialize the cluster center ci(t), i = 1, 2, …, n;

  • Step 3: calculate the membership degree uij(t) with the formula (5), i = 1, 2, …, c; j = 1, 2, …, n;

  • Step 4: Use the obtained membership degree to correct the cluster center ci(t + 1), i = 1, 2, …, c according to (4);

  • Step 5: Calculate the error \( {\text{e}}\, = \,\sum\limits_{{{\text{i}} = 1}}^{\text{c}} {\left\| {c_{i} (t + 1) - c_{i} (t)} \right\|^{2} } \). If e < Emax the operation is over, otherwise let t + 1 = t, return to the third step.

2.3 Orthogonal Least Squares Optimization Center

RBF network center selection orthogonal least squares (orthogonal least squares algorithm OLS) algorithm, Which solves the key problems in the construction of radial basis function network. OLS algorithm uses the orthogonalization method to independently calculate the contribution of the regression operator to the output, so the center selection step is simple and effective. OLS algorithm is the basic idea: The center of the radial basis function is chosen as a subset of the training pattern, Choose one sample at a time, Through the orthogonal regression matrix, the regression operator with large error compression ratio is selected, And the number of regression operators is determined by the selected tolerance, And then find the network weight. The RBF neural network is trained with OLS, and the matrix representation of the expected output response is:

$$ Y = \hat{Y} + E = \phi W + E $$
(6)

Where \( {\text{Y}} \in {\text{R}}^{{{\text{n }}*{ 3}}} \) is the desired output matrix; \( {\hat{\rm Y}} \in {\text{R}}^{{{\text{n}}*{3}}} \) is the output matrix of the neural network model; \( \Phi \in {\text{R}}^{{{\text{n }} * {\text{ h}}}} \) is the regression matrix; \( {\text{E}} \in {\text{R}}^{{{\text{n }}*{ 3}}} \) is the output error matrix. In this paper, Schmidt orthogonalization method to reduce the output error. OLS algorithm can save storage space and improve operation efficiency, and is very suitable for training RBF network. The RBF neural network trained by OLS can obtain a more optimized data center, improve the accuracy of the network, greatly reduce the computational complexity of the network and improve the training speed.

3 Application of RBF Neural Network Fusion Algorithm in Precision Fertilization Decision of Maize

3.1 Experimental Data

Experimental data from the “National Spark Program” in Jilin Province, Nong’an County, Helong Town, Chen Jiadian Village and Kai’an town experimental field. In order to achieve accurate fertilization, the grid was divided into grid, the grid size is 40 m × 40 m. Figure 3 is Chenjiadian village and Kai’an town experimental field grid.

Fig. 3.
figure 3

Experimental area grid

In the year of 2015, the experimental field was tested, fertilized and tested, and finally 64 samples were obtained. Each sample consisted of seven attributes: soil N, P, K content, actual yield, N, P, K fertilizer. The amount of application, part of the experimental data shown in Tables 1 and 2:

Table 1. Chenjiadian village experimental field
Table 2. Kai’an town experimental field

3.2 Pretreatment of Training Samples

In the process of network model training will appear a larger input variable to suppress the phenomenon of smaller input variables, resulting in increased network training time, and even the network can not converge. If the data dimension is inconsistent, it is easy to cause the sickness of the model. In order to remove the data in the dimension and the order of magnitude to establish the impact of network accuracy, After obtaining the sample vector, this paper takes the normalization of the data samples to deal with, namely:

$$ x_{pi}^{'} = \frac{{x_{pi} - \hbox{min} \{ x_{i} \} }}{{\hbox{max} \{ x_{i} \} - \hbox{min} \{ x_{i} \} }} $$
(7)

In the formula: Xpi is the raw data of the i-th variable of the pth sample, \( {\text{X}}^\prime_{\rm pi} \) is the normalized processing data for the i-th variable of the pth sample. The preprocessed sample data range is (0, 1).

3.3 Construction of Fertilization Model

In order to achieve the target yield of corn, this paper establishes a RBF neural network model based on fusion algorithm, Study the best fertilization model of maize to achieve high yield of maize. Taking the soil nutrient content of Chenjiadian experiment field and the input as the neural network, the amount of fertilizer applied as the output of the neural network, In this paper, based on the RBF neural network fertilization model shown in Fig. 4:

Fig. 4.
figure 4

RBF neural network fertilization model

(1) Different algorithms to predict performance comparison

In the training RBF network, the FCM algorithm, take c = 20, in all the samples, through clustering, the first selected cluster center number 20 data centers; use OLS training RBF, take the error threshold of 0.01 to get regression Matrix information, On the basis of the initial selection of 20 centers, and then enter the choice, and finally get 10 effective data center. Using BP network, single RBF network and post-training RBF neural network (FCM-OLS-RBF) to test the sample, Test results are shown in Table 3:

Table 3. Comparison of different algorithms for prediction performance

It can be seen from Table 3 that from the prediction accuracy, the FCM-OLS-RBF model constructed in this paper has a prediction error of 0.2, which is obviously better than RBF network and BP network. From the processing speed, FCM-OLS-RBF network is 1.93,1.73 times faster than single RBF network and BP neural network in predicting 10 samples. Thus, the RBF network after the improved algorithm has higher accuracy and faster speed than the single RBF network and the traditional BP network, and the practicability is stronger.

(2) FCM-OLS-RBF fusion algorithm simulation experiment

In this experiment, 64 samples of soil nutrient content, yield and actual fertilization amount in Chenjiadian and Kai’an were divided into three parts, Of which 44 samples were used as training set, 10 samples were used as validation sets, and the remaining 10 samples were used as test sets. Before training RBF network, we first use FCM algorithm to select 20 centers in all training samples, then train the network with OLS, and finally select 10 centers. Finally, the trained RBF neural network was used to predict the soil fertilization amount of maize in the field of maize, Simulation results are shown in Fig. 5:

Fig. 5.
figure 5

FCM-OLS-RBF network simulation results

It can be seen from Fig. 5 that the predictive curve of FCM-OLS-RBF network is in good agreement with the measured curve, especially the predicted value and measured value of N and P, and the deviation is very small, Showing its higher prediction accuracy.

It can be seen from Fig. 6 that the relative error of nitrogen, phosphorus and potassium fertilizers is about 0.1%, and the maximum error is below 0.25%, which can meet the requirements of actual production.

Fig. 6.
figure 6

FCM-OLS-RBF network prediction error

4 Conclusion

This paper focuses on the RBF neural network algorithm based on FCM clustering and OLS, and compares it with the traditional RBF and BP neural network. Finally, the method is applied to the precision fertilization problem. According to the experimental test, the following conclusions are drawn:

  1. (1)

    FCM-OLS-RBF fertilization prediction model training speed, good convergence, In the case of large quantities of non-linear and accurate fertilization applications, Compared with the traditional RBF and BP network prediction results, it also shows its better evaluation accuracy. Both to ensure the accuracy of the network while simplifying the algorithm and network structure;

  2. (2)

    The fertilization model based on FCM-OLS-RBF neural network can simulate the nonlinear relationship between soil test and fertilization, which is superior to the traditional fertilization model and can be used as a quantitative model to guide the accurate fertilization;

  3. (3)

    A large number of training samples are needed to predict with a neural network, or the accuracy of prediction can not be accurately fitted due to the high degree of non-linear relationship between the factors and fertilization.

And because the factors affecting the amount of corn fertilization varied and intricate, the factors that affect the yield is not only the amount of fertilizer problems. In the future, with the deepening of the practice of variable fertilization, the accumulation of data is rich, can provide a broader basis for improving production.