CN113221446B - Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment - Google Patents

Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment Download PDF

Info

Publication number
CN113221446B
CN113221446B CN202110431777.3A CN202110431777A CN113221446B CN 113221446 B CN113221446 B CN 113221446B CN 202110431777 A CN202110431777 A CN 202110431777A CN 113221446 B CN113221446 B CN 113221446B
Authority
CN
China
Prior art keywords
soil
neural network
value
water
residual error
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110431777.3A
Other languages
Chinese (zh)
Other versions
CN113221446A (en
Inventor
吴宗翰
胡睿琦
潘平波
于叶露
刘月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inner Mongolia Hengyuan Water Engineering Co ltd
Lanzhou Lifeng Zhengwei Intelligent Technology Co ltd
Original Assignee
Inner Mongolia Hengyuan Water Engineering Co ltd
Lanzhou Lifeng Zhengwei Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inner Mongolia Hengyuan Water Engineering Co ltd, Lanzhou Lifeng Zhengwei Intelligent Technology Co ltd filed Critical Inner Mongolia Hengyuan Water Engineering Co ltd
Priority to CN202110431777.3A priority Critical patent/CN113221446B/en
Publication of CN113221446A publication Critical patent/CN113221446A/en
Application granted granted Critical
Publication of CN113221446B publication Critical patent/CN113221446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/048Activation functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Business, Economics & Management (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Agronomy & Crop Science (AREA)
  • Animal Husbandry (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Mining & Mineral Resources (AREA)
  • Medical Informatics (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention relates to the technical field of agriculture, and provides a method and a system for acquiring a water and fertilizer strategy of saline soil, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring a preset value of soil conductivity at a preset time point for expressing the soil salinization degree, and determining a target value of each parameter related to the soil salinization at the preset time point; and inputting the preset value and all target values into the trained reverse residual error neural network to obtain a saline soil water and fertilizer strategy corresponding to the soil with the soil conductivity being the preset value. The constructed reverse residual error neural network can better fit the actual application scene of the farmland water conservancy, the reverse residual error neural network can directly simulate and optimize the saline soil water and fertilizer strategy according to the target soil salinity corresponding to the preset value of the soil conductivity, the model precision is high, the simulation requirement can be met, a powerful technical means is provided for optimizing the field irrigation and fertilization strategy, and the analysis efficiency is improved.

Description

Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of agriculture, in particular to a method and a system for acquiring a water and fertilizer strategy of saline soil, a storage medium and electronic equipment.
Background
Saline soil is one of the most main low-yield and medium-yield soil types in China, the productivity level of the saline soil is closely related to the soil quality condition, and improper utilization of the saline soil can quickly cause soil degradation and productivity level reduction. In salinization irrigation areas with shortage of fresh water resources, brackish water utilization is inevitable, but excessive utilization can aggravate soil salinization, and an irrigation system for safely utilizing brackish water is urgently needed in the field. Brackish water is used for drip irrigation, and the method is wide in application and high in water saving efficiency, and the drip irrigation mode can reduce the influence range of brackish water on soil salinity distribution. In addition, the reasonable irrigation quantity not only ensures the normal growth of crops, but also can reduce the negative effect of brackish water on soil. The mechanism of water-fertilizer coupling under salinity stress is more complex, the excessive application of nitrogen fertilizer can aggravate the secondary salinization of soil, further inhibit the growth of crops, and the reasonable fertilizing amount is drawn up to ensure the prevention of further deterioration of the salinized soil. Therefore, the soil salt environment is an important factor considered in the water and fertilizer optimization scheme of the salinization irrigation area, the accurate analysis of the complex relationship between the soil salt and the brackish water and the fertilizer becomes a scientific problem which needs to be solved urgently, and the method has important significance for improving the salinization soil, saving fresh water resources and improving the land utilization efficiency.
At present, many scholars obtain an optimized water and fertilizer scheme by establishing a linear method such as a multiple regression equation and the like. In the aspect of combining water and fertilizer with salinity, besides the method for establishing a linear equation to solve and optimize the water and fertilizer coupling mode, a HYDROUS-1D model is also used for simulating the water content and salinity of the salinized soil in different irrigation and fertilization modes, the optimized water and fertilizer is obtained by artificially analyzing the water and salt dynamics, and the equation solution in the model is a Calerkin linear finite element method. These conventional data analysis methods have been widely used for a long time, and unfortunately, these methods assume a linear relationship between indexes, which is difficult to be established in a real-world situation. The method cannot analyze the nonlinear relation among indexes, so that some unknown characteristics are lost artificially, the comprehensiveness of analysis is limited to a certain extent, and especially the action mechanism of brackish water and fertilizer on saline soil is more complex, and the linear analysis method cannot obtain the complex characteristics of water, fertilizer and salt; in addition, the traditional model simulation method takes irrigation and fertilization as input ends, simulates and predicts the water and salt dynamics of the soil, combines the water and salt dynamics of the soil to further carry out multiple screening analysis to obtain the optimized water and fertilizer, and has low analysis efficiency.
Disclosure of Invention
The invention aims to solve the technical problem of the prior art and provides a method, a system, a storage medium and electronic equipment for acquiring a water and fertilizer strategy of saline soil.
The technical scheme of the method for acquiring the water and fertilizer strategy of the saline soil is as follows:
acquiring a preset value of soil conductivity at a preset time point for representing the soil salinization degree, and determining a target value of each parameter related to the soil salinization at the preset time point;
and inputting the preset value and all target values into a trained reverse residual error neural network to obtain a saline soil water and fertilizer strategy which corresponds to the soil with the preset value of soil conductivity and comprises a target irrigation quantity and a target nitrogen application quantity, wherein the irrigation mainly aims at brackish water, and fresh water is also suitable.
The method for acquiring the water and fertilizer strategy of the saline soil has the following beneficial effects:
the constructed reverse residual error neural network can better fit the actual application scene of the irrigation and water conservancy, the reverse residual error neural network can directly simulate and optimize the salinity of the target soil corresponding to the preset value of the soil conductivity to obtain the saline soil water and fertilizer strategy, the model precision is high, the simulation requirement can be met, a powerful technical means is provided for optimizing the field irrigation and fertilizer application strategy, and the analysis efficiency is improved.
On the basis of the scheme, the method for acquiring the water and fertilizer strategy of the saline soil can be further improved as follows.
Further, still include:
building a residual error neural network;
training the residual error neural network by using a data set, and obtaining the reverse residual error neural network by combining with an Adam optimization algorithm, wherein the data set comprises: and at each historical preset time point, the historical target value of each parameter, the historical preset value of the soil conductivity, the historical target irrigation quantity and the historical target nitrogen application quantity.
Further, the building a residual error neural network further comprises:
and taking the ReLU function as an activation function of the built residual error neural network.
Further, the building of the residual error neural network further comprises:
introducing batch normalization into the built residual error neural network;
the Dropout algorithm is introduced into the constructed residual neural network.
The technical scheme of the acquisition system of the water and fertilizer strategy of the saline soil is as follows:
the device comprises a determining module and an obtaining module;
the determining module is used for acquiring a preset value of soil conductivity at a preset time point, and determining a target value of each parameter related to soil salinization at the preset time point;
and the acquisition module is used for inputting the preset value and all the target values into the trained reverse residual error neural network to obtain a saline soil water and fertilizer strategy which corresponds to the soil with the soil conductivity being the preset value and comprises the target irrigation quantity and the target nitrogen application quantity.
The system for acquiring the water and fertilizer of the saline soil has the following beneficial effects:
the constructed reverse residual error neural network can better fit the actual application scene of the irrigation and water conservancy, the reverse residual error neural network can directly simulate and optimize the salinity of the target soil corresponding to the preset value of the soil conductivity to obtain the saline soil water and fertilizer strategy, the model precision is high, the simulation requirement can be met, a powerful technical means is provided for optimizing the field irrigation and fertilizer application strategy, and the analysis efficiency is improved.
On the basis of the scheme, the acquisition system of the saline soil water and fertilizer strategy can be further improved as follows.
The system further comprises a modeling module and a training module, wherein the modeling module is used for building a residual error neural network;
the training module is used for training the residual error neural network by using a data set and obtaining the reverse residual error neural network by combining an Adam optimization algorithm, wherein the data set comprises: and at each historical preset time point, the historical target value of each parameter, the historical preset value of the soil conductivity, the historical target irrigation quantity and the historical target nitrogen application quantity.
Further, the modeling module is further configured to:
and taking the ReLU function as an activation function of the built residual error neural network.
Further, the modeling module is further configured to:
introducing batch normalization into the built residual error neural network;
the Dropout algorithm is introduced into the constructed residual neural network.
The storage medium stores instructions, and when a computer reads the instructions, the computer executes the method for acquiring the water and fertilizer strategy of the saline soil.
An electronic device of the present invention includes a processor and the storage medium, where the processor executes instructions in the storage medium.
Drawings
FIG. 1 is a schematic flow chart of a method for obtaining a water and fertilizer strategy of saline soil according to an embodiment of the invention;
FIG. 2 is a diagram comparing a neural network with a residual deep neural network;
FIG. 3 is a diagram of a Sigmiod function;
fig. 4 is a schematic diagram of the derivative of the Sigmiod function;
FIG. 5 is a diagram of a ReLU function;
FIG. 6 is a schematic of the derivative of the ReLU function;
FIG. 7 is one of the vertical distribution plots of the average conductivity of soil under different water and fertilizer strategies;
FIG. 8 is a second vertical distribution diagram of the average conductivity of the soil under different water and fertilizer strategies;
FIG. 9 is a third vertical distribution diagram of the average conductivity of soil under different water and fertilizer strategies;
FIG. 10 is a graph showing data for outputting a value of soil conductivity versus an actual value of soil conductivity;
FIG. 11 is a graph showing data of an output soil pH value versus an actual soil pH value;
FIG. 12 is a data diagram of an output value of soil moisture content versus an actual value of soil moisture content;
FIG. 13 is a data diagram of the target irrigation amount of the medlar in each growth period of the slightly saline soil, the moderately saline soil and the heavily saline soil;
FIG. 14 is a data diagram of the target nitrogen application amount for each growth period of Lycium barbarum in lightly saline soil, moderately saline soil, and heavily saline soil;
FIG. 15 is a graph of irrigation levels of lightly saline soils;
FIG. 16 is a graph of irrigation levels of moderately saline soils;
FIG. 17 is a diagram of irrigation level of heavily saline soil;
FIG. 18 is a schematic structural diagram of a system for acquiring water and fertilizer from saline soil according to an embodiment of the present invention;
Detailed Description
As shown in fig. 1, the method for obtaining the water and fertilizer strategy of the saline soil in the embodiment of the invention comprises the following steps:
s1, acquiring a preset value of soil conductivity at a preset time point for representing the soil salinization degree, and determining a target value of each parameter related to the soil salinization at the preset time point;
and S2, inputting the preset value and all target values into the trained reverse residual error neural network to obtain a saline soil water and fertilizer strategy which corresponds to the soil with the preset value of soil conductivity and comprises the target irrigation quantity and the target nitrogen application quantity.
The constructed reverse residual error neural network can better fit the actual application scene of the farmland water conservancy, the reverse residual error neural network can directly simulate and optimize the saline soil water and fertilizer strategy according to the target soil salinity corresponding to the preset value of the soil conductivity, the model precision is high, the simulation requirement can be met, a powerful technical means is provided for optimizing the field irrigation and fertilization strategy, and the analysis efficiency is improved.
Wherein the parameters associated with soil salination include: depth of soil layer (depths), moisture content of soil and pH value of soil.
Preferably, in the above technical solution, the method further comprises:
s020 building a residual error neural network;
s021, training the residual error neural network by using a data set, and obtaining the reverse residual error neural network by combining an Adam optimization algorithm, wherein the data set comprises: and at each historical preset time point, the historical target value of each parameter, the historical preset value of the soil conductivity, the historical target irrigation quantity and the historical target nitrogen application quantity.
Preferably, in the above technical solution, the constructing a residual neural network further includes:
and S0200, taking the ReLU function as an activation function of the built residual error neural network.
Preferably, in the above technical solution, the building a residual neural network further includes:
s0201, introducing batch normalization into the built residual error neural network;
and S0202, introducing a Dropout algorithm into the built residual error neural network.
The method for acquiring the water and fertilizer strategy of the saline soil is explained in detail through the following embodiment:
s10, selecting a test area, specifically:
the test was carried out at 2016 and 2017 at the Mongolian Wulat front flag Red-Wei test station (108 DEG 45'-109 DEG 36' E,40 DEG 30 '-40' N) located in the west of the three-lake river irrigation area most downstream of the river irrigation area. Continental multi-air drying in medium temperature zone in research areaIn dry climate, the average precipitation amount for years is 270mm, the average evaporation amount for years is 2383mm, the average air temperature for years is 7.9 ℃, the frost-free period is 146d, namely 146 days, and the accumulated temperature (more than 10 ℃) is 3200h. The test area has a large amount of underground brackish water (the mineralization degree is about 3.84 g/L) resources, most of soil is filled soil and saline soil, the average water content of soil in a 0-100cm soil layer is 26.25%, the EC value of the soil is 1.58mS/cm, the pH value of the soil is 8.12, and the volume weight of the soil is 1.55g/cm 3 . The basic soil properties of the test area are shown in table 1 below:
Figure SMS_1
TABLE 1
S11, experimental design, specifically:
the test plant is Lycium barbarum of Ning wolfberry No. 1, drip irrigation is carried out by adopting underground brackish water, urea is used as a test fertilizer, diammonium phosphate and phosphorus nitrate are applied as base fertilizers before water, the urea is applied as a top dressing along with irrigation in a growth period, and top dressing is carried out for 4 times in total, wherein the top dressing amount is 20%, 30%, 40% and 10% of the total top dressing amount in the whole year respectively. The brackish water drip irrigation system and the fertilization system are shown in table 2:
Figure SMS_2
TABLE 2
The test factors are irrigation quantity and nitrogen application quantity, the irrigation quota is respectively set as 232.5, 285 and 375mm, and the nitrogen application quantity is respectively set as 210, 525, 750 and 975kg/hm 2 There were 12 treatments, each of which was set up with 3 replicates. The area of a single test cell is 39m 2 Each cell comprises 13 Chinese wolfberry plants, the plant spacing of the Chinese wolfberry plants is 1.0m, and the row spacing is 3.0m. And a protective belt is arranged at the periphery of the test cell, and a 1m water-stop sheet is adopted for seepage-proofing isolation among the cells.
S12, defining an input section and an output end of the residual error neural network, specifically:
1) The input of the residual neural network is defined as the matrix X ∈ R n×d Where n is the sample size, n =756 in the present application; d is each inputIn vector dimension, in this application d =3, { xi } i=1,2,3,4,5 epsilon.X represents: the method comprises the steps of obtaining a vector set comprising a target value of soil water content, a preset value of soil EC (electric conductivity), a target value of soil pH value and target values of corresponding sampling time, namely a preset time point and soil depth, wherein the vector set comprises a historical target value of soil water content, a historical preset value of soil EC, namely soil conductivity, a historical target value of soil pH value and a historical target value of corresponding sampling time, namely a historical preset time point and soil depth;
2) The output end of the residual error neural network is defined as a matrix Y epsilon R n×2 The matrix Y is formed by R n×2 Representing a series of fertigation levels with time and depth dimensions, the residual neural network aims to learn and train the mapping for a given input matrix
Figure SMS_3
The parameter theta in the method enables Y' obtained by the trained model to be infinitely close to Y representing the real irrigation and fertilization level, and therefore a well-trained reverse residual error neural network is obtained; the matrix Y represents: the target amount of water to be poured and the target amount of nitrogen to be applied at the preset time point are understood to mean, at the time of training: historical target irrigation water amount and historical target nitrogen application amount at each historical preset time point;
s13, building a residual error neural network, specifically:
1) Basic principle of residual neural network: the residual neural network is divided into an input layer, a hidden layer and an output layer. The method comprises the steps that soil data, namely soil sampling time (days), soil depth (depths), soil moisture content, soil EC (environmental protection) value and soil pH value, are input into an input layer, the size of a model is adjusted according to the size of the data through a pluggable Block module, namely a residual Block, and nonlinear characteristics of the residual Block are introduced into a neural network through a hidden layer activation function. The output end of the model is an optimized water and fertilizer coupling regulation and control mode, and the output function of the model is f (x) -x and then f (x), so that the optimization performance of the model is improved;
2) Model mapping and residual Block, block module, specifically:
an important objective of the RDR (Reverse Deep ResNET) model, namely the Reverse residual neural network, constructed in the application is to efficiently analyze high-dimensional and large-scale irrigation and water conservancy data to obtain optimization capacity, so that a structure with Deep layers and meeting efficient calculation requirements needs to be established. However, as the neural network becomes deeper, the problem of gradient vanishing/gradient explosion impeding model convergence occurs: i.e. as the model is deeper, the performance drops significantly after reaching saturation. The RDR proposed in this application solves the degradation problem by reconstructing the hidden layer as a learning residual function with reference to the identity map (layer input).
Suppose h 1 (x) Is the output layer in the basic building block of the residual neural network, and proposes that the layer of the basic building block approximates a residual function: f (x) h (x) -x. Thus, the original function can be converted into
Figure SMS_4
Wherein->
Figure SMS_5
Is the output layer of the basic building Block (Block) of the residual neural network, h 1 (x) Is the output layer of the block. By constructing f (x) -x operations according to the added crossing links of the elements, as shown in fig. 2, the left side in fig. 2 is the structure of the neural network, and the right side is the structure of the residual neural network, it can be understood that the reverse residual neural network is obtained based on the training of the residual neural network, and the structure of the residual neural network is the structure of the reverse residual neural network;
3) Hiding the layer:
because the residual neural network is a deep neural network structure with 6 hidden layers, it is critical to define affine transformations between layers of information flow. In general, the learning parameter θ of each layer is composed of a weight matrix w and a bias parameter b. Ith of residual neural network th Hidden layer h l Can be defined as the following equation:
Figure SMS_6
wherein W 1 And b 1 Is at l th Weights and bias parameters that the layer can learn. h is l-1 Is a hidden layer representative of the previous layer.When l =1, h 0 = X, given input data flow to intermediate operation hidden layer by layer-by-layer update rule, finally reach output layer;
4) Taking the ReLU function as an activation function of the built residual error neural network, specifically:
the activation function introduces nonlinear characteristics into the residual neural network, so that the residual neural network can arbitrarily approximate a complex natural function within the distribution range of the input. Without the activation function, the multilayer structure remains equivalent to a single layer structure due to its linear character. However, a great deal of current work does not accurately use the activation function, and they use the Sigmiod function in a shallow model, so that the simulation result is poor. In this section, the present application will explain the reason why the sigmood function is not suitable for use in the field of agricultural land and water, and introduce a Rectified Linear Units (ReLU) function applied in RDR, so that:
(1) the mathematical expression of the Sigmiod activation function, also called logic function, is:
Figure SMS_7
FIGS. 3 and 4 reveal that the Sigmiod activation function compresses and converts the range of values to [0,1 ]]In between, when a neuron in the network is saturated (when the output implicit value in the neuron is close to 0 or 1, its gradient value is 0), the gradient is made to more easily approach 0. Obviously, a gradient of 0 results in that the weight parameters in the saturated neurons cannot be updated, and at the same time, the neurons connecting these saturated neurons will pass slowly, which is the phenomenon of gradient disappearance. Furthermore, the Sigmiod function is vulnerable to still another cause in current deep learning architectures: the e-x function in the Sigmiod function, if applied at each layer, makes the overall computation cost of the model large.
(2) The ReLU function effectively solves the above problems. Fig. 5 and 6 illustrate the semi-correcting property of the ReLU function, whose mathematical expression is as follows: re L U (x) = max (0,x), if x < 0, the output of the relu activation function is 0, otherwise the output is still its original value x. This precise operation makes the propagation and transmission of the entire neural network more efficient. Because ReLU liberates neurons from a limited range, a large number of nervesThe element is counter-propagated in the positive region, avoiding the gradient vanishing problem. According to the application, a ReLU function is applied behind each hidden layer to complete nonlinear transformation. This operation can be formulated as follows:
Figure SMS_8
wherein +>
Figure SMS_9
Is a hidden layer representation of batch normalization, as will be described in detail below. />
5) Introducing batch normalization into the constructed residual neural network, specifically:
although deep neural networks achieve good generalization capability from deep architectures, training is achieved through a mechanism in which input data is transformed from learnable parameters of all layers in the neural network, complicating the training process. In this case, as the network becomes deeper, the slight variations in these parameters in the structure will be amplified. The change of the input distribution of each layer requires that the subsequent layer continuously obeys the updated distribution, thereby reducing the stability of the training process and the stability of the model.
Considering that a residual neural network having a six-layer structure may suffer from the same problems as described above, the stability of the training iteration and the stability of the model are enhanced using batch normalization. The batch normalization operation has 4 layers:
(1) given a small batch B, the average of all elements in the small batch B is obtained by the following formula:
Figure SMS_10
where m represents the number of samples in each small lot B.
(2) Calculating mu B Corresponding variance
Figure SMS_11
Specifically, the method comprises the following steps: />
Figure SMS_12
Calculating to obtain;
(3) available μ for batch normalization operation B And
Figure SMS_13
expressed as: />
Figure SMS_14
Wherein epsilon is a small value for preventing ^ er>
Figure SMS_15
The problem of unstable parameters caused by time;
(4) the normalized hidden layer representation can be scaled and moved by two learnable parameters γ and β:
Figure SMS_16
wherein gamma represents a scaling parameter, beta represents a displacement parameter for enhancing the expression capability of a hidden layer in a residual neural network, and both gamma and beta can be obtained by training and learning, wherein the specific calculation flow of batch normalization conversion is as follows:
order:
Figure SMS_17
minimum batch size th Hidden layer representation;
l: the number of layers;
m: the number of samples in each small batch;
γ: scaling parameters, which can be learned;
beta: displacement parameters which can be obtained by learning;
and (3) outputting:
Figure SMS_18
1: for L =1,2,3, ·, L;
2: updating mu B
Figure SMS_19
3: updating
Figure SMS_20
Figure SMS_21
4: small batch normalization was performed on the hidden layer representations:
Figure SMS_22
5: scaling and translating the normalized hidden layer representation
Figure SMS_23
6: finishing;
6) Introducing a Dropout algorithm into the constructed residual neural network, specifically:
deep complex architectures with limited training data sets typically force the network to adapt to input characteristics during training, which is referred to as overfitting or co-adaptation. Dropout is an algorithm with low computational cost (computational complexity O (n)), and in each training iteration, non-output neurons are randomly suspended from a nonlinear model, so that effective solution is realized. Specifically, the dropout mechanism extracts the binary mask multiplied by the hidden representation generated from the neural network input and hidden layer, and the output value multiplied by 0 neuron is temporarily deleted in the current iteration process. The mask samples of each layer are independent, and the probability that the sample value in the mask is 1 is a predefined hyper-parameter of the whole network. With reference to the formula:
Figure SMS_24
the mathematical expression of the dropout algorithm can be represented in a hierarchical manner:
Figure SMS_25
d~Bernoulli(p′);
wherein
Figure SMS_26
Is a dot product operation by elements, d 1 Is a th The dropout mask of a layer, p' is a pre-defined dropout hyper-parameter before training.
S14, training, specifically:
(1) a reverse training strategy, specifically:
the problem of optimizing the irrigation and fertilization system by using the traditional water conservancy method needs to be solved through a complex process of inputting field measured data (including indexes such as irrigation and fertilization systems, soil physicochemical properties and the like), simulating soil index rules under different irrigation systems and further calculating and optimizing the irrigation system, and the defects of zigzag solving process, low calculation efficiency, artificial subjective analysis errors and the like exist. The causal relationship between irrigation and fertilization and soil salinity objectively exists, namely the soil salinity is changed due to irrigation of brackish water and application of nitrogen fertilizer, the objective causal relationship is not changed due to reverse solution, and therefore the irrigation and fertilization system can be efficiently and accurately predicted and optimized by utilizing the reverse solution of the neural network model.
Based on the method, a reverse training strategy is firstly proposed and applied to a reverse residual error neural network (RDR) model, and after field data are input, an irrigation and fertilization system can be efficiently solved and optimized directly according to target soil indexes. Specifically, the inverse training strategy changes the output end of the traditional model into the input end, reversely learns the mapping between the two, and the input end of the traditional model into the output end.
It is worth mentioning that the reverse training strategy provided by the application is not only applied to the RDR model, but also can be widely adapted to other water conservancy models based on a deep learning framework so as to achieve the purpose of efficiently and accurately optimizing the irrigation scheme.
(2) Setting an objective function, specifically: the square error MSE, mean absolute error MAE and root mean square error RMSE are widely used in farmland water and soil, but they tend to sensitively fit outliers in the data, which may negatively impact model performance. To enhance the robustness of the RDR proposed by the present application, the present application takes the Huber loss function (also called smooth L1 loss function) as an objective function to calculate the gradient and eventually update the model. The Huber loss essentially balances the contour sensitivity of RMSE and the contour kurtosis of the mean absolute error MAE by employing the following piecewise definitions:
Figure SMS_27
where k is a balancer, the loss is amplified using linear operations if the value of y-f (x) is greater than k, and the loss is reduced using quadratic equations when the value is less than or equal to k.
(3) Model optimization, in particular:
different from the problems that the repeated iteration of a large slope is not converged and all neural network parameters can only adopt a uniform learning rate due to the adoption of a random gradient descent method (SGD) in the previous research, the reverse residual error neural network disclosed by the application realizes stable convergence in the training process by utilizing Adma algorithm optimization. The two basic components of the Adma optimizer, the Adma algorithm, are a momentum term v and an exponentially weighted moving average term s (also called leakage average), both of which are typically initialized to zero. The momentum v accumulates the previous gradient elements:
Figure SMS_28
to reduce the gradient variance, the formula is as follows:
v t =β v v t-1 +(1-β v )g t
to obtain
Figure SMS_29
Where t is the iteration step size, and β v ∈ [0,1) controls the number of previous gradient gradients that would affect the direction of descent for the current step size. The exponentially weighted moving average term s accumulates the previous gradient variance element by element to give each parameter an individual learning rate:
Figure SMS_30
notably, since v 0 And s 0 Are initialized to zero and thus a large number of deviations will initially tend primarily to small values. To correct this problem, v is t And s t Is re-normalized so that the sum of the terms for all steps is 1, called bias correction,specifically, the method comprises the following steps:
v is to be t The deviation is corrected as follows:
Figure SMS_31
similarly, will s t The deviation is corrected as follows:
Figure SMS_32
using corrected deviations
Figure SMS_33
And &>
Figure SMS_34
The gradient of each element in the network parameters may be rescaled as follows: />
Figure SMS_35
Where δ is a predefined learning rate and ε is a very small constant for numerical stability. The point-by-point element update can be written as follows: />
Figure SMS_36
The algorithm flow of the Adma algorithm optimization is as follows:
order: b = { x = 1 ,…,x m Are respectively corresponding to y (i)
m: the number of samples in each small batch;
t: the number of iteration steps;
v: a momentum term;
s: the leakage average term is an exponential weighted moving average term;
β v : v is a non-negative hyperparameter;
β s : a non-negative hyperparameter of s;
epsilon: small constants for numerical stability;
initialization: v =0,s =0;
1.t =0,1, 2.., T performs a for loop;
2. producing a gradual change
Figure SMS_37
3.t=t+1;
4. Calculating momentum items: v. of t =β v v t-1 +(1-β v )g t
5. Calculating the leakage average term:
Figure SMS_38
6. deviation correction of momentum term:
Figure SMS_39
/>
7. bias correction of the leakage average term:
Figure SMS_40
8. rescaling the fade:
Figure SMS_41
9. and (3) updating parameters:
Figure SMS_42
10. ending;
the process of applying the inverse residual neural network is as follows:
order:
B x ={x 1 ,,,,,x m }: a small batch B of training data sets;
l: number of layers
m: the number of samples in each small batch;
1.t =0,1,2, 3.., T performs a for loop;
2. from band with corresponding y i For mini-batch B containing m data in the training data set of (1) x Sampling is carried out;
3.l =1,2, 3.., L performs a for loop;
4. using affine transformations, reference, layer by layer
Figure SMS_43
Obtaining: h is 1 =x i W 1 +b 1
Figure SMS_44
5. Reference formula
Figure SMS_45
Applying nonlinear activation function conversion;
6. reference to
Figure SMS_46
d-Bernoulli (p') applies dropout mechanism;
7. reference formula
Figure SMS_47
Applying batch normalization;
8. end of
9. According to the formula:
Figure SMS_48
updating the RDR by using gradient calculation loss;
10. ending;
11. returning to obtain y' according to the expected value;
s15, model testing:
1) The model test contains 540 (108 × 5) data sets, representing a total of 108 groups, each group containing 5 data, respectively: and at any historical preset time, randomly extracting 80% of an original data set as a training set of RDR (resource data record) and 20% of the original data set as a verification set, wherein the historical target value of the water content of the soil, the historical preset value of the EC (environmental impact) value of the soil, namely the historical preset value of the conductivity of the soil, the historical target value of the pH value of the soil, the historical target value of the depth of the soil layer, and the corresponding target irrigation quantity and target nitrogen application quantity. Representing a set of included vectors;
2) The performance of the model is evaluated by Mean Square Error (MSE), mean Absolute Error (MAE) and Root Mean Square Error (RMSE). The mean square error can reflect the degree of difference between the analog value and the measured value; mean absolute error can be avoidedThe error is avoided from being mutually counteracted, so that the actual prediction error is accurately reflected; the root mean square error can be used to estimate the variance of the error, independent of sample size, reflecting the degree of dispersion of the model, the smaller the value of the mean square error, the more stable the model, wherein,
Figure SMS_49
Figure SMS_50
wherein S is i Is an analog value; m is a group of i Is an actual measurement value; i is an observation point; n 'is the total number of observation points, and n' is 540 in this experiment.
3) Based on two groups of variables of the irrigation quantity and the nitrogen application quantity, table 3 contrasts and analyzes the MSE, MAE and RMSE values of a linear support vector machine, a poly support vector machine, an rbf support vector machine, LOR, LR, a traditional BP neural network and a reverse residual deep neural network (RDR model) provided by the application.
Figure SMS_51
TABLE 3
As can be seen from table 3, the inverse residual deep neural network proposed in the present application performs better than the conventional model. Specifically, the method comprises the following steps: in the aspect of irrigation, the MSE of the RDR model is averagely improved by 60.72 percent compared with the traditional model, the MAE of the RDR model is improved by 48.94 percent compared with the traditional model, and the RMSE of the RDR model is improved by 68.65 percent compared with the traditional model; in the aspect of fertilization, the MSE of the RDR model is improved by 75.82% compared with the traditional model, the MAE of the RDR model is improved by 62.91% compared with the traditional model, and the RMSE of the RDR model is improved by 79.90% compared with the traditional model.
The reverse residual deep neural network (RDR) model constructed by the method has the following advantages:
1) Creatively adopting pluggable Block design, constructing a hidden layer into a residual function to achieve high-dimensional mapping of a model, and highly fitting an actual application scene of irrigation and water conservancy; the model adopts a reverse training strategy, can directly simulate and optimize a water and fertilizer strategy according to the salt content of target soil, and is an innovation of irrigation and water conservancy.
2) The RDR model after training and adjustment can well predict the irrigation quantity and the nitrogen application quantity, the mean square error, the mean absolute error and the root mean square error of the RDR model are verified, the reverse RMSE value range of the model is between 0.0024 and 0.0049, the model precision is high, the simulation requirement is met, and a powerful technical means is provided for optimizing the field irrigation and fertilization strategy.
3) The method is used for designing and constructing a brand-new deep neural network model and a brand-new training strategy aiming at the specific problems of the irrigation and water conservancy, primarily exploring artificial intelligence to solve the specific problems of the irrigation and water conservancy field based on a machine learning theory and field actual measurement data, and has important significance for improving salinized soil and saving fresh water resources.
S16, applying the trained reverse residual error deep neural network, specifically:
1) Source of model data, specifically:
(1) irrigation and fertilization data: the tests were carried out in 2016, 2017 at the inner Mongolia Wulat front flag Red toilet test station (108 ℃ 45'-109 ℃ 36' E,40 ℃ 30'-40 ℃ 40' N). In the test, brackish water is adopted for carrying out drip irrigation in different growth periods of the medlar for 8 times all the year, the irrigation quota, namely the irrigation quantity is set to be 232.5mm, 285mm and 375mm, the total three levels are three, the nitrogen fertilizer applied in the test is urea, diammonium phosphate and phosphorus nitrate, and the nitrogen application quantity is set to be 210kg/hm 2 、525kg/hm 2 、750kg/hm 2 、975kg/hm 2 Total 4 levels. And 3 times of repeated tests are set for each treatment, and a 1m water-stop sheet is adopted for seepage-proofing isolation among cells.
Wherein, different growth periods include: the method comprises the following steps of (1) a germination period, a spring shoot growing period, a flowering period, a fruit expansion initial period, a fruit expansion period, a Xia Chengguo initial period, a summer full bearing period and a Xia Chengguo later period, specifically, the germination period is carried out from the 1 st day, the spring shoot growing period is started from the 4 th day, the flowering period is started from the 28 th day, the fruit expansion initial period is started from the 42 th day, the fruit expansion period is started from the 60 th day, the fruit expansion period is started from the 79 th day, the Xia Chengguo initial period is started from the 94 th day, the summer full bearing period is started from the 125 th day, the Xia Chengguo later period is started, and the 1 st day, the 4 th day, the 28 th day, the 42 th day, the 60 th day, the 79 th day, the 94 th day and the 125 th day are preset time points;
soil is taken by a soil drill before and after each irrigation, the depth of the soil taking layer is 100cm, wherein 0-40 cm per 10cm is a soil taking layer, 40-100 cm per 20cm is a soil taking layer, and the total number of the soil taking layers is 7. The observation items comprise soil moisture content, soil conductivity, namely a soil EC value and a soil pH value.
(2) Selecting target soil salinity parameters:
the soil conductivity can represent the soil salinization degree, the soil pH value can represent the soil pH value, and no unified division standard is available for the soil salinization degree and the soil pH value. The standard of the salinization degree of the soil in the inner Mongolia river-sleeve irrigation area is divided according to the conductivity and the total salt content of the soil, and the standard of the EC value of the soil of 0-100cm is shown in Table 4. The alkaline earth classification standard which is characterized by pH in certain area of inner Mongolia is summarized by referring to the division of alkaline earth at home and abroad, and as shown in table 5, the reference standard is adopted for soil division in the test area.
Figure SMS_52
TABLE 4
Type of soil Mild alkaline earth Moderate alkaline soil Heavy alkaline earth Alkaline earth
pH value 7.5~8.5 8.5~9.5 9.5~10.0 >10.0
TABLE 5
The average EC value of 0-100cm of the current soil is 1.58mS/cm, belonging to heavily salinized soil; the pH value is 8.12, the soil belongs to mild alkaline soil, and the average water content of each soil layer is 26.25%. Therefore, the target EC values of the heavily saline soil, the moderately saline soil and the lightly saline soil are respectively set to be 1.28mS/cm, 0.85mS/cm and 0.61mS/cm, and the target pH average value of the three types of saline soil is 8. On the basis, an optimized water-fertilizer scheme, namely a saline soil water-fertilizer strategy, aiming at the severe saline soil, the moderate saline soil and the mild saline soil is constructed by using RDR.
2) Response of soil conductivity to different water and fertilizer strategies and distribution rules thereof (non-RDR model analysis): as can be seen from FIGS. 7 to 9, the maximum values of the conductivity of the treatments occur in the soil layers of 0 to 10cm and 80 to 100cm, and most of the salinity is accumulated on the surface layer or deep layer of the soil. The average conductivity value for the W3N0 treatment in each treatment was the smallest and 1.13mS/cm, and the average conductivity for the W2N0 treatment was the largest and 2.27mS/cm. In 8 treatments of W1 and W2, the EC values show the trend that the EC values are firstly reduced and then increased along with the increase of the depth of the soil layer and then slowly reduced; and the EC value under the W3 treatment is reduced in a soil layer of 0-30cm and basically kept unchanged in a soil layer of 30-100 cm. In the W1 treatment, the soil salt is divided into N3 > N1 > N0 > N2, in the W2 treatment, the soil salt is divided into N0 > N1 > N3 > N2, in the W3 treatment, the soil salt is divided into N3 > N1 > N2 > N0, and it can be seen that the nitrogen application level under different irrigation levels has different influences on the EC value of the soil.
Irrigation and fertilization of brackish water in salinized irrigation areas have important influence on soil salinity. The balance relation between the salt content of the salinized soil and the salt content brought into/leached by the brackish water is complex, and the mechanism that the saline content of the soil is influenced by changing the soil structure by applying fertilizer under the condition of brackish water irrigation needs to be further disclosed. The average conductivity value of the soil under different water and fertilizer treatments is analyzed by variance, as shown in fig. 6, the average conductivity of the soil under the W1N3 treatment is the largest and is 1.8643mS/cm, and the different fertilization levels under the W1 treatment have no significant difference; and compared with the W1N3, the average conductivity of the soil treated by the W2N2, the W3N2 and the W2N3 is respectively and obviously reduced by 38.01 percent, 33.41 percent and 32.18 percent. The two-factor variance significance test is carried out on the soil conductivity of different irrigation and fertilization treatments, the irrigation level difference is significant (P is less than 0.05), and the influence of fertilization and water and fertilizer interaction on the soil conductivity is not significant. Further, based on multiple comparisons of soil EC values with water irrigation by Bonferroni method, as shown in table 7, it was found that there was significant difference between W1 and W2, and between W1 and W3, and no significant difference between W2 and W3. Judging W2N2 to be better treatment based on the analysis of variance result, and W3N2 times; it can be seen that the traditional analysis means can only select the better treatment from the existing water irrigation and fertilization levels, the limited field test limits the number of test treatments, and the simulation of the water irrigation and fertilization amount in each treatment room (such as within the W1 and W2 levels) cannot be carried out.
Figure SMS_53
Figure SMS_54
TABLE 6
(I) Irrigation water (J) Irrigation water Average difference (I-J) Significance of
W1 W2 0.6029* 0.000
W3 0.3733* 0.016
W2 W1 -0.6029* 0.000
W3 -0.2295 0.237
W3 W1 -0.3733* 0.016
W2 0.2295 0.237
TABLE 7
3) Field data verification based on the RDR model:
when the RDR model is used for solving the field practical problem, the validity of the model needs to be verified in advance. Considering that the output end of the reverse model RDR is different water and fertilizer strategies, namely different water and fertilizer strategies of the saline soil, including different target irrigation amounts and different target nitrogen application amounts; in the actual field test, 3-4 variables are set in advance by using irrigation and fertilization processing, and the number of the variables is not consistent with the number of output ends of a reverse training model; the input end of the reverse model is light, medium and heavy salinized soil data, and the test field is heavy salinized soil at the moment, so that the light, medium and heavy salinized soil salinity environment data cannot be provided. Therefore, the field data verification part adjusts the RDR structure to be in the forward direction, the input end of the model is the actual field irrigation quantity and nitrogen application quantity, the value of the soil conductivity, the value of the soil pH value and the value of the soil moisture content are output in a simulation mode, and the actual soil data, namely the actual value of the soil conductivity, the actual value of the soil pH value and the actual value of the soil moisture content, are compared and analyzed, and the results are shown in the figures 10 to 12. The result shows that the RMSE value range is between 0.0131 and 0.1814, and the precision is higher.
4) The method comprises the following steps of optimizing water-fertilizer coupling strategy simulation based on the RDR for saline soil with different degrees, specifically:
the RDR model can simulate the total irrigation amount and the total nitrogen application amount under different salinized soil targets, can also simulate the irrigation amount and the fertilization amount in different growth periods, and controls the irrigation time and the irrigation frequency.
1) The slightly saline soil is taken as a target for explanation, and specifically: the preset value of the soil conductivity of the slightly saline soil is 0.61mS/cm, the target value of the soil pH value is 8.0, the target value of the soil water content is 26.25%, the preset time point is set as the time point when the growth period is ended, and by combining with an RDR (resource description record) model, the obtained target irrigation quantity, namely the optimized total irrigation quantity is 284.17mm, and the target nitrogen application quantity, namely the optimized total fertilizer application quantity is 603.01kg/hm 2 That is, the total irrigation amount in the whole growth period is 284.17mm, and the total irrigation amount in the whole growth period is 603.01kg/hm 2
2) The medium saline soil is taken as a target for explanation, and specifically: the preset value of the soil conductivity of the moderately saline soil is 0.85mS/cm, the target value of the soil pH value is 8.0, the target value of the soil water content is 26.25%, the preset time point is set as the time point when the growth period is finished, and by combining with an RDR model, the obtained target irrigation quantity, namely the optimized total irrigation quantity is 280.06mm, the target nitrogen application quantity, namely the optimized total fertilizer application quantity is 588.95kg/hm 2 That is, throughout the whole of the birthThe total irrigation amount in the breeding period is 280.06mm, and the total irrigation amount in the whole breeding period is 588.95kg/hm 2
3) The description is given by taking heavily saline soil as an object, and specifically comprises the following steps: the preset value of the soil conductivity of the moderately saline soil is 1.28mS/cm, the target value of the soil pH value is 8.0, the target value of the soil water content is 26.25%, the preset time point is set as the time point when the growth period is finished, and by combining with an RDR model, the obtained target irrigation quantity, namely the optimized total irrigation quantity is 267.61mm, the target nitrogen application quantity, namely the optimized total fertilizer application quantity is 537.80kg/hm 2 That is, the total irrigation amount in the whole growth period is 267.61mm, and the total irrigation amount in the whole growth period is 537.80kg/hm 2
4) Taking 8 times of drip irrigation as an example, the preset time points of each time are set on the 1 st, 10 th, 28 th, 42 th, 60 th, 79 th, 94 th and 125 th days to correspond to the time points of entering different growth periods, then:
(1) the slightly saline soil is taken as a target for explanation, and specifically: the preset value of the soil conductivity of the slightly saline soil is 0.61mS/cm, the target value of the soil pH value is 8.0, and the target value of the soil water content is 26.25%, and by combining an RDR model, the target irrigation amounts on the 1 st day, the 10 th day, the 28 th day, the 42 th day, the 60 th day, the 79 th day, the 94 th day and the 125 th day are obtained, wherein the preset value of the soil conductivity of the slightly saline soil is the average value of the soil conductivity of 0-100cm soil layers, the soil pH value of the slightly saline soil is the average value of the soil pH values of 0-100cm soil layers, and the soil water content of the slightly saline soil is the average value of the soil water content of 0-100cm soil layers;
(2) the medium saline soil is taken as a target for explanation, and specifically: the preset value of the soil conductivity of the moderately saline soil is 0.85mS/cm, the target value of the soil pH value is 8.0, and the target value of the soil water content is 26.25%, and the target irrigation amount on the 1 st day, the 10 th day, the 28 th day, the 42 th day, the 60 th day, the 79 th day, the 94 th day and the 125 th day is obtained by combining an RDR model, wherein the preset value of the soil conductivity of the moderately saline soil is the average value of the soil conductivity of soil layers of 0-100cm, the soil pH value of the moderately saline soil is the average value of the soil pH values of 0-100cm, and the soil water content of the moderately saline soil is the average value of the soil water content of the soil layers of 0-100 cm;
(3) the description is given by taking heavily saline soil as an object, and specifically comprises the following steps: the preset value of the soil conductivity of the moderately saline soil is 1.28mS/cm, the target value of the soil pH value is 8.0, and the target value of the soil water content is 26.25%, and by combining an RDR model, the target irrigation quantity on the 1 st day, the 10 th day, the 28 th day, the 42 th day, the 60 th day, the 79 th day, the 94 th day and the 125 th day is obtained, wherein the preset value of the soil conductivity of the heavily saline soil is the average value of the soil conductivity of 0-100cm soil layers, the soil pH value of the heavily saline soil is the average value of the soil pH values of 0-100cm soil layers, and the soil water content of the heavily saline soil is the average value of the soil water content of 0-100cm soil layers;
when the soil is slightly saline soil, moderate saline soil and severe saline soil, the target irrigation amount and the target nitrogen application amount of the medlar in each growth period are shown in figures 13 and 14, and the irrigation difference under different saline soil degrees is mainly reflected in the initial fruit expansion stage and the initial stage Xia Chengguo; the difference in fertilization was also in the early stages of fruit enlargement and Xia Chengguo. Therefore, the irrigation and fertilization control in the two growth periods has important significance for controlling the soil salinization.
5) The method comprises the following steps of simulating water, fertilizer and salt under saline soil of different degrees based on an RDR model, specifically:
the soil conductivity and different water and fertilizer coupling strategies, namely the saline soil water and fertilizer strategy, present a complex nonlinear relation, and the RDR model can better fit the complex relation among salinity, irrigation quantity and fertilization. As can be seen from fig. 15 to 17:
if the salinization degree of the soil is reduced, the irrigation amount and the fertilization amount need to be increased to a certain degree. Although brackish water contains some salt as a source of irrigation water, the salt flushed out by irrigation is still more than the salt carried into the soil by the brackish water itself, for example:
if the original heavy saline soil is improved into light saline soil, the proper brackish water irrigation level is 283-284 mm, and the fertilization level is 601-605 kg/hm 2 . As can be seen from fig. 15, the soil EC value and the irrigation level map indicating the irrigation amount and nitrogen application amount are flat, and the minimum value appears at the edge.
If the original heavy saline soil is improved to medium saline soil, the irrigation amount is 277-281 mm, and the nitrogen application amount is 581-595 kg/hm 2 It is more suitable. As can be seen from FIG. 16, the soil EC values and the irrigation level map indicating the irrigation amount and nitrogen application amount are convex, and the minimum value appears at the edge. The proper irrigation level for maintaining the heavily saline soil is 266-268 mm, and the proper fertilization level is 531-543 kg/hm 2 . As can be seen from fig. 17, the soil EC value and irrigation level are concave, with the minimum occurring within the irrigation range.
In salinized soil, when the irrigation quantity is constant, the EC value of the soil shows three rules: firstly, the EC value of the soil is increased (slightly saline soil) along with the increase of the fertilizing amount; secondly, the EC value of the soil is decreased and then increased along with the increase of the fertilizing amount (moderate and severe saline soil); and thirdly, the EC value of the soil is reduced along with the increase of the fertilizing amount (the soil is heavily saline). When the fertilizing amount is fixed, the EC value of the soil shows three different rules: firstly, the EC value of the soil is reduced along with the increase of the irrigation quantity (slightly saline soil); the EC value of the soil rises firstly and then falls (moderately saline soil) along with the increase of the irrigation quantity; and thirdly, the EC value of the soil is firstly reduced and then increased along with the increase of the irrigation quantity (the soil is heavily salinized).
As shown in FIG. 15, the irrigation amount of the slightly saline soil is 283.6-284.8 mm, and the soil salinity increases in the nitrogen application amount when the irrigation amount is constant, so that the whole soil is in an upward trend; when the fertilizing amount is constant, the soil EC value in the slightly saline soil is in a whole descending trend along with the increase of the watering amount. The soil salinity in the slightly saline soil is less, the soil is greatly influenced by two factors of water filling and fertilizer application, on one hand, the EC value of the soil is increased by applying the fertilizer at a certain time according to the water filling amount, on the other hand, the water filling amount of the slightly saline water is less, the salt brought into the soil by the slightly saline water is limited when the fertilizer is applied at a certain time, and the effect of washing the soil salinity by the slightly saline water is exerted to a greater extent.
In moderately saline soil, the soil salinization rule of a part of soil is the same as that of slightly saline soil when the irrigation quantity is constant, and the soil EC value change rule of moderately and severely saline soil is complex. When the water irrigation amount is constant, the EC value of the soil under partial water irrigation amount (279.5-281 mm) after the nitrogen fertilizer application is increased and the increase rate is different, and the EC value of the soil under the other water irrigation amount (278-279.5 mm) firstly decreases and then increases along with the increase of the fertilizer application amount, as shown in figure 16. The part that the irrigation amount is increased to a certain extent and the salinity is reduced indicates that the soil leached by the brackish water has more salinity, when the fertilization amount is increased to a certain extent, the salt leached by the brackish water is less than the salinity brought into the soil by the nitrogen fertilizer, and the salinity is increased along with the increase of the fertilization amount. When the fertilizing amount is constant, the EC value of the soil in the moderately saline soil integrally rises and then falls along with the increase of the watering amount, and the salt rises and falls at different rates under different fertilizing amounts. The soil salt leaching capability of the brackish water is gradually increased along with the irrigation quantity. When the irrigation quantity is small, the salt leaching capacity is small, the EC value of the soil is in an ascending trend, and at the moment, the soil salt comes from two aspects of brackish water and nitrogen fertilizer. Along with the increase of the irrigation quantity, when the leaching capacity of brackish water is increased, the EC value of the soil is in a descending trend.
In the heavily salinized soil, the salinization rule of partial soil is the same as that of moderately salinized soil when the irrigation quantity is constant. In heavily saline soils, a "diagonal line" appears, as shown in FIG. 17. When the irrigation amount is in the range of 267-268.5 mm and the irrigation amount is unchanged, the EC value of the soil is reduced when the fertilizing amount is increased, and at the moment, the slightly saline water leaches more soil salt. In addition, the content of salt in soil has great influence on the quantity of soil aggregates, the increase of salinization degree can cause the quantity of soil plough layer aggregates to be reduced [19], and the increase of fertilizing amount in heavily salinized soil can cause the soil structure to be looser and easy to wash salt. When the irrigation quantity is within the range of 266-267 mm, the soil EC value decreases firstly along with the increase of the fertilizing quantity, and after the soil EC value decreases and exceeds the 'diagonal line', the soil EC value increases. The part of the soil with reduced EC value shows that the soil structure is loosened by fertilization at the moment, and more salinity is leached by moisture; and reach the function department that "broken line" represents, the ability that represents fertilizer soil loosening structure reaches the threshold value, and soil is too tight at this moment, and difficult salinity is difficult to be rinsed, and soil salinity increases. The loosening capacity threshold of the fertilizer to soil is different under different irrigation quantities, so that a 'broken line' function is formed. When the fertilizing amount is fixed, the soil EC value firstly decreases and then increases along with the increase of the irrigation amount. With the increase of irrigation quantity, the salt content carried into the soil by the brackish water is gradually more than that leached by the brackish water, and the EC value of the soil is increased.
Compared with the traditional fresh water irrigation, the brackish water irrigation provides water required by the growth of crops on one hand, and increases the salinity in the soil on the other hand, thereby influencing the soil quality and the growth of the crops. Research shows that after the growth period of crops is over, soil in soil layer of 0-20 cm is treated by brackish water without obvious desalting and salt accumulation; soil in soil layers of 20-40 cm and 40-120 cm are in different salt accumulation states. Research results show that 3g/L of brackish water can be used as irrigation water for winter wheat, but continuous use can cause salt accumulation in soil. The field test result shows that the saline water irrigation is carried out on the saline soil, the soil in the growth period is in a salt accumulation state, but the saline water irrigation does not have great threat to the growth and the yield of crops. Therefore, the long-term utilization of brackish water for irrigation can generate adverse effects on soil, and the scientific, reasonable, efficient and safe utilization of brackish water is always a core problem concerned by farmland irrigation.
Under the condition of a certain underlying surface and certain drainage conditions, the increase of soil salinity depends on the mineralization degree of irrigation water, the irrigation times and the irrigation quantity. Some researchers adopt a 'brackish water' irrigation mode to carry out long-term brackish water irrigation, and the result shows that the desalination amount of the whole research area in the non-growth period is larger than the salt deposition amount in the growth period, and the salinity is mainly discharged outside the area through a drainage ditch system, so that the soil is in a desalination trend overall. From the aspect of irrigation quantity, researches show that brackish water infiltrates to wash the alkaline soil, the salt content of the same soil layer is gradually reduced along with the increase of infiltration water quantity, and the salt washing depth is increased. The application explores the suitable brackish water irrigation quantity based on the soil salinity, not only considers the factor that the brackish water brings the salinity into the soil, but also analyzes the leaching effect of the brackish water on the soil salinity, and has certain scientific basis.
The fertilization also has certain influence on the soil salinity, and when the irrigation amount is constant, the soil salinity index can be improved by increasing the fertilization fertilizer. There is a paper that "whether light or moderately saline soil, the depth to which salt is washed increases with increasing irrigation. When the irrigation amount is the same, the soil is more saline when nitrogen is applied. "substantially in agreement with the results presented in fig. 15 and 16 of the present application. There are other documents which also show that "increasing the application of nitrogen fertilizers at the same irrigation quantityRelatively increasing soil salinity ". Studies have shown that over-fertilization during early plant development may lead to salinization and reduced pod yield. In the application, the fertilizer used for topdressing in the test area is urea, and researches show that after urea is hydrolyzed, NH4 is mainly used + 、NO 3- The (ionic) form exists in soil for crops to absorb and utilize, so that the excessive application of urea in saline soil increases the soil salinity except the absorption and utilization of crops. Based on the research results, the complex nonlinear relation between brackish water irrigation-fertilization and soil salinity is considered, the influence of two factors of irrigation and fertilization on the soil salinity is comprehensively analyzed by adopting an efficient means, and the dynamic law of the soil salinity is more comprehensively and accurately explained.
Most of the traditional water and fertilizer optimizing methods are based on the change of the soil conductivity under different irrigation strategies in the growth period so as to select the optimized water and fertilizer amount, and the optimal treatment is W2N2 based on traditional analysis means such as variance analysis. Although such methods are feasible, certain disadvantages remain to be improved. The optimized value under the method can only be screened in the existing water and fertilizer treatment, and whether the optimal irrigation quantity or fertilization quantity appears between the two treatments cannot be ensured.
Further, many scholars seek a suitable application range by establishing a water-fertilizer interaction curved surface through a simulation means. At present, the curved surface related to the water and fertilizer interaction effect is researched aiming at crop yield, quality and the like, and the soil salinity is analyzed innovatively.
In the application, the drawing method of the water-nitrogen interaction effect curved surface is different from that of the predecessor. The two-factor interactive effect curved surface of the existing research is mostly obtained by two-dimensional relation calculation, and a two-dimensional regression model is established by using Matlab so as to draw a three-dimensional water-nitrogen interactive effect curved surface; the method includes the steps that an artificial intelligence model RDR learning data rule is utilized to directly obtain irrigation and fertilization values under target saline soil, namely a saline soil water and fertilizer strategy corresponding to soil with soil conductivity as a preset value, namely a preset value of the soil conductivity at a preset time point for representing the soil salinization degree is determined, and a target value of each parameter related to the soil salinization at the preset time point is determined; inputting the preset values and all target values into a trained reverse residual error neural network, obtaining a saline soil water and fertilizer strategy corresponding to the soil with the soil conductivity as the preset values and comprising target irrigation quantity and target nitrogen application quantity, further drawing a water and nitrogen interaction effect three-dimensional graph, and obtaining a RDR (resource data record) optimized water and fertilizer strategy based on the light saline soil, wherein the RDR optimized water and fertilizer strategy comprises the following steps: the total irrigation amount of the fertilizer is 284.17mm all the year round, the total fertilizer application amount is 603.01kg/hm & lt 2 & gt, namely the irrigation is basically maintained at the original water level, and the fertilizer application amount needs to be reduced by 19.85 percent on the basis of the original medium fertilizer application. It can be seen that the model analysis results are significantly different from those of the conventional means at the fertilization level. In the traditional analysis means, the difference between brackish water irrigation in a salinized irrigation area and fertilization treatment under a nitrogen fertilizer application condition is not obvious, so that the mechanism of influencing soil salinity by different fertilization levels cannot be further analyzed, but the RDR can accurately learn any characteristics of the influence of irrigation and fertilization on soil salinity, and further more strictly optimize the nitrogen application amount between N1 and N2.
The continuity of different depth soil layers has mostly been considered in the present fitting relation between relevant liquid manure and the salt content, and it is fresh to use the soil salinized soil of different degree as continuous variable analysis its liquid manure strategy that corresponds. The method is primarily explored aiming at water and fertilizer strategies under different salinized soils, and complex fitting curve relations are presented between irrigation, fertilization and soil EC values in the process from severe salinized soil to mild salinized soil.
Traditional artificial intelligence models such as a linear support vector machine, a BP neural network and the like are forward training models, and have the defects that the number of layers is too shallow, and an activation function is not used or cannot be used correctly. The RDR model breaks through a forward training mode of a traditional model, and a reverse training strategy is used for directly solving and optimizing a water and fertilizer strategy according to the salt content of the target soil. The RDR has a complex network structure (the model has 6 layers and 768 nodes), and the nonlinear transformation of the model is completed by using a ReLU activation function with less computation loss and no gradient disappearance. The model uses batch normalization to strengthen the stability of training iteration and improve the stability of the model, and a dropout module is used to prevent overfitting of the model. In addition, a pluggable Block module is innovatively constructed by the RDR, and the recombination mapping relation is x to f (x) -x, so that the optimization and training performance of the model is improved. Therefore, the machine learning model data of two variable groups of irrigation and fertilization prove that the RDR model is more authentic and effective. The water irrigation, fertilization and salinity three-dimensional graph further drawn by using the RDR model simulation data can not only fully analyze the two-dimensional relationship among the indexes, but also explore the complex rule which is not reflected by the two-dimensional relationship to a certain extent.
The salinized soil can be divided into different types such as soda type, halogenated type and the like, and the non-salinized soil is also distinguished due to different soil fertility, soil matrix and the like, so the farmland soil has stronger regional characteristics. The traditional model needs to manually input basic data required by the model before simulating a non-test area irrigation system, and the acquisition of the basic data consumes manpower and material resources in the field sampling process and the like. On the premise that enough irrigation and construction systems and soil data exist, the RDR obtained by big data training has stronger generalization capability, and the optimal irrigation and construction system of a certain area can be simulated and predicted by a target value under the condition that no basic data exists in the new area.
Under the premise that the factors meet the condition that objective causal relationship exists, target data indexes of the reverse training plan are not limited to soil salinity, can also be set as soil fertility indexes (such as nitrogen, phosphorus and potassium), crop indexes (including crop yield and quality) and the like, and a reverse training system can be established based on sufficient multi-dimensional data support. The reverse training system can learn the mapping relation between the multidimensional input end and the output end, the response degree (expressed by the weight w) of soil salinity, fertility, crop quality and the like to the irrigation system can be clarified, the multidimensional indexes occupy different weights, and the optimal irrigation system and the realization probability thereof can be obtained by inputting expected target data.
The optimized water and fertilizer treatment obtained based on the traditional analysis means is W2N2, the water and fertilizer value which is not set for treatment can be considered in the RDR model simulation result, the result is more rigorous compared with the traditional analysis means, and the learning capability of RDR is not restricted by the significance of factors.
RDR simulation results show that complex fitting curve relations are presented among irrigation, fertilization and soil EC values. If the soil in the test area is improved to be slightly saline soil (0.65 mS/cm), the fertilizing amount needs to be reduced by 19.85 percent on the basis of the original medium fertilizing amount, and the total brackish water irrigation amount is basically maintained at the original medium irrigation level.
On the premise of large enough data volume and enough data types, the target data of the RDR model is not limited to soil salinity any more, the mapping relation between other multidimensional input ends and output ends (such as soil fertility, crop quality and irrigation level) can be further learned, other requirements in the field are met, and the RDR model has a good development prospect.
The method for acquiring the saline soil water and fertilizer strategy aims to overcome the defects of the traditional water and fertilizer strategy optimization solving and construct a reverse residual error deep neural network (RDR). The RMSE value of the soil salinity index of the RDR model is positively verified to be between 0.0131 and 0.1814, and the simulation precision is high. The EC value of 79.17% of soil in the test area is higher than the standard of heavily saline soil (1.24-1.32 mS/cm), the water and fertilizer optimization strategy is reversely solved according to the ideal soil salinity index of the saline irrigation area based on RDR, and the result shows that: if the soil in the test area is improved to be slightly saline soil (0.65 mS/cm), the fertilizing amount needs to be reduced by 19.85 percent on the basis of the original medium fertilizing amount so as to reduce soil salinity brought by the fertilizing amount, and the total irrigation amount of brackish water is basically maintained at the original medium irrigation level. RDR fits a complex nonlinear relation presented by a soil EC value and different water and fertilizer coupling strategies, and reveals a dynamic rule between soil salt and brackish water-fertilizer under saline soil of different degrees.
In recent decades, artificial Intelligence (AI) technology has advanced significantly in the fields of computer vision, natural language processing, machine translation, medical imaging, medical information processing, robotics, biological information control, and the like, and has higher learning precision in various aspects such as data prediction in various scenes. The farmland water and soil environment is a complex soil-plant system, the artificial intelligence is applied to the farmland water and soil field, the trend is not blocked, especially the deep learning with the learning capability can learn the complex nonlinear relation more efficiently and accurately, and the defects which cannot be solved by the traditional analysis method are overcome.
Most of artificial intelligence applied to farmland water and soil at present is a BP neural network, and particularly in the aspect of water, fertilizer and salt coupling relation, a BP neural network model is established to predict multiple progresses of crop yield, but the following defects exist:
(1) the existing BP neural network is only provided with one or two hidden layers, the model has no good learning ability in the training process due to the shallow layer number, the generalization ability of the model is basically completely lost, and the significance of using the neural network is lost;
(2) most of the existing related works do not use an activation function correctly, and the activation function sigmiod used by the BP neural network which is widely applied at present is not suitable for data analysis and prediction in the field of farmland water and soil due to the design defect of neuron saturation and high calculation cost;
(3) the existing BP neural network solves the problem by a local classification method, and the advantage of solving the end-to-end problem by artificial intelligence is not fully exerted;
(4) the traditional data analysis method usually needs to input different water and fertilizer combinations for multiple times to predict the crop yield, and the calculation efficiency is low based on a better yield reverse-deducing optimization water and fertilizer mode. In addition, most of artificial intelligence models established in the field range of the current salinization irrigation area are limited to crop yield, and the research based on soil salinity is rare. Researches on soil salinity are mostly conducted by comparing different machine learning model performances according to regional scales, or artificial intelligence models related to soil salinity are built to predict salinity according to the regional scales, and artificial intelligence models related to farmland scales and soil salinity are not built yet.
Based on the method, the nonlinear inverse residual error Deep neural network (RDR) with the multilayer Deep network is established for the first time. The method is different from the water and fertilizer optimization mode of the traditional model, the reverse neural network training strategy used in RDR can directly obtain a water and fertilizer irrigation system by inputting the soil salinity environment, the information acquisition efficiency is improved, and the advantages of artificial intelligence from end to end are fully exerted; a dropout module is added into the RDR to prevent overfitting, and meanwhile, a large number of parameters learned in batch standardized models of batch normalization layers (batch normalization layers) are utilized to guarantee stability of model output. By using the ReLU activation function, the RDR realizes nonlinear analysis, and can solve the difficult problem of complex farmland environment. Meanwhile, the model has strong learning ability and generalization, and the model output function f (x) is skillfully changed into f (x) -x, so that the model precision is improved; the newly constructed pluggable Block (Block) in the model can be widely applied to field data analysis in other areas. The application learns the actually measured field data through a water-fertilizer coupling field test of planting the Chinese wolfberry by drip irrigation with brackish water for two years, and an RDR model is constructed. An optimized water-fertilizer coupling mode beneficial to soil salinity is obtained based on RDR, an important reference basis can be provided for optimizing a water irrigation and fertilization system and soil salt control in a salinized irrigation area, and a powerful effective scheme is provided for research on comprehensive effects of water and fertilizer in salinized soil.
The main contributions of the present application are summarized below:
1) Providing a brand new artificial intelligence model RDR which can directly obtain an optimized water and fertilizer scheme according to ideal soil salinity indexes;
2) And a brand-new artificial intelligence model training strategy beneficial to sustainable development of the saline soil of the farmland is provided.
In the above embodiments, although the steps are numbered as S1, S2, etc., but only the specific embodiments are given in the present application, and a person skilled in the art may adjust the execution sequence of S1, S2, etc. according to the actual situation, which is also within the protection scope of the present invention, it is understood that some embodiments may include some or all of the above embodiments.
As shown in fig. 18, an acquiring system 200 for a water and fertilizer strategy of saline soil according to an embodiment of the present invention includes a determining module 210 and an acquiring module 220;
the determining module 210 is configured to obtain a preset value of the soil conductivity at a preset time point, where the preset value is used to indicate a soil salination degree, and determine a target value of each parameter associated with soil salination at the preset time point;
the obtaining module 220 is configured to input the preset value and all the target values into the trained inverse residual neural network, so as to obtain a saline soil water and fertilizer strategy including a target irrigation amount and a target nitrogen application amount corresponding to the soil with the preset soil conductivity.
The constructed reverse residual error neural network can better fit the actual application scene of the irrigation and water conservancy, the reverse residual error neural network can directly simulate and optimize the salinity of the target soil corresponding to the preset value of the soil conductivity to obtain the saline soil water and fertilizer strategy, the model precision is high, the simulation requirement can be met, a powerful technical means is provided for optimizing the field irrigation and fertilizer application strategy, and the analysis efficiency is improved.
Preferably, in the above technical solution, the method further comprises a modeling module and a training module, wherein the modeling module is used for building a residual neural network;
the training module is used for training the residual error neural network by using a data set and obtaining the reverse residual error neural network by combining an Adam optimization algorithm, wherein the data set comprises: and at each historical preset time point, the historical target value of each parameter, the historical preset value of the soil conductivity, the historical target irrigation quantity and the historical target nitrogen application quantity.
Preferably, in the above technical solution, the modeling module is further configured to:
and taking the ReLU function as an activation function of the built residual error neural network.
Preferably, in the above technical solution, the modeling module is further configured to:
introducing batch normalization into the built residual error neural network;
the Dropout algorithm is introduced into the constructed residual neural network.
The above steps for realizing the corresponding functions of the parameters and the unit modules in the system 200 for acquiring water and fertilizer from saline soil according to the present invention may refer to the parameters and the steps in the above embodiment of the method for acquiring water and fertilizer from saline soil, which are not described herein again.
The storage medium stores instructions, and when the instructions are read by a computer, the computer executes the method for acquiring the water and fertilizer strategy of the saline soil.
An electronic device according to an embodiment of the present invention includes a processor and the storage medium, where the processor executes instructions in the storage medium. Wherein, the electronic equipment can be selected from computer, mobile phone, etc
As will be appreciated by one skilled in the art, the present invention may be embodied as a system, method or computer program product.
Accordingly, the present disclosure may be embodied in the form of: the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "circuit," module "or" system. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media having computer-readable program code embodied in the medium.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method for acquiring a water and fertilizer strategy of saline soil is characterized by comprising the following steps:
determining a preset value of soil conductivity at a preset time point for representing the soil salinization degree, and determining a target value of each parameter related to the soil salinization at the preset time point;
inputting the preset value and all target values into a trained reverse residual error neural network to obtain a saline soil water and fertilizer strategy which corresponds to the soil with the preset value of soil conductivity and comprises a target irrigation quantity and a target nitrogen application quantity;
the acquisition process of the trained reverse residual error neural network comprises the following steps:
defining the input end of the residual error neural network as a matrix X epsilon R n×d Where n is the sample size, d =3, { xi } i=1,2,3,4,5 E.X represents: the method comprises the steps of obtaining a vector set comprising a target value of soil water content, a preset value of soil EC (electric conductivity), a target value of soil pH value and target values of corresponding sampling time, namely a preset time point and soil depth, and during training, representing the vector set comprising a historical target value of soil water content, a historical preset value of soil EC, namely soil electric conductivity, a historical target value of soil pH value and a historical target value of corresponding sampling time, namely a historical preset time point and soil depth;
defining the output end of the residual error neural network as a matrix Y epsilon R n×2 The matrix Y is formed by R n×2 Representing a series of fertigation levels with time and depth dimensions, the residual neural network aims to learn and train the mapping for a given input matrix
Figure QLYQS_1
The parameter theta in the method enables Y' obtained by the trained model to be infinitely close to Y representing the real irrigation and fertilization level, so that a well-trained reverse residual error neural network is obtained; the matrix Y represents: a target amount of water to be poured and a target amount of nitrogen applied at preset time points,it is understood that, in training, we mean: historical target irrigation water amount and historical target nitrogen application amount at each historical preset time point;
the residual error neural network is divided into an input layer, a hidden layer and an output layer, wherein soil data input by the input layer, namely soil sampling time (days), soil depth (depths), soil water content, soil EC (environmental impact) value and soil pH value, the size of a model is adjusted according to the size of data through a pluggable Block module, namely a residual error Block, nonlinear characteristics of the model are introduced into the neural network through a hidden layer activation function, the output end of the model is an optimized water-fertilizer coupling regulation and control mode, and the output function is f (x) -x and then f (x);
and training the built residual error neural network to obtain the trained reverse residual error neural network.
2. The method for acquiring the water and fertilizer strategy of the saline soil as claimed in claim 1, further comprising:
building a residual error neural network;
training the residual error neural network by using a data set, and obtaining the reverse residual error neural network by combining with an Adam optimization algorithm, wherein the data set comprises: and at each historical preset time point, the historical target value of each parameter, the historical preset value of the soil conductivity, the historical target irrigation quantity and the historical target nitrogen application quantity.
3. The method for acquiring the saline soil water and fertilizer strategy according to claim 2, wherein the constructing of the residual neural network further comprises:
and taking the ReLU function as an activation function of the built residual error neural network.
4. The method for acquiring the saline soil water and fertilizer strategy according to claim 2 or 3, wherein the building of the residual neural network further comprises the following steps:
introducing batch normalization into the built residual error neural network;
the Dropout algorithm is introduced into the constructed residual neural network.
5. A system for acquiring a water and fertilizer strategy of saline soil is characterized by comprising a determining module and an acquiring module;
the determining module is used for determining a preset value of the soil conductivity at a preset time point, which is used for representing the soil salinization degree, and determining a target value of each parameter related to the soil salinization at the preset time point;
the acquisition module is used for inputting the preset value and all the target values into the trained reverse residual error neural network to obtain a saline soil water and fertilizer strategy which corresponds to the soil with the preset soil conductivity and comprises a target irrigation quantity and a target nitrogen application quantity;
the acquisition process of the trained reverse residual error neural network comprises the following steps:
defining the input end of the residual error neural network as a matrix X epsilon R n×d Where n is the sample size, d =3, { xi } i=1,2,3,4,5 E.X represents: the method comprises the steps of including a vector set of a target value of soil moisture content, a soil EC value, namely a preset value of soil conductivity, a target value of soil pH value, and target values of corresponding sampling time, namely a preset time point and soil depth, and during training, representing the vector set of a historical target value of soil moisture content, a historical preset value of soil EC value, namely soil conductivity, a historical target value of soil pH value, and a historical target value of corresponding sampling time, namely a historical preset time point and soil depth;
defining the output end of the residual error neural network as a matrix Y epsilon R n×2 The matrix Y belongs to R n×2 Representing a series of fertigation levels with time and depth dimensions, the residual neural network aims to learn and train the mapping for a given input matrix
Figure QLYQS_2
The parameter theta in the method enables Y' obtained by the trained model to be infinitely close to Y representing the real irrigation and fertilization level, so that a well-trained reverse residual error neural network is obtained; the matrix Y represents: the target amount of water to be poured and the target amount of nitrogen to be applied at the preset time point can be understoodWhen training, the following is shown: historical target irrigation water amount and historical target nitrogen application amount at each historical preset time point;
the residual error neural network is divided into an input layer, a hidden layer and an output layer, wherein soil data input by the input layer, namely soil sampling time (days), soil depth (depths), soil water content, soil EC (electronic logic) value and soil pH value, the size of the model is adjusted according to the data size through a pluggable Block module, namely a residual error Block, the nonlinear characteristics of the model are introduced into the neural network through a hidden layer activation function, the output end of the model is an optimized water-fertilizer coupling regulation and control mode, and the output function is f (x) -x and then f (x);
and training the built residual error neural network to obtain the trained reverse residual error neural network.
6. The system for acquiring the saline soil water and fertilizer strategy is characterized by further comprising a modeling module and a training module, wherein the modeling module is used for building a residual error neural network;
the training module is used for training the residual error neural network by using a data set and obtaining the reverse residual error neural network by combining an Adam optimization algorithm, wherein the data set comprises: and at each historical preset time point, the historical target value of each parameter, the historical preset value of the soil conductivity, the historical target irrigation quantity and the historical target nitrogen application quantity.
7. The system for acquiring saline soil water and fertilizer strategies according to claim 6, wherein the modeling module is further configured to:
and taking the ReLU function as an activation function of the built residual error neural network.
8. The system for acquiring saline soil water and fertilizer strategies according to claim 6 or 7, wherein the modeling module is further configured to:
introducing batch normalization into the built residual error neural network;
the Dropout algorithm is introduced into the constructed residual neural network.
9. A computer storage medium, wherein instructions are stored in the computer storage medium, and when the instructions are read by a computer, the computer is caused to execute the method for acquiring the water and fertilizer strategy of the saline soil according to any one of claims 1 to 4.
10. An electronic device comprising a processor and the computer storage medium of claim 9, the processor executing instructions in the storage medium.
CN202110431777.3A 2021-04-21 2021-04-21 Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment Active CN113221446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110431777.3A CN113221446B (en) 2021-04-21 2021-04-21 Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110431777.3A CN113221446B (en) 2021-04-21 2021-04-21 Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113221446A CN113221446A (en) 2021-08-06
CN113221446B true CN113221446B (en) 2023-04-07

Family

ID=77088310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110431777.3A Active CN113221446B (en) 2021-04-21 2021-04-21 Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113221446B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116090914B (en) * 2023-02-01 2023-09-05 中国水利水电科学研究院 Mineralization safety threshold identification method and system for agricultural irrigation by brackish water

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109214579A (en) * 2018-09-20 2019-01-15 山东省林业科学研究院 Salt-soda soil stability prediction method and system based on BP neural network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3219659A1 (en) * 1982-05-26 1983-12-01 Bayer Ag, 5090 Leverkusen ION EXCHANGER FERTILIZERS AND METHOD FOR THE EVEN AND LONG-TERM SUPPLY OF PLANTS WITH NUTRIENTS
CN109964611A (en) * 2019-04-16 2019-07-05 中国农业大学 A kind of field crop Tree Precise Fertilization method and system
CN110692338A (en) * 2019-10-30 2020-01-17 北京农业智能装备技术研究中心 Control method of water-fertilizer integrated irrigation system and water-fertilizer integrated irrigation system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109214579A (en) * 2018-09-20 2019-01-15 山东省林业科学研究院 Salt-soda soil stability prediction method and system based on BP neural network

Also Published As

Publication number Publication date
CN113221446A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
Chen et al. A reinforcement learning approach to irrigation decision-making for rice using weather forecasts
CN106716479A (en) A computer implemented method of deriving performance from a local model
WO2023179167A1 (en) Crop irrigation water demand prediction method based on aquacrop model and svr
Nedić Distributed optimization
Li et al. GANs-LSTM model for soil temperature estimation from meteorological: A new approach
CN105184400A (en) Tobacco field soil moisture prediction method
CN110533547A (en) Fruits and vegetables water-fertilizer conditioning method and device and computer readable storage medium
CN113221446B (en) Method and system for acquiring water and fertilizer strategies of saline soil, storage medium and electronic equipment
Yu et al. Optimization of BP neural network model by chaotic krill herd algorithm
CN113159439A (en) Crop yield prediction method and system, storage medium and electronic equipment
CN110119086A (en) A kind of tomato greenhouse environmental parameter intelligent monitoring device based on ANFIS neural network
CN110147825A (en) A kind of strawberry greenhouse temperature intelligent detection device based on empirical mode decomposition model
CN114662742A (en) Dynamic decision method and device for field irrigation and fertilization system
CN114548489A (en) Crop pest and disease damage prediction method and system
An et al. A simulator-based planning framework for optimizing autonomous greenhouse control strategy
WO2022032874A1 (en) Adversarial neural network-based hydrological parameter calibration method for data region
CN111914487B (en) Data-free regional hydrological parameter calibration method based on antagonistic neural network
CN115759487B (en) Meteorological risk prediction method for penaeus vannamei boone cultivation fertilizer and water operation window period
CN113158565B (en) Artificial intelligence method, system and electronic equipment for acquiring water-nitrogen strategy
Chen et al. A water-saving irrigation decision-making model for greenhouse tomatoes based on genetic optimization TS fuzzy neural network
Zhou et al. Boosting the prediction accuracy of a process-based greenhouse climate-tomato production model by particle filtering and deep learning
Castañón Dynamic noncooperative games
CN115860165A (en) Neural network basin rainfall runoff forecasting method and system considering initial loss
Kawan Data rate of nonlinear control systems and feedback entropy
Shim Disturbance observers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant