Robust greenhouse temperature prediction and early warning device

The greenhouse temperature prediction and early warning device combined with deep learning and LASSO algorithm solves the short-term prediction limitations and over-sensitive control problems in greenhouse temperature management, achieves long-term stable and low-consumption temperature control, and improves temperature prediction accuracy and Management efficiency ensures the safety of the crop growth environment.

CN118865639APending Publication Date: 2024-10-29CENTRAL UNIVERSITY OF FINANCE AND ECONOMICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410976214.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing greenhouse temperature management system has short-term prediction limitations, overly sensitive temperature control and regulatory lag problems, making it difficult to achieve long-term stable and low-consumption temperature control, affecting crop growth and production efficiency.

Method used

Deep learning technology combined with the LASSO algorithm is used to perform temperature prediction and range estimation through a central server to achieve intelligent temperature control and provide a dual early warning mechanism to ensure that the temperature is within a safe range and reduce energy consumption and equipment losses.

Benefits of technology

It achieves more accurate long-term temperature prediction, reduces energy consumption and equipment losses, improves the stability of temperature control and the safety of the crop growth environment, and enhances the reliability and production efficiency of greenhouse management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865639A_ABST
    Figure CN118865639A_ABST
Patent Text Reader

Abstract

The invention provides a robust greenhouse temperature prediction and early warning device, which comprises a greenhouse control terminal, a mobile equipment terminal and a central server, and is characterized in that the greenhouse control terminal is used for data acquisition; the central server is responsible for receiving, analyzing and processing the environmental data sent by the greenhouse control terminal and operating a temperature prediction model integrated with an LASSO algorithm and a deep learning technology; the mobile device terminal is an interactive interface between a user and the system, and the user receives the temperature pushing and early warning notification from the central server through the mobile device terminal and monitors the temperature condition of the greenhouse in real time. The robust greenhouse temperature prediction and early warning device provided by the invention can stably control the temperature of the greenhouse at low consumption for a long time, and by introducing advanced technologies such as deep learning and the like for combination, the stability of greenhouse temperature regulation and control is improved, and the control precision of the internal environment of the greenhouse is improved, so that the growth conditions of crops are guaranteed, and the crop quality is improved. And the risk of damage to crops caused by abnormal temperature is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of greenhouse environment prediction, and in particular relates to a robust greenhouse temperature prediction and early warning device. Background Art

[0002] As global climate change and population growth increase pressure, agricultural production faces increasing challenges. Greenhouse technology has attracted much attention because it can provide a controlled growth environment and protect crops from external environmental influences. In greenhouse management, temperature control is a crucial factor. Too high or too low temperature may have an adverse effect on crop growth and yield. Therefore, real-time monitoring and management of temperature is essential to improve crop yield and quality.

[0003] Over the past few decades, various methods have been proposed to monitor and manage the temperature of greenhouses. The most common method is to use temperature sensors to monitor the temperature in real time and transmit the data to a central processing unit for analysis and control. However, this method usually requires human intervention to manually judge whether the temperature is reasonable, but the judgment process is subjective and there may be certain delays and uncertainties. Another common method is to use rule-based control systems. These systems usually adjust the temperature inside the greenhouse according to pre-set temperature ranges and rules. Although this method is relatively simple, it often lacks flexibility and responsiveness to actual environmental changes. Once the external environment or internal crops change frequently, parameters and rules need to be changed multiple times.

[0004] In recent years, with the development of Internet of Things (IoT) technology and data analysis technology, more and more greenhouses have begun to adopt intelligent monitoring and management systems. These systems usually use sensors, network communications and data analysis technology to achieve real-time monitoring, analysis and control of the internal environment of the greenhouse. However, these systems often still have some problems. The existing prediction technology has limited capabilities and the data accuracy needs to be improved. In addition, many systems can only achieve point-in-time prediction. If there is an acceptable error between the actual temperature and the predicted data, the system will still trigger an alarm due to data inconsistency.

[0005] Therefore, the shortcomings of the prior art are summarized as follows:

[0006] (1) Short-term temperature prediction limitations: Traditional greenhouse management systems can only provide short-term temperature forecasts (e.g., the next 10 minutes), but have limited ability to predict long-term temperature changes. This makes it difficult for greenhouse managers to make long-term control plans, increasing energy consumption and the difficulty of management.

[0007] (2) Overly sensitive temperature control: Some existing systems are too sensitive to temperature changes, resulting in frequent temperature adjustments. This repeated regulation not only increases energy consumption and equipment loss, but may also have a negative impact on crop growth and affect the efficiency and quality of greenhouse production.

[0008] (3) The existing control technologies are all based on real-time operations based on existing warning information. Before receiving the warning information, the greenhouse data will not be controlled. Once the warning fails, the temperature control will be delayed, and the greenhouse temperature will continue to be too high or too low, resulting in crop losses.

[0009] In summary, the present invention proposes a robust greenhouse temperature prediction and early warning device to solve the technical problem of how to control the greenhouse temperature in a long-term, stable and low-consumption manner, thereby providing a better environmental protection for the growth of crops. Summary of the invention

[0010] The purpose of the present invention is to provide a robust greenhouse temperature prediction and early warning device, which solves the technical problem of how to control the temperature of the greenhouse in a long-term, stable and low-energy manner. By introducing advanced technologies such as deep learning, the stability of greenhouse temperature regulation is improved, low carbon and low energy consumption are achieved, the temperature control strategy is optimized, and the control accuracy of the internal environment of the greenhouse is improved, thereby ensuring the growth conditions of crops and reducing the risk of damage to crops caused by abnormal temperatures.

[0011] A robust greenhouse temperature prediction and early warning device includes a greenhouse control terminal, a mobile device terminal and a central server. The greenhouse control terminal is used for data collection, and monitors the temperature, humidity and other environmental data in the greenhouse in real time through a sensor network, and transmits the data to the central server for processing;

[0012] The central server is responsible for receiving, analyzing and processing environmental data sent by the greenhouse control terminal, and running a temperature prediction model that integrates the LASSO algorithm and deep learning technology. The temperature prediction model accurately predicts the temperature in the greenhouse and estimates the temperature range based on the prediction results. When the central server completes the temperature prediction and range estimation, it will send the results back to the greenhouse control terminal and the mobile device terminal;

[0013] The mobile device terminal is the interactive interface between the user and the system. The user receives temperature push and warning notifications from the central server through the mobile device terminal, and monitors the temperature of the greenhouse in real time. The user sends parameter data that needs to be modified to the central server for storage through the mobile device terminal, such as setting the temperature range, etc., thereby realizing temperature control of the greenhouse.

[0014] The greenhouse control terminal includes a first data layer, a first application layer, and a device layer;

[0015] The first data layer is responsible for data collection and transmission;

[0016] The first application layer is responsible for data display, early warning and regulation;

[0017] The device layer is responsible for implementing specific temperature control.

[0018] The first data layer includes multiple sensors, a data sending module and a data receiving module. The sensors are important tools for data collection and are responsible for real-time monitoring of the temperature in the greenhouse.

[0019] The data sending module sends the cleaned data to the central server so that the central server can perform deep learning and LASSO algorithm analysis;

[0020] The data receiving module receives parameter modifications of the mobile device terminal and temperature push data of the central server.

[0021] The first application layer includes a temperature display module, a temperature warning module, and a temperature control module;

[0022] The temperature display module is responsible for displaying the temperature data received from the central server in the form of numbers or charts so that the staff can intuitively understand the temperature conditions in the greenhouse;

[0023] The temperature warning module automatically issues a warning message when it predicts that the temperature exceeds the set safety range based on the data received from the central server;

[0024] The temperature control module can intelligently control the temperature in the greenhouse according to the temperature warning information.

[0025] The device layer is responsible for implementing specific temperature control. When the application layer issues a temperature control instruction, the external devices of the device layer (such as heaters, fans, etc.) will adjust the temperature in the greenhouse according to the received data to maintain a suitable temperature environment.

[0026] The central server includes a second data layer, a processing layer, and a second application layer;

[0027] The second data layer is responsible for data collection, cleaning and storage;

[0028] The processing layer is responsible for data processing and analysis;

[0029] The second application layer is responsible for displaying data and sending instructions.

[0030] The second data layer includes a data acquisition and cleaning module, a temperature database, and a parameter database.

[0031] The data acquisition and cleaning module is responsible for receiving the data sent from the greenhouse control terminal, and cleaning and preprocessing the data to facilitate subsequent processing and analysis;

[0032] The temperature database is used to store temperature data after cleaning;

[0033] The parameter database is used to store various control parameters, such as temperature control range, warning threshold, etc.

[0034] The processing layer includes a feature extraction module, a prediction model module, and a range estimation module;

[0035] The feature extraction module adopts the LASSO method, which can effectively select the features that have an important impact on temperature prediction and obtain the feature set X lasso ;

[0036] The prediction model module adopts a combined deep learning model CNN-BiLSTM-Attention, which obtains accurate temperature prediction results by comprehensively utilizing CNN's spatiotemporal feature extraction capabilities, BiLSTM's sequence modeling capabilities, and the attention mechanism's focus capabilities. pred and

[0037]

[0038]

[0039] The range estimation module adopts the MC-Dropout method. In MC-Dropout, uncertainty is estimated through multiple sampling. For the i-th sampling, we use different Dropout masks for forward propagation to obtain the prediction result:

[0040]

[0041] Through multiple MC-Dropout sampling, multiple prediction results within the confidence interval can be obtained This effectively estimates the safe range of temperature.

[0042] X lasso The indicator set that is strongly correlated with temperature is screened out through LASSO. is the hidden state of the CNN-BiLSTM model at the tth time step. In BiLSTM, the forward and backward hidden states are linked to form the output of the tth time step. t is applied to the hidden state The attention weights W determine the importance of each hidden state in predicting temperature. The attention weights are usually obtained by another layer that processes the hidden states. out is the weight matrix of the output layer, b out is the bias term.

[0043] is a linear transformation of the weighted sum of hidden states. This transformation is used to map the aggregated information of BiLSTM and attention mechanism to the output space. The softmax function is applied to the result of the linear transformation to obtain the probability distribution.

[0044] is the prediction result of the i-th MC-Dropout sampling, is the weight matrix of the i-th sampling, x is the input vector, and b is the bias term. For each sample i, a different Dropout mask is applied for forward propagation to obtain the prediction result Repeat the above steps several times to obtain multiple prediction results. Through statistical analysis of these prediction results, the confidence interval is estimated to determine the safe range of temperature.

[0045] The derivation process of the above formulas (1), (2) and (3) is described in detail as follows:

[0046] In time series forecasting, the mathematical expression of the CNN model can be expressed as:

[0047] F(i,j)=∑ m Σ n X(i+m,j+n)K(m,n)+b (4)

[0048] Among them, F(i,j) is the value of a certain position in the feature map, X is the input time series data, K is the convolution kernel, and b is the bias term; the advantage of CNN in time series prediction lies in its automatic feature learning ability for time series data and its sensitivity to local features. Compared with traditional time series models, CNN can better capture nonlinear relationships and complex patterns in time series data, thereby improving the accuracy and generalization ability of prediction; in addition, the CNN model also has good parallel computing performance and can effectively process large-scale time series data.

[0049] The principle of BiLSTM is similar to that of LSTM. Its core idea is to control the flow of information through a gating mechanism, thereby realizing the modeling of sequence data. BiLSTM consists of a series of LSTM units, each of which contains a forget gate, an input gate, an output gate, and a cell state. These gating units can effectively control the flow and preservation of information. Mathematically, the BiLSTM model can be expressed as:

[0050] i t =σ(W ix x t +W ih t t-1 +b i )

[0051] f t =σ(W fx x t +W fh h t-1 +b f )

[0052] o t =σ(W ox x t +W on h t-1 +b o )

[0053] g t =tanh(W gx x t +W gh h t-1 +b g )

[0054] c t =f t ⊙c t-1 +i t ☉ t

[0055] h t =o t ⊙tanh(c t )

[0056] Among them, x t is the input of the tth time step of the input sequence, h t is the output of the t-th time step, σ represents the Sigmoid activation function, ⊙ represents the element-by-element multiplication operation, i t 、f t , o t and g t Represent the input gate, forget gate, output gate and cell state respectively;

[0057] Based on the calculation formula of the above CNN and BiLSTM models, combined with the application scenario, we can get the hidden state of each time step

[0058] The features filtered by Lasso are first extracted using CNN for spatiotemporal features, and then input into the BiLSTM model to model the data, and finally the hidden state of each time step is obtained. Finally, in order to obtain the predicted temperature, we introduce the attention mechanism, add weight values ​​to the hidden state of each time step, and weight them, and finally obtain the final predicted value through normalization:

[0059]

[0060] MC-Dropout (Monte Carlo Dropout) is a method that applies the Dropout technique to the neural network inference process to estimate model uncertainty. Although MC-Dropout itself does not have a specific calculation formula, its implementation relies on randomly applying Dropout multiple times during the inference process and estimating uncertainty through these random samples. In the inference stage, the MC-Dropout method is to keep the Dropout activation during the inference process and perform multiple forward propagations. For a given input data x, multiple forward propagations are performed, and Dropout is applied each time:

[0061] in, is the predicted output of the tth forward propagation, θ is the model parameter, ξ t represents the Dropout mask at the tth forward propagation, where T is the number of forward propagations. Based on this, combined with the output of the CNN-BiLSTM model, we obtain the prediction results within the confidence interval of each sampling:

[0062]

[0063] We expand the function, where is the prediction result of the i-th MC-Dropout sampling, is the weight matrix of the i-th sampling, x is the input vector, and b is the bias term. For each sample i, a different Dropout mask is applied for forward propagation to obtain the prediction result

[0064] The second application layer includes a temperature push module, a temperature warning module, a temperature control module, and a parameter setting module;

[0065] The temperature push module pushes the processed temperature data to the greenhouse control terminal and the mobile phone terminal of the staff to monitor the temperature in the greenhouse in real time;

[0066] The temperature warning module will issue a warning to the mobile terminal when the temperature exceeds the set range;

[0067] The temperature control module will update the temperature database according to the temperature data fed back by the mobile device terminal to adjust the temperature in the greenhouse;

[0068] The parameter setting module performs parameter adjustment and setting according to the parameters sent by the mobile device terminal.

[0069] Through the collaborative work of the above three layers, the central server can effectively monitor and intelligently control the temperature in the greenhouse in real time, ensure the growth conditions of crops, and reduce the risk of damage to crops caused by abnormal temperatures.

[0070] The mobile equipment terminal is divided into a third data layer and a third application layer;

[0071] The third data layer is responsible for receiving and sending data. The data receiving module is responsible for receiving temperature data and warning information pushed by the central server, and the data sending module is responsible for sending the control parameters set by the user through the mobile device terminal to the central server;

[0072] The third application layer is responsible for data display and user interaction. The temperature display module displays the received temperature data to the user in an intuitive form (such as numbers or charts), so that the user can understand the temperature conditions in the greenhouse in real time. The temperature warning module will send a warning reminder to the user through the mobile device terminal when receiving the warning information sent by the central server. The temperature control module allows the user to remotely control the temperature in the greenhouse through the mobile device terminal. The parameter setting module is used to set various control parameters, such as temperature control range, warning threshold, etc. After the setting is completed, these parameters are sent to the central server through the data sending module;

[0073] Through the collaborative work of the above two layers, mobile device terminals allow users to monitor the temperature in the greenhouse in real time, receive temperature warnings, perform remote temperature control, and set control parameters, greatly improving the convenience and accuracy of controlling the internal environment of the greenhouse.

[0074] The innovation points of the present invention focus on the following two points:

[0075] (1) The present invention realizes long-term temperature prediction. The temperature prediction technology of this invention realizes the prediction of temperature within a long time span while ensuring the accuracy of the prediction. It is no longer limited to the data of one or two time steps in the future. The manager can have a more comprehensive control over the greenhouse situation.

[0076] (2) The present invention realizes the estimation of the temperature range. Traditional temperature monitoring systems usually set the temperature within a fixed range for monitoring, but this method may be too harsh and sensitive, which is not conducive to actual planting. To this end, the present invention provides a reliable safety range for temperature control. This method takes into account the inherent uncertainty in model predictions and avoids overreaction to small temperature changes by estimating a safe temperature fluctuation range, thereby reducing the system's energy consumption and potential crop damage risks.

[0077] (3) The present invention provides dual protection. Based on the long-term prediction of temperature, managers can set greenhouse environmental index data in advance. When the early warning function fails or lags behind, if the manager cannot find the abnormal temperature of the greenhouse in time, the system can make adjustments based on the environmental data set in advance to avoid continuous abnormal temperature.

[0078] The present invention provides several significant advantages over the best existing technologies, making it more advanced and effective in greenhouse temperature monitoring and control. The following are some of the main advantages of the present invention:

[0079] (1) More accurate long-term temperature prediction: Traditional greenhouse management systems can only provide short-term temperature predictions. The present invention introduces advanced technologies such as deep learning and combines various data sources of the greenhouse internal and external environment to predict temperature changes over a longer period of time in the future. This long-term temperature prediction is more accurate, and greenhouse managers can better plan temperature control plans, reduce energy consumption, and improve management efficiency.

[0080] (2) Intelligent temperature control strategy: The present invention avoids the frequent adjustment problem caused by the traditional system being too sensitive to temperature changes through temperature range estimation and intelligent control strategy. Based on the crop growth requirements and changes in the environment inside and outside the greenhouse, the temperature control range is set within a certain range, avoiding being too sensitive to temperature changes, reducing energy consumption and equipment loss, and also helping to maintain the stability of the internal environment of the greenhouse;

[0081] The present invention can adjust the temperature control strategy in real time, making the temperature control more stable and effective, reducing energy consumption and equipment loss, while promoting crop growth;

[0082] (3) Dual early warning and protection mechanism: Compared with the traditional system that relies on the early warning mechanism of a single sensor, the present invention establishes a dual early warning and protection mechanism. By combining real-time early warning and early warning, it ensures that abnormal temperature conditions are discovered in time and corresponding measures are taken, effectively avoiding crop losses caused by continuous abnormal temperature. This dual protection mechanism improves the safety and reliability of greenhouse management;

[0083] Specifically, by obtaining long-term temperature forecast data and temperature fluctuation range forecasts, managers are supported to deploy parameter data within a certain time range in advance. When temperature detection fails and no timely warning is given, the greenhouse can automatically adjust according to the parameters set in advance by the manager to avoid continuous abnormal temperature in the greenhouse.

[0084] (4) Energy saving and environmental protection, improving production efficiency: By optimizing the temperature control strategy, unnecessary energy consumption and equipment loss are reduced, and low-carbon and low-energy greenhouse management is achieved. At the same time, more accurate temperature prediction and stable temperature control strategy help to improve the stability of the crop growth environment, improve production efficiency and crop quality.

[0085] (5) In summary, compared with traditional technologies, the present invention has obvious advantages in long-term temperature prediction, temperature control strategy, early warning mechanism, energy saving and environmental protection, etc., and can bring more efficient and reliable solutions to greenhouse management and improve the quality and efficiency of greenhouse production. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 This is the overall system architecture diagram of the present invention.

[0087] Figure 2 This is a system architecture diagram of the greenhouse control terminal in the present invention.

[0088] Figure 3 This is a system architecture diagram of the central server in the present invention.

[0089] Figure 4 This is a system architecture diagram of the mobile device terminal in the present invention.

[0090] Figure 5 It is a specific flow chart of the temperature warning and regulation function in the present invention.

[0091] Figure 6 This is a specific flow chart of the temperature push function in the present invention.

[0092] Figure 7 It is a schematic diagram comparing the actual temperature and the predicted temperature in the greenhouse of the present invention.

[0093] Figure 8 This is a diagram of the predicted range of temperature in the present invention. DETAILED DESCRIPTION

[0094] In order to more clearly illustrate the technical features of this solution, this solution is described below through specific implementation methods.

[0095] Example 1

[0096] See also Figure 1-Figure 5 In the temperature warning and control function of the present invention, the specific process is as follows:

[0097] (1) The greenhouse control terminal is equipped with temperature sensors and other sensors (such as humidity, light, etc.) to monitor the environmental conditions in the greenhouse in real time. The sensors regularly collect environmental data, including temperature, and transmit this data to the central server for processing. In addition to greenhouse data, official weather data is also collected as one of the inputs. Official weather data can provide more comprehensive environmental information, including temperature, humidity, wind speed, sunshine, etc., which helps to more comprehensively understand the environmental conditions inside and outside the greenhouse. By comprehensively considering various environmental factors inside and outside the greenhouse, future temperature changes can be predicted more accurately.

[0098] (2) After the central server receives the data from the greenhouse control terminal, it first processes the data, including data cleaning and removal of outliers.

[0099] (3) Feature extraction is then performed. In order to improve the accuracy of subsequent temperature prediction, LASSO autoregression is used here to screen features that are strongly correlated with temperature, such as time, light intensity, etc.

[0100] (4) Then, temperature prediction is performed. The filtered feature data is input into the designed CNN-BiLSTM-Attention model for training, and the trained model is used to predict the temperature at the next time point.

[0101] (5) After the prediction is completed, the MC-Dropout method is used to estimate the credible interval range of the predicted temperature, that is, the temperature range that should be maintained in the greenhouse, to ensure that the system is not overly sensitive to temperature fluctuations.

[0102] (6) The central server will continuously monitor whether the temperature exceeds the constant temperature range. If it exceeds the range, an alarm will be triggered and a temperature warning message will be sent to the mobile terminal.

[0103] (7) When the mobile terminal receives the temperature warning information, it will determine whether automatic adjustment is required. If automatic adjustment is required, the adjustment instruction will be sent directly, otherwise it will enter the manual adjustment mode.

[0104] (8) If manual adjustment is selected, the mobile terminal needs to upload new parameter data and request temperature adjustment.

[0105] (9) The central server sends the adjustment command to the greenhouse control terminal based on the received instructions.

[0106] (10) After the greenhouse control terminal receives the control command, the external device will adjust according to the parameter data sent by the mobile device terminal, thereby realizing the control of the greenhouse temperature.

[0107] Example 2

[0108] See also Figure 1-Figure 4 , Figure 6 , the specific process of the temperature push function is as follows:

[0109] (1) Sensors inside the greenhouse control terminal continuously collect indoor and outdoor environmental data, as well as official weather data.

[0110] (2) The greenhouse sends the collected data to the central server.

[0111] (3) The central server cleans the received data to ensure its accuracy and completeness.

[0112] (4) The central server stores the cleaned data in the corresponding temperature database for storage and recording.

[0113] (5) Temperature data will be pushed to the greenhouse control terminal and mobile phone terminal by the central server at the same time.

[0114] (6) The mobile device terminal and greenhouse control terminal receive the temperature data pushed by the central server, ensuring that the staff can monitor the greenhouse conditions in real time and respond promptly.

[0115] Example 3

[0116] See also Figure 7-Figure 8 The present invention analyzes greenhouse temperature data, and ten related indicator data are listed below, where the sampling time interval is 10 minutes. T (degC): temperature, in degrees Celsius; p (mbar): air pressure, in millibar; rh (%): relative humidity, in percentage; sh (g / kg): specific humidity, in grams per kilogram; Tpot (K): potential temperature, in Kelvin. The above only lists some indicators. The real temperature data involves more indicators, which are not listed here one by one. They are mainly used to understand the actual application scenarios of the present invention.

[0117] This application uses a greenhouse as an example to illustrate how greenhouse temperature prediction and early warning are achieved based on the following relevant data. The environment inside and outside the greenhouse involves many factors such as temperature, air pressure, and humidity, and these data are strongly correlated with temperature. After obtaining the following data, the central server will predict the future greenhouse temperature based on the uploaded data and obtain the estimated range of temperatures at each time point. When the actual temperature in the future exceeds the estimated range, the system will trigger an alarm and send an early warning to the mobile terminal and the greenhouse. After receiving the early warning, the staff can quickly make adjustments to the greenhouse environmental factors. For example, if the temperature at the current time point is lower than the suitable temperature, the staff can quickly adjust it after receiving the early warning. Table 1 is the test data of the greenhouse environment.

[0118] Table 1 Test data of greenhouse environment

[0119]

[0120] The data in Table 1 show the specific greenhouse environment data, involving temperature, humidity, wind speed and other data. In the subsequent analysis, these data are strongly correlated with the room temperature and improve the accuracy of room temperature prediction. This shows that the model proposed in this scheme can adapt to the actual situation and can achieve high-precision prediction effect for the actual temperature.

[0121] The mean square error between the predicted value and the actual value is 1.66, which means that the difference is small and the prediction accuracy is high. Figure 7 It can be seen that the predicted value and the actual value are basically consistent. Figure 8 It is the predicted range of temperature. Due to too much data, the purple range is not very obvious, but there is indeed a range between the highest and lowest values, which serves as the controllable range of temperature control.

[0122] Technical features not described in the present invention can be achieved through or by adopting existing technologies and will not be described in detail here. Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should also fall within the scope of protection of the present invention.

Claims

1. A robust greenhouse temperature prediction and early warning device, characterized in that: It includes a greenhouse control terminal, a mobile device terminal and a central server. The greenhouse control terminal is used for data collection and transmits the data to the central server for processing; The central server is responsible for receiving, analyzing and processing environmental data sent by the greenhouse control terminal, and running a temperature prediction model that integrates the LASSO algorithm and deep learning technology. The temperature prediction model accurately predicts the temperature in the greenhouse and estimates the temperature range based on the prediction results. When the central server completes the temperature prediction and range estimation, it will send the results back to the greenhouse control terminal and the mobile device terminal; The mobile device terminal is the interactive interface between the user and the system. The user receives temperature push and warning notifications from the central server through the mobile device terminal, and monitors the temperature of the greenhouse in real time. The user sends the parameter data that needs to be modified to the central server for storage through the mobile device terminal.

2. The robust greenhouse temperature prediction and early warning device according to claim 1, characterized in that: The greenhouse control terminal includes a first data layer, a first application layer, and a device layer; The first data layer is responsible for data collection and transmission; The first application layer is responsible for data display, early warning and regulation; The device layer is responsible for implementing specific temperature control.

3. The robust greenhouse temperature prediction and early warning device according to claim 2 is characterized in that: The first data layer includes multiple sensors, a data sending module and a data receiving module. The sensors are important tools for data collection and are responsible for real-time monitoring of the temperature in the greenhouse. The data sending module sends the cleaned data to the central server so that the central server can perform deep learning and LASSO algorithm analysis; The data receiving module receives parameter modifications of the mobile device terminal and temperature push data of the central server.

4. The robust greenhouse temperature prediction and early warning device according to claim 2 is characterized in that: The first application layer includes a temperature display module, a temperature warning module, and a temperature control module; The temperature display module is responsible for displaying the temperature data received from the central server in the form of numbers or charts so that the staff can intuitively understand the temperature conditions in the greenhouse; The temperature warning module automatically issues a warning message when it predicts that the temperature exceeds the set safety range based on the data received from the central server; The temperature control module can intelligently control the temperature in the greenhouse according to the temperature warning information.

5. The robust greenhouse temperature prediction and early warning device according to claim 2, characterized in that: The device layer is responsible for implementing specific temperature control. When the application layer issues a temperature control instruction, the external devices of the device layer will adjust the temperature in the greenhouse according to the received data to maintain a suitable temperature environment.

6. The robust greenhouse temperature prediction and early warning device according to claim 1, characterized in that: The central server includes a second data layer, a processing layer, and a second application layer; The second data layer is responsible for data collection, cleaning and storage; The processing layer is responsible for data processing and analysis; The second application layer is responsible for displaying data and sending instructions.

7. The robust greenhouse temperature prediction and early warning device according to claim 6, characterized in that: The second data layer includes a data acquisition and cleaning module, a temperature database, and a parameter database; The data acquisition and cleaning module is responsible for receiving the data sent from the greenhouse control terminal, and cleaning and preprocessing the data to facilitate subsequent processing and analysis; The temperature database is used to store temperature data after cleaning; The parameter database is used to store various control parameters.

8. The robust greenhouse temperature prediction and early warning device according to claim 6, characterized in that: The processing layer includes a feature extraction module, a prediction model module, and a range estimation module; The feature extraction module uses the LASSO method to select features that have an important impact on temperature prediction and obtain the feature set X lasso ; The prediction model module adopts the combined deep learning model CNN-BiLSTM-Attention, which obtains accurate temperature prediction results by comprehensively utilizing the spatiotemporal feature extraction capability of CNN, the sequence modeling capability of BiLSTM, and the focus capability of the attention mechanism. pred and See formula (1) and formula (2) respectively; The range estimation module adopts the MC-Dropout method. In MC-Dropout, uncertainty is estimated through multiple sampling. For the i-th sampling, different Dropout masks are used for forward propagation to obtain the following prediction results, as shown in formula (3): Through multiple MC-Dropout sampling, multiple prediction results within the confidence interval are obtained Thus, the safe range of temperature can be effectively estimated; X lasso The index set that is strongly correlated with temperature is screened out through LASSO. is the hidden state of the CNN-BiLSTM model at the tth time step. In BiLSTM, the forward and backward hidden states are linked to form the output of the tth time step; α t is applied to the hidden state The attention weights are usually obtained through another layer that processes the hidden state; W out is the weight matrix of the output layer, b out is the bias term; is a linear transformation of the weighted sum of hidden states; This transformation is used to map the aggregated information of BiLSTM and attention mechanism to the output space; the softmax function is applied to the result of linear transformation to obtain the probability distribution; is the prediction result of the i-th MC-Dropout sampling, is the weight matrix of the i-th sampling, x is the input vector, and b is the bias term; for each sample i, different Dropout masks are applied for forward propagation to obtain the prediction result Repeat the above steps multiple times to obtain multiple prediction results; By statistically analyzing these prediction results, confidence intervals are estimated to determine a safe range for temperature.

9. The robust greenhouse temperature prediction and early warning device according to claim 6, characterized in that: The second application layer includes a temperature push module, a temperature warning module, a temperature control module, and a parameter setting module; The temperature push module pushes the processed temperature data to the greenhouse control terminal and the mobile phone terminal of the staff to monitor the temperature in the greenhouse in real time; The temperature warning module will issue a warning to the mobile terminal when the temperature exceeds the set range; The temperature control module will update the temperature database according to the temperature data fed back by the mobile device terminal to adjust the temperature in the greenhouse; The parameter setting module performs parameter adjustment and setting according to the parameters sent by the mobile device terminal.

10. The robust greenhouse temperature prediction and early warning device according to claim 1, characterized in that: The mobile equipment terminal is divided into a third data layer and a third application layer; The third data layer is responsible for receiving and sending data. The data receiving module is responsible for receiving temperature data and warning information pushed by the central server, and the data sending module is responsible for sending the control parameters set by the user through the mobile device terminal to the central server; The third application layer is responsible for data display and user interaction. The temperature display module displays the received temperature data to the user in an intuitive form, so that the user can understand the temperature conditions in the greenhouse in real time. The temperature warning module sends a warning reminder to the user through the mobile device terminal when receiving the warning information sent by the central server. The temperature control module allows the user to remotely control the temperature in the greenhouse through the mobile device terminal. The parameter setting module is used to set various control parameters. After the setting is completed, these parameters are sent to the central server through the data sending module; Through the collaborative work of the above two layers, mobile device terminals allow users to monitor the temperature in the greenhouse in real time, receive temperature warnings, perform remote temperature control, and set control parameters, greatly improving the convenience and accuracy of controlling the internal environment of the greenhouse.