A water quality intelligent monitoring method and aquaculture Internet of Things system
Through the Internet of Things technology and neural network model, an intelligent water quality monitoring system has been constructed, which solves the problems of low accuracy and backward management of aquaculture water quality monitoring, achieves precise monitoring and automatic adjustment of water quality parameters, and improves the intelligent management of the aquaculture industry. level.
Patent Information
- Application Number
- CN202410509642.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-04-25
AI Technical Summary
Existing aquaculture water quality monitoring equipment is easily affected by environmental and equipment factors, resulting in inaccurate accuracy and lacks an effective intelligent system for intelligent control.
The Internet of Things technology and neural network model are combined to build an intelligent water quality monitoring method and an aquaculture Internet of Things system. Through sensor data correction, neural network model training and adaptive neuro-fuzzy inference model, accurate monitoring and automatic adjustment of water quality parameters are achieved.
It improves the accuracy and management efficiency of aquaculture water quality monitoring, provides intelligent breeding management tools, and enhances the automated control capabilities of the aquaculture industry.
Smart Images

Figure CN118430698B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent water quality monitoring method for intelligent aquaculture water quality and the technical field of automated equipment for aquaculture, and specifically to an intelligent water quality monitoring method and an aquaculture Internet of Things system. Background Art
[0002] Aquaculture water quality is one of the key factors that determine the success or failure of aquaculture. Accurately monitoring the changing characteristics of water quality parameters to achieve intelligent water quality regulation and control in aquaculture and reduce aquaculture risks is of great significance. If the water quality parameters of aquaculture are effectively monitored, the quality of aquaculture and economic benefits can be improved. Aquaculture water quality monitoring equipment has been used on a large scale and has achieved good results in aquaculture, and water quality monitoring technology has also made continuous breakthroughs.
[0003] The existing water quality data monitored by sensors is easily affected by factors such as the environment and equipment, and is prone to inaccurate accuracy. In addition, there is currently a lack of effective intelligent systems to control and regulate equipment for intelligent regulation based on the collected water quality parameters. In view of the current situation of low accuracy and backward management of water quality monitoring in aquaculture, the present invention provides a water quality intelligent monitoring method and an aquaculture Internet of Things system to achieve intelligent control of aquaculture and improve the quality of aquatic products. Summary of the invention
[0004] Purpose of the invention: In view of the problems pointed out in the background technology, the present invention provides a water quality intelligent monitoring method and an aquaculture Internet of Things system. By applying Internet of Things technology and intelligent control to the aquaculture industry, an information-based, intelligent and intensive aquaculture management solution is provided, and intelligent monitoring of the aquaculture water quality environment and feeding is achieved. Intelligent and efficient aquaculture management tools are provided for breeders, thereby promoting the sustainable development and innovation of the aquaculture industry.
[0005] Technical solution: The present invention discloses a water quality intelligent monitoring method, comprising the following steps:
[0006] Step 1: Construct an aquaculture water quality detection module to obtain the parameter sensor feedback value after the parameter sensor output value is calibrated;
[0007] Step 2: Construct an aquaculture water quality controller. The parameter setting value and the parameter sensor feedback value are used as the input of the aquaculture water quality controller. The difference between the parameter setting value and the parameter sensor feedback value is optimized and then output as the optimized control value.
[0008] Step 3: construct a water quality intelligent monitoring subsystem, including a dissolved oxygen sensor, a temperature sensor, the aquaculture water quality controller, the aquaculture water quality detection module, an aeration device, and a temperature device. The aeration device is provided with a speed sensor for detecting the speed, and the temperature device is provided with a current sensor capable of detecting the current; the dissolved oxygen sensor, the temperature sensor, the speed sensor, and the current sensor are all connected to an aquaculture water quality detection module;
[0009] The dissolved oxygen set value and the dissolved oxygen sensor feedback value are passed through the aquaculture water quality controller and the historical speed value of the aeration pump, and then the speed target value is obtained after the neural network model training; the temperature set value and the temperature sensor feedback value are used as the input of the corresponding aquaculture water quality controller, and the current target value is obtained after the aquaculture water quality controller and the historical current value of the temperature device are trained through the neural network model;
[0010] The dissolved oxygen set value, temperature set value, speed target value, current target value and the sensor feedback value obtained through the corresponding aquaculture water quality detection module are used as the input of the corresponding aquaculture water quality controller;
[0011] The speed target value, current target value and their corresponding sensor feedback values are output to the aeration device and temperature device after passing through the aquaculture water quality controller to reduce the speed disturbance and current disturbance using a neural network model to control the speed and current of the aeration device and temperature device.
[0012] Furthermore, the aquaculture water quality detection module includes a TCN time convolution network model and a BiLSTM neural network model, the parameter sensor outputs are respectively used as the corresponding inputs of TCN time convolution network model 1, BiLSTM neural network model 1 and BiLSTM neural network model 2, the TCN time convolution network model 1 output is used as the corresponding input of BiLSTM neural network model 1, the BiLSTM neural network model 1 output is respectively used as the corresponding inputs of TCN time convolution network model 1, TCN time convolution network model 2 and BiLSTM neural network model 2, the TCN time convolution network model 2 output is used as the corresponding input of BiLSTM neural network model 2, the BiLSTM neural network model 2 output is used as the corresponding input of TCN time convolution network model 2 and the output of the aquaculture water quality detection module, and the aquaculture water quality detection module is shown in FIG. Figure 1 shown.
[0013] Furthermore, the aquaculture water quality controller includes an Elman neural network model 1, a BiLSTM neural network model 3 and an ANFIS adaptive neural network fuzzy inference model-PID controller; the parameter setting value and the sensor parameter feedback value are used as the input of the aquaculture water quality controller, the difference between the parameter setting value and the sensor parameter feedback value and the output of the BiLSTM neural network model 3 are used as the corresponding input of the BiLSTM neural network model 3 respectively, the change rate of the output of the BiLSTM neural network model 3 and the output of the BiLSTM neural network model 3 are used as the corresponding input of the ANFIS adaptive neural network fuzzy inference model-PID controller 1, the difference between the parameter setting value and the sensor parameter feedback value and the change rate of the difference are used as the corresponding input of the ANFIS adaptive neural network fuzzy inference model-PID controller 2, the outputs of the ANFIS adaptive neural network fuzzy inference model-PID controller 2 and the ANFIS adaptive neural network fuzzy inference model-PID controller 1 are used as the corresponding input of the Elman neural network model 1, the output of the Elman neural network model 1 is used as the corresponding input of the ANFIS adaptive neural network fuzzy inference model-PID controller 2 and the ANFIS adaptive neural network fuzzy inference model-PID controller 1 and the final aquaculture water quality controller output, and the aquaculture water quality controller is shown in FIG. Figure 2 shown.
[0014] Furthermore, the water quality intelligent monitoring subsystem also includes an Elman neural network model, an ANFIS adaptive neuro-fuzzy inference model-Elman neural network model;
[0015] The dissolved oxygen set value and the output value of the aquaculture water quality detection module 1 are respectively used as the corresponding inputs of the aquaculture water quality controller 1, the temperature set value and the output of the aquaculture water quality detection module 4 are respectively used as the corresponding inputs of the aquaculture water quality controller 2, the difference between the dissolved oxygen disturbance amount output by the aquaculture water quality controller 1 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2 and the change rate of the difference are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1, the difference between the temperature disturbance amount output by the aquaculture water quality controller 2 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2 and the change rate of the difference are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1, the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1 is the speed target value of the aeration device and the current target value of the temperature device, the speed target value, the current target value, the output of the aquaculture water quality detection module 1 and the output of the aquaculture water quality detection module 4 are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2;
[0016] The speed target value and the output value of the aquaculture water quality detection module 2 are used as the corresponding inputs of the aquaculture water quality controller 3, the current target value and the output value of the aquaculture water quality detection module 3 are used as the corresponding inputs of the aquaculture water quality controller 3, the speed disturbance output of the aquaculture water quality controller 3 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3 are used as the corresponding inputs of the Elman neural network model 2, the current disturbance output of the aquaculture water quality controller 4 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3 are used as the corresponding inputs of the Elman neural network model 3, the output of the Elman neural network model 2, the output of the Elman neural network model 3, the output of the detection module 2 and the output of the detection module 3 are used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3, the output of the Elman neural network model 2 and the output of the Elman neural network model 3 are used as the inputs of the oxygenation device and the temperature device respectively, and the oxygenation device and the temperature device adjust the dissolved oxygen and temperature of the aquaculture water quality;
[0017] The outputs of dissolved oxygen sensor, speed sensor, current sensor and temperature sensor are respectively used as inputs of aquaculture water quality detection module 1, aquaculture water quality detection module 2, aquaculture water quality detection module 3 and aquaculture water quality detection module 4. The dissolved oxygen sensor, speed sensor, current sensor and temperature sensor respectively measure the dissolved oxygen of aquaculture water quality, the speed of the aeration device, the current of the temperature device and the temperature of aquaculture water quality. See the water quality intelligent monitoring subsystem Figure 3 shown.
[0018] The present invention also discloses an aquaculture Internet of Things system, comprising a water quality monitoring and feeding end, a meteorological detection end, an aquaculture information collection end, an aquaculture Alibaba Cloud MQTT server, an aquaculture remote monitoring end and an aquaculture client. The water quality monitoring and feeding end is used to monitor aquaculture water quality parameters and control aquaculture equipment. The meteorological detection end is used to monitor meteorological parameters of an aquaculture environment. The aquaculture information collection end is used to realize two-way communication between the water quality monitoring and feeding end, the meteorological detection end and the aquaculture Alibaba Cloud MQTT server. Information of the water quality monitoring and feeding end and the meteorological detection end is sent to the aquaculture Alibaba Cloud MQTT server through the MQTT protocol and stored in a MYSQL database to provide aquaculture monitoring services for the aquaculture client and the aquaculture remote monitoring end. Parameter collection and control information of the aquaculture client and the aquaculture remote monitoring end is sent to the water quality monitoring and feeding end and the meteorological detection end through the aquaculture Alibaba Cloud MQTT server and the aquaculture information collection end. The aquaculture client and the aquaculture remote monitoring end realize aquaculture water quality monitoring, historical data query, data analysis and data alarm.
[0019] The water quality monitoring and feeding end is provided with the above-mentioned water quality intelligent monitoring method. Figure 4 shown.
[0020] Compared with the prior art, the present invention has the following obvious advantages:
[0021] 1. For aquaculture parameter sequences with a longer time period, the LSTM neural network model will forget earlier information and thus fail to learn all the contents of the aquaculture parameter data. Therefore, the BiLSTM neural network model is proposed as a bidirectional long short-term memory network as an extension of the LSTM neural network model. It can take into account the global bidirectional information of aquaculture data and avoid forgetting earlier contents due to the long time series data of aquaculture parameters.
[0022] 2. The BiLSTM neural network model of the present invention performs bidirectional learning on the input aquaculture data, and simultaneously captures all the features in the historical and future time series of aquaculture parameters, and has a higher prediction accuracy when predicting the time series values of the input aquaculture parameter information.
[0023] 3. Expansion of TCN temporal convolutional network model The output of causal convolution at each moment depends on the aquaculture data of the previous moment. As the expansion coefficient increases, the range of aquaculture parameter information covered is also wider. Compared with ordinary convolutional networks, TCN temporal convolutional network models only need fewer layers to achieve a wider range of aquaculture parameter perception; The residual connection module of the TCN temporal convolutional network model solves the problems of gradient explosion and network degradation in deep traditional neural networks. The residual module of the TCN temporal convolutional network model can reduce the large loss of aquaculture parameter information in the feature extraction process, thereby improving the accuracy of the model.
[0024] Fourth, the Elman neural network model set up in the present invention can memorize and process the past status of aquaculture parameters due to the introduction of the receiving layer. Its feedback structure is conducive to the retention of short-term information of aquaculture parameters. Therefore, it has strong optimization calculation and associative memory functions, thereby improving the accuracy of prediction of input aquaculture parameter information.
[0025] 5. The aquaculture water quality controller includes Elman neural network model, BiLSTM neural network model and ANFIS adaptive neural fuzzy inference model-PID controller; the Elman neural network model and BiLSTM neural network model re-predict and process the control error of aquaculture parameters, and use the re-processed error and error change rate as the input of ANFIS adaptive neural fuzzy inference model-PID controller to improve the reliability and robustness of the aquaculture water quality controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is the aquaculture water quality detection module of the present invention;
[0027] Figure 2 The aquaculture water quality controller of the present invention;
[0028] Figure 3 It is the water quality intelligent monitoring subsystem of the present invention;
[0029] Figure 4 An aquaculture Internet of Things system of the present invention;
[0030] Figure 5 It is the water quality monitoring and feeding end of the present invention;
[0031] Figure 6 The meteorological detection terminal of the present invention;
[0032] Figure 7 It is the aquaculture information collection terminal of the present invention;
[0033] Figure 8 This is the aquaculture remote monitoring terminal software of the present invention. DETAILED DESCRIPTION
[0034] Combined with Figure 1-8 , the technical solution of the present invention is further described:
[0035] The present invention discloses a water quality intelligent monitoring method and an aquaculture Internet of Things system. The water quality intelligent monitoring method is specifically as follows:
[0036] 1. Design of aquaculture water quality detection module
[0037] The aquaculture water quality detection module includes the TCN temporal convolutional network model and the BiLSTM neural network model; see Figure 1 shown.
[0038] The aquaculture water quality detection module includes a TCN time convolution network model and a BiLSTM neural network model. The parameter sensor outputs are used as the corresponding inputs of TCN time convolution network model 1, BiLSTM neural network model 1 and BiLSTM neural network model 2 respectively. The output of TCN time convolution network model 1 is used as the corresponding input of BiLSTM neural network model 1. The output of BiLSTM neural network model 1 is used as the corresponding input of TCN time convolution network model 1, TCN time convolution network model 2 and BiLSTM neural network model 2 respectively. The output of TCN time convolution network model 2 is used as the corresponding input of BiLSTM neural network model 2. The output of BiLSTM neural network model 2 is used as the corresponding input of TCN time convolution network model 2 and the output of aquaculture water quality detection module.
[0039] 1. TCN temporal convolutional network model design
[0040] The TCN temporal convolutional network model is unique in that it is based on a one-dimensional convolutional neural network and combines causal convolution, dilated convolution and residual connection. It has a good effect on the prediction of time series data of aquaculture parameters. The core of the TCN temporal convolutional network model is dilated causal convolution. Causal convolution means that the output a of the i-th layer is only related to the i-th layer a and its previous moments. The calculation process of dilated convolution, i.e., the interval sampling of input aquaculture data during convolution, is as follows:
[0041]
[0042] Where * is the convolution operation, f:{0,…,k-1} is the convolution kernel; d = [1,…,2 L ] is the hole parameter. As the number of layers increases, d increases exponentially with fewer layers to obtain a larger aquaculture parameter receptive field, while reducing network complexity. The receptive field of the TCN temporal convolutional network model depends on the network depth n, k and d. When capturing the relationship between longer aquaculture parameter time series data, the TCN temporal convolutional network model uses a residual module to allow the error of the previous layer to be directly transmitted to the next layer. The output of the dilated causal convolution of the TCN temporal convolutional network model at each moment depends on the aquaculture data of the previous moment. As the dilation coefficient increases, the range of aquaculture parameter information covered is also larger. Compared with ordinary convolutional networks, the TCN temporal convolutional network model only needs fewer layers to achieve a wider range of aquaculture parameter perception, thereby avoiding repeated extraction of aquaculture parameter information. The TCN temporal convolutional network model also has excellent parallel performance and can efficiently train and process longer aquaculture parameter time series, thereby reducing the running time of the TCN temporal convolutional network model. The TCN temporal convolutional network model uses a depth-separable convolutional layer, which not only reduces the number of aquaculture parameters, but also improves the generalization ability of the model. The TCN temporal convolutional network model also applies a residual connection module to solve the problems of gradient explosion and network degradation in deep traditional neural networks. The residual module of the TCN temporal convolutional network model can reduce the large loss of aquaculture parameter information during the process of aquaculture parameter feature extraction, thereby improving the accuracy of the model.
[0043] 2. BiLSTM neural network model design
[0044] The LSTM neural network model is a long short-term memory aquaculture parameter network. It is a variant of the recurrent neural network structure and can solve the gradient explosion and gradient disappearance problems encountered in the recurrent neural network. The LSTM neural network structure only has forward propagation operations and lacks the logic of the front and back. The BiLSTM neural network model is a bidirectional long short-term memory aquaculture parameter network. It is based on the LSTM neural network model and uses the known aquaculture parameter time series and reverse position sequence. Through forward and reverse aquaculture parameter propagation bidirectional operations, it deepens the feature extraction of the original aquaculture parameter sequence and improves the accuracy of the output results of the BiLSTM neural network model. The final output of the BiLSTM neural network model is the sum of the output results of the forward and reverse propagation LSTM neural network model of aquaculture parameters. The LSTM neural network model consists of cell states used for memory and gate structures used to control them, including forget gates, input gates, and output gates. These gates selectively allow aquaculture parameter information to pass. The processing process of the LSTM neural network model unit information is the update process of the cell state. In the forget gate, it is decided which aquaculture parameter information to remove, which is related to the activation function f of the forget gate. t The output 0-1 value determines the state vector of aquaculture parameters at time t-1, where 0 means all are forgotten and 1 means all are retained. t The calculation process is shown in formula (2):
[0045] f t =σ(W f [h t-1 , x t ]+b f ) (2)
[0046] where x t h is the input value of aquaculture parameters at time t; t-1 is the cell state at time t-1; W f The next step is to create a state update, which is also the process of recording new information. It is divided into two steps: First, determine the update amount i in the sigmoid of the input gate. t , as shown in formula (3); second, the tanh layer creates a vector AC containing new information about aquaculture parameters that can be added to the state t , as shown in formula (4). The multiplication of it and ACt is the amount of LSTM units at time t, and then the past information of the retained aquaculture parameters is merged with the current information to complete the update as shown in formula (5). Formulas (3)-(5) are as follows:
[0047] i t =σ(W i [h t-1 , xt ]+b i ) (3)
[0048] AC t =tanh(W c [h t-1 , x t ]+b c ) (4)
[0049] C t =f t C t-1 +i t AC t (5)
[0050] Finally, the output gate outputs the aquaculture parameter information based on the unit state. The sigmoid function in the output gate determines the output value O. t , as shown in formula (6), O t Multiply the cell state tanh(C t ), the aquaculture parameter information to be output is obtained, as shown in formula (7):
[0051] O t =σ(W o [h t-1 ,x t ]+b o ) (6)
[0052] h t =O t tanh(C t ) (7)
[0053] The BiLSTM neural network model is a bidirectional long short-term memory aquaculture parameter network, which can memorize information about aquaculture parameters in both the forward and backward directions. Its basic components are the LSTM neural network model unit, the output vector of the forward LSTM neural network model at time t, and the output vector of the forward LSTM neural network model at time t. And the output vector of the backward LSTM neural network model After being connected to the left and right, it becomes the output H of the BiLSTM neural network model t , as shown in formula (8):
[0054]
[0055] 2. Design of aquaculture water quality controller
[0056] The aquaculture water quality controller includes an Elman neural network model, a BiLSTM neural network model and an ANFIS adaptive neural fuzzy inference model-PID controller. The design process of the BiLSTM neural network model refers to the relevant design method of the present invention, and the aquaculture water quality controller refers to Figure 2 shown.
[0057] Furthermore, the aquaculture water quality controller includes an Elman neural network model 1, a BiLSTM neural network model 3 and an ANFIS adaptive neural network fuzzy inference model-PID controller; the parameter setting value and the sensor parameter feedback value are used as inputs of the aquaculture water quality controller, the difference between the parameter setting value and the sensor parameter feedback value and the output of the BiLSTM neural network model 3 are used as corresponding inputs of the BiLSTM neural network model 3 respectively, the output of the BiLSTM neural network model 3 and the change rate of the output of the BiLSTM neural network model 3 are used as corresponding inputs of the ANFIS adaptive neural network fuzzy inference model-PID controller 1, the difference between the parameter setting value and the sensor parameter feedback value and the change rate of the difference are used as corresponding inputs of the ANFIS adaptive neural network fuzzy inference model-PID controller 2, the outputs of the ANFIS adaptive neural network fuzzy inference model-PID controller 2 and the ANFIS adaptive neural network fuzzy inference model-PID controller 1 are used as corresponding inputs of the Elman neural network model 1, and the output of the Elman neural network model 1 is used as corresponding inputs of the ANFIS adaptive neural network fuzzy inference model-PID controller 2 and the ANFIS adaptive neural network fuzzy inference model-PID controller 1 and the final aquaculture water quality controller output.
[0058] 1. Elman neural network model design
[0059] The Elman neural network model is a dynamic feedback network. It uses the receiving layer to add the state quantity of aquaculture parameters at the previous moment to the feedback, so that it has memory ability and improves its applicability under time-varying aquaculture parameter conditions. This dynamic aquaculture parameter information processing capability has a good performance in processing the nonlinearity of input aquaculture parameter information and the regeneration phenomenon of input aquaculture parameter information. The Elman neural network model is a typical global feedforward and local recursive network model. It is improved from the BP neural network and has similarities in network structure. The Elman neural network model consists of four main layers: input layer, hidden layer, receiving layer and output layer. The input layer is responsible for transmitting the input aquaculture parameter information; the hidden layer usually uses nonlinear functions to process information; the receiving layer is used to store and memorize the output of the hidden layer, and transmit these aquaculture parameter information back to the input layer at the next moment, thereby realizing local feedback; the output layer is responsible for linear weighted processing of aquaculture parameter information. Due to the introduction of the linking layer, the Elman neural network model neural network can memorize aquaculture parameters and process past states. Its feedback structure is conducive to the retention of short-term information of aquaculture parameters, so it has strong optimization calculation and associative memory functions, thereby improving the accuracy of the prediction of input aquaculture parameter information; the nonlinear state space function of the Elman neural network model is expressed as:
[0060] x k =f(w1x c(k-1) +w2u k +b1) (9)
[0061] y k =g(w3x k +b2) (10)
[0062] x ck =x k-1 (11)
[0063] Where: x k -The output of the hidden layer at the kth cycle; f(x)-the activation function of the hidden layer; w1, w2-the link weight matrix from the receiving layer to the hidden layer, and from the input layer to the hidden layer; u k - network input; b1, b2-threshold from input layer to hidden layer, from hidden layer to output layer; y k - the predicted value of the neural network in the kth cycle; g(x)- the activation function of the output layer; w3- the weight matrix of the output layer; x ck -The state output of the receiving layer at the kth cycle corresponds to the output of the hidden layer at the k-1th cycle.
[0064] 2. ANFIS adaptive neuro-fuzzy inference model-PID controller design
[0065] ANFIS adaptive neuro-fuzzy inference model - PID controller is the output of ANFIS adaptive neuro-fuzzy inference model as the input of Kp, Ki and Kd of PID controller; ANFIS adaptive neuro-fuzzy inference model is a reasoning model based on artificial intelligence method. The first layer of ANFIS adaptive neuro-fuzzy inference model is to fuzzify the input aquaculture parameter variables, calculate the membership corresponding to the variables and then output; the second layer is to perform algebraic product calculation on the fuzzy processing set and then output the signal; the third layer is to unify the credibility of the operation rules and output the standardized credibility; the fourth layer is to fuzzify the above results and calculate the output rules; the fifth layer is the total output of the adaptive neuro-fuzzy inference system, which integrates all data signals and outputs them. ANFIS adaptive neuro-fuzzy inference model uses traditional neural network methods to realize the three basic steps of fuzzification, fuzzy reasoning and defuzzification. ANFIS adaptive neuro-fuzzy inference model is a multi-layer feedforward network. The first layer input variables are fuzzified. The parameters of this layer are variable, and each node is represented by a node function:
[0066] O 1,i =μ Ai (x i ),i=1,2 (12)
[0067] O 1,i =μ B(i-2) (x2),i=3,4 (13)
[0068] Where x1 and x2 are the inputs of the node, O 1,i is the fuzzy set A i The membership function of the membership function is the parameter set of the premise parameter. The second layer performs fuzzy set operation, multiplies the input signals, and outputs the product as:
[0069] O 2,i =ω i =μ Ai (x1)μ Bi (x2),i=1,2 (14)
[0070] The third layer calculates each rule ω i The ratio of to the sum of all rules ω:
[0071]
[0072] Layer 4 calculates each rule output:
[0073]
[0074] In the formula, {p i ,q i ,ri} is the conclusion parameter.
[0075] The total output of the fifth layer for all input signals is:
[0076]
[0077] PID closed-loop control is mainly composed of proportion P, integral I and differential D. Effective control is achieved by calculating the control quantity through proportion, integral and differential. 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 an increase in overshoot. Differential control can promote the response speed of large inertia systems and effectively reduce overshoot. The relationship between the input and output u(t) of the PID controller is:
[0078]
[0079] Among them, e(t) represents input; u(t) represents output; K P Represents the proportionality coefficient; K I Represents the integral coefficient; K D represents the differential coefficient.
[0080] 3. Design of water quality intelligent monitoring subsystem
[0081] The water quality intelligent monitoring subsystem includes an aquaculture water quality controller, an aquaculture water quality detection module, an Elman neural network model, and an ANFIS adaptive neural fuzzy inference model-Elman neural network model. The design process of the aquaculture water quality controller, the aquaculture water quality detection module, and the Elman neural network model refers to the relevant design method of the present invention. The ANFIS adaptive neural fuzzy inference model-Elman neural network model is a series connection of the ANFIS adaptive neural fuzzy inference model and the Elman neural network model. The output of the ANFIS adaptive neural fuzzy inference model is used as the input of the Elman neural network model. The structure of the water quality intelligent monitoring subsystem is shown in Figure 3 shown.
[0082] The water quality intelligent monitoring subsystem includes a dissolved oxygen sensor, a temperature sensor, an aquaculture water quality controller, an aquaculture water quality detection module, an aeration device, and a temperature device. The aeration device is provided with a rotation speed sensor for detecting the rotation speed, and the temperature device is provided with a current sensor for detecting the current. The dissolved oxygen sensor, the temperature sensor, the rotation speed sensor, and the current sensor are all connected to an aquaculture water quality detection module.
[0083] The dissolved oxygen set value and the dissolved oxygen sensor feedback value are passed through the aquaculture water quality controller and the historical speed value of the aeration pump through the neural network model training to obtain the speed target value; the temperature set value and the temperature sensor feedback value are used as the input of the corresponding aquaculture water quality controller, and are passed through the aquaculture water quality controller and the historical current value of the temperature device through the neural network model training to obtain the current target value.
[0084] The dissolved oxygen set value, temperature set value, rotation speed target value, current target value and the sensor feedback value obtained through the corresponding aquaculture water quality detection module are respectively used as the input of the corresponding aquaculture water quality controller.
[0085] The speed target value, current target value and their corresponding sensor feedback values are output to the aeration device and temperature device after passing through the aquaculture water quality controller to reduce the speed disturbance and current disturbance using a neural network model to control the speed and current of the aeration device and temperature device.
[0086] The dissolved oxygen set value and the output value of the aquaculture water quality detection module 1 are respectively used as the corresponding inputs of the aquaculture water quality controller 1, the temperature set value and the output of the aquaculture water quality detection module 4 are respectively used as the corresponding inputs of the aquaculture water quality controller 2, the difference between the dissolved oxygen disturbance amount output by the aquaculture water quality controller 1 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2 and the change rate of the difference are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1, the difference between the temperature disturbance amount output by the aquaculture water quality controller 2 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2 and the change rate of the difference are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1, the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1 is the speed target value of the oxygenation device and the current target value of the temperature device, and the speed target value, the current target value, the output of the aquaculture water quality detection module 1 and the output of the aquaculture water quality detection module 4 are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2.
[0087] The speed target value and the output value of the aquaculture water quality detection module 2 are used as the corresponding inputs of the aquaculture water quality controller 3, the current target value and the output value of the aquaculture water quality detection module 3 are used as the corresponding inputs of the aquaculture water quality controller 3, the speed disturbance output of the aquaculture water quality controller 3 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3 are used as the corresponding inputs of the Elman neural network model 2, the current disturbance output of the aquaculture water quality controller 4 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3 are used as the corresponding inputs of the Elman neural network model 3, the output of the Elman neural network model 2, the output of the Elman neural network model 3, the output of the detection module 2 and the output of the detection module 3 are used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3, the output of the Elman neural network model 2 and the output of the Elman neural network model 3 are used as the inputs of the oxygenation device and the temperature device respectively, and the oxygenation device and the temperature device adjust the dissolved oxygen and temperature of the aquaculture water quality.
[0088] The outputs of the dissolved oxygen sensor, the rotation speed sensor, the current sensor and the temperature sensor are respectively used as the inputs of the aquaculture water quality detection module 1, the aquaculture water quality detection module 2, the aquaculture water quality detection module 3 and the aquaculture water quality detection module 4. The dissolved oxygen sensor, the rotation speed sensor, the current sensor and the temperature sensor respectively measure the dissolved oxygen of the aquaculture water quality, the rotation speed of the oxygenation device, the current of the temperature device and the temperature of the aquaculture water quality.
[0089] 4. Design of an aquaculture IoT system
[0090] It includes water quality monitoring and feeding terminal, meteorological detection terminal, aquaculture information collection terminal, aquaculture Alibaba Cloud MQTT server, aquaculture remote monitoring terminal and aquaculture client. The water quality monitoring and feeding terminal is used to monitor aquaculture water quality parameters and control feeding equipment. The meteorological detection terminal is used to monitor meteorological environmental parameters. The aquaculture information collection terminal is used to realize two-way communication between the water quality monitoring and feeding terminal, the meteorological detection terminal and the aquaculture Alibaba Cloud MQTT server. The water quality monitoring and feeding terminal and the meteorological detection terminal information are sent to the aquaculture Alibaba Cloud MQTT server through the MQTT protocol in 5G transmission mode, and the data is stored in the MYSQL database to provide data services for the aquaculture client and the aquaculture remote monitoring terminal. The aquaculture client and aquaculture The parameter collection and control information of the aquaculture remote monitoring end is sent to the water quality monitoring and feeding end and the meteorological detection end through the aquaculture Alibaba Cloud MQTT server and the aquaculture information collection end. The aquaculture client and the aquaculture remote monitoring end realize aquaculture water quality parameter monitoring, aquaculture historical data query, aquaculture data analysis and data alarm. The aquaculture remote monitoring end and the aquaculture client realize information interaction with the aquaculture Alibaba Cloud MQTT server through the 5G network. The backend of the Alibaba Cloud service platform is developed using the Django framework. According to the business logic, data is obtained from the MYSQL database, and aquaculture information is returned according to the request of the aquaculture remote monitoring end and the aquaculture client. An aquaculture Internet of Things system structure is shown in FIG. Figure 4 shown.
[0091] 1. Water quality monitoring and feeding end design
[0092] The water quality monitoring and feeding end includes an STM32 microprocessor, a camera, a LoRa communication module, a water quality parameter sensor, a camera and a control device, which are used to collect data and monitor aquaculture water quality parameters in real time. The water quality parameter sensors include temperature, dissolved oxygen, pH value, ammonia nitrogen content sensors and their corresponding conditioning circuits. The camera obtains real-time images of the breeding area for video monitoring; the control equipment includes an oxygenation device, a temperature device, a pH value device and a feeding device to achieve intelligent control to ensure that the water quality parameters are within the appropriate breeding range and automatic feeding. The water quality monitoring and feeding end exchanges information with the aquaculture information collection end through the LoRa communication module. See the water quality monitoring and feeding end Figure 5 The water quality monitoring and feeding end is provided with the above-mentioned water quality intelligent monitoring method, and the specific description is not further elaborated here.
[0093] 2. Weather detection terminal design
[0094] A large number of meteorological detection terminals based on self-organizing communication networks of LoRa communication modules are used as meteorological detection terminals for aquaculture water quality. The meteorological detection terminals realize information exchange with aquaculture information collection terminals through self-organizing communication networks. The meteorological detection terminals include sensors for collecting temperature, humidity, wind speed, wind direction, rainfall, light intensity and air pressure, and corresponding signal conditioning circuits, STM32 microprocessors and LoRa modules; the software of the meteorological detection terminal mainly realizes self-organizing network communication and the collection and control of meteorological parameters. The software is designed in C language with high compatibility, which greatly improves the work efficiency of software design and development, and enhances the reliability, readability and portability of the program code. The structure of the meteorological detection terminal is shown in Figure 6 .
[0095] 3. Design of aquaculture information collection terminal
[0096] The aquaculture information collection terminal includes a LoRa communication module, a 4G module and an STM32 microprocessor. The aquaculture information collection terminal includes a LoRa communication module to realize the self-organizing communication network between the quality parameter monitoring and feeding terminal and the meteorological detection terminal. The 4G module realizes the two-way data interaction between the aquaculture information collection terminal and the aquaculture Alibaba Cloud MQTT server. The data is sent to the aquaculture Alibaba Cloud MQTT server through the MQTT protocol in a 4G transmission mode and the data is stored in the MYSQL database to provide data services for the client. Figure 7 .
[0097] 4. Design of remote monitoring terminal for aquaculture
[0098] The aquaculture remote monitoring terminal is an industrial control computer. It mainly collects and monitors the parameters of water quality and meteorological environment, and realizes information exchange with the aquaculture Alibaba Cloud MQTT server through the 5G network. The main functions of the aquaculture remote monitoring terminal are aquaculture communication parameter setting, aquaculture data analysis and data management, and water quality intelligent monitoring subsystem. See the water quality intelligent monitoring subsystem Figure 1 The management software uses Microsoft Visual++6.0 as the development tool, and calls the system's Mscomm communication control to design the aquaculture communication program. The aquaculture remote monitoring terminal and aquaculture client realize water quality and meteorological parameter monitoring, aquaculture historical data query, aquaculture data analysis, aquaculture data alarm, personnel management and breeding logs, etc. The functions of the aquaculture remote monitoring terminal software are shown in Figure 8 .
[0099] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A water quality intelligent monitoring method, characterized in that: The steps include: Step 1: Construct an aquaculture water quality detection module, and use the parameter sensor output value as input and obtain the parameter sensor feedback value after prediction; Step 2: Construct an aquaculture water quality controller. The parameter setting value and the parameter sensor feedback value are used as the input of the aquaculture water quality controller. The difference between the parameter setting value and the parameter sensor feedback value is output as the optimized control value after the control error is predicted and processed; Step 3: construct a water quality intelligent monitoring subsystem, including a dissolved oxygen sensor, a temperature sensor, the aquaculture water quality controller, the aquaculture water quality detection module, an aeration device, and a temperature device. The aeration device is provided with a speed sensor for detecting the speed, and the temperature device is provided with a current sensor capable of detecting the current; the dissolved oxygen sensor, the temperature sensor, the speed sensor, and the current sensor are all connected to an aquaculture water quality detection module; The dissolved oxygen set value and the dissolved oxygen sensor feedback value are passed through the aquaculture water quality controller and the historical speed value of the aeration pump, and then the speed target value is obtained after the neural network model training; the temperature set value and the temperature sensor feedback value are used as the input of the corresponding aquaculture water quality controller, and then the current target value is obtained after the aquaculture water quality controller and the historical current value of the temperature device are trained through the neural network model; The dissolved oxygen set value, temperature set value, speed target value, current target value and the sensor feedback value obtained through the corresponding aquaculture water quality detection module are used as the input of the corresponding aquaculture water quality controller; The speed target value, current target value and their corresponding sensor feedback values are output to the aeration device and temperature device after the aquaculture water quality controller uses a neural network model to reduce the speed disturbance and current disturbance, thereby controlling the speed and current of the aeration device and temperature device. The aquaculture water quality detection module includes a TCN time convolution network model and a BiLSTM neural network model, the TCN time convolution network model includes a TCN time convolution network model 1 and a TCN time convolution network model 2, and the BiLSTM neural network model includes a BiLSTM neural network model 1 and a BiLSTM neural network model 2; the parameter sensor outputs are respectively used as the corresponding inputs of the TCN time convolution network model 1, the BiLSTM neural network model 1 and the BiLSTM neural network model 2, the TCN time convolution network model 1 output is used as the corresponding input of the BiLSTM neural network model 1, the BiLSTM neural network model 1 output is respectively used as the corresponding inputs of the TCN time convolution network model 1, the TCN time convolution network model 2 and the BiLSTM neural network model 2, the TCN time convolution network model 2 output is used as the corresponding input of the BiLSTM neural network model 2, and the BiLSTM neural network model 2 output is used as the corresponding input of the TCN time convolution network model 2 and the aquaculture water quality detection module output; The aquaculture water quality controller comprises an Elman neural network model 1, a BiLSTM neural network model 3 and an ANFIS adaptive neural fuzzy inference model-PID controller, wherein the ANFIS adaptive neural fuzzy inference model-PID controller comprises an ANFIS adaptive neural fuzzy inference model-PID controller 1 and an ANFIS adaptive neural fuzzy inference model-PID controller 2; the parameter setting value and the sensor parameter feedback value are used as the input of the aquaculture water quality controller, the difference between the parameter setting value and the sensor parameter feedback value and the output of the BiLSTM neural network model 3 are used as the corresponding input of the BiLSTM neural network model 3 respectively, and the output of the BiLSTM neural network model 3 and the BiLSTM neural network model 3 are used as the corresponding input of the BiLSTM neural network model 3 respectively. 3 The rate of change of the output is used as the corresponding input of ANFIS adaptive neural fuzzy inference model-PID controller 1, the difference between the parameter setting value and the sensor parameter feedback value and the rate of change of the difference are used as the corresponding input of ANFIS adaptive neural fuzzy inference model-PID controller 2, the outputs of ANFIS adaptive neural fuzzy inference model-PID controller 2 and ANFIS adaptive neural fuzzy inference model-PID controller 1 are used as the corresponding input of Elman neural network model 1, and the output of Elman neural network model 1 is used as the corresponding input of ANFIS adaptive neural fuzzy inference model-PID controller 2 and ANFIS adaptive neural fuzzy inference model-PID controller 1 and the final output of the aquaculture water quality controller.
2. A water quality intelligent monitoring method according to claim 1, characterized in that: The water quality intelligent monitoring subsystem also includes the Elman neural network model, the ANFIS adaptive neuro-fuzzy inference model-Elman neural network model; The dissolved oxygen set value and the output value of the aquaculture water quality detection module 1 are respectively used as the corresponding inputs of the aquaculture water quality controller 1, the temperature set value and the output of the aquaculture water quality detection module 4 are respectively used as the corresponding inputs of the aquaculture water quality controller 2, the difference between the dissolved oxygen disturbance amount output by the aquaculture water quality controller 1 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2 and the change rate of the difference are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1, the difference between the temperature disturbance amount output by the aquaculture water quality controller 2 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2 and the change rate of the difference are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1, the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 1 is the speed target value of the aeration device and the current target value of the temperature device, the speed target value, the current target value, the output of the aquaculture water quality detection module 1 and the output of the aquaculture water quality detection module 4 are respectively used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 2; The speed target value and the output value of the aquaculture water quality detection module 2 are used as the corresponding inputs of the aquaculture water quality controller 3, the current target value and the output value of the aquaculture water quality detection module 3 are used as the corresponding inputs of the aquaculture water quality controller 3, the speed disturbance output of the aquaculture water quality controller 3 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3 are used as the corresponding inputs of the Elman neural network model 2, the current disturbance output of the aquaculture water quality controller 4 and the output of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3 are used as the corresponding inputs of the Elman neural network model 3, the output of the Elman neural network model 2, the output of the Elman neural network model 3, the output of the aquaculture water quality detection module 2 and the output of the aquaculture water quality detection module 3 are used as the corresponding inputs of the ANFIS adaptive neural fuzzy reasoning model-Elman neural network model 3, the output of the Elman neural network model 2 and the output of the Elman neural network model 3 are used as the inputs of the oxygenation device and the temperature device respectively, and the oxygenation device and the temperature device adjust the dissolved oxygen and temperature of the aquaculture water quality; The outputs of the dissolved oxygen sensor, the rotation speed sensor, the current sensor and the temperature sensor are respectively used as the inputs of the aquaculture water quality detection module 1, the aquaculture water quality detection module 2, the aquaculture water quality detection module 3 and the aquaculture water quality detection module 4. The dissolved oxygen sensor, the rotation speed sensor, the current sensor and the temperature sensor respectively measure the dissolved oxygen of the aquaculture water quality, the rotation speed of the oxygenation device, the current of the temperature device and the temperature of the aquaculture water quality.
3. An aquaculture Internet of Things system, characterized in that: It includes a water quality monitoring and feeding terminal, a meteorological detection terminal, an aquaculture information collection terminal, an aquaculture Alibaba Cloud MQTT server, an aquaculture remote monitoring terminal and an aquaculture client. The water quality monitoring and feeding terminal is used to monitor aquaculture water quality parameters and control aquaculture equipment. The meteorological detection terminal is used to monitor meteorological parameters of the aquaculture environment. The aquaculture information collection terminal is used to realize two-way communication between the water quality monitoring and feeding terminal, the meteorological detection terminal and the aquaculture Alibaba Cloud MQTT server. The information of the water quality monitoring and feeding terminal and the meteorological detection terminal is sent to the aquaculture Alibaba Cloud MQTT server through the MQTT protocol and stored in the MYSQL database to provide aquaculture monitoring services for the aquaculture client and the aquaculture remote monitoring terminal. The parameter collection and control information of the aquaculture client and the aquaculture remote monitoring terminal is sent to the water quality monitoring and feeding terminal and the meteorological detection terminal through the aquaculture Alibaba Cloud MQTT server and the aquaculture information collection terminal. The aquaculture client and the aquaculture remote monitoring terminal realize aquaculture water quality monitoring, historical data query, data analysis and data alarm. The water quality monitoring and feeding end is provided with the intelligent water quality monitoring method as claimed in claim 1 or 2.
