A method and device for controlling the breeding environment of agricultural products and an Internet of Things system
Through the combination of fuzzy wavelet neural network and ESN neural network model, combined with ARIMA and PID controller, a agricultural product breeding environment control model is constructed, which solves the problems of poor control accuracy and noise in the existing technology, and achieves automatic, precise and efficient adjustment of the agricultural product breeding environment. Monitor and adapt to the needs of large-scale breeding.
Patent Information
- Application Number
- CN202410385425.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-04-01
AI Technical Summary
The existing agricultural product breeding environment monitoring and adjustment methods have poor control accuracy, noise problems and low control accuracy in large-scale and precision breeding, and cannot meet the needs of smart agricultural product breeding.
The fuzzy wavelet neural network model and the ESN neural network model are combined to build an agricultural product breeding environment control model. Multiple sensors output fusion parameters, and the ARIMA model and PID controller are used to realize automatic and precise adjustment of environmental parameters. It is combined with the Internet of Things system for real-time monitoring. and device control.
It realizes real-time online monitoring and automatic precise adjustment of agricultural product breeding environment parameters, improves control accuracy and stability, adapts to rapid response and efficient prediction of different breeding conditions, and improves the robustness and reliability of the breeding process.
Smart Images

Figure CN118295254B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to agricultural product breeding, and in particular to an agricultural product breeding environment control method, device and Internet of Things system. Background Art
[0002] The agricultural product breeding environment, such as temperature, humidity, and light, will affect the yield and quality of agricultural products. At present, environmental parameters are mainly monitored by sensors, and then the environmental conditioning equipment is manually operated, or the sensor is associated with the environmental conditioning equipment for simple PID adjustment. The sensor measurement data is directly used as the input of the PID controller, which has the problem of poor control accuracy. The existing monitoring and adjustment methods are effective when dealing with individual and small-scale agricultural product breeding. However, agricultural product breeding is currently developing in the direction of scale, refinement, informatization, and intelligence. At the same time, the rise of the Internet of Things has made it an important means to support smart agricultural product breeding. The existing monitoring and adjustment methods are obviously unable to meet this demand. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to provide a control method, device and Internet of Things system that can automatically and accurately adjust the breeding environment in large-scale breeding of agricultural products.
[0004] Technical solution: The method for controlling the agricultural product breeding environment of the present invention comprises:
[0005] Get multiple temperature sensor outputs, multiple humidity sensor outputs, and multiple light sensor outputs;
[0006] Constructing an environmental control model for agricultural product breeding:
[0007] The agricultural product breeding environment control model includes a fuzzy wavelet neural network model-ESN neural network model 1-4, an agricultural product breeding regulator 1-3, an SSA ESN neural network model 1-3 and an agricultural product signal module 1-3, wherein the agricultural product signal module is used to fuse multiple measurement parameters, multiple temperature sensor outputs are used as corresponding inputs of the agricultural product signal module 1, multiple humidity sensor outputs are used as corresponding inputs of the agricultural product signal module 2, and multiple light intensity sensor outputs are used as corresponding inputs of the agricultural product signal module 3;
[0008] The temperature setting value is used as the corresponding input of the fuzzy wavelet neural network model - ESN neural network model 1, the output of the fuzzy wavelet neural network model - ESN neural network model 1 is used as the temperature control value of the agricultural product breeding regulator 1, the difference between the temperature disturbance amount output of the agricultural product breeding regulator 1 and the output of the fuzzy wavelet neural network model - ESN neural network model 2 and the rate of change of the difference are used as the corresponding input of the SSA's ESN neural network model 1, and the output of the SSA's ESN neural network model 1 is used as the corresponding input of the SSA's ESN neural network model 2, the corresponding input of the SSA's ESN neural network model 3, the corresponding input of the fuzzy wavelet neural network model - ESN neural network model 2 and the input of the temperature control device respectively;
[0009] The illuminance setting value is used as the corresponding input of SSA's ESN neural network model 2, the humidity setting value is used as the corresponding input of SSA's ESN neural network model 3, the cumulative sum of the illuminance control increment output of SSA's ESN neural network model 2 and the fuzzy wavelet neural network model-ESN neural network model 4 is used as the illuminance control value of agricultural product breeding regulator 2, the output of agricultural product breeding regulator 2 is used as the corresponding input of fuzzy wavelet neural network model-ESN neural network model 2, the corresponding input of fuzzy wavelet neural network model-ESN neural network model 4 and the input of lighting equipment, the output of SSA's ESN neural network model 3 and the cumulative sum of the humidity control increment output of fuzzy wavelet neural network model-ESN neural network model 4 is used as the humidity control value of agricultural product breeding regulator 3, the output of agricultural product breeding regulator 3 is used as the corresponding input of fuzzy wavelet neural network model-ESN neural network model 2, the corresponding input of fuzzy wavelet neural network model-ESN neural network model 4 and the input of humidification equipment;
[0010] The outputs of agricultural product signal module 1, agricultural product signal module 2 and agricultural product signal module 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 3, the temperature prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 2 and the temperature feedback values of agricultural product breeding regulator 1, the illumination prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 1 and the illumination feedback values of agricultural product breeding regulator 2, and the humidity prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 1 and the humidity feedback values of agricultural product breeding regulator 3.
[0011] Furthermore, the agricultural product signal module includes AANN auto-associative neural network model-SSA's ESN neural network model 1-n and SSA's fuzzy wavelet neural network model, and multiple parameter sensor outputs are all used as corresponding inputs of multiple AANN auto-associative neural network models-SSA's ESN neural network models, and the outputs of each AANN auto-associative neural network model-SSA's ESN neural network model are used as corresponding inputs of the SSA's fuzzy wavelet neural network model, and the SSA's fuzzy wavelet neural network model output is used as the measurement parameter fusion value.
[0012] Furthermore, the agricultural product breeding regulator includes an ARIMA model, an ESN neural network model 1-2 of SSA and an ESN neural network model-PID controller 1-3; the parameter control value is used as the input of the ARIMA model, the parameter feedback value is used as the corresponding input of the ESN neural network model 2 of SSA, the difference between the parameter control value and the output of the ARIMA model and the rate of change of the difference are used as the corresponding input of the ESN neural network model 1 of SSA, the difference between the output of the ESN neural network model 1 of SSA and the output of the ESN neural network model-PID controller 1 and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 2, the difference between the output of the ESN neural network model-PID controller 2 and the output of the ESN neural network model 2 of SSA and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 3, the output of the ESN neural network model-PID controller 3 is used as the corresponding input of the ESN neural network model 2, the difference between the parameter feedback value and the output of the ARIMA model and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 1, and the output of the ESN neural network model-PID controller 3 is used as the output of the agricultural product breeding regulator.
[0013] The agricultural product breeding environment control device of the present invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the agricultural product breeding environment control method is implemented.
[0014] The agricultural product breeding environment control Internet of Things system of the present invention comprises an agricultural product information perception layer, an agricultural product information network layer, and an agricultural product breeding application layer. The agricultural product information perception layer comprises an agricultural product information collection terminal 1-n and an agricultural product breeding control device terminal 1-n. The agricultural product information perception layer is used to collect agricultural product breeding information and execute information collection and breeding equipment control instructions issued by the agricultural product breeding application layer; the agricultural product information network layer realizes two-way communication between the agricultural product information perception layer and the agricultural product breeding application layer; the agricultural product breeding application layer is used to supervise the agricultural product breeding information and the status of the breeding equipment.
[0015] Furthermore, the agricultural product information collection terminals are evenly arranged in the agricultural product breeding environment to collect agricultural product breeding environment information, agricultural product growth information and agricultural product video information.
[0016] Furthermore, the agricultural product information collection terminal includes an agricultural product growth information sensor, a carbon dioxide concentration sensor, a temperature sensor, a humidity sensor, a moisture sensor, a pH value sensor, a harmful gas concentration sensor, an illumination sensor, a camera, a LoRa communication module, an RFID module and an STM32 microprocessor. Each sensor is connected to the STM32 microprocessor through a corresponding conditioning circuit, and the camera, the LoRa communication module and the RFID module are connected to the STM32 microprocessor respectively; the agricultural product information collection terminal collects agricultural product breeding process information and uploads it to the agricultural product breeding monitoring coordinator through the LoRa communication module.
[0017] Furthermore, the agricultural product breeding control device end includes an STM32 microprocessor, and a fan device, a lighting device, a temperature control device, a water pump, a humidity control device, a drip irrigation device, a sprinkler irrigation device, a CO2 generator and a LoRa communication module respectively connected to the STM32 microprocessor. The agricultural product breeding control device end exchanges information with the agricultural product breeding monitoring coordinator through the LoRa communication module.
[0018] Furthermore, the agricultural product breeding monitoring coordinator includes an STM32 microprocessor, and a LoRa communication module and an NB-IoT module respectively connected to the STM32 microprocessor. A self-organizing communication network is built through the LoRa communication module to realize data interaction between the agricultural product information collection end, the agricultural product breeding control device end and the agricultural product breeding monitoring coordinator. The agricultural product breeding monitoring coordinator realizes two-way data interaction with the agricultural product breeding cloud server through the NB-IoT module.
[0019] Furthermore, the agricultural product breeding application layer includes an agricultural product breeding cloud server and an agricultural product breeding human-computer interaction terminal. The agricultural product breeding human-computer interaction terminal adopts a PC or APP application, and a visual operation interface monitors and manages breeding information; the main functions of the agricultural product breeding human-computer interaction terminal include agricultural product communication parameter setting, agricultural product data analysis and agricultural product data management, and agricultural product data early warning, realizing agricultural product breeding parameter supervision, product breeding historical data query, product breeding data analysis, product breeding data alarm, personnel management, data collection and breeding equipment control instruction issuance and breeding log.
[0020] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:
[0021] (1) The present invention aims at the problem of noise in parameter detection that affects the agricultural product breeding process and the problem of low control accuracy in the control process. In view of the good learning ability and strong pattern recognition ability of the fuzzy wavelet neural network model and the good denoising ability of wavelet for noisy signals, the fuzzy wavelet neural network model is used to measure the parameters of the agricultural product breeding process, thereby realizing real-time online monitoring of the parameters of the agricultural product breeding process. The parameter measurement results of the agricultural product breeding process are compared with the actual ones by the fuzzy wavelet neural network model. This method has good effectiveness and high feasibility.
[0022] (2) The fuzzy wavelet neural network model of the present invention has fast convergence, good robustness, fast tracking and stability. Since the transient information affecting the measured parameter samples of the agricultural product breeding process is utilized, the measurement results are less affected by the measured parameter samples of the agricultural product breeding process. By utilizing the self-learning characteristics of the fuzzy wavelet neural network model, different samples can be generated for training according to the actual situation of the measured parameter samples of the agricultural product breeding process to meet the requirements of different measured parameters of the agricultural product breeding process, and realize fast and accurate measurement of the agricultural product breeding process value.
[0023] (3) The ESN neural network model of the present invention designs the network hidden layer into a sparse network composed of many neurons, and achieves the function of memorizing data by adjusting the characteristics of the internal weights of the network. Its internal dynamic reserve pool contains a large number of sparsely connected neurons, contains the operating status of the system, and has a short-term memory function. The stability of the recursive network inside the reserve pool is guaranteed by presetting the spectral radius of the internal connection weight matrix of the ESN neural network model, thereby improving the stability and accuracy of predicting agricultural product breeding parameters.
[0024] (4) The current state of the reserve pool of the ESN neural network model of the present invention inherits the state of the agricultural product breeding parameters at the previous moment, and has a short memory characteristic for the agricultural product breeding historical data input to the ESN neural network model. The research results show that the ESN neural network model with historical memory has a better effect in predicting agricultural product breeding parameters. The ESN neural network has the characteristics of high precision, high accuracy, high timeliness and stability, and can be used as a means to quickly and effectively predict the agricultural product breeding parameters input to the ESN neural network model; as a new type of dynamic recursive neural network, the ESN neural network model uses a linear regression method to establish a model, avoiding the problems of slow convergence speed and easy to fall into local minimum of traditional neural networks, simplifying the complexity of the training process, and achieving the purpose of accurately predicting agricultural product breeding parameters.
[0025] (5) The agricultural product breeding regulator includes an ARIMA model, an ESN neural network model of SSA and an ESN neural network model-PID controller. ESN neural network model-PID controller 1, ESN neural network model-PID controller 2 and ESN neural network model-PID controller 3 realize trend control, fluctuation control and predictive control of agricultural product breeding parameters. The three controls are combined, interact, influence and complement each other, so as to improve the speed, accuracy, robustness and reliability of controlling agricultural product breeding parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a structural schematic diagram of the agricultural product breeding environment control model in the embodiment of the present application;
[0027] Figure 2 It is a structural diagram of the agricultural product signal module in the embodiment of the present application;
[0028] Figure 3 It is a structural schematic diagram of the agricultural product breeding regulator in the embodiment of the present application;
[0029] Figure 4 This is a schematic diagram of the structure of the agricultural product breeding environment control Internet of Things system in the embodiment of the present application;
[0030] Figure 5 This is a schematic diagram of the structure of the agricultural product information collection terminal in the embodiment of the present application;
[0031] Figure 6 It is a structural diagram of the agricultural product breeding control device end in the embodiment of the present application;
[0032] Figure 7 This is a schematic diagram of the structure of the agricultural product breeding monitoring coordinator in the embodiment of the present application;
[0033] Figure 8 This is a functional diagram of the agricultural product breeding human-computer interaction software in the embodiment of the present application. DETAILED DESCRIPTION
[0034] The present invention will be further described below in conjunction with the accompanying drawings.
[0035] The present application provides a method for controlling an agricultural product breeding environment, comprising the following steps:
[0036] Get multiple temperature sensor outputs, multiple humidity sensor outputs, and multiple light sensor outputs;
[0037] Constructing an environmental control model for agricultural product breeding:
[0038] like Figure 1The agricultural product breeding environment control model includes a fuzzy wavelet neural network model-ESN neural network model 1-4, an agricultural product breeding regulator 1-3, an SSA ESN neural network model 1-3 and an agricultural product signal module 1-3, wherein the agricultural product signal module is used to fuse multiple measurement parameters, multiple temperature sensor outputs are used as corresponding inputs of the agricultural product signal module 1, multiple humidity sensor outputs are used as corresponding inputs of the agricultural product signal module 2, and multiple light intensity sensor outputs are used as corresponding inputs of the agricultural product signal module 3;
[0039] The temperature setting value is used as the corresponding input of the fuzzy wavelet neural network model - ESN neural network model 1, the output of the fuzzy wavelet neural network model - ESN neural network model 1 is used as the temperature control value of the agricultural product breeding regulator 1, the difference between the temperature disturbance amount output of the agricultural product breeding regulator 1 and the output of the fuzzy wavelet neural network model - ESN neural network model 2 and the rate of change of the difference are used as the corresponding input of the SSA's ESN neural network model 1, and the output of the SSA's ESN neural network model 1 is used as the corresponding input of the SSA's ESN neural network model 2, the corresponding input of the SSA's ESN neural network model 3, the corresponding input of the fuzzy wavelet neural network model - ESN neural network model 2 and the input of the temperature control device respectively;
[0040] The illuminance setting value is used as the corresponding input of SSA's ESN neural network model 2, the humidity setting value is used as the corresponding input of SSA's ESN neural network model 3, the cumulative sum of the illuminance control increment output of SSA's ESN neural network model 2 and the fuzzy wavelet neural network model-ESN neural network model 4 is used as the illuminance control value of agricultural product breeding regulator 2, the output of agricultural product breeding regulator 2 is used as the corresponding input of fuzzy wavelet neural network model-ESN neural network model 2, the corresponding input of fuzzy wavelet neural network model-ESN neural network model 4 and the input of lighting equipment, the output of SSA's ESN neural network model 3 and the cumulative sum of the humidity control increment output of fuzzy wavelet neural network model-ESN neural network model 4 is used as the humidity control value of agricultural product breeding regulator 3, the output of agricultural product breeding regulator 3 is used as the corresponding input of fuzzy wavelet neural network model-ESN neural network model 2, the corresponding input of fuzzy wavelet neural network model-ESN neural network model 4 and the input of humidification equipment;
[0041] The outputs of agricultural product signal module 1, agricultural product signal module 2 and agricultural product signal module 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 3, the temperature prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 2 and the temperature feedback values of agricultural product breeding regulator 1, the illumination prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 1 and the illumination feedback values of agricultural product breeding regulator 2, and the humidity prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 1 and the humidity feedback values of agricultural product breeding regulator 3.
[0042] like Figure 2 The agricultural product signal module includes AANN auto-associative neural network model-SSA's ESN neural network model 1-n and SSA's fuzzy wavelet neural network model. Multiple parameter sensor outputs are all used as corresponding inputs of multiple AANN auto-associative neural network models-SSA's ESN neural network models. The outputs of each AANN auto-associative neural network model-SSA's ESN neural network model are used as corresponding inputs of SSA's fuzzy wavelet neural network model, and the output of SSA's fuzzy wavelet neural network model is used as the measurement parameter fusion value.
[0043] like Figure 3 The agricultural product breeding regulator includes an ARIMA model, an ESN neural network model 1-2 of SSA and an ESN neural network model-PID controller 1-3; the parameter control value is used as the input of the ARIMA model, the parameter feedback value is used as the corresponding input of the ESN neural network model 2 of SSA, the difference between the parameter control value and the output of the ARIMA model and the rate of change of the difference are used as the corresponding input of the ESN neural network model 1 of SSA, the difference between the output of the ESN neural network model 1 of SSA and the output of the ESN neural network model-PID controller 1 and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 2, the difference between the output of the ESN neural network model-PID controller 2 and the output of the ESN neural network model 2 of SSA and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 3, the output of the ESN neural network model-PID controller 3 is used as the corresponding input of the ESN neural network model 2, the difference between the parameter feedback value and the output of the ARIMA model and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 1, and the output of the ESN neural network model-PID controller 3 is used as the output of the agricultural product breeding regulator.
[0044] Design of the control model for the agricultural product breeding environment
[0045] 1. Fuzzy wavelet neural network model-ESN neural network model design
[0046] The fuzzy wavelet neural network model-ESN neural network model is a fuzzy wavelet neural network model connected in series with the ESN neural network model, and the output of the fuzzy wavelet neural network model is used as the input of the ESN neural network model. The fuzzy wavelet neural network model uses fuzzy neural networks for fuzzy reasoning and combines the characteristics of multi-resolution analysis of wavelets. The wavelet function is used as the excitation function of the neural network neurons to construct a fuzzy wavelet neural network model, which has intelligence, robustness, stability and fast tracking.
[0047] The fuzzy wavelet neural network model consists of two parts: fuzzy neural network (FNN) and wavelet neural network (WNN). The fuzzy neural network consists of four basic layers: the first layer is the input layer, each input vector corresponds to a neuron; each neuron in the second layer represents a language variable value; each neuron in the third layer represents a fuzzy rule; the fourth layer is the normalization layer.
[0048] The input of the fuzzy neural network is the agricultural product breeding information as the input of the wavelet neural network, and each fuzzy rule corresponds to a wavelet network. The wavelet basis function is a wavelet basis group obtained by translating the wavelet function. The wavelet neural network generated by different scale functions can capture the characteristics of different time domains and frequency domains, and different fuzzy reasoning selects the corresponding wavelet network. Wavelets have the characteristics of multi-resolution analysis. If the wavelet function is used as the excitation function of the neural network neuron, since the scaling and translation of each neuron can be adjusted, the selection of low-scale parameters can learn smooth functions, and the increase of scale can learn local singular functions with higher accuracy, which is higher than the ANN with the same number of neurons and parameters.
[0049] The fuzzy wavelet network model is implemented by five basic layers: input, fuzzification, reasoning, wavelet agricultural product information network layer and defuzzification layer. The input agricultural product breeding information of the fuzzy wavelet neural network model is X = [x1, x2, ... x n ], T i is the number of wavelets corresponding to the i-th rule; w ik is the weight coefficient; is the wavelet function, is the predicted value of agricultural product breeding information output by the linear combination of the local model wavelet network corresponding to rule i; its value is:
[0050]
[0051] The first layer is the input layer: each node of this layer is directly connected to each component x of the input agricultural product breeding information vector j Connect and input the agricultural product breeding information value X=[x1,x2,…xn ] is passed to the next layer; the second layer calculates the membership function value corresponding to each input agricultural product breeding information variable; the third layer calculates the applicability of each rule; the fourth layer is the wavelet agricultural product information network layer output, which is mainly used for output compensation; the fifth layer is the control signal output layer, also known as the anti-fuzzification layer, in which the defuzzification calculation is performed. The output formula of the fuzzy wavelet neural network model is as follows:
[0052]
[0053] Where: M is the number of fuzzy rules, A ij (·) is the Gaussian function as the membership function.
[0054] The ESN neural network model is a new type of dynamic neural network, which has all the advantages of dynamic neural networks. At the same time, since the echo state network introduces the concept of "reserve pool", the "reserve pool" is to transform the middle connection part of the traditional dynamic neural network into a randomly connected "reserve pool". The whole learning process is actually the process of learning how to connect the "reserve pool". The "reserve pool" is actually a randomly generated large-scale recursive structure, in which the neurons are sparsely connected. SD is usually used to represent the percentage of interconnected neurons in the total neurons N. The state equation of the ESN neural network model is:
[0055]
[0056] In the formula, W is the state variable of the neural network, μ(n) is the output vector, y(n) is the output value of the ESN neural network model at the previous moment, and W in W is the input agricultural product breeding information variable of the neural network; back is the output agricultural product breeding information state variable connection weight matrix of the neural network; x(n) represents the internal state of the neural network; W out is the connection weight matrix between the core reserve pool of the ESN neural network model, the input of the neural network, and the output of the neural network; is the output of the neural network agricultural product breeding information deviation or can represent noise; f = f[f1,f2,…,f n ] is the n activation functions of the neurons inside the “reserve pool”; f i is the hyperbolic tangent function; f out is the ε output function of the ESN neural network model. The outputs of multiple ESN neural network models are the predicted values of agricultural product breeding information of various types of time-delay neural network models.
[0057] 2. Design of ESN Neural Network Model for SSA
[0058] SSA is a sparrow search algorithm with the characteristics of strong global convergence ability and fast convergence speed. In order to avoid the effect of the fuzzy wavelet neural network model adjusted by human experience, SSA optimizes the learning rate, number of iterations, number of hidden layer neurons, and connection weight parameters of the ESN neural network model. The ESN neural network model of SSA is to use SSA to optimize the ESN neural network model. The fuzzy wavelet neural network model process of SSA is as follows: A. Initialization of the ESN neural network model of SSA, initialize the parameters of SSA, including the position of the sparrow population, the maximum number of iterations, the upper and lower limits of the parameter value, initialize the ESN neural network model structure, the number of hidden layer nodes, the connection weight and the learning rate as the optimization target; B. Establishment of the objective function, the objective function of SSA is the root mean square error between the predicted value of the untrained ESN neural network model and the actual value; C. Optimization, update the position of the sparrow according to the result of the objective function, and when the number of iterations set initially is met, the initial value of the ESN neural network model reaches the optimal value.
[0059] 3. Agricultural product breeding regulator
[0060] (1) ARIMA model design
[0061] ARIMA (p, d, q) is called the difference autoregressive moving average model, where AR stands for autoregressive, p stands for autoregressive term; MA stands for moving average, q stands for the number of moving average terms; d stands for the number of times the agricultural product breeding information time series needs to be differentiated to become a stationary series. The ARIMA model is a combination of the AR model and the MA model. It refers to converting the non-stationary time series of agricultural product breeding information into a stationary time series, and then only performing the dependent variable X t The lagged value and random error term ε t The model is established by regressing the present value and lagged value of.
[0062] (2) ESN neural network model-PID controller design
[0063] The ESN neural network model-PID controller is the K of the ESN neural network model output as the PID controller P , K I and K D Input to achieve automatic tuning of PID controller parameters. PID controller is composed of proportion P, integral I and differential D. It calculates the control quantity through proportion, integral and differential to achieve effective control. The important basis of PID controller is proportional control, while integral control can effectively reduce the steady-state error, but it is very likely to cause overshoot. Differential control can promote the response speed of large inertia system and effectively reduce overshoot. The relationship between the input and output u(t) of PID controller is:
[0064]
[0065] Among them, u(t) represents output; e(t) represents input; K P Represents the proportionality coefficient; K I Represents the integral coefficient; K D represents the differential coefficient;
[0066] 4. Agricultural product signal module
[0067] The agricultural product signal module includes an AANN autoassociative neural network model-SSA's ESN neural network model and SSA's fuzzy wavelet neural network model; the design method of SSA's ESN neural network model refers to the relevant design steps of the embodiment of the present application, and the design method of the fuzzy wavelet neural network model refers to the relevant design steps of the embodiment of the present application.
[0068] (3) Design of AANN auto-associative neural network model
[0069] AANN auto-associative neural network model - SSA's ESN neural network model is a series connection of AANN auto-associative neural network model and SSA's ESN neural network model. AANN auto-associative neural network model (Auto-associative neural network, AANN) is a feedforward neural network model. AANN auto-associative neural network model includes an input layer, a certain number of hidden layers and an output layer.
[0070] Firstly, the compression of agricultural product breeding input data information is realized through the input layer, mapping layer and bottleneck layer, and the low-dimensional subspace reflecting the agricultural product breeding parameters is extracted from the high-dimensional parameter space of agricultural product breeding input. At the same time, the noise and measurement errors in the agricultural product breeding parameter data are effectively filtered out. Then, the decompression of agricultural product breeding parameters is realized through the bottleneck layer, demapping layer and output layer, and the previously compressed information is restored to each agricultural product breeding information value, thereby realizing the reconstruction of the input data of each agricultural product breeding parameter.
[0071] In order to achieve the purpose of compressing agricultural product breeding parameter information, the number of nodes in the bottleneck layer of the AANN self-associative neural network model is significantly smaller than that in the input layer. In order to prevent the formation of a simple single mapping between the input layer and the output layer of agricultural product breeding parameters, except for the linear function of the output layer excitation function, all other layers use nonlinear excitation functions. In essence, the first hidden layer of the AANN self-associative neural network model is called the mapping layer. The node transfer function of the mapping layer may be an S-type function or other similar nonlinear functions; the second hidden layer is called the bottleneck layer. The dimension of the bottleneck layer is the smallest in the network. Its transfer function may be linear or nonlinear for agricultural product breeding information. The bottleneck layer avoids the one-to-one mapping relationship between output and input that is easy to achieve. It enables the network to encode and compress the agricultural product breeding signal to obtain the relevant model of the input agricultural product breeding information sensor data, and decode and decompress the agricultural product breeding parameters after the bottleneck layer to generate the estimated value of the agricultural product breeding parameter input signal; the third or last hidden layer is called the demapping layer. The node transfer function of the demapping layer is usually a nonlinear S-type function. The AANN self-associative neural network model is trained using the error back propagation algorithm.
[0072] (4) Design of fuzzy wavelet neural network model for SSA
[0073] The fuzzy wavelet neural network model of SSA uses SSA to optimize the parameters of the fuzzy wavelet neural network model. SSA is a sparrow search algorithm with the characteristics of strong global convergence ability and fast convergence speed. In order to avoid the effect of the fuzzy wavelet neural network model adjusted by human experience, SSA optimizes the learning rate, number of iterations, number of hidden layer neurons, and connection weight parameters of the fuzzy wavelet neural network model. The fuzzy wavelet neural network model process of SSA is as follows:
[0074] A. Initialization of the fuzzy wavelet neural network model of SSA, initializing the parameters of SSA, including the position of the sparrow population, the maximum number of iterations, the upper and lower limits of the parameter values, initializing the fuzzy wavelet neural network model structure, the number of hidden layer nodes, the connection weights and the learning rate as the optimization target;
[0075] B. Objective Function Establishment,The objective function of SSA is the root mean square error between the,predicted value of the untrained fuzzy wavelet neural network model and the,actual value.
[0076] C. Optimization, updating the position of the sparrow according to the result of the objective function. When the number of iterations set initially is met, the initial value of the fuzzy wavelet neural network model reaches the optimal value.
[0077] The embodiment of the present application also provides an agricultural product breeding environment control device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the agricultural product breeding environment control method described in the embodiment of the present application is implemented. The agricultural product breeding environment control device has the advantages of the agricultural product breeding environment control method.
[0078] like Figure 4 The embodiment of the present application also provides an agricultural product breeding environment control Internet of Things system, including an agricultural product information perception layer, an agricultural product information network layer and an agricultural product breeding application layer. The agricultural product information perception layer includes an agricultural product information collection terminal and an agricultural product breeding control device terminal, which are responsible for collecting agricultural product breeding information and executing information collection and breeding equipment control instructions issued by the agricultural product breeding application layer. The agricultural product breeding application layer is used to supervise the status of agricultural product breeding information and breeding equipment. The agricultural product information network layer realizes two-way communication between the agricultural product information perception layer and the agricultural product breeding application layer, uploads the agricultural product breeding information collected by the agricultural product information collection terminal to the agricultural product breeding application layer, realizes database storage and update, and receives agricultural product breeding information collection and breeding equipment control instructions from the agricultural product breeding application layer. The agricultural product breeding application layer includes an agricultural product breeding cloud server and an agricultural product breeding human-computer interaction terminal, which processes, analyzes, manages and issues information collection and breeding equipment control instructions for the collected agricultural product breeding information. The agricultural product breeding human-computer interaction terminal uses a PC or APP terminal to apply a visual operation interface to monitor and manage agricultural product breeding information.
[0079] 1) Design of agricultural product information perception layer
[0080] The agricultural product information perception layer includes agricultural product information collection terminals 1-n and agricultural product breeding control equipment terminals 1-n. The agricultural product information collection terminals are evenly arranged in the agricultural product breeding environment to collect agricultural product breeding environment information, agricultural product growth information and agricultural product video information, wherein the agricultural product breeding environment information includes temperature and humidity, pH value, light intensity, carbon dioxide concentration, and harmful gas concentration. The agricultural product breeding control equipment terminal controls the operating status of the breeding equipment to realize the intelligent adjustment of the agricultural product breeding environment.
[0081] like Figure 5The agricultural product information collection end includes agricultural product growth information sensors for measuring the weight and size of agricultural products, carbon dioxide concentration sensors, temperature sensors, humidity sensors, moisture sensors, pH sensors, harmful gas concentration sensors, light intensity sensors, cameras, LoRa communication modules, RFID modules and STM32 microprocessors. Each sensor is connected to the STM32 microprocessor through the corresponding conditioning circuit, and the camera, LoRa communication module and RFID module are connected to the STM32 microprocessor respectively. The comprehensive performance of the STM32 microprocessor meets the functional requirements of agricultural production for the Internet of Things, collects agricultural product breeding information, and then uploads it to the agricultural product breeding cloud server for processing through the agricultural product breeding monitoring coordinator. The agricultural product information collection end collects agricultural product breeding process information and uploads it to the agricultural product breeding monitoring coordinator of the agricultural product information network layer through the LoRa communication module. The software of the agricultural product information collection end mainly realizes LoRa communication and perception to collect agricultural product breeding information and pre-process information.
[0082] like Figure 6 The agricultural product breeding control device includes an STM32 microprocessor, and fan equipment, lighting equipment, temperature control equipment, water pump, humidity control equipment, drip irrigation equipment, sprinkler irrigation equipment, CO2 generator and LoRa communication module connected to the STM32 microprocessor. By configuring the agricultural product breeding environment control model in the STM32 microprocessor, the agricultural product breeding environment is automatically controlled and the environmental parameters are kept within a suitable breeding range. The agricultural product breeding control device exchanges information with the agricultural product breeding monitoring coordinator through the LoRa communication module.
[0083] 2) Design of agricultural product information network layer
[0084] The agricultural product information network layer realizes two-way data communication between the agricultural product information perception layer and the agricultural product breeding application layer through the agricultural product breeding monitoring coordinator. Figure 7The agricultural product breeding monitoring coordinator includes an STM32 microprocessor, and a LoRa communication module and an NB-IoT module connected to the STM32 microprocessor respectively. The LoRa communication module is used to build a self-organizing communication network to realize data interaction between the agricultural product information collection end, the agricultural product breeding control device end and the agricultural product breeding monitoring coordinator. The agricultural product breeding monitoring coordinator realizes two-way data interaction with the agricultural product breeding cloud server through the NB-IoT module. The agricultural product breeding information collected by the agricultural product information collection end is uploaded to the agricultural product breeding cloud server through the agricultural product breeding monitoring coordinator. The agricultural product breeding cloud server sends information collection and breeding equipment control instructions to the agricultural product information collection end and the agricultural product breeding control device end. Both the NB-IoT module and the LoRa communication module are part of the low-power wide area network, and have advantages that traditional network communication technologies do not have, such as large coverage area, low power consumption, and low cost. These characteristics have become the basis for its development and popularization in the agricultural field.
[0085] 3) Design of application layer for agricultural product breeding
[0086] The Alibaba agricultural product breeding cloud server is used as the operating platform of the system, and a 64-bit image series operating system is installed. The Java development environment is configured, and the non-relational database MongoDB and the relational database MySQL are installed as the database management system. The database management system can store information from each agricultural product information collection terminal, and MySQL is used to store relational data such as user information. Combining MongoDB and MySQL can optimize the operating speed and efficiency of the system. The agricultural product breeding human-computer interaction terminal uses a PC or APP terminal to apply a visual operation interface to monitor and manage breeding information. Using the browser / server (Browser / Server, B / S) mode, users can quickly access the agricultural product breeding cloud server through a browser. After business analysis, the server returns the required information, operation results, etc. to the browser. The agricultural product breeding monitoring coordinator and the agricultural product breeding cloud server use the TCP / IP protocol for communication to ensure the stability of the connection between the agricultural product breeding monitoring coordinator and the agricultural product information perception layer. The main functions of the agricultural product breeding human-computer interaction terminal are agricultural product communication parameter setting, agricultural product data analysis and agricultural product data management, agricultural product data early warning, agricultural product breeding parameter supervision, product breeding historical data query, product breeding data analysis, product breeding data alarm, personnel management, data collection and breeding equipment control command issuance and breeding log, etc. The functions of the agricultural product breeding human-computer interaction terminal software are shown in Figure 8 .
[0087] The present invention utilizes a variety of sensor devices to remotely collect growth information of agricultural products, utilizes breeding control equipment to automatically adjust the breeding environment of agricultural products, transmits the information to a data management center through the Internet of Things, stores, displays and manages the collected information, and forms intelligent decisions to achieve supervision of the entire process of agricultural product production, effectively reduce manpower consumption, and is conducive to promoting the standardization, scale and informatization of the agricultural product breeding process.
Claims
1. A method for controlling the breeding environment of agricultural products, characterized in that: include: Get multiple temperature sensor outputs, multiple humidity sensor outputs, and multiple light sensor outputs; Constructing an environmental control model for agricultural product breeding: The agricultural product breeding environment control model includes a fuzzy wavelet neural network model-ESN neural network model 1-4, an agricultural product breeding regulator 1-3, an SSA ESN neural network model 1-3 and an agricultural product signal module 1-3, wherein the agricultural product signal module is used to fuse multiple measurement parameters, multiple temperature sensor outputs are used as corresponding inputs of the agricultural product signal module 1, multiple humidity sensor outputs are used as corresponding inputs of the agricultural product signal module 2, and multiple light intensity sensor outputs are used as corresponding inputs of the agricultural product signal module 3; The temperature setting value is used as the corresponding input of the fuzzy wavelet neural network model - ESN neural network model 1, the output of the fuzzy wavelet neural network model - ESN neural network model 1 is used as the temperature control value of the agricultural product breeding regulator 1, the difference between the temperature disturbance amount output of the agricultural product breeding regulator 1 and the output of the fuzzy wavelet neural network model - ESN neural network model 2 and the rate of change of the difference are used as the corresponding input of the SSA's ESN neural network model 1, and the output of the SSA's ESN neural network model 1 is used as the corresponding input of the SSA's ESN neural network model 2, the corresponding input of the SSA's ESN neural network model 3, the corresponding input of the fuzzy wavelet neural network model - ESN neural network model 2 and the input of the temperature control device respectively; The illuminance setting value is used as the corresponding input of SSA's ESN neural network model 2, the humidity setting value is used as the corresponding input of SSA's ESN neural network model 3, the cumulative sum of the illuminance control increment output of SSA's ESN neural network model 2 and the fuzzy wavelet neural network model-ESN neural network model 4 is used as the illuminance control value of agricultural product breeding regulator 2, the output of agricultural product breeding regulator 2 is used as the corresponding input of fuzzy wavelet neural network model-ESN neural network model 2, the corresponding input of fuzzy wavelet neural network model-ESN neural network model 4 and the input of lighting equipment, the output of SSA's ESN neural network model 3 and the cumulative sum of the humidity control increment output of fuzzy wavelet neural network model-ESN neural network model 4 is used as the humidity control value of agricultural product breeding regulator 3, the output of agricultural product breeding regulator 3 is used as the corresponding input of fuzzy wavelet neural network model-ESN neural network model 2, the corresponding input of fuzzy wavelet neural network model-ESN neural network model 4 and the input of humidification equipment; The outputs of agricultural product signal module 1, agricultural product signal module 2 and agricultural product signal module 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 3, the temperature prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 2 and the temperature feedback values of agricultural product breeding regulator 1, the illumination prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 1 and the illumination feedback values of agricultural product breeding regulator 2, and the humidity prediction values output by fuzzy wavelet neural network model-ESN neural network model 3 are respectively used as the corresponding inputs of fuzzy wavelet neural network model-ESN neural network model 1 and the humidity feedback values of agricultural product breeding regulator 3.
2. The method for controlling the agricultural product breeding environment according to claim 1, characterized in that: The agricultural product signal module includes AANN auto-associative neural network model-SSA's ESN neural network model 1-n and SSA's fuzzy wavelet neural network model. The outputs of multiple parameter sensors are all used as corresponding inputs of multiple AANN auto-associative neural network models-SSA's ESN neural network models, and the outputs of each AANN auto-associative neural network model-SSA's ESN neural network model are used as corresponding inputs of SSA's fuzzy wavelet neural network model, and the output of SSA's fuzzy wavelet neural network model is used as the measurement parameter fusion value.
3. The method for controlling the agricultural product breeding environment according to claim 1, characterized in that: The agricultural product breeding regulator includes an ARIMA model, an ESN neural network model 1-2 of SSA and an ESN neural network model-PID controller 1-3; the parameter control value is used as the input of the ARIMA model, the parameter feedback value is used as the corresponding input of the ESN neural network model 2 of SSA, the difference between the parameter control value and the output of the ARIMA model and the rate of change of the difference are used as the corresponding input of the ESN neural network model 1 of SSA, the difference between the output of the ESN neural network model 1 of SSA and the output of the ESN neural network model-PID controller 1 and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 2, the difference between the output of the ESN neural network model-PID controller 2 and the output of the ESN neural network model 2 of SSA and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 3, the output of the ESN neural network model-PID controller 3 is used as the corresponding input of the ESN neural network model 2, the difference between the parameter feedback value and the output of the ARIMA model and the rate of change of the difference are used as the corresponding input of the ESN neural network model-PID controller 1, and the output of the ESN neural network model-PID controller 3 is used as the output of the agricultural product breeding regulator.
4. An agricultural product breeding environment control device, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the computer program is executed by a processor, the agricultural product breeding environment control method described in any one of claims 1 to 3 is implemented.
5. An agricultural product breeding environment control Internet of Things system, used to implement the agricultural product breeding environment control method according to any one of claims 1 to 3, characterized in that: It includes an agricultural product information perception layer, an agricultural product information network layer, and an agricultural product breeding application layer. The agricultural product information perception layer includes an agricultural product information collection terminal 1-m and an agricultural product breeding control equipment terminal 1-m. The agricultural product information perception layer is used to collect agricultural product breeding information and execute information collection and breeding equipment control instructions issued by the agricultural product breeding application layer; the agricultural product information network layer realizes two-way communication between the agricultural product information perception layer and the agricultural product breeding application layer; the agricultural product breeding application layer is used to supervise the agricultural product breeding information and the status of the breeding equipment.
6. The agricultural product breeding environment control Internet of Things system according to claim 5 is characterized in that: The agricultural product information collection terminals are evenly arranged in the agricultural product breeding environment to collect agricultural product breeding environment information, agricultural product growth information and agricultural product video information.
7. The agricultural product breeding environment control Internet of Things system according to claim 5 or 6, characterized in that: The agricultural product information collection end includes agricultural product growth information sensors, carbon dioxide concentration sensors, temperature sensors, humidity sensors, moisture sensors, pH value sensors, harmful gas concentration sensors, light intensity sensors, cameras, LoRa communication modules, RFID modules and STM32 microprocessors. Each sensor is connected to the STM32 microprocessor through a corresponding conditioning circuit, and the camera, LoRa communication module and RFID module are connected to the STM32 microprocessor respectively; the agricultural product information collection end collects agricultural product breeding process information and uploads it to the agricultural product breeding monitoring coordinator through the LoRa communication module.
8. The agricultural product breeding environment control Internet of Things system according to claim 7, characterized in that: The agricultural product breeding control device end includes an STM32 microprocessor, and fan equipment, lighting equipment, temperature control equipment, water pump, humidity control equipment, drip irrigation equipment, sprinkler irrigation equipment, CO2 generator and LoRa communication module respectively connected to the STM32 microprocessor. The agricultural product breeding control device end exchanges information with the agricultural product breeding monitoring coordinator through the LoRa communication module.
9. The agricultural product breeding environment control Internet of Things system according to claim 8, characterized in that: The agricultural product breeding monitoring coordinator includes an STM32 microprocessor, and a LoRa communication module and an NB-IoT module respectively connected to the STM32 microprocessor. A self-organizing communication network is built through the LoRa communication module to realize data interaction between the agricultural product information collection end, the agricultural product breeding control device end and the agricultural product breeding monitoring coordinator. The agricultural product breeding monitoring coordinator realizes two-way data interaction with the agricultural product breeding cloud server through the NB-IoT module.
10. The agricultural product breeding environment control Internet of Things system according to claim 9, characterized in that: The agricultural product breeding application layer includes the agricultural product breeding cloud server and the agricultural product breeding human-computer interaction terminal. The agricultural product breeding human-computer interaction terminal adopts PC or APP application, and the visual operation interface monitors and manages breeding information; the functions of the agricultural product breeding human-computer interaction terminal include agricultural product communication parameter setting, agricultural product data analysis and agricultural product data management, agricultural product data early warning, and realize agricultural product breeding parameter supervision, product breeding historical data query, product breeding data analysis, product breeding data alarm, personnel management, data collection and breeding equipment control instruction issuance and breeding log.
Citation Information
Patent Citations
Sensor network agriculture and animal husbandry data acquisition system and method
CN112327703A
