A multi-scale tea picking prediction method based on LSTM
Through the multi-scale tea picking prediction method based on LSTM, historical meteorological data and real-time weather information are used, combined with the growth needs of tea trees, to establish a tea picking time prediction model, which solves the problem of difficulty in accurately predicting the tea picking period and improves tea quality and yield. Optimized picking management.
Patent Information
- Application Number
- CN202410881656.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing technology cannot accurately predict the tea picking period, resulting in tea quality and yield being affected, and there is a lack of scientific methods for determining the picking time.
A multi-scale tea picking prediction method based on LSTM is used to collect and analyze historical meteorological data, calculate effective accumulated temperature and light index, combine geographical location and planting spacing information, establish a prediction model, and adjust it in real time to respond to weather changes, using user feedback to optimize Model.
It achieves accurate prediction of tea picking period, improves tea quality and yield, helps tea growers to reasonably arrange picking time, reduce costs, and improve production efficiency and market competitiveness.
Smart Images

Figure CN118410833B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of tea production and picking, and in particular relates to a multi-scale tea picking prediction method based on LSTM. Background Art
[0002] Tea production is greatly affected by temperature changes, and different tea picking periods will lead to different tea quality. For example, tea polyphenols and catechins in spring tea will increase over time, while amino acids and caffeine will continue to decrease, which will lead to differences in sensory evaluation of finished tea products and affect tea quality. At present, tea picking is mainly determined by the lunar calendar and the experience of old tea farmers, and the optimal picking date and the end date of the picking period are not accurately given. Therefore, the present invention can accurately predict the tea picking period, which is of great significance for reasonably arranging production and improving tea quality, yield and efficiency. Summary of the invention
[0003] A multi-scale tea picking prediction method based on LSTM, comprising the following steps:
[0004] S1. Data collection: Collect historical meteorological data of tea planting areas, including temperature, rainfall, sunshine time, soil moisture, wind speed, record the geographical location and planting spacing of tea trees, and tea picking records over the years;
[0005] S2. Calculate the effective accumulated temperature: According to the growth requirements of the tea tree and the minimum basal temperature, use the effective accumulated temperature formula to calculate the effective accumulated temperature value of each day, and accumulate it to obtain the cumulative effective accumulated temperature value GDD;
[0006] S3. Analyze light conditions: Analyze the light conditions required by tea trees based on the light time in historical meteorological data, compare the light data of different years, and obtain the light index PAR for tea growth;
[0007] S4. Calculate the angle and planting spacing: Based on the longitude and latitude information of the tea tree location and the planting spacing and row spacing of the tea trees, process and calculate the data to obtain the geographical location angle The distance between the tea trees ;
[0008] S5. Establish a prediction model: Based on the collected data and analysis results, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle The distance between the tea trees As input parameters, the LSTM algorithm is used to establish a prediction model for tea picking time, and the prediction formula is integrated: ,in is the predicted harvest date, , , , are the weights respectively, and the environmental factors are correlated with the tea picking time to obtain the prediction results;
[0009] S6. Real-time meteorological data integration: Connect with the local meteorological station service interface to obtain and integrate current meteorological data in real time, so that the model can dynamically adjust the prediction results to cope with the impact of sudden weather changes on tea picking time, and improve the timeliness and flexibility of the prediction;
[0010] S7. Verify and adjust the model: Use historical data to verify the model, evaluate the prediction results based on the actual picking time, and adjust and optimize the model to improve the accuracy of the prediction;
[0011] S8. User feedback and continuous optimization: Based on the opinions of experienced tea farmers and actual picking results, a feedback mechanism is established to convert the feedback results into rules as the constraints of the model, and the model parameters are continuously adjusted to achieve continuous iterative optimization of the model.
[0012] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0013] In step S2, the effective accumulated temperature formula is used to calculate the effective accumulated temperature value of each day, and the accumulated effective accumulated temperature value is obtained by accumulation. The effective accumulated temperature (Growing Degree Days, referred to as GDD) is an indicator used to measure plant growth. It is determined by calculating the difference between the daily temperature and the minimum basic temperature for plant growth. In the fields of agriculture and horticulture, the effective accumulated temperature is used to estimate the growth progress of plants in a specific time period. It can help farmers and gardeners predict the speed of plant development and the length of the production season. When calculating the effective accumulated temperature, the following formula is usually used: ,in, is the highest temperature of the day. The lowest temperature of the day. It is the minimum basic temperature for plant growth. N is the number of days with effective accumulated temperature. If the calculated value is a positive number, it means that the temperature of that day is conducive to plant growth. The accumulated effective accumulated temperature is obtained by adding up the effective accumulated temperature values of each day, which is used to evaluate the growth status of the plant.
[0014] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0015] In step S3, the light conditions are analyzed to obtain the impact value of light changes on tea growth. The light conditions are analyzed, and the light analysis is performed according to the light time in the historical meteorological data to obtain the light index. The light conditions for tea tree growth refer to the light intensity and light duration received by the tea tree. Some studies have shown that tea trees can promote their growth and yield under sufficient light. The following formula is used: ;in, Represents the light index, The total amount of light energy received by the tea tree per unit time, in joules. is the tea tree leaf area in square meters, and D is the lighting time: the local sunshine hours. Tea trees need a higher PAR value during the growing period to promote growth and bud development, so the PAR value reflects the light intensity currently received by the tea trees.
[0016] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0017] In step S5, based on the collected data and analysis results, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle The distance between the tea trees As input parameters, the specific steps of using the LSTM algorithm to build a prediction model for tea picking time are as follows:
[0018] S51: Data processing and preparation: Step S1 collects data related to the tea picking period, including historical picking dates and characteristic data related to the picking period: effective accumulated temperature value GDD, light index PAR, geographical location angle α and distance d between tea trees, cleans and preprocesses the data, including processing missing values and outliers, and divides the data into training set and test set;
[0019] S52: Feature engineering: According to the prediction target of the picking period, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle α and the distance d between tea trees are used as feature values;
[0020] S53: LSTM model construction: Use the training set data to build the LSTM model. The LSTM model is built based on different data subsets and feature subsets.
[0021] S54: Model evaluation and adjustment: Use the test set data to evaluate the accuracy, precision, and recall of the LSTM model to evaluate the performance of the model, make corresponding adjustments, and integrate to obtain the prediction formula: ,in is the predicted harvest date, , , , are the weights respectively;
[0022] S55: Model optimization: Based on the results of model evaluation, the model can be tuned and optimized to improve the performance and accuracy of the model;
[0023] S56: Model prediction: Use the trained LSTM model to predict the new input data (including the effective accumulated temperature value GDD, the light index PAR, the geographical location angle α and the distance d between tea trees) to obtain the prediction result of the tea picking period.
[0024] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0025] In step S6, the service interface of the local weather station is connected to obtain and integrate the current weather data in real time so that the model can dynamically adjust the prediction results. The specific steps are as follows:
[0026] S61. Data collection and preprocessing: Obtain real-time and future weather forecast data from authoritative weather stations, satellite remote sensing, and professional weather service APIs, including temperature, humidity, wind speed, rainfall, and light intensity. Perform quality checks on these data, remove outliers, and convert them into a format that the model can recognize.
[0027] S62. Feature construction and selection: construct dynamic meteorological features based on real-time data: instant meteorological index, short-term meteorological trend variables, etc., while considering the integration with historical meteorological data, and using feature engineering technology to select feature sets that have explanatory power for the forecast target;
[0028] S63. Model integration and updating: The model can accept new incoming meteorological data in real time, and adopt online learning mechanism to let the model automatically adjust weights and parameters as new data arrives to achieve self-optimization;
[0029] S64. Real-time prediction and feedback: The model runs immediately after receiving the latest meteorological data, outputs the best prediction results under current conditions, and establishes a feedback mechanism to compare the actual harvesting data with the model prediction results, evaluate the model performance, and adjust the model strategy in a timely manner according to the error situation;
[0030] S65. Decision support and application: The forecast results after real-time meteorological data fusion and optimization are transformed into intuitive decision suggestions, recommending the best picking window, indicating possible climate change risks, and assisting tea garden managers to make more accurate production scheduling and resource allocation decisions.
[0031] Beneficial effects of the present invention: Predicting the tea picking period can enable tea farmers to pick tea at an appropriate time, avoiding the deterioration of tea quality and reduction in yield due to picking tea too early or too late. Different picking times will affect the quality and taste of tea. By predicting the tea picking period, the best picking time can be selected to obtain better tea quality and taste. Predicting the tea picking period can help tea farmers arrange picking personnel and management work, improve picking efficiency and management effects, thereby reducing costs and reducing waste. For tea production companies, predicting the tea picking period in advance can improve the company's production capacity and market competitiveness, and meet market demand and customer requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a flowchart of a multi-scale tea picking prediction method based on LSTM; DETAILED DESCRIPTION
[0033] The present invention is further clearly and completely described below, but the protection scope of the present invention is not limited thereto.
[0034] A multi-scale tea picking prediction method based on LSTM, the flow chart is as follows Figure 1 As shown, the following steps are included:
[0035] S1. Data collection: Collect historical meteorological data of tea planting areas, including temperature, rainfall, sunshine time, soil moisture, wind speed, record the geographical location and planting spacing of tea trees, and tea picking records over the years;
[0036] S2. Calculate the effective accumulated temperature: According to the growth requirements of the tea tree and the minimum basal temperature, use the effective accumulated temperature formula to calculate the effective accumulated temperature value of each day, and accumulate it to obtain the cumulative effective accumulated temperature value GDD;
[0037] S3. Analyze light conditions: Analyze the light conditions required by tea trees based on the light time in historical meteorological data, compare the light data of different years, and obtain the light index PAR for tea growth;
[0038] S4. Calculate the angle and planting spacing: Based on the collected latitude and longitude information of the tea tree location and the planting spacing of the tea trees, process and calculate the data to obtain the geographical location angle The distance between the tea trees ;
[0039] S5. Establish a prediction model: Based on the collected data and analysis results, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle The distance between the tea trees As input parameters, the LSTM algorithm is used to establish a prediction model for tea picking time, and the prediction formula is integrated: ,in is the predicted harvest date, , , , are the weights respectively, and the environmental factors are correlated with the tea picking time to obtain the prediction results;
[0040] S6. Real-time meteorological data integration: Connect with the local meteorological station service interface to obtain and integrate current meteorological data in real time, so that the model can dynamically adjust the prediction results to cope with the impact of sudden weather changes on tea picking time, and improve the timeliness and flexibility of the prediction;
[0041] S7. Verify and adjust the model: Use historical data to verify the model, evaluate the prediction results based on the actual picking time, and adjust and optimize the model to improve the accuracy of the prediction;
[0042] S8. User feedback and continuous optimization: Based on the opinions of experienced tea farmers and actual picking results, a feedback mechanism is established to convert the feedback results into rules as the constraints of the model, and the model parameters are continuously adjusted to achieve continuous iterative optimization of the model.
[0043] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0044] In step S2, the effective accumulated temperature formula is used to calculate the effective accumulated temperature value of each day, and the accumulated effective accumulated temperature value is obtained by accumulation. The effective accumulated temperature (Growing Degree Days, referred to as GDD) is an indicator used to measure plant growth. It is determined by calculating the difference between the daily temperature and the lowest basic temperature for plant growth. In the fields of agriculture and horticulture, the effective accumulated temperature is used to estimate the growth process of plants in a specific time period. It can help farmers and gardeners predict the speed of plant development and the length of the production season. When calculating the effective accumulated temperature, the following formula is usually used: ,in, is the highest temperature of the day. The lowest temperature of the day. It is the minimum basic temperature for plant growth. N is the number of days with effective accumulated temperature. If the calculated value is a positive number, it means that the temperature of that day is conducive to plant growth. The accumulated effective accumulated temperature is obtained by adding up the effective accumulated temperature values of each day, which is used to evaluate the growth status of the plant.
[0045] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0046] In step S3, the light conditions are analyzed to obtain the impact value of light changes on tea growth. The light conditions are analyzed, and the light analysis is performed according to the light time in the historical meteorological data to obtain the light index. The light conditions for tea tree growth refer to the light intensity and light time received by the tea tree. Some studies have shown that tea trees can promote their growth and yield under sufficient light. The following formula is used: ;in, Represents the light index, The total amount of light energy received by the tea tree per unit time, in joules. is the tea tree leaf area in square meters, and D is the lighting time: the local sunshine hours. Tea trees need a higher PAR value during the growing period to promote growth and bud development, so the PAR value reflects the light intensity currently received by the tea trees.
[0047] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0048] In step S5, based on the collected data and analysis results, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle The distance between the tea trees As input parameters, the specific steps of using the LSTM algorithm to build a prediction model for tea picking time are as follows:
[0049] S51: Data processing and preparation: Step S1 collects data related to the tea picking period, including historical picking dates and characteristic data related to the picking period: effective accumulated temperature value GDD, light index PAR, geographical location angle α and distance d between tea trees, cleans and preprocesses the data, including processing missing values and outliers, and divides the data into training set and test set;
[0050] S52: Feature engineering: According to the prediction target of the picking period, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle α and the distance d between tea trees are used as feature values;
[0051] S53: LSTM model construction: Use the training set data to build the LSTM model. The LSTM model is built based on different data subsets and feature subsets.
[0052] S54: Model evaluation and adjustment: Use the test set data to evaluate the accuracy, precision, and recall of the LSTM model to evaluate the performance of the model, make corresponding adjustments, and integrate to obtain the prediction formula: ,in is the predicted harvest date, , , , are the weights respectively;
[0053] S55: Model optimization: Based on the results of model evaluation, the model can be tuned and optimized to improve the performance and accuracy of the model;
[0054] S56: Model prediction: Use the trained LSTM model to predict the new input data (including the effective accumulated temperature value GDD, the light index PAR, the geographical location angle α and the distance d between tea trees) to obtain the prediction result of the tea picking period.
[0055] Furthermore, a multi-scale tea picking prediction method based on LSTM is proposed.
[0056] In step S6, the service interface of the local weather station is connected to obtain and integrate the current weather data in real time so that the model can dynamically adjust the prediction results. The specific steps are as follows:
[0057] S61. Data collection and preprocessing: Obtain real-time and future weather forecast data from authoritative weather stations, satellite remote sensing, and professional weather service APIs, including temperature, humidity, wind speed, rainfall, and light intensity. Perform quality checks on these data, remove outliers, and convert them into a format that the model can recognize.
[0058] S62. Feature construction and selection: construct dynamic meteorological features based on real-time data: instant meteorological index, short-term meteorological trend variables, etc., while considering the integration with historical meteorological data, and using feature engineering technology to select feature sets that have explanatory power for the forecast target;
[0059] S63. Model integration and updating: The model can accept new incoming meteorological data in real time, and adopt online learning mechanism to let the model automatically adjust weights and parameters as new data arrives to achieve self-optimization;
[0060] S64. Real-time prediction and feedback: The model runs immediately after receiving the latest meteorological data, outputs the best prediction results under current conditions, and establishes a feedback mechanism to compare the actual harvesting data with the model prediction results, evaluate the model performance, and adjust the model strategy in a timely manner according to the error situation;
[0061] S65. Decision support and application: The forecast results after real-time meteorological data fusion and optimization are transformed into intuitive decision suggestions, recommending the best picking window, indicating possible climate change risks, and assisting tea garden managers to make more accurate production scheduling and resource allocation decisions.
Claims
1. A multi-scale tea picking prediction method based on LSTM, characterized in that: The following steps are involved: S1. Data collection: Collect historical meteorological data of tea planting areas, including temperature, rainfall, sunshine time, soil moisture, wind speed, record the geographical location and planting spacing of tea trees, and tea picking records over the years; S2. Calculate the effective accumulated temperature: According to the growth requirements of the tea tree and the minimum basal temperature, use the effective accumulated temperature formula to calculate the effective accumulated temperature value of each day, and accumulate it to obtain the cumulative effective accumulated temperature value GDD; S3. Analyze light conditions: Analyze the light conditions required by tea trees based on the light time in historical meteorological data, compare the light data of different years, and obtain the light index PAR for tea growth; S4. Calculate the angle and planting spacing: Based on the collected latitude and longitude information of the tea tree location and the planting spacing of the tea trees, process and calculate the data to obtain the geographical location angle The distance between the tea trees ; S5. Establish a prediction model: Based on the collected data and analysis results, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle The distance between the tea trees As input parameters, the LSTM algorithm is used to establish a prediction model for tea picking time, and the prediction formula is integrated: ,in is the predicted harvest date, , , , are the weights respectively, and the environmental factors are correlated with the tea picking time to obtain the prediction results; S6. Real-time meteorological data integration: Connect with the local meteorological station service interface to obtain and integrate current meteorological data in real time, so that the model can dynamically adjust the prediction results to cope with the impact of sudden weather changes on tea picking time; S7. Validate and adjust the model: Use historical data to validate the model, evaluate the prediction results based on the actual picking time, and adjust the model; S8 User feedback and continuous optimization: Based on the experience of tea farmers and the actual picking results, a feedback mechanism is established to convert the feedback results into rules as the constraints of the model, and the model parameters are continuously adjusted to achieve continuous iterative optimization of the model.
2. A multi-scale tea picking prediction method based on LSTM as claimed in claim 1, characterized in that: In step S2, the effective accumulated temperature formula is used to calculate the effective accumulated temperature value GDD of each day, and the accumulated effective accumulated temperature value GDD is obtained by calculating the difference between the daily temperature and the minimum basic temperature for plant growth. When calculating the effective accumulated temperature, the following formula is used: ,in, is the highest temperature of the day. is the lowest temperature of the day. It is the minimum basic temperature for plant growth. is the number of days with effective accumulated temperature. If the calculated value is a positive number, it means that the temperature on that day is conducive to plant growth. The accumulated effective accumulated temperature is obtained by adding the effective accumulated temperature values of each day, which is used to evaluate the growth status of the plant.
3. A multi-scale tea picking prediction method based on LSTM as claimed in claim 1, characterized in that: In step S3, the light conditions are analyzed to obtain the impact value of light changes on tea growth. The light conditions are analyzed, and according to the light time in the historical meteorological data, light analysis is performed to obtain the light index using the following formula: ,in, Represents the light index, The total amount of light energy received by the tea tree per unit time, in joules. is the tea tree leaf area in square meters, D is the lighting time: the local sunshine hours, and the PAR value reflects the light intensity currently received by the tea tree.
4. A multi-scale tea picking prediction method based on LSTM as claimed in claim 1, characterized in that: In step S5, based on the collected data and analysis results, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle The distance between the tea trees As input parameters, the specific steps of using the LSTM algorithm to build a prediction model for tea picking time are as follows: S51: Data processing and preparation: the data related to the tea picking period collected in step S1, including the historical picking date and the characteristic data related to the picking period: the effective accumulated temperature value GDD, the light index PAR, the geographical location angle α and the distance d between tea trees, are cleaned and preprocessed, including processing missing values and outliers, and the data are divided into a training set and a test set; S52: Feature engineering: According to the prediction target of the picking period, the effective accumulated temperature value GDD, the light index PAR, the geographical location angle α and the distance d between tea trees are used as feature values; S53: LSTM model construction: Use the training set data to train and construct the LSTM model. LSTM is constructed based on different data subsets and feature subsets; S54: Model evaluation and adjustment: Use the test set data to evaluate the accuracy, precision, and recall of the LSTM model to evaluate the performance of the model, make corresponding adjustments, and integrate to obtain the prediction formula: ,in is the predicted harvest date, , , , are the weights respectively; S55: Model optimization: Based on the results of model evaluation, the model is tuned and optimized to improve the performance and accuracy of the model; S56: Model prediction: Use the trained LSTM model to predict the new input data and obtain the prediction results of the tea picking period.
5. A multi-scale tea picking prediction method based on LSTM as claimed in claim 1, characterized in that: In step S6, the service interface of the local weather station is connected to obtain and integrate the current weather data in real time so that the model can dynamically adjust the prediction results. The specific steps are as follows: S61. Data collection and preprocessing: Obtain real-time and future weather forecast data from authoritative weather stations, satellite remote sensing, and professional weather service APIs, including temperature, humidity, wind speed, rainfall, and light intensity. Perform quality checks on the data, remove outliers, and convert them into a format that the model can recognize. S62. Feature construction and selection: construct dynamic meteorological features based on real-time data: instant meteorological index, short-term meteorological trend variables, and consider the integration with historical meteorological data, and use feature engineering technology to select feature sets; S63. Model integration and updating: The model can accept new incoming meteorological data in real time, and adopt online learning mechanism to let the model automatically adjust weights and parameters as new data arrives to achieve self-optimization; S64. Real-time prediction and feedback: The model runs immediately after receiving the latest meteorological data, outputs the best prediction results under current conditions, and establishes a feedback mechanism to compare the actual harvesting data with the model prediction results, evaluate the model performance, and adjust the model strategy in a timely manner according to the error situation; S65. Decision support and application: The forecast results after real-time meteorological data fusion and optimization are transformed into intuitive decision suggestions, recommending the best picking window, indicating possible climate change risks, and assisting tea garden managers to make more accurate production scheduling and resource allocation decisions.
Citation Information
Patent Citations
Big Data Tea Garden Intelligent Management and Control System
AU2020103580A4
Tea tree picking period prediction method based on Internet of Things technology
CN110009149A
Tea leaf picking period and picking duration prediction method with space-time distribution characteristics
CN111737876A
Tea leaf picking period prediction method and system based on accumulated temperature
CN115688997A
System and method for monitoring berry tea meteorological disasters
CN118071194A
