A nutrient solution concentration control system suitable for hydroponic vegetables

Through the optimization of PID controller through lossless weight measurement and growth target setting combined with THGS algorithm, the problem of insufficient adaptability and large errors in the concentration regulation of hydroponic vegetable nutrient solution is solved, efficient and accurate nutrient solution regulation is achieved, and vegetables are improved Growth quality and yield.

CN118838435BActive Publication Date: 2024-12-06JILIN AGRICULTURAL UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411061022.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-12-06
Estimated Expiration
2044-04-08

AI Technical Summary

Technical Problem

The existing hydroponic vegetable nutrient solution concentration control system has problems such as insufficient adaptive control capabilities, low regulation efficiency, large regulation errors, poor lag and real-time performance, which leads to unstable vegetable growth and increases planting costs.

Method used

The parameters of the PID controller are optimized by using the lossless weight measurement method, the growth target setting method and the THGS algorithm. The growth target curve is generated by obtaining vegetable weight and historical data through the lossless weight measurement. The parameters of the PID controller are tuned in combination with the THGS algorithm to achieve nutrient solution concentration precise regulation.

Benefits of technology

It improves the accuracy and real-time regulation of nutrient solution concentration, reduces regulation errors, ensures healthy growth of vegetables, avoids malnutrition and waste, reduces planting costs, and improves vegetable quality and yield.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118838435B_ABST
    Figure CN118838435B_ABST
Patent Text Reader

Abstract

The present invention provides a nutrient solution concentration control system suitable for hydroponic vegetables, which relates to the field of hydroponic vegetables, including a non-destructive weight measurement method, a growth target setting method, a nutrient solution concentration control method, a control parameter setting method and a nutrient solution transmission model; wherein the non-destructive weight measurement method realizes non-destructive weight measurement of vegetables in a hydroponic system, the growth target setting method includes historical data collection and growth target curve statistics, the nutrient solution concentration control method controls the current nutrient solution concentration through a PID controller, the control parameter setting method uses a THGS algorithm to tune the parameters in the PID controller, and the nutrient solution transmission model is set in the hydroponic system to reflect the change of nutrient solution concentration over time and then determine the control method. The system is used to solve the problems of the inability to perform adaptive control, low control efficiency, large control error, certain hysteresis, and poor real-time performance in the existing hydroponic vegetable nutrient solution concentration control process.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention is a divisional application of patent application number 202410415669.0, and the invention name is “Adaptive regulation method of vegetable hydroponic nutrition based on THGS-PID”. Technical Field

[0002] The invention relates to the technical field of hydroponic vegetables, and in particular to a nutrient solution concentration control system suitable for hydroponic vegetables. Background Art

[0003] Hydroponic vegetables are cultivated with nutrient solution, and the core of hydroponic vegetables is to directly immerse the roots of plants in nutrient solution, and replace the soil in traditional vegetable cultivation with nutrient solution to provide plants with water, nutrients, oxygen and other growth factors, so that vegetable cultivation is not restricted by regional soil, planting site, etc., and has the advantages of short planting cycle, easy management, and saving land resources. However, in the process of hydroponic vegetable cultivation, since it is soilless cultivation, the concentration of nutrient solution is directly related to the fertility of hydroponic vegetables and directly affects the growth state of hydroponic vegetables. However, at different stages of vegetables, the difference in nutrition obtained, that is, the demand for nutrient solution concentration is different. For example, the nutrient solution concentration required for seedlings is less. Too high nutrient solution concentration not only leads to waste of nutrient solution, but also easily causes problems such as burning roots and seedlings; the nutrient solution concentration required during the growth period is high, and too low nutrient solution concentration will lead to unbalanced nutrition of vegetables and hindered root growth, thus causing problems such as vegetable death.

[0004] In the prior art, the concentration of nutrient solution for hydroponic vegetables is mainly adjusted by manual intervention. However, the manual intervention method has high requirements for operators and a large number of human factors. The manual intervention adjustment process has a certain lag and poor real-time performance (i.e., the adjustment is mainly based on the feedback of the plants). The adjustment error is large and the precision is low. At the same time, it requires a lot of manpower and material resources and increases the planting cost. At present, there are also automated systems for adjusting the concentration of nutrient solution for hydroponic vegetables. The automated systems in the prior art are usually PID control systems, which have the advantages of strong adaptability and strong robustness. However, the present application has problems such as long adjustment time, time delay, and time lag, which can easily lead to time-varying, time-varying, and nonlinear adjustments. The unstable factors in the adjustment process increase, affecting the normal growth of plants. Summary of the invention

[0005] In view of the above problems existing in the prior art, the purpose of the present invention is to provide a nutrient solution concentration control system suitable for hydroponic vegetables, so as to solve the problems existing in the prior art that the concentration of the nutrient solution for hydroponic vegetables cannot be effectively adaptively controlled, the control efficiency is low, the control error is large, there is a certain lag, and the real-time performance is poor.

[0006] The purpose of the present invention is achieved through the following technical solutions:

[0007] A nutrient solution concentration control system suitable for hydroponic vegetables, including a non-destructive weight measurement method, a growth target setting method, a nutrient solution concentration control method and a control parameter setting method;

[0008] Among them, the non-destructive weighing method: by non-destructively weighing the vegetables in the hydroponic system, the weight of a single hydroponic vegetable is output; the growth target setting method: through the historical data of hydroponic vegetables, the growth target curves of each stage of hydroponic vegetables are statistically generated, and the growth target curves of each stage are used to describe the growth of hydroponic vegetables; including historical data collection and growth target curve statistics; nutrient solution concentration control method: according to the weight of a single hydroponic vegetable obtained in the non-destructive weighing method and the growth target curves of each stage of hydroponic vegetables obtained in the growth target setting method, a PID controller is used to control the current nutrient solution concentration; control parameter setting method: in each control stage of the nutrient solution concentration control method, the THGS algorithm is used to tune the parameters in the PID controller.

[0009] Based on the further optimization of the above scheme, the non-destructive weight measurement method includes: first, randomly selecting M groups of hydroponic vegetables from the entire hydroponic system at uniform intervals, each group containing N plants; then, for each group of hydroponic vegetables, scooping them out from the hydroponic solution and draining them for a fixed time, and then weighing them after draining to obtain the weight of each group of hydroponic vegetables W i (i=1,2,…, M) ; Finally, output the weight of a single hydroponic vegetable w :

[0010]

[0011] Based on the further optimization of the above scheme, the historical data collection is specifically as follows: for each batch of hydroponic vegetables in the hydroponic system of the same growth environment, the historical data of a single hydroponic vegetable is recorded, and the historical data includes the historical growth weight and the harvesting weight;

[0012] Among them, the historical growth weight monitors the entire growth process of hydroponic vegetables according to the sampling period to obtain the historical growth weight data of each sampling period; the historical growth weight includes planting time and weight value, the planting time is the time interval from the corresponding batch to the start of planting, and the weight value is the weight of a single hydroponic vegetable of the batch obtained by the non-destructive weighing method within the corresponding planting time; the picking weight is the weight of a single hydroponic vegetable of the corresponding batch of hydroponic vegetables after maturity and picking according to the picking process, which reflects the harvest status of the batch of vegetables.

[0013] Based on further optimization of the above scheme, the growth target curve statistics specifically include:

[0014] Step S11, sorting: First, all batches of hydroponic vegetables are sorted from large to small according to the picking weight obtained in the historical data collection, and the historical data of the first Y batches are selected;

[0015] Step S12, fitting: fitting is performed for the historical data of the previous Y batches, that is, the historical growth weight of each sampling period, and the fitting weight of the corresponding sampling period is output, specifically:

[0016]

[0017] Where: w j Indicates that hydroponic vegetables are j The fitting weight in the sampling period, i.e. the growth target weight; Indicates the selected y The picking weight in the historical data of each batch of hydroponic vegetables, i.e., the fitting weight; Indicates the selected y Batches of hydroponic vegetables in j Weight value in a sampling period;

[0018] Step S13, curve generation: obtain the fitting weights in all sampling periods through step S12, and use the fitting weights and corresponding sampling periods to form a growth target curve.

[0019] Based on the further optimization of the above scheme, the PID controller includes a proportional unit, an integral unit and a differential unit, and the control parameters corresponding to each unit are Kp , Ki and Kd PID controller outputs the weight of a single hydroponic vegetable according to the non-destructive weighing method w The growth target curve obtained by the growth target setting method is used to control the current nutrient solution concentration using a PID control algorithm;

[0020] Among them, the control cycle of the PID controller is consistent with the cycle in the non-destructive weight measurement method; the input signal of the PID controller is: the weight of a single hydroponic vegetable obtained by the non-destructive weight measurement method during the current sampling period w The difference between the fitted weight obtained by the growth target curve in the growth target setting method under the corresponding sampling period; the output signal of the PID controller is the unit amount of nutrient solution regulation, which is used to change (mainly add) the concentration of nutrient solution in the hydroponic vegetable planting system.

[0021] Based on the further optimization of the above scheme, the control parameter setting method is specifically as follows: outside the hydroponic system, Z parameter control systems independent of the hydroponic system are set, the hydroponic system is the main system for cultivating hydroponic vegetables, and the parameter control system is a scaled-down version of the hydroponic system and is used for parameter control of the hydroponic system, that is, the number of hydroponic vegetables, the amount of nutrient solution, etc. are proportionally reduced, and environmental factors such as light, temperature and humidity remain unchanged; the parameter control system adopts the THGS algorithm to control the control parameters of the PID controller in each control cycle (the control cycle is a fixed time period);

[0022] Among them, the THGS algorithm is specifically:

[0023]

[0024] Where: x best Indicates the position of the current optimal individual, that is, the optimal control parameter; X(t) represents the position of each individual in the population, t Indicates the current iteration number; randn(1) and r 1. r 2 are all random numbers, and randn(1) It follows a positive distribution; l is the system constant;

[0025] parameter R Specifically:

[0026]

[0027] Where: T represents the maximum number of iterations, randn(2) is a random number, and randn(1) Same nature;

[0028] Weight W 1 and W 2 Specifically:

[0029]

[0030] Where: G Indicates the number of populations set; r 3 、r 4 、r 5 are all random numbers; Sum H represents the total hunger level of all individuals, through H(i) Sum obtained; H(i) Indicates the hunger level of each individual, specifically:

[0031]

[0032] Where: AF(i) represents the fitness of all individuals, BF Indicates the best fitness in the current iteration; parameter h Specifically:

[0033]

[0034] Where: r Represents a random number; LH Representation parameters h The lower bound of TH Specifically:

[0035]

[0036] Where: WF Indicates the best fitness in the current iteration; r 6 is a random number; F(i) for AF(i) The fitness of each individual saved in ; UB , LB Respectively represent the upper and lower bounds of the search;

[0037] parameter E Specifically:

[0038]

[0039] Where: express The reciprocal of

[0040] The specific steps of the parameter control system for controlling the control parameters are:

[0041] Step S21: Initialize the parameters and set the maximum number of iterations. T , system constant l , and initialize random parameters r、r 1 、r 2 、r 3 、r 4 、r 5 、r 6 、randn(1)、randn(2) , and at the same time, set the upper and lower boundaries of the control parameters, that is, , , ;

[0042] Step S22: Initialize the values ​​of Z parameter control systems, and obtain Z groups of control parameters in a chaotic mapping manner, specifically:

[0043]

[0044] Where: , , Represents the initialization parameter value; represents the random diffusion factor;

[0045] Z parameters regulate the control parameters of the system x s for:

[0046]

[0047] s = 1, 2, …, Z;

[0048] Step S23: Use the Z group of control parameters obtained in step S22 x s(t) , and regulate the corresponding Z parameter control systems; then, wait for a regulation cycle, use a non-destructive weight measurement method to measure the hydroponic vegetables in each parameter control system, and obtain the weight of a single hydroponic vegetable in each parameter control system w s ;

[0049] Step S24: Use an iterative algorithm to obtain the control parameters for the next regulation cycle x s(t+1) :If the number of iterations t Less than the maximum number of iterations T , then repeat steps S23 to S24; if the number of iterations is t Not less than the maximum number of iterations T , then stop the iteration and use the best parameter after iteration as the control parameter x best The output is sent to the hydroponic system (i.e., the PID controller of the hydroponic system) to optimize the parameters of the hydroponic system.

[0050] Based on the further optimization of the above scheme, the control cycle is 24h; the random parameter r、r 1 、r 2 、r 3 、r 4 、r 5 、r 6 all belong to (0,1]; system constant l=0.08 .

[0051] Based on the further optimization of the above solution, the iterative algorithm is specifically as follows:

[0052] Step S241: First, obtain the individual fitness of each parameter control system F(i) :

[0053]

[0054] Where: e(t) It represents the error between input and output in parameter control system; Indicates the control value; Indicates the nutrient solution concentration value of the hydroponic system; g 1 、g 2 、g 3 represent the corresponding influence weight values ​​respectively;

[0055] Step S242: Update the best fitness in the THGS algorithm through the individual fitness in step S241 BF , the worst fitness WF And the optimal control parameters x best ; and obtain the hunger level of each parameter control system H(i) , weight W 1 and W 2. Parameters E and R;

[0056] Step S243: Substitute the parameters obtained in step S242 into the iteration process of the THGS algorithm to implement iteration.

[0057] The following are the technical effects of the technical solution of the present invention:

[0058] This application uses the THGS algorithm to cooperate with the PID control algorithm, and uses the THGS algorithm to control the PID controller in each control cycle, find the optimal value of the PID controller parameters, and avoid time variation, hysteresis, nonlinearity, long adjustment time, etc. caused by the algorithm's own defects (i.e., long adjustment time, time delay, time lag, etc.) during the PID controller control process, thereby ensuring that the PID controller controls the concentration of the hydroponic vegetable nutrient solution to the best. Using the repeated iterations of THGS, not only can the problems of low adjustment parameter accuracy, large human influence factors, certain hysteresis, poor real-time performance, time-consuming and labor-intensive, and low automation caused by human adjustment be avoided, but also the self-update ability of the system is ensured, and the adjusted PID controller is guaranteed to match the different growth stages of hydroponic vegetables, so as to provide the appropriate and optimal nutrients according to the different stages of hydroponic vegetables, first, to ensure the healthy and normal growth of hydroponic vegetables, avoid burning roots and seedlings or malnutrition, second, to ensure the rational use of nutrient solution, avoid waste caused by excessive use of nutrient solution, and third, no professional manual guidance is required, costs are reduced, and the quality and yield of hydroponic vegetables are effectively improved.

[0059] In addition, the present application utilizes non-destructive weight measurement, growth target determination parameters, etc. as inputs of the PID controller to effectively reflect the characteristics of the growth stage of hydroponic vegetables, thereby ensuring the accuracy of the regulation of nutrient solution concentration, reducing regulation errors, and achieving timely and accurate nutrient solution replenishment. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 4 is a system framework diagram of the adaptive control method in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0062] Embodiment 1:

[0063] A vegetable hydroponic nutrition adaptive control method based on THGS-PID, including a non-destructive weight measurement method, a growth target setting method, a nutrient solution concentration control method and a control parameter setting method;

[0064] Among them, the non-destructive weighing method: non-destructively weigh the vegetables in the hydroponic system to output the weight of a single hydroponic vegetable; specifically:

[0065] First, M groups of hydroponic vegetables are randomly selected from the entire hydroponic system at even intervals, each group containing N plants; then, each group of hydroponic vegetables is taken out from the hydroponic solution and drained for a fixed time, and then weighed after draining to obtain the weight of each group of hydroponic vegetables W i (i = 1, 2, …, M) ; Finally, output the weight of a single hydroponic vegetable w :

[0066]

[0067] Growth target setting method: Through the historical data of hydroponic vegetables, the growth target curves of each stage of hydroponic vegetables are statistically generated. The growth target curves of each stage are used to describe the growth of hydroponic vegetables; including historical data collection and growth target curve statistics;

[0068] The historical data collection is specifically as follows: for each batch of hydroponic vegetables in the hydroponic system of the same growth environment, the historical data of a single hydroponic vegetable is recorded, and the historical data includes the historical growth weight and the picking weight; wherein, the historical growth weight monitors the entire growth process of the hydroponic vegetables according to the sampling period to obtain the historical growth weight data of each sampling period; the historical growth weight includes the planting time and the weight value, the planting time is the time interval from the corresponding batch to the start of planting, and the weight value is the weight of a single hydroponic vegetable obtained by the non-destructive weighing method for the batch of hydroponic vegetables within the corresponding planting time; the picking weight is the weight of a single hydroponic vegetable of the corresponding batch of hydroponic vegetables after maturity and picking according to the picking process, which reflects the harvest status of the batch of vegetables.

[0069] Growth target curve statistics specifically include:

[0070] Step S11, sorting: First, all batches of hydroponic vegetables are sorted from large to small according to the picking weight obtained in the historical data collection, and the historical data of the first Y batches are selected;

[0071] Step S12, fitting: fitting is performed for the historical data of the previous Y batches, that is, the historical growth weight of each sampling period, and the fitting weight of the corresponding sampling period is output, specifically:

[0072]

[0073] Where: w j Indicates that hydroponic vegetables are j The fitting weight in the sampling period, i.e. the growth target weight; Indicates the selected y The picking weight in the historical data of each batch of hydroponic vegetables, i.e., the fitting weight; Indicates the selected y Batches of hydroponic vegetables in j Weight value in a sampling period;

[0074] Step S13, curve generation: obtain the fitting weights in all sampling periods through step S12, and use the fitting weights and corresponding sampling periods to form a growth target curve (the fitting curve can use conventional curve fitting methods in the art, and this embodiment does not make specific limitations).

[0075] Nutrient solution concentration control method: According to the weight of a single hydroponic vegetable obtained by the non-destructive weight measurement method and the growth target curves of hydroponic vegetables at each stage obtained by the growth target setting method, a PID controller is used to control the current nutrient solution concentration; the PID controller includes a proportional unit, an integral unit and a differential unit, and the control parameters corresponding to each unit are Kp , Ki and Kd; Proportional unit: The proportional unit is also called P-controller, which is mainly used to control the current and give an output proportional to the current error; When applying the P-controller, a value will be set first, and then the set value, or the expected value, will be compared with the actual value obtained during use. This actual value may also be the feedback value obtained during the control process; The error obtained above is multiplied by the proportional constant to obtain the output of the P-controller; When the output of the P-controller is 0, it means that the current error value is 0. Integral unit: The integral unit is also called I-controller, which is mainly used to control the past; When the process variable and the set value are controlled by the P-controller, an offset will inevitably occur between the process variable and the set value. The offset requires the control of the I-controller to try to eliminate the existing steady-state error; The I-controller mainly achieves the purpose of controlling the error by integrating the error. When the error value is 0, the I-controller will save the parameter value of the controller in the current state. Differential unit: The differential unit is also called D-controller, which is mainly used to control the future; The above two controllers do not have the function of predicting the future, so in actual control, even if the set point changes, the first two controllers can only respond normally and cannot make corresponding changes; The D-controller can solve this problem by predicting the future.

[0076] The PID controller outputs the weight of a single hydroponic vegetable plant according to the non-destructive weighing method. w The growth target curve obtained by the growth target setting method is used to control the current nutrient solution concentration using the PID control algorithm; the control cycle of the PID controller is consistent with the cycle in the non-destructive weight measurement method; the PID controller input signal is: the weight of a single hydroponic vegetable obtained by the non-destructive weight measurement method in the current sampling period w The difference between the fitted weight obtained by the growth target curve in the growth target setting method under the corresponding sampling period; the output signal of the PID controller is the unit amount of nutrient solution regulation, which is used to change (mainly add) the concentration of nutrient solution in the hydroponic vegetable planting system.

[0077] Control parameter setting method: In each control stage of the nutrient solution concentration control method, the THGS algorithm is used to tune the parameters in the PID controller; specifically: outside the hydroponic system, Z parameter control systems independent of the hydroponic system are set, the hydroponic system is the main system for cultivating hydroponic vegetables, the parameter control system is a scaled-down version of the hydroponic system (the reduction ratio is determined according to actual conditions) and is used for parameter control of the hydroponic system, that is, the number of hydroponic vegetables, the amount of nutrient solution, etc. are reduced in proportion, and environmental factors such as light, temperature and humidity remain unchanged; the parameter control system uses the THGS algorithm to control the control parameters of the PID controller in each control cycle (the control cycle is a fixed time period), and the control cycle in this embodiment is 24h;

[0078] Among them, the THGS algorithm is specifically:

[0079]

[0080] Where: x best Indicates the position of the current optimal individual, that is, the optimal control parameter; X(t) represents the position of each individual in the population, t Indicates the current iteration number; randn(1) and r 1. r 2 are all random numbers, and randn(1) It follows a positive distribution; l is the system constant;

[0081] parameter R Specifically:

[0082]

[0083] Where: T represents the maximum number of iterations, randn(2) is a random number, and randn(1) Same nature;

[0084] Weight W 1 and W 2 Specifically:

[0085]

[0086] Where: G Indicates the number of populations set; r 3 、r 4 、r 5 are all random numbers; Sum H represents the total hunger level of all individuals, through H(i) Sum obtained; H(i) Indicates the hunger level of each individual, specifically:

[0087]

[0088] Where: AF(i) represents the fitness of all individuals, BF Indicates the best fitness in the current iteration; parameter h Specifically:

[0089]

[0090] Where: r Represents a random number; LH Representation parameters h The lower bound of TH Specifically:

[0091]

[0092] Where: WF Indicates the best fitness in the current iteration; r 6 is a random number; F(i) for AF(i) The fitness of each individual saved in ; UB , LB Respectively represent the upper and lower bounds of the search;

[0093] parameter E Specifically:

[0094]

[0095] Where: express The reciprocal of

[0096] The specific steps of the parameter control system for controlling the control parameters are:

[0097] Step S21: Initialize the parameters and set the maximum number of iterations. T , system constant l (In this embodiment l= 0.08 ), and initialize random parameters r、r 1 、r 2 、r 3 、r 4 、r 5 、r 6 、randn(1)、randn(2) (In this embodiment r、r 1 、r 2 、 r 3 、r 4 、r 5 、r 6 all belong to (0,1]; randn(1) and randn(2) According to the actual situation), at the same time, set the upper and lower boundaries of the control parameters, that is, , , ;

[0098] Step S22: Initialize the values ​​of Z parameter control systems, and obtain Z groups of control parameters in a chaotic mapping manner, specifically:

[0099]

[0100] Where: , , Represents the initialization parameter value; represents the random diffusion factor, and in this embodiment, the value is [0,1);

[0101] Z parameters regulate the control parameters of the system x s for:

[0102]

[0103] s = 1, 2, …, Z;

[0104] Step S23: Use the Z group of control parameters obtained in step S22 x s(t) , and regulate the corresponding Z parameter control systems; then, wait for a regulation cycle, use a non-destructive weight measurement method to measure the hydroponic vegetables in each parameter control system, and obtain the weight of a single hydroponic vegetable in each parameter control system w s ;

[0105] Step S24: Use an iterative algorithm to obtain the control parameters for the next regulation cycle x s(t+1) , specifically:

[0106] Step S241: First, obtain the individual fitness of each parameter control system F(i) :

[0107]

[0108] Where: e(t) Represents the error between the input and output in the parameter control system (in this embodiment, that is, the difference between the weight of a single hydroponic vegetable obtained by the non-destructive weight measurement method and the fitted weight obtained by the growth target curve in the growth target setting method at the same time point); Represents the control value (i.e. the nutrient solution control amount output by the PID controller); Indicates the nutrient solution concentration value of the hydroponic system; g 1 、g 2 、g 3 represent the corresponding influence weight values. g 1 =0.8、g 2 =0.01、g 3 =0.09 ;

[0109] Step S242: Update the best fitness in the THGS algorithm through the individual fitness in step S241 BF , the worst fitness WF And the optimal control parameters xbest ; and obtain the hunger level of each parameter control system H(i) , weight W 1 and W 2. Parameters E and R;

[0110] Step S243: Substitute the parameters obtained in step S242 into the iteration process of the THGS algorithm, that is:

[0111]

[0112] Implement iteration.

[0113] If the number of iterations t Less than the maximum number of iterations T , then repeat steps S23 to S24; if the number of iterations is t Not less than the maximum number of iterations T , then stop the iteration and use the best parameter after iteration as the control parameter x best The output is sent to the hydroponic system (i.e., the PID controller of the hydroponic system) to optimize the parameters of the hydroponic system.

[0114] Embodiment 2:

[0115] As a further optimization of the scheme of the present application, on the basis of the scheme of Example 1, since the concentration of the nutrient solution changes dynamically within the unit control cycle, that is, while the PID controller changes (mainly adding), the hydroponic vegetables are also absorbing. In order to further realize the precise control of the concentration of the nutrient solution in the hydroponic system, a nutrient solution transmission model is set in the hydroponic system to reflect the change of the nutrient solution concentration over time, specifically:

[0116]

[0117] Where: C Indicates the concentration of nutrient solution available for hydroponic vegetables to absorb in the hydroponic system; V c It indicates the utilization rate of nutrient solution, that is, the absorption rate of nutrient solution by hydroponic vegetables, which is obtained through a large amount of experimental data; Indicates the amount of nutrient solution regulation.

[0118] Preset transmission model fluctuation threshold [ C L ,C H ], when the dynamic changes When it is within the fluctuation threshold range, it is regulated according to the normal regulation parameters; when the dynamic changes When it is outside the fluctuation threshold range, the error is output and readjusted.

Claims

1. A nutrient solution concentration control system suitable for hydroponic vegetables, Features: include: Non-destructive weighing method: non-destructively weigh the vegetables in the hydroponic system to output the weight of a single hydroponic vegetable; Growth target setting method: Through the historical data of hydroponic vegetables, the growth target curves of each stage of hydroponic vegetables are statistically generated. The growth target curves of each stage are used to describe the growth of hydroponic vegetables; including historical data collection and growth target curve statistics; Nutrient solution concentration control method: According to the weight of a single hydroponic vegetable obtained by the non-destructive weight measurement method and the growth target curve of each stage of the hydroponic vegetable obtained by the growth target setting method, a PID controller is used to control the current nutrient solution concentration; Control parameter setting method: In each control stage of the nutrient solution concentration control method, the THGS algorithm is used to tune the parameters in the PID controller; The PID controller includes a proportional unit, an integral unit and a differential unit, and the control parameters corresponding to each unit are Kp , Ki and Kd ; The PID controller outputs the weight of a single hydroponic vegetable plant according to the non-destructive weighing method. w The growth target curve obtained by the growth target setting method is used to control the current nutrient solution concentration using a PID control algorithm; Among them, the control cycle of the PID controller is consistent with the cycle in the non-destructive weight measurement method; the input signal of the PID controller is: the weight of a single hydroponic vegetable obtained by the non-destructive weight measurement method during the current sampling period w and the difference between the fitted weight obtained by the growth target curve in the growth target setting method under the corresponding sampling period; the output signal of the PID controller is the nutrient solution control amount, which is used to change the unit amount of the nutrient solution concentration in the hydroponic vegetable planting system; The control parameter setting method is specifically as follows: outside the hydroponic system, Z parameter control systems are set up that are independent of the hydroponic system, the hydroponic system is the main system for cultivating hydroponic vegetables, the parameter control system is a scaled-down version of the hydroponic system and is used for parameter control of the hydroponic system, that is, the number of hydroponic vegetables and the amount of nutrient solution are proportionally reduced, and the environmental factors of light, temperature and humidity remain unchanged; the parameter control system adopts the THGS algorithm to control the control parameters of the PID controller in each control cycle; Among them, the THGS algorithm is specifically: Where: x best Indicates the position of the current optimal individual, that is, the optimal control parameter; X(t) represents the position of each individual in the population, t Indicates the current iteration number; randn(1) and r 1 , r 2 are all random numbers, and randn(1) It follows a positive distribution; l is the system constant; parameter R Specifically: Where: T represents the maximum number of iterations, randn(2) is a random number, and randn(1) Same nature; Weight W 1 and W 2 Specifically: Where: G Indicates the number of populations set; r 3 、r 4 、r 5 All are random numbers; Sum H represents the total hunger level of all individuals, through H(i) Sum obtained; H(i) Indicates the hunger level of each individual, specifically: Where: AF(i) represents the fitness of all individuals, BF Indicates the best fitness in the current iteration; parameter h Specifically: Where: r Represents a random number; LH Representation parameters h The lower bound of TH Specifically: Where: WF Indicates the best fitness in the current iteration; r 6 is a random number; F(i) for AF(i) The fitness of each individual saved in ; UB , LB Respectively represent the upper and lower bounds of the search; parameter E Specifically: Where: express The reciprocal of The specific steps of the parameter control system for controlling the control parameters are: Step S21: Initialize the parameters and set the maximum number of iterations. T , system constant l , and initialize random parameters r、 r 1 、r 2 、r 3 、r 4 、r 5 、r 6 、randn(1),randn(2) , and at the same time, set the upper and lower boundaries of the control parameters, that is, , , ; Step S22: Initialize the values ​​of Z parameter control systems, and obtain Z groups of control parameters in a chaotic mapping manner, specifically: Where: , , Represents the initialization parameter value; represents the random diffusion factor; Z parameters regulate the control parameters of the system x s for: s=1,2,…,Z; Step S23: Use the Z group of control parameters obtained in step S22 x s(t) , and regulate the corresponding Z parameter control systems; then, wait for a regulation cycle, use a non-destructive weight measurement method to measure the hydroponic vegetables in each parameter control system, and obtain the weight of a single hydroponic vegetable in each parameter control system w s ; Step S24: Use an iterative algorithm to obtain the control parameters for the next regulation cycle x s(t+1) :If the number of iterations t Less than the maximum number of iterations T , then repeat steps S23 to S24; if the number of iterations is t Not less than the maximum number of iterations T , then stop the iteration and use the best parameter after iteration as the control parameter x best Output to the hydroponic system to optimize the parameters of the hydroponic system; Nutrient solution transfer model: It is set in the hydroponic system to reflect the change of nutrient solution concentration over time, specifically: Where: C Indicates the concentration of nutrient solution available for hydroponic vegetables to absorb in the hydroponic system; V c It indicates the utilization rate of nutrient solution, that is, the absorption rate of nutrient solution by hydroponic vegetables; Indicates the amount of nutrient solution regulation; Preset transmission model fluctuation threshold [ C L ,C H ], when the dynamic changes When it is within the fluctuation threshold, it is regulated according to the normal regulation parameters; when the dynamic changes When it is outside the fluctuation threshold range, the error is output and readjusted.

2. A nutrient solution concentration control system suitable for hydroponic vegetables according to claim 1, Features: The non-destructive weight measurement method comprises: First, M groups of hydroponic vegetables are randomly selected from the entire hydroponic system at even intervals, each group containing N plants; then, each group of hydroponic vegetables is taken out from the hydroponic solution and drained for a fixed time, and then weighed after draining to obtain the weight of each group of hydroponic vegetables W i (i=1,2,…,M) ; Finally, output the weight of a single hydroponic vegetable w : 。 3. A nutrient solution concentration control system suitable for hydroponic vegetables according to claim 1 or 2, Features: The historical data collection specifically includes: for each batch of hydroponic vegetables in the hydroponic system of the same growth environment, the historical data of a single hydroponic vegetable is recorded, and the historical data includes the historical growth weight and the harvesting weight; Among them, the historical growth weight monitors the entire growth process of hydroponic vegetables according to the sampling period to obtain the historical growth weight data of each sampling period; the historical growth weight includes the planting time and the weight value, the planting time is the time interval from the corresponding batch to the start of planting, and the weight value is the weight of a single hydroponic vegetable obtained by the non-destructive weight measurement method for the batch of hydroponic vegetables during the corresponding planting time; the picking weight is the weight of a single hydroponic vegetable of the corresponding batch of hydroponic vegetables after maturity and picking according to the picking process, which reflects the harvest status of the batch of hydroponic vegetables; The growth target curve statistics specifically include: Step S11, sorting: First, all batches of hydroponic vegetables are sorted from large to small according to the picking weight obtained in the historical data collection, and the historical data of the first Y batches are selected; Step S12, fitting: fitting is performed for the historical data of the previous Y batches, that is, the historical growth weight of each sampling period, and the fitting weight of the corresponding sampling period is output, specifically: Where: w j Indicates that hydroponic vegetables are j The fitting weight in the sampling period, i.e. the growth target weight; Indicates the selected y The picking weight in the historical data of each batch of hydroponic vegetables, i.e., the fitting weight; Indicates the selected y Batches of hydroponic vegetables in j The weight value in each sampling period; Step S13, curve generation: obtain the fitting weights in all sampling periods through step S12, and use the fitting weights and corresponding sampling periods to form a growth target curve.

Citation Information

Patent Citations

  • THGS-PID-based vegetable hydroponic nutrition self-adaptive regulation and control method

    CN118011782A