A greenhouse air conditioning intelligent control method and system based on climate collection
By building a regression model and neural network, using the cloud platform to obtain meteorological and planting data, and generating control instructions to adjust the heat pump air conditioner and ventilation fan, the timely problem of temperature and humidity adjustment in the greenhouse is solved, and self-regulation and unified control of multiple greenhouses are realized. Efficiency and cost reduction.
Patent Information
- Application Number
- CN202410185268.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-02-19
AI Technical Summary
The existing technology cannot adjust the temperature and humidity in the greenhouse in a timely manner, resulting in the cultivation of plants that are sensitive to temperature and humidity requiring a large amount of manual real-time control, and cannot effectively respond to external weather changes.
An intelligent control method for greenhouse air conditioning based on climate collection is adopted to obtain meteorological data and planting data through the cloud platform, build regression models and neural networks, and generate control instructions to adjust the speed of heat pump air conditioners and ventilation fans to achieve self-control of temperature and humidity in the greenhouse. adjust.
It reduces the amount of manual participation, realizes self-regulation of temperature and humidity in the greenhouse, improves control efficiency, reduces user costs, and can connect multiple greenhouses for unified control.
Smart Images

Figure CN118012171B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to a greenhouse air-conditioning intelligent control method and system based on climate collection. Background Art
[0002] The temperature and humidity in the greenhouse are the key factors affecting plant growth. At present, the temperature and humidity in the greenhouse are adjusted manually according to the current temperature and humidity in the greenhouse. However, due to the constant changes in the external weather and climate, manual adjustment is usually not possible in a timely manner. For some temperature and humidity sensitive plants, more manpower is needed to adjust the temperature and humidity in real time.
[0003] Based on the current neural networks and the continuous improvement of various models, how to adjust the temperature and humidity in the greenhouse in combination with weather changes is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0004] In view of the above-mentioned defects, the purpose of the present invention is to propose a greenhouse air conditioning intelligent control method and system based on climate collection, so as to realize self-regulation of temperature and humidity in the greenhouse and reduce the amount of manual participation.
[0005] To achieve this purpose, the present invention adopts the following technical solution: a greenhouse air conditioning intelligent control method based on climate collection, comprising the following steps:
[0006] Step S1: The cloud platform obtains meteorological data and planting data respectively within a specified time period, wherein the meteorological data includes meteorological temperature changes, meteorological humidity changes and wind speed, and the planting data includes soil temperature, soil humidity, power of the heat pump air conditioner and speed of the ventilation fan;
[0007] Step S2: The cloud platform obtains the change trend of the greenhouse within a time period through the meteorological data and the planting data, adjusts the speed of the heat pump air conditioner and the ventilation fan according to the change trend, and generates corresponding control instructions;
[0008] Step S3: The cloud platform sends the control instructions to the intelligent gateway in the greenhouse through the network. The intelligent gateway analyzes the control instructions and regulates the heat pump air conditioner and the ventilation fan.
[0009] Preferably, the change trend in step S2 includes a change trend of soil temperature and a change trend of soil moisture.
[0010] Preferably, the variation trend is obtained as follows:
[0011] Collect historical data of meteorological data and planting data, align the data according to the time relationship, and obtain aligned data;
[0012] Performing a cleaning operation on the aligned data, wherein the cleaning operation includes removing outliers and filling missing values;
[0013] Build a regression model, input the aligned data into the regression model, and train the regression model;
[0014] Testing the trained regression model to obtain an evaluation index of the regression model. If the evaluation index is less than the score threshold, retraining the regression model. If the evaluation index is greater than the score threshold, defining the regression model as a finished product model.
[0015] The meteorological data and planting data collected at the current moment are input into the finished product model to obtain the change trend.
[0016] Preferably, the regression model is expressed as follows:
[0017] Y(t)=C+P+βX(t)+S;
[0018] P=ρ(1)*Y(t-1)+ρ(2)*Y(t-2)...ρ(i)*Y(ti);
[0019] S=e(t)+θ(1)*e(t-1)+θ(2)*e(t-2)…+θ(q)*e(tq);
[0020] Where Y(t) is the output of the changing trend at time t, C is the constant coefficient, β is the input coefficient, X(t) is the input of the aligned data, ρ(i) represents the i-th natural regression coefficient, e(t) is the white noise error at time t, representing the random part that cannot be explained by the model, θ(i) is the moving average coefficient, representing the impact of the past values of the white noise error on the current value; q represents the moving average order, indicating how many past values of the white noise error are considered.
[0021] Preferably, the evaluation index of the regression model is obtained by the following formula:
[0022] Y(t)=α1*α2 / ω(α1+α2);
[0023] Where α1 = TP / (TP+FP), α2 = TP / (TP+FN), where TP represents the number of samples predicted by the model to be positive and actually positive, FP represents the number of samples predicted by the model to be positive but actually negative, and ω is the adjustment ratio, which takes a value between 0 and 1.
[0024] Preferably, the steps of adjusting the heat pump air conditioner according to the change trend are as follows:
[0025] Obtaining the difference between the temperature change trend of the soil and the soil temperature as a first difference;
[0026] Determine whether the absolute value of the first difference is greater than a temperature threshold. If so, the heat pump air conditioner outputs at maximum power. If less than the temperature threshold, the absolute value of the difference between the first difference and the target temperature is input into the first neural network to obtain the water temperature required for the heat pump air conditioner to adjust the temperature.
[0027] In the first neural network, the formula for obtaining the water temperature is as follows:
[0028] W1(t2)=Kp1*ΔT2+Ki1*Sum(T error )+Kd1*Delta(T error );
[0029] Where Kp1, Ki1, and Kd1 are the gains of the PID controller in the first neural network, ΔT2 is the absolute value of the difference between the first difference and the target temperature, Sum(T error ) is the accumulation of soil temperature differences after all historical temperature adjustments, Delta (T error ) is the temperature difference existing after the last temperature adjustment;
[0030] The water temperature and adjustment time are input into the second neural network again to obtain the opening and closing degree of the water valve, so as to adjust the air conditioning heat pump;
[0031] In the second neural network, the formula for obtaining the opening and closing degree of the water valve is as follows:
[0032]
[0033] Where W1(t2) is the water temperature, Kp2, Ki2, Kd2 are the gains of the PID controller in the second neural network, t2 is the adjustment time, Sum(e error1 ) is the accumulation of error values of the opening and closing angles of the water valve that did not reach the target temperature after it was opened and closed in the past.
[0034] Preferably, the steps of adjusting the ventilation fan according to the change trend are as follows:
[0035] Obtaining the soil moisture change trend and the soil target moisture as the third difference;
[0036] It is determined whether the third difference is a negative number. If the third difference is a negative number, it is determined whether the absolute value of the third difference is greater than the humidity threshold. If it is greater than the humidity threshold, the air volume required by the ventilation fan is not obtained, and a control instruction for starting the spray device according to the preset power is directly generated. If it is less than the humidity threshold or the third difference is a positive number, the air volume required by the ventilation fan is obtained.
[0037] The calculation formula of air volume is as follows:
[0038] F1 = k*D / C;
[0039] Wherein, F1 is the air volume. When F1 is positive, it indicates the air volume of the ventilation fan. When F2 is negative, it indicates the air volume of the ventilation fan. k is the adjustment parameter. D is the absolute value of the difference between the current soil moisture and the soil moisture change trend. C is the third difference.
[0040] The air volume and adjustment time are input into the third neural network to obtain the rotation speed of the ventilation fan and adjust the ventilation fan;
[0041] In the third neural network, the formula for obtaining the speed of the ventilation fan is as follows:
[0042]
[0043] Where F1 is the air volume, Kp3, Ki3, Kd3 are the gains of the PID controller in the third neural network, t3 is the adjustment time, Sum(e error2 ) is the accumulation of error values of the speed of the ventilation fan that did not reach the F1 air volume after adjusting the speed in the past.
[0044] Preferably, before the air volume is input into the third neural network, the air volume needs to be corrected;
[0045] The corrected formula is as follows:
[0046] F1′=F1+F2*cos(λ);
[0047] Where F1 is the wind volume before correction, F2 is the wind speed in the meteorological data, and λ is the angle between the wind volume direction and the wind direction in the meteorological data.
[0048] A greenhouse air-conditioning intelligent control system based on climate collection, using the greenhouse air-conditioning intelligent control method based on climate collection, comprising a collection module, a calculation module and an instruction sending module;
[0049] The acquisition module is used to obtain meteorological data and planting data respectively within a specified time period;
[0050] The calculation module is used to obtain the change trend of the greenhouse within a time period through the meteorological data and the planting data, adjust the speed of the heat pump air conditioner and the ventilation fan according to the change trend, and generate corresponding control instructions;
[0051] The sending module is used to send the control instructions to the intelligent gateway in the greenhouse through the network. The intelligent gateway analyzes the control instructions and regulates the heat pump air conditioner and the ventilation fan.
[0052] One of the above technical solutions has the following advantages or beneficial effects: 1. Through the change trend, it can be clearly understood whether the temperature and humidity in the time period meet the planting standards, and then the adjustment amount is calculated according to the difference between the change trend and the standard. The temperature and humidity in the greenhouse are self-regulated, and the amount of manual participation is reduced.
[0053] 2. The data processing output port is in the cloud platform. This setting can reduce the number of equipment settings in the greenhouse. You only need to set up network communication in the greenhouse and send the corresponding planting data to the cloud platform immediately. At the same time, the cloud platform can connect the data of multiple greenhouses to regulate multiple greenhouses, greatly increasing the number of controls and reducing the cost of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a flow chart of an embodiment of the method of the present invention.
[0055] Figure 2 It is a schematic diagram of the structure of an embodiment of the system of the present invention. DETAILED DESCRIPTION
[0056] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0057] In the description of the embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0058] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, the meaning of "plurality" is two or more. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0059] like Figures 1-2 As shown, a greenhouse air conditioning intelligent control method based on climate collection includes the following steps:
[0060] Step S1: The cloud platform obtains meteorological data and planting data respectively within a specified time period, wherein the meteorological data includes meteorological temperature changes, meteorological humidity changes and wind speed, and the planting data includes soil temperature, soil humidity, power of the heat pump air conditioner and speed of the ventilation fan;
[0061] Step S2: The cloud platform obtains the change trend of the greenhouse within a time period through the meteorological data and the planting data, adjusts the speed of the heat pump air conditioner and the ventilation fan according to the change trend, and generates corresponding control instructions;
[0062] Step S3: The cloud platform sends the control instructions to the intelligent gateway in the greenhouse through the network. The intelligent gateway analyzes the control instructions and regulates the heat pump air conditioner and the ventilation fan.
[0063] The temperature and humidity in the greenhouse are the key factors affecting plant growth. At present, the temperature and humidity in the greenhouse are adjusted manually according to the current temperature and humidity in the greenhouse. However, due to the constant changes in the external weather and climate, manual adjustment is usually not possible in a timely manner. For some temperature and humidity sensitive plants, more manpower is needed to adjust the temperature and humidity in real time.
[0064] To this end, in the present invention, firstly, meteorological data and planting data are obtained within a specified time period, wherein the time period can be divided into one hour, and a day is divided into 24 time periods, and then the two data obtained in the current time period are input into the corresponding model to obtain a change trend, which is to predict the humidity and temperature values in the greenhouse after 1 hour, for example, the current temperature is 24°C. After the meteorological data and the current temperature are calculated together, the temperature change trend obtained may be 26°C. Through this change trend, it can be clearly understood whether the temperature and humidity in the time period meet the planting standards, and then the adjustment amount is calculated according to the difference between the change trend and the standard. For example, when the temperature needs to be adjusted, the opening and closing degree of the heat pump air conditioner needs to be adjusted (in greenhouse planting, water pipes will be buried in the soil, and the amount of hot water input is determined by the opening and closing degree of the water valve of the heat pump air conditioner, thereby adjusting the temperature of the soil). When the humidity needs to be adjusted, the speed of the ventilation fan needs to be adjusted. Then the corresponding control instructions are generated and sent to the corresponding equipment for regulation. Self-regulation of temperature and humidity in the greenhouse is realized. Reduce the amount of manual participation.
[0065] It is worth mentioning that in the present invention, the data processing output port is in the cloud platform, which can reduce the number of equipment settings in the greenhouse. It only needs to set up network communication in the greenhouse and send the corresponding planting data to the cloud platform immediately. At the same time, the cloud platform can connect the data of multiple greenhouses to regulate multiple greenhouses, greatly increasing the number of controls and reducing the cost of users.
[0066] Preferably, the change trend in step S2 includes a change trend of soil temperature and a change trend of soil moisture.
[0067] Preferably, the variation trend is obtained as follows:
[0068] Collect historical data of meteorological data and planting data, align the data according to the time relationship, and obtain aligned data;
[0069] Performing a cleaning operation on the aligned data, wherein the cleaning operation includes removing outliers and filling missing values;
[0070] Build a regression model, input the aligned data into the regression model, and train the regression model;
[0071] Testing the trained regression model to obtain an evaluation index of the regression model. If the evaluation index is less than the score threshold, retraining the regression model. If the evaluation index is greater than the score threshold, defining the regression model as a finished product model.
[0072] The meteorological data and planting data collected at the current moment are input into the finished product model to obtain the change trend.
[0073] It is worth mentioning that the historical data collected in the present invention requires a complete data volume of one year. Because the changes in temperature and humidity are usually seasonal. Therefore, the temperature and humidity change trends in the soil can be effectively predicted through a complete historical data of one year. After obtaining a year of complete historical data, it is necessary to align the data according to the time relationship, for example, the meteorological data at 00:00 on January 1st is aligned with the planting data at 00:00 on January 1st, as a set of aligned data.
[0074] Then several groups of aligned data are processed. Since there may be missing data and outliers when acquiring data, these abnormal data will affect the accuracy of the model. Therefore, the aligned data needs to be cleaned later to avoid errors in model training.
[0075] Preferably, the regression model is expressed as follows:
[0076] Y(t)=C+P+βX(t)+S;
[0077] P=ρ(1)*Y(t-1)+ρ(2)*Y(t-2)...ρ(i)*Y(ti);
[0078] S=e(t)+θ(1)*e(t-1)+θ(2)*e(t-2)…+θ(q)*e(tq);
[0079] Where Y(t) is the output of the changing trend at time t, C is the constant coefficient, β is the input coefficient, X(t) is the input of the aligned data, ρ(i) represents the i-th natural regression coefficient, e(t) is the white noise error at time t, representing the random part that cannot be explained by the model, θ(i) is the moving average coefficient, representing the impact of the past values of the white noise error on the current value; q represents the moving average order, indicating how many past values of the white noise error are considered.
[0080] Since it is necessary to predict the temperature change trend of the soil and the soil moisture change trend, two models need to be constructed separately when constructing the regression model. The two models operate independently. When constructing the regression model of the soil temperature change trend, X(t) is the alignment data composed of the meteorological temperature change and the soil temperature; and when constructing the regression model of the soil temperature change trend, X(t) is the alignment data composed of the meteorological humidity change and the soil humidity.
[0081] Since the changes in meteorological data are continuous, in the regression model of the present invention, the input of the model also includes the prior change trend. The accuracy of the model is increased by adding the corresponding natural regression coefficient to the change trend. However, the robustness of the model will be significantly reduced after the prior change trend is added. For this reason, white noise is also added to improve the robustness and generalization ability of the model.
[0082] Preferably, the evaluation index of the regression model is obtained by the following formula:
[0083] Y(t)=α1*α2 / ω(α1+α2);
[0084] Where α1 = TP / (TP+FP), α2 = TP / (TP+FN), where TP represents the number of samples predicted by the model to be positive and actually positive, FP represents the number of samples predicted by the model to be positive but actually negative, and ω is the adjustment ratio, which takes a value between 0 and 1.
[0085] Preferably, the steps of adjusting the heat pump air conditioner according to the change trend are as follows:
[0086] Obtaining the difference between the temperature change trend of the soil and the soil temperature as a first difference;
[0087] Determine whether the absolute value of the first difference is greater than a temperature threshold. If so, the heat pump air conditioner outputs at maximum power. If less than the temperature threshold, the absolute value of the difference between the first difference and the target temperature is input into the first neural network to obtain the water temperature required for the heat pump air conditioner to adjust the temperature.
[0088] In the first neural network, the formula for obtaining the water temperature is as follows:
[0089] W1(t2)=Kp1*ΔT2+Ki1*Sum(T error )+Kd1*Delta(T error );
[0090] Where Kp1, Ki1, and Kd1 are the gains of the PID controller in the first neural network, ΔT2 is the absolute value of the difference between the first difference and the target temperature, Sum(T error ) is the accumulation of soil temperature differences after all historical temperature adjustments, Delta (T error ) is the temperature difference existing after the last temperature adjustment;
[0091] The water temperature and adjustment time are input into the second neural network again to obtain the opening and closing degree of the water valve, so as to adjust the air conditioning heat pump;
[0092] In the second neural network, the formula for obtaining the opening and closing degree of the water valve is as follows:
[0093]
[0094] Where W1(t2) is the water temperature, Kp2, Ki2, Kd2 are the gains of the PID controller in the second neural network, t2 is the adjustment time, Sum(e error1 ) is the accumulation of error values of the opening and closing angles of the water valve that did not reach the target temperature after it was opened and closed in the past.
[0095] In the present invention, since the first difference is used to predict the water temperature, in actual operation, the output water temperature may not meet the temperature change requirements. Therefore, Sum(T error1 ) and Delta(T error ) parameter, the cumulative Sum of all temperature differences in history (T error1 ) is a summary of the temperature difference error over a period of time, which can provide an assessment of the long-term performance of the system. By using this cumulative value as an input feature, the first neural network can comprehensively consider the past adjustments. The temperature difference Delta (T error ) as the input feature of the first neural network, the first neural network can perceive the changing trend of the temperature difference error, so as to adjust the air conditioning output more flexibly. This can help avoid over-adjustment or untimely response and improve the response speed and stability of the control.
[0096] Preferably, the steps of adjusting the ventilation fan according to the change trend are as follows:
[0097] Obtaining the soil moisture change trend and the soil target moisture as the third difference;
[0098] It is determined whether the third difference is a negative number. If the third difference is a negative number, it is determined whether the absolute value of the third difference is greater than the humidity threshold. If it is greater than the humidity threshold, the air volume required by the ventilation fan is not obtained, and a control instruction for starting the spray device according to the preset power is directly generated. If it is less than the humidity threshold or the third difference is a positive number, the air volume required by the ventilation fan is obtained.
[0099] The calculation formula of air volume is as follows:
[0100] F1 = k*D / C;
[0101] Wherein, F1 is the air volume. When F1 is positive, it indicates the air volume of the ventilation fan. When F2 is negative, it indicates the air volume of the ventilation fan. k is the adjustment parameter. D is the absolute value of the difference between the current soil moisture and the soil moisture change trend. C is the third difference.
[0102] The air volume and adjustment time are input into the third neural network to obtain the rotation speed of the ventilation fan and adjust the ventilation fan;
[0103] In the third neural network, the formula for obtaining the speed of the ventilation fan is as follows:
[0104]
[0105] Where F1 is the air volume, Kp3, Ki3, Kd3 are the gains of the PID controller in the third neural network, t3 is the adjustment time, Sum(e error2 ) is the accumulation of error values of the speed of the ventilation fan that did not reach the F1 air volume after adjusting the speed in the past.
[0106] When adjusting the humidity, a ventilation fan is required for adjustment. If the humidity is greater than the target humidity, the air in the greenhouse needs to be discharged. If the humidity is too low, the external humid air needs to be extracted. For this reason, in the present invention, a third difference is obtained according to the humidity change trend of the soil and the target humidity. According to the third difference, it can be predicted whether the humidity of the soil is higher than the target humidity or lower than the humidity within a period of time. When the third difference is a negative number and the absolute value of the third difference is greater than the humidity threshold, it means that after a period of time, the humidity of the soil has decreased, and the amount of decrease is large. At this time, it cannot be adjusted by a ventilation fan, and the spray device can only be directly turned on to increase the humidity of the soil.
[0107] When the third difference is positive or less than the threshold, the air volume adjusted to the target humidity can be calculated by the air volume acquisition formula, where k is an adjustment parameter, and the corresponding k value can be obtained by constructing a natural regression model using historical air volume data and humidity data. After the air volume is calculated, since there is a linear relationship between the air volume and the rotation speed, the rotation speed can be calculated through a neural network.
[0108] It is worth noting that, since the air volume is calculated as the total air volume for adjusting the humidity in the greenhouse, but there are multiple ventilation fans in the greenhouse, and the speed is calculated as the speed of a single ventilation fan, the input of the third neural network is the total air volume F1 divided by the number of fans n.
[0109] Preferably, before the air volume is input into the third neural network, the air volume needs to be corrected;
[0110] The corrected formula is as follows:
[0111] F1′=F1+F2*cos(λ);
[0112] Where F1 is the wind volume before correction, F2 is the wind speed in the meteorological data, and λ is the angle between the wind volume direction and the wind direction in the meteorological data.
[0113] When the ventilation fan is taking in or out air, it draws the outside air into the greenhouse or draws the air in the greenhouse to the outside. When there is a certain wind speed outside, it will affect the air intake and air output. For this reason, in the present invention, it is also necessary to adjust the air volume by the natural wind speed and direction to ensure that the air volume during air intake and air outlet can meet the humidity adjustment requirements.
[0114] A greenhouse air-conditioning intelligent control system based on climate collection, using the greenhouse air-conditioning intelligent control method based on climate collection, comprising a collection module, a calculation module and an instruction sending module;
[0115] The acquisition module is used to obtain meteorological data and planting data respectively within a specified time period;
[0116] The calculation module is used to obtain the change trend of the greenhouse within a time period through the meteorological data and the planting data, adjust the speed of the heat pump air conditioner and the ventilation fan according to the change trend, and generate corresponding control instructions;
[0117] The sending module is used to send the control instructions to the intelligent gateway in the greenhouse through the network. The intelligent gateway analyzes the control instructions and regulates the heat pump air conditioner and the ventilation fan.
[0118] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0119] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A greenhouse air conditioning intelligent control method based on climate collection, characterized in that: The following steps are involved: Step S1: The cloud platform obtains meteorological data and planting data respectively within a specified time period, wherein the meteorological data includes meteorological temperature changes, meteorological humidity changes and wind speed, and the planting data includes soil temperature, soil humidity, power of the heat pump air conditioner and speed of the ventilation fan; Step S2: The cloud platform obtains the change trend of the greenhouse within a time period through the meteorological data and the planting data, adjusts the speed of the heat pump air conditioner and the ventilation fan according to the change trend, and generates corresponding control instructions; Step S3: The cloud platform sends the control command to the intelligent gateway in the greenhouse through the network, and the intelligent gateway analyzes the control command and regulates the heat pump air conditioner and the ventilation fan; The change trend in step S2 includes the temperature change trend of the soil and the humidity change trend of the soil; The steps for adjusting the heat pump air conditioner according to the changing trend are as follows: Obtaining the difference between the temperature change trend of the soil and the soil temperature as a first difference; Determine whether the absolute value of the first difference is greater than a temperature threshold. If so, the heat pump air conditioner outputs at maximum power. If less than the temperature threshold, the absolute value of the difference between the first difference and the target temperature is input into the first neural network to obtain the water temperature required for the heat pump air conditioner to adjust the temperature. In the first neural network, the formula for obtaining the water temperature is as follows: W1(t2)=Kp1*ΔT2+Ki1*Sum(T error )+Kd1*Delta(T error ); Where Kp1, Ki1, and Kd1 are the gains of the PID controller in the first neural network, ΔT2 is the absolute value of the difference between the first difference and the target temperature, Sum(T error ) is the accumulation of soil temperature differences after all historical temperature adjustments, Delta (T error ) is the temperature difference existing after the last temperature adjustment; The water temperature and adjustment time are input into the second neural network again to obtain the opening and closing degree of the water valve, so as to adjust the air conditioning heat pump; In the second neural network, the formula for obtaining the opening and closing degree of the water valve is as follows: Where W1(t2) is the water temperature, Kp2, Ki2, Kd2 are the gains of the PID controller in the second neural network, t2 is the adjustment time, Sum(e error1 ) is the accumulation of error values of the opening and closing angles of the water valve that did not reach the target temperature after it was opened and closed in the past.
2. The greenhouse air conditioning intelligent control method based on climate collection according to claim 1 is characterized in that: The change trend is obtained as follows: Collect historical data of meteorological data and planting data, align the data according to the time relationship, and obtain aligned data; Performing a cleaning operation on the aligned data, wherein the cleaning operation includes removing outliers and filling missing values; Build a regression model, input the aligned data into the regression model, and train the regression model; The trained regression model is tested to obtain an evaluation index of the regression model. If the evaluation index is less than a score threshold, the regression model is retrained. If the evaluation index is greater than the score threshold, the regression model is defined as a finished model. The meteorological data and planting data collected at the current moment are input into the finished model to obtain the changing trend.
3. The greenhouse air conditioning intelligent control method based on climate collection according to claim 2 is characterized in that: The regression model is expressed as follows: Y(t)=C+P+βX(t)+S; P=ρ(1)*Y(t-1)+ρ(2)*Y(t-2)...ρ(i)*Y(ti); S=e(t)+θ(1)*e(t-1)+θ(2)*e(t-2)…+θ(q)*e(tq); Where Y(t) is the output of the changing trend at time t, C is the constant coefficient, β is the input coefficient, X(t) is the input of the aligned data, ρ(i) represents the i-th natural regression coefficient, e(t) is the white noise error at time t, representing the random part that cannot be explained by the model, θ(i) is the moving average coefficient, representing the impact of the past values of the white noise error on the current value; q represents the moving average order, indicating how many past values of the white noise error are considered.
4. The greenhouse intelligent control method based on climate collection according to claim 2 is characterized in that: The formula for obtaining the evaluation index of the regression model is as follows: Y(t)=α1*α2 / ω(α1+α2); Where α1 = TP / (TP+FP), α2 = TP / (TP+FN), where TP represents the number of samples predicted by the model to be positive and actually positive, FP represents the number of samples predicted by the model to be positive but actually negative, and ω is the adjustment ratio, which takes a value between 0 and 1.
5. The greenhouse air conditioning intelligent control method based on climate collection according to claim 1 is characterized in that: The steps for adjusting the ventilation fan according to the changing trend are as follows: Obtaining the soil moisture change trend and the soil target moisture as the third difference; It is determined whether the third difference is a negative number. If the third difference is a negative number, it is determined whether the absolute value of the third difference is greater than the humidity threshold. If it is greater than the humidity threshold, the air volume required by the ventilation fan is not obtained, and a control instruction for starting the spray device according to the preset power is directly generated. If it is less than the humidity threshold or the third difference is a positive number, the air volume required by the ventilation fan is obtained. The calculation formula of air volume is as follows: F1 = k*D / C; Wherein, F1 is the air volume. When F1 is positive, it indicates the air volume of the ventilation fan. When F2 is negative, it indicates the air volume of the ventilation fan. k is the adjustment parameter. D is the absolute value of the difference between the current soil moisture and the soil moisture change trend. C is the third difference. The air volume and adjustment time are input into the third neural network to obtain the rotation speed of the ventilation fan and adjust the ventilation fan; In the third neural network, the formula for obtaining the speed of the ventilation fan is as follows: Where F1 is the air volume, Kp3, Ki3, Kd3 are the gains of the PID controller in the third neural network, t3 is the adjustment time, Sum(e error2 ) is the accumulation of error values of the speed of the ventilation fan that did not reach the F1 air volume after adjusting the speed in the past, and n is the number of fans.
6. The greenhouse air conditioning intelligent control method based on climate collection according to claim 5 is characterized in that: Before inputting the air volume into the third neural network, the air volume needs to be corrected; The corrected formula is as follows: F1′=F1+F2*cos(λ); Where F1 is the wind volume before correction, F2 is the wind speed in the meteorological data, and λ is the angle between the wind volume direction and the wind direction in the meteorological data.
7. A greenhouse air conditioning intelligent control system based on climate collection, using a greenhouse air conditioning intelligent control method based on climate collection as claimed in any one of claims 1 to 6, characterized in that: It includes an acquisition module, a calculation module and an instruction sending module; The acquisition module is used to obtain meteorological data and planting data respectively within a specified time period; The calculation module is used to obtain the change trend of the greenhouse within a time period through the meteorological data and the planting data, adjust the speed of the heat pump air conditioner and the ventilation fan according to the change trend, and generate corresponding control instructions; The sending module is used to send the control instructions to the intelligent gateway in the greenhouse through the network. The intelligent gateway analyzes the control instructions and regulates the heat pump air conditioner and the ventilation fan.
