Agricultural planting intelligent management method and system based on Internet of Things

By acquiring and analyzing farmland environmental data, identifying key factors and building a demand prediction model, the problem of difficulty in real-time understanding of crop growth environmental conditions in the existing technology is solved, precise irrigation and fertilization are achieved, and crop growth success rate and yield are improved.

CN120069480AActive Publication Date: 2025-05-30JIAOSU CHAOSHU INFORMATION TECH CO LTD +2

Patent Information

Application Number
CN202510541270.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-05-30
Estimated Expiration
2045-04-28

AI Technical Summary

Technical Problem

The existing technology is difficult to understand the environmental conditions required for crop growth in real time, which leads to managers being unable to adjust irrigation, fertilization and other measures in time, reducing the success rate and yield of crop growth.

Method used

By obtaining environmental data in farmland, performing feature extraction and analysis, using factor analysis algorithms to identify key factors, constructing demand prediction models, and predicting resource requirements of crops in the future.

Benefits of technology

It achieves real-time understanding of crop growth environmental conditions, improves the accuracy of irrigation and fertilization, reduces resource waste, and improves crop growth success rate and yield.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120069480A_ABST
    Figure CN120069480A_ABST
Patent Text Reader

Abstract

The invention discloses an agricultural planting intelligent management method and system based on the Internet of Things, and relates to the technical field of agricultural planting, and the method comprises the following steps: obtaining environment data in a farmland, and carrying out the feature extraction of the environment data, and obtaining environment feature data; analyzing the environment characteristic data by using a factor analysis algorithm to obtain key factors influencing crop growth; and constructing a demand prediction model, and predicting the growth demand of the crops at future moments by using the demand prediction model to obtain the optimal irrigation time and fertilization amount of the crops. According to the method, the environmental characteristic data is analyzed by using a factor analysis algorithm, so that agricultural managers can perform land management and crop planting in a targeted manner, unnecessary resource consumption is avoided, the demand of crops for resources such as water and fertilizer at the future moment can be predicted by constructing the demand prediction model, and the agricultural management efficiency is improved. Agricultural managers are helped to reasonably arrange irrigation and fertilization time, so that the yield and quality of crops are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of agricultural planting. Specifically, it relates to an intelligent management method and system for agricultural planting based on the Internet of Things. Background Art

[0002] Agricultural planting covers the cultivation of various plants, including crops, forest trees, fruit trees, flowers, medicinal plants, and ornamental plants, etc. The growth requirements and environmental adaptabilities of different plants vary. Therefore, in the planting process, it is crucial to understand and control the environmental factors that affect plant growth. The growth of crops depends not only on soil quality but also on various environmental factors, mainly including key parameters such as soil temperature and humidity, air temperature and humidity, and light intensity. These environmental factors directly affect the growth processes of plants, such as photosynthesis, nutrient absorption, and root development. Modern agriculture can, through the introduction of Internet of Things technology, sensors, and big data analysis, monitor and collect various environmental data in farmland in real time. These real-time data include information such as soil humidity, temperature, air humidity, temperature, and light, which can provide the most suitable growth conditions for crops. Through scientific data analysis, agricultural producers can timely understand the changes in the farmland environment and take corresponding adjustment measures, such as precise irrigation, fertilization, and temperature control, to ensure that crops grow under the best conditions.

[0003] In the prior art, due to the lack of efficient and real-time means for environmental data collection and analysis, managers cannot timely obtain the environmental change information required for crop growth, resulting in difficulties in precisely adjusting measures such as irrigation and fertilization, being unable to provide the most suitable growth conditions for crops, and being inconvenient for identifying the key environmental factors that affect crop growth, unable to help agricultural managers understand which factors play a decisive role in crop growth, reducing the success rate of crop growth. At the same time, it is inconvenient to predict the future demand of crops for resources such as water and fertilizers, and it is not convenient to help agricultural management reasonably arrange the irrigation and fertilization time, not only reducing the utilization efficiency of water resources and fertilizers, but also reducing the healthy growth of crops, and further reducing the yield and quality of crops.

[0004] No effective solution has been proposed for the problems in the related art. Summary of the Invention

[0005] In view of the deficiencies of the prior art, the present invention proposes an intelligent management method and system for agricultural planting based on the Internet of Things, which solves the problems mentioned in the above background art. That is, it is not convenient to understand the environmental conditions required for crop growth in real time, so that managers cannot obtain timely environmental change information, which is not conducive to providing the most suitable growth conditions for crops. Also, it is not convenient to identify the key environmental factors affecting crop growth, and it cannot help agricultural managers understand which factors play a decisive role in crop growth, reducing the success rate of crop growth. At the same time, it is not convenient to predict the future demand of crops for resources such as water and fertilizers, and it is not convenient to help agricultural management reasonably arrange irrigation and fertilization times. This not only reduces the utilization efficiency of water resources and fertilizers, but also reduces the healthy growth of crops, and further reduces the yield and quality of crops.

[0006] To achieve the above objectives, the present invention is realized through the following technical solutions: According to one aspect of the present invention, there is provided an intelligent management method for agricultural planting based on the Internet of Things, the method comprising the following steps: S1. Obtain the environmental data in the farmland, and perform feature extraction on the environmental data to obtain environmental feature data; S2. Analyze the environmental feature data using a factor analysis algorithm to obtain the key factors affecting crop growth; S3. Construct a demand prediction model, and use the demand prediction model to predict the future crop growth demand to obtain the optimal irrigation time and fertilization amount for the crops; S2 includes the following steps: S21. Obtain a sample set of environmental feature data, and organize the sample set to screen out a data subset related to crop growth characteristics; S22. Based on a screening technique, screen the data subset to select the environmental data that has the greatest impact on crop growth as high-quality individuals; S23. Optimize the high-quality individuals using a feature optimization algorithm to obtain the key factors affecting crop growth.

[0007] Furthermore, obtaining the environmental data in the farmland and performing feature extraction on the environmental data to obtain environmental feature data includes the following steps: S11. Obtain the original environmental data in the farmland, perform data decomposition, and use signal separation technology to filter out high-frequency noise to obtain denoised farmland environmental data; S12. Use a dimensionality reduction analysis method to decompose the denoised farmland environmental data, extract each environmental feature component, and perform smoothing processing; S13. Calculate the correlation index between each extracted environmental feature component and the original farmland environmental data, screen out the features with the highest correlation, and eliminate the environmental components with the lowest correlation; S14. Integrate the processed environmental feature components into a complete environmental feature dataset to obtain environmental feature data.

[0008] Furthermore, use dimensionality reduction analysis method to decompose the denoised farmland environmental data, extract each environmental feature component, and perform smoothing processing, including the following steps: S121. Arrange the denoised farmland environmental data in chronological order into a data matrix, and perform singular value decomposition on the data matrix; S122. Based on the decomposed data matrix, construct a linear mapping matrix, and perform dynamic mode decomposition on it to identify each environmental feature component related to the change of the farmland environment; S123. Use low-pass filtering technology to smooth the identified key patterns to eliminate short-term fluctuations and noise.

[0009] Furthermore, based on the screening technology, screen the data subset, and select the environmental data that has the greatest impact on crop growth as high-quality individuals, including the following steps: S221. Initialize the screening parameters, and each parameter represents a candidate configuration of the environmental data subset; S222. Evaluate the screening parameters of each environmental data subset, and select the environmental data subset with the greatest impact as the central high-quality data subset; S223. Adjust the screening parameters of the non-central environmental data subset, and determine the generation quantity of the new screening parameter set according to its impact error on crop growth; S224. Generate new environmental data subset parameters through Gaussian mutation, and generate a new screening parameter set according to the mutation range; S225. Select the subset with the least impact on crop growth from the current screening parameters of all environmental data subsets for iterative update, and record the screening result with the greatest impact on crop growth; S226. Check whether the preset number of iterations is reached. If so, stop screening, and record the environmental data with the greatest impact on crop growth as high-quality individuals.

[0010] Furthermore, use the feature optimization algorithm to optimize the high-quality individuals to obtain the key factors affecting crop growth, including the following steps: S231. Initialize the parameters of the feature optimization algorithm and the objective function of the factors affecting crop growth, define the initial optimization model, and set its objective function; S232. Randomly initialize the feature subset configuration in the parameter space of the factors affecting crop growth, construct the initial optimization model, and calculate the corresponding objective function; S233. Evaluate the initial optimization model using the training data, calculate the impact indicators of the current feature configuration on crop growth, and record the performance results; S234. Adjust the current feature parameter combination according to the adjustment rules of the feature optimization algorithm. If the new feature combination has the best performance, update the current configuration; otherwise, update the global optimum and adjust the optimization model; S235. If no optimal solution is found during the optimization process, expand the feature selection range, dynamically adjust the search strategy, eliminate the least influential feature configurations, and obtain the key factors that have the greatest impact on crop growth.

[0011] Further, the formula for the adjustment rule is: ; In the formula, represents the new feature parameter combination after adjustment; T a represents the current feature parameter combination; represents the global optimal feature parameter combination; α represents the coefficient for controlling the local search step size; β represents the coefficient for controlling the local search range; T x and T m both represent randomly selected feature parameter combinations.

[0012] Further, construct a demand prediction model, and use the demand prediction model to predict the crop growth demand at future times. Obtaining the optimal irrigation time and fertilization amount of the crop includes the following steps: S31. Obtain the key factors affecting the crop growth demand and divide them into a training set and a test set; S32. Initialize the parameters of the demand prediction model and determine the key parameters for constructing the demand prediction model; S33. Input the training set and the parameters of the initial demand prediction model into the demand prediction model, and perform iterative optimization based on the model optimization algorithm to output the optimal demand prediction model parameters; S34. Based on the optimal demand prediction model parameters, construct the final demand prediction model, input the test set into the final demand prediction model for verification, and use the final demand prediction model to predict the crop growth demand at future times to obtain the optimal irrigation time and fertilization amount of the crop.

[0013] Further, inputting the training set and the parameters of the initial demand prediction model into the demand prediction model, and performing iterative optimization based on the model optimization algorithm to output the optimal demand prediction model parameters includes the following steps: S331. Initialize the parameters of the demand forecasting model and set the maximum number of iterations of the model optimization algorithm; S332. Input the training set and the parameters of the initial demand forecasting model into the model, calculate the error of the prediction result as the fitness value; S333. Calculate the number of parameter configurations of the current demand forecasting model according to the rules of the model optimization algorithm and adjust the parameter configurations of the demand forecasting model; S334. Perform a quick sort on the current demand forecasting model according to the fitness value and classify the demand forecasting model into the optimal configuration and the auxiliary configuration; S335. Mutate and update the demand forecasting model according to the fitness value to generate a new demand forecasting model, and determine whether the model optimization algorithm has reached the maximum number of iterations. If it has reached, stop and output the parameters of the best demand forecasting model. Otherwise, return to step S343 to continue optimization until the maximum number of iterations is reached.

[0014] Furthermore, the rule formula of the model optimization algorithm is: ; In the formula, P i represents the number of parameter configurations of the demand forecasting model at the i th iteration; P max and P min represent the upper and lower limits of the number of parameter configurations respectively; z represents the total cycle delay; y represents the delay imbalance degree; represents the maximum fitness of the total cycle delay; represents the minimum fitness of the total cycle delay; represents the average fitness of the total cycle delay; δ represents the threshold parameter; represents the maximum fitness of the delay imbalance degree; represents the minimum fitness of the delay imbalance degree; represents the average fitness of the delay imbalance degree.

[0015] According to another aspect of the present invention, there is also provided an intelligent management system for agricultural planting based on the Internet of Things. The system includes: A data acquisition module, configured to acquire environmental data in the farmland and perform feature extraction on the environmental data to obtain environmental feature data; A data analysis module, configured to analyze the environmental feature data by using a factor analysis algorithm to obtain the key factors affecting the growth of crops; A model prediction module, which is used to construct a demand prediction model and use the demand prediction model to predict the growth demand of crops at future moments, so as to obtain the optimal irrigation time and fertilization amount of the crops; Among them, the data acquisition module is connected to the model prediction module through the data analysis module.

[0016] The beneficial effects of the present invention are as follows: 1. By acquiring the environmental data in the farmland and extracting key features, agricultural managers can understand the environmental conditions required for crop growth in real time, enabling agricultural managers to obtain timely environmental change information, providing the most suitable growth conditions for crops, thus effectively avoiding over-irrigation and over-fertilization, reducing resource waste. By using the factor analysis algorithm to analyze the environmental characteristic data, agricultural managers can carry out targeted land management and crop planting, avoid unnecessary resource consumption, and improve the success rate of crop growth. By constructing an accurate demand prediction model, it is possible to predict the demand of crops for resources such as water and fertilizers at future moments, helping agricultural managers to reasonably arrange the irrigation and fertilization time, and thus improving the yield and quality of crops.

[0017] 2. By using the factor analysis algorithm to analyze the environmental characteristic data, the present invention can identify the key environmental factors affecting crop growth, helping agricultural managers to understand which factors play a decisive role in crop growth. Combining these key factors, agricultural managers can make scientific decisions, carry out targeted land management and crop planting, avoid unnecessary resource consumption, and improve the success rate of crop growth.

[0018] 3. By constructing an accurate demand prediction model, the present invention can predict the demand of crops for resources such as water and fertilizers at future moments, helping agricultural managers to reasonably arrange the irrigation and fertilization time. This precise regulation can effectively avoid over-irrigation and over-fertilization, not only improving the utilization efficiency of water resources and fertilizers, but also promoting the healthy growth of crops, and thus improving the yield and quality of crops. Description of the Drawings

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0020] Figure 1 is a flowchart of an intelligent management method for agricultural planting based on the Internet of Things according to an embodiment of the present invention; Figure 2 is a schematic block diagram of an intelligent management system for agricultural planting based on the Internet of Things according to an embodiment of the present invention.

[0021] In the figure: 1. Data acquisition module; 2. Data analysis module; 3. Model prediction module. Specific implementation manners

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

[0023] In the description of the present invention, unless otherwise specified, the meaning of "a plurality" is two or more. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0024] According to an embodiment of the present invention, an intelligent management method and system for agricultural planting based on the Internet of Things are provided.

[0025] Now, the present invention will be further described in conjunction with the accompanying drawings and specific implementation manners. As Figure 1 shown, according to the intelligent management method for agricultural planting based on the Internet of Things in the embodiment of the present invention, the method includes the following steps: S1. Obtain environmental data in the farmland, and perform feature extraction on the environmental data to obtain environmental feature data; In this alternative embodiment, obtaining environmental data in the farmland and performing feature extraction on the environmental data to obtain environmental feature data includes the following steps: S11. Obtain the original environmental data in the farmland for data decomposition, and use signal separation technology to filter high-frequency noise to obtain denoised farmland environmental data; S12. Use the dimensionality reduction analysis method to decompose the denoised farmland environmental data, extract each environmental feature component, and perform smoothing processing; S13. Calculate the correlation index between each extracted environmental feature component and the original farmland environmental data, screen the features with the highest correlation, and eliminate the environmental components with the lowest correlation; S14. Integrate the processed environmental feature components into a complete environmental feature data set to obtain environmental feature data.

[0026] It should be noted that first, an Internet of Things sensor network (such as soil moisture sensors, temperature and humidity sensors, light sensors, etc.) is deployed in the farmland to collect environmental data in real time. Suppose the collected data includes: soil temperature, soil moisture, air temperature, air humidity, light intensity, wind speed, etc.; there will be certain high-frequency noises in the obtained original data (such as sensor errors, weather interference, etc.), and these noises may affect the analysis results. Therefore, signal separation techniques, such as wavelet transform, Fourier transform, etc., are used to decompose the original data into multiple frequency levels, remove the high-frequency noises, and only retain the low-frequency signals related to crop growth; by denoising the data, the most representative farmland environmental data is retained. At this time, the obtained is the denoised farmland environmental data, removing the short-term fluctuations caused by factors such as sensor vibration and electromagnetic interference. Through dimensionality reduction analysis (i.e., dynamic mode decomposition), the multi-dimensional original data is compressed into fewer characteristic components, and these components can capture the main change trends of the data. For example, key information such as the water retention capacity of the soil and the impact of temperature changes on crop growth is extracted from the changes in soil moisture and temperature. The correlation between each environmental characteristic component and the original environmental data is calculated through the Pearson correlation coefficient, and the characteristics most relevant to crop growth are selected. For example, if soil moisture and soil temperature have a strong impact on the water demand and growth status of crops, then these two characteristic components will be selected as important characteristics; according to the correlation index, the environmental characteristic components with low correlation with the original data are removed, and these characteristics may no longer play a significant role in subsequent analysis. The environmental characteristic components after screening and optimization will be integrated into a complete environmental characteristic data set. These data sets contain the most representative and highly correlated environmental parameters in the farmland; for example, after screening, the final data set may include environmental characteristics such as soil temperature, soil moisture, air humidity, light intensity, etc. These characteristics can accurately describe the farmland environment and provide data support for the subsequent crop growth demand prediction model; after completing the data integration, the finally obtained environmental characteristic data set will be used as the model input for subsequent agricultural production decision-making analysis, such as irrigation, fertilization, and crop growth prediction.

[0027] In this alternative embodiment, the dimensionality reduction analysis method is used to decompose the denoised farmland environmental data, extract each environmental characteristic component, and the smoothing process includes the following steps: S121. Arrange the denoised farmland environmental data in chronological order into a data matrix, and perform singular value decomposition on the data matrix; S122. Based on the decomposed data matrix, construct a linear mapping matrix, and perform dynamic mode decomposition on it to identify each environmental characteristic component related to the changes in the farmland environment; S123. Use low-pass filtering technology to smooth the identified key patterns to eliminate short-term fluctuations and noises.

[0028] Specifically, the environmental data includes: 1) Soil data: Soil temperature: Affects the growth and metabolism of plant roots.

[0029] Soil humidity: Directly related to the water supply of plants, and is a key factor determining irrigation.

[0030] Soil pH value: Affects the absorption of nutrients by plants and determines whether plants can grow healthily in this environment.

[0031] Soil nutrient content: Includes macronutrients such as nitrogen, phosphorus, and potassium, as well as trace elements such as iron, manganese, and copper, which directly affect plant growth.

[0032] 2) Climate data: Air temperature: Affects physiological processes such as photosynthesis and respiration of plants.

[0033] Air humidity: Affects the transpiration of plants, and too high or too low humidity may be unfavorable to plant growth.

[0034] Light intensity: The photosynthesis of plants depends on light intensity, so it is an important factor affecting crop growth.

[0035] Wind speed and direction: Excessive wind speed may cause too fast water evaporation, affecting the water supply of crops.

[0036] 3) Other data: Precipitation: Affects the water retention of the soil, and thus affects the irrigation demand of crops.

[0037] Concentration: Carbon dioxide is the raw material for plant photosynthesis, and changes in concentration will affect the growth rate of crops.

[0038] Specifically, the environmental characteristic data includes: Climate index: Such as the daily average value and weekly average value of air temperature, etc., which can reflect the trend of climate change.

[0039] Soil moisture status: Based on soil humidity data, calculate such as soil water retention capacity and drainage performance.

[0040] Growth environment index: Comprehensive data of air temperature, humidity, light, etc., to evaluate whether the current growth environment of crops is suitable.

[0041] Light utilization efficiency: According to the relationship between light intensity and plant growth rate, calculate the influence degree of light on crops.

[0042] Precipitation utilization rate: The relationship between precipitation and soil moisture change, reflecting the impact of water resources on crop growth.

[0043] It should be noted that the Internet of Things technology (IoT) is used to obtain farmland environment data. Specifically, it includes: 1) Sensor deployment: Temperature and humidity sensors: Used to measure the temperature and humidity in the air. These are key factors affecting crop growth.

[0044] Soil moisture sensors: Used to detect the water content in the soil to help determine the optimal timing of irrigation.

[0045] Light sensors: Monitor the light intensity to help evaluate whether the crops receive sufficient sunlight.

[0046] Gas sensors: Monitor the gas components in the farmland, such as carbon dioxide , oxygen , ammonia etc. These gases affect crop growth.

[0047] Soil pH sensors: Used to monitor the acidity and alkalinity of the soil for soil improvement.

[0048] Weather stations: Integrated with multiple sensors, such as temperature, humidity, precipitation, wind speed, air pressure, etc., to obtain meteorological data of the farmland.

[0049] 2) Data collection: Wireless communication: Using wireless technologies such as Wi-Fi, Bluetooth, LoRa, ZigBee, etc., to transmit the data collected by sensors to the centralized data processing system. This method has the advantages of simple wiring and flexible deployment.

[0050] Wired communication: Transmitting data through a wired network (such as Ethernet), suitable for environments that require stable and high bandwidth.

[0051] Satellite remote sensing: Using remote sensing technologies (such as satellite images, sensors carried by drones, etc.) to monitor the farmland environment on a large scale, especially to obtain geographical information, vegetation indices, etc. of the farmland.

[0052] 3) Data transmission: Wi-Fi: Suitable for short-distance, high-data-flow applications, and can upload data to the cloud through the Internet.

[0053] Bluetooth and BLE (Low Energy Bluetooth): Suitable for low-power devices, usually used for short-distance transmission, suitable for small-scale agricultural applications.

[0054] LoRa (Long Range): Suitable for long-distance and low-power communication, capable of achieving long-distance data transmission, especially suitable for large-scale farmland or remote areas.

[0055] NB-IoT (Narrowband Internet of Things): Suitable for low-power and large-scale connection environments, suitable for farmland monitoring in rural or remote areas.

[0056] ZigBee: Used for short-distance and low-power communication between devices, suitable for sensor networks in farmland.

[0057] S2. Use the factor analysis algorithm to analyze the environmental characteristic data to obtain the key factors affecting crop growth; Specifically, the key factors affecting crop growth include: 1) Soil factors: Soil temperature: Affects the growth and metabolism of plant roots and is one of the important environmental conditions for crop growth.

[0058] Soil humidity: Directly related to the water supply of plants and is a key factor determining irrigation requirements.

[0059] Soil pH value: Affects the absorption of nutrients by plants, and different crops have different adaptation ranges to soil pH values.

[0060] Soil nutrient content: Includes macronutrients such as nitrogen (N), phosphorus (P), and potassium (K), as well as micronutrients such as iron (Fe), manganese (Mn), and copper (Cu). These nutrients directly affect the growth and development of plants.

[0061] Soil structure: The physical structure of the soil, such as particle size and porosity, affects the water and nutrient retention capacity.

[0062] 2) Climate factors: Air temperature: Affects physiological processes such as photosynthesis and respiration of plants, and different crops have different temperature requirements.

[0063] Air humidity: Affects the transpiration of plants, and too high or too low humidity may be unfavorable for plant growth.

[0064] Light intensity: The photosynthesis of plants depends on light intensity and is an important factor affecting crop growth.

[0065] Light duration: Different crops have different requirements for light duration, which affects the flowering period and fruit maturity.

[0066] Precipitation: Affects the water retention of the soil and thus affects the irrigation requirements of crops.

[0067] Wind speed and direction: Excessive wind speed may cause rapid water evaporation, affecting the water supply of crops, and the wind direction may affect the spread of pests and diseases.

[0068] 3) Biological factors: Pests and diseases: The occurrence of pests and diseases will affect the growth and yield of crops, and timely monitoring and control are required.

[0069] Microbial activity: Microbial activity in the soil affects soil fertility and the root health of crops.

[0070] 4) Human factors: Irrigation management: Reasonable irrigation management can ensure that crops obtain sufficient water and avoid over-irrigation or water shortage.

[0071] Fertilization management: Scientific fertilization can provide the nutrients required by crops and avoid nutrient deficiency or excess.

[0072] Tillage methods: Different tillage methods (such as crop rotation, intercropping, cover crops, etc.) have an important impact on soil quality and crop growth.

[0073] 5) Other factors: Concentration: Carbon dioxide is the raw material for plant photosynthesis, and changes in concentration will affect the growth rate of crops.

[0074] Soil salinity: Excessive soil salinity will affect plant growth, especially for salt-sensitive crops.

[0075] Soil organic matter content: Soils with high organic matter content usually have better water and fertilizer retention capabilities, which are beneficial to crop growth.

[0076] S3. Construct a demand prediction model and use the demand prediction model to predict the growth demand of crops at future times to obtain the optimal irrigation time and fertilization amount of crops; S2 includes the following steps: S21. Obtain a sample set of environmental characteristic data, organize the sample set, and screen out the data subset related to the growth characteristics of crops; It should be explained that the sample set of environmental characteristic data is not necessarily all related to the growth characteristics of crops. The sample set of environmental characteristic data may contain various different environmental information, and this information does not necessarily directly affect the growth of crops. For example, environmental data may include meteorological data (such as wind speed, air pressure, etc.), soil properties (such as soil type, chemical composition, etc.), and some external factors unrelated to crop growth (such as pollution source data in the surrounding area, or other meteorological characteristics unrelated to agricultural activities). For example: The meteorological data of farmland may contain information such as air pressure and wind speed. Although these data may have an impact on crop growth in some cases, they do not directly affect the crop growth process in all cases. Perhaps the impact of wind speed on some crops is relatively small, while it may be more important for other crops.

[0077] Therefore, there may be features in the sample set of environmental characteristic data that have a weak or indirect relationship with crop growth, rather than all data being directly related to the growth characteristics of crops.

[0078] It should be explained that the screening process is to improve the relevance and quality of the data, making the model or analysis results more accurate and efficient. The selected data subset only includes those features that have a significant impact on crop growth, which helps to: Reduce noise data: The environmental data sample set may contain irrelevant information (such as some secondary features in meteorological factors). If not screened, this information may interfere with the analysis results and affect the prediction accuracy.

[0079] Improve the accuracy of the model: Selecting the feature data closely related to crop growth can significantly improve the efficiency and accuracy of modeling. For example, by screening the key factors affecting crop growth (such as soil moisture, temperature, light intensity, etc.), the model will focus more on the key environmental parameters, thus providing more accurate predictions.

[0080] Optimize computing resources: After screening, the data dimension is reduced and the computational complexity is lowered. This is especially important for processing large amounts of data (such as the large amount of sensor data generated by Internet of Things devices).

[0081] It should be explained that the sample set of environmental characteristic data does not necessarily only contain features related to growth. Environmental characteristic data often includes various factors, some of which may only have an indirect impact or be less relevant to agricultural growth. For example, some weather factors (such as air pressure and wind speed) may have an indirect impact on crop growth, but this is not applicable in all cases. If not screened, this information may increase redundant data and affect the efficiency and accuracy of subsequent analysis. For example: Soil type: The particle size, texture, etc. of the soil, although indirectly affecting crop growth, are not environmental factors themselves and may not be included during screening.

[0082] Air pressure, wind speed: Although they may have an impact on crop growth in certain specific situations (e.g., strong winds may affect the photosynthesis of crops), the impact of these factors on most crops is relatively small, so they may be considered as non-critical data to be screened out. The basis for screening the environmental data subset is usually data analysis. For example, through statistical methods (such as correlation analysis, principal component analysis, etc.), those variables highly correlated with crop growth are identified. The screening process generally consists of the following steps: Correlation analysis: Evaluate the correlation between each environmental feature and crop growth characteristics, and screen out significantly correlated variables.

[0083] Domain knowledge: Combine domain knowledge such as agronomy and crop growth models to select environmental parameters known to affect crop growth.

[0084] Data modeling: By constructing a preliminary model, evaluate the contribution of each environmental factor to crop growth prediction, and screen out effective features.

[0085] S22. Based on the screening technology, screen the data subset and select the environmental data that has the greatest impact on crop growth as high-quality individuals; S23. Use the feature optimization algorithm to optimize the high-quality individuals to obtain the key factors affecting crop growth.

[0086] It should be explained that, first of all, environmental feature data is collected from multiple sources, including meteorological data, soil data, light intensity, etc. This data may come from sensors, weather forecasts, soil test reports, etc.

[0087] Collect the sample set: Collect environmental data related to crop growth, such as soil moisture, air temperature, light intensity, air humidity, precipitation, soil temperature, carbon dioxide concentration, wind speed, etc. This data can be obtained through automated sensors, weather stations or remote sensing data.

[0088] Organize the sample set: Organize the collected data, remove missing values or outliers, and ensure the accuracy of the data. For example, check whether there are missing timestamps or incorrect temperature values.

[0089] Based on existing agricultural research and literature, preliminarily judge which environmental factors are most relevant to the growth characteristics of crops. For example, soil moisture, air temperature and light intensity are considered key factors affecting crop growth. Therefore, screen out this data from the sample set and remove irrelevant factors (such as wind speed, carbon dioxide concentration, etc.) to obtain a more accurate data subset.

[0090] Apply screening techniques to further screen the data subset, and select the environmental data that has the greatest impact on crop growth as high-quality individuals. The screening techniques can include correlation analysis, feature selection algorithms (such as chi-square test, information gain, fireworks algorithm, etc.). Through the screening techniques, select the environmental data features that have the greatest impact on crop growth, such as soil moisture and air temperature. These high-quality individuals will be used as the basis for subsequent feature optimization. Use feature optimization algorithms to optimize the selected high-quality individuals, and finally determine the key factors affecting crop growth. Common feature optimization algorithms include genetic algorithm, particle swarm optimization algorithm, lightning search algorithm, etc. During the optimization process, use the high-quality features screened in step S22 as the initial individuals (such as soil moisture and air temperature); define a fitness function to measure the quality of each feature combination. The fitness function is usually calculated through training data, and mean squared error (MSE) or other appropriate metrics can be used. This fitness function measures the accuracy of the feature combination in predicting crop growth; use feature optimization algorithms (such as genetic algorithm, particle swarm optimization, lightning search algorithm, etc.) to adjust the feature parameters, and the optimization goal is to make the fitness value optimal. For example, through operations such as crossover and mutation of the genetic algorithm, continuously optimize the feature combination. After multiple iterations of optimization, finally obtain a set of optimized feature combinations, and these feature combinations represent the key factors affecting crop growth. The optimized features include: Soil moisture: May have an important impact on the water requirements of crops.

[0091] Air temperature: Directly affects the growth rate and health of crops.

[0092] Light intensity: Plays a key role in the photosynthesis and yield of crops.

[0093] In this alternative embodiment, based on the screening technique, screening the data subset and selecting the environmental data that has the greatest impact on crop growth as high-quality individuals includes the following steps: S221. Initialize the screening parameters, and each parameter represents a candidate environmental data subset configuration; S222. Evaluate the screening parameters of each environmental data subset, and select the environmental data subset with the greatest impact as the central high-quality data subset; S223. Adjust the screening parameters of the non-central environmental data subsets, and determine the number of new screening parameter sets generated according to their impact error on crop growth; S224. Generate new environmental data subset parameters through Gaussian mutation, and generate a new screening parameter set according to the mutation range; It should be noted that generating new environmental data subset parameters through Gaussian mutation and generating a new set of screening parameters according to the mutation range are targeted at the screening parameters, rather than directly acting on the original time series data. The screening parameters refer to the combinations of various parameters in the feature subset (such as the weight configuration of features like temperature, humidity, soil humidity, etc.). Gaussian mutation is used to explore the optimal configuration of these parameter combinations to help screen out the most influential environmental features. This operation does not involve modifying or adding noise to the original data itself (such as temperature and humidity data in the time series). In the present invention, the time series structure of the original time series data will be completely retained in the subsequent modeling stage. The purpose of Gaussian mutation is to optimize the feature selection process and will not directly disrupt the temporality of the data, because in the subsequent analysis and prediction processes, the time series data will be used as input variables and processed through methods such as regression analysis and time series modeling. Through this method, the model can understand and predict the temporal dynamic process of crop growth. The present invention obtains and analyzes environmental data in the farmland through Internet of Things technology to predict and optimize the irrigation and fertilization strategies of crops. Although growth characteristics of crops such as leaf area index and chlorophyll content are very important, the extraction and analysis of these characteristics and the dynamic prediction of the growth process generally belong to a part of the subsequent modeling. In the present invention, the screening and optimization of environmental data are to improve the indirect prediction accuracy of the growth state of crops. Crop growth characteristics (such as leaf area index and chlorophyll content) can be used as input labels in the subsequent modeling and evaluation stages, thereby assisting in formulating more accurate irrigation and fertilization strategies. It should be noted that crop growth characteristics (such as leaf area index and chlorophyll content) can be used as input labels in the subsequent modeling and evaluation stages, thereby assisting in formulating more accurate irrigation and fertilization strategies, including: 1) Objective: Model the environmental data collected by sensors and crop growth characteristics to improve the accuracy of predicting irrigation and fertilization amounts.

[0094] Establish a multivariable regression model or machine learning model, taking environmental data and crop growth characteristics as inputs and outputting irrigation and fertilization requirements.

[0095] 2) Data collection: Environmental data: Real-time collect environmental data in the farmland through Internet of Things devices (such as temperature and humidity sensors, soil humidity sensors, light sensors, etc.).

[0096] Crop growth data: Obtain growth characteristics of crops such as leaf area index (LAI) and chlorophyll content (Chl) through means such as image recognition technology or leaf sensors.

[0097] 3) Data processing: Time series processing: Temporalize the environmental data and crop growth characteristic data to ensure the temporal continuity of the data and avoid data loss or noise.

[0098] Feature extraction: Extract features from the original environmental data and perform feature fusion by combining crop growth data (such as LAI, Chl).

[0099] 4) Model construction: Regression analysis model: Use methods such as multiple linear regression and support vector regression (SVR) to construct a prediction model. The inputs of the model are environmental data and crop growth characteristics, and the outputs are the predicted values of irrigation and fertilization amounts.

[0100] Machine learning model: Machine learning models such as random forest regression, gradient boosting machine (GBM), and deep neural network (DNN) can be used to perform more complex modeling by combining environmental data and crop growth characteristics.

[0101] 5) Model training and validation: Training dataset: Select farmland data at different growth stages for training to ensure coverage of different seasons, weather conditions, and crop states.

[0102] Validation and testing: Use methods such as the Hold-Out method and cross-validation to validate the model and ensure its generalization ability and prediction accuracy.

[0103] 6) Model optimization: Feature screening: Use feature selection techniques (such as LASSO regression, principal component analysis (PCA), etc.) to screen the input data and retain the environmental features and crop growth characteristics that are closely related to irrigation and fertilization requirements.

[0104] Model tuning: Optimize the model hyperparameters through methods such as grid search and random search to improve the prediction accuracy.

[0105] 7) Prediction results: Output: Based on the environmental data and crop growth characteristics, the model outputs the irrigation and fertilization amounts at different growth stages. Specifically, the model predicts the water and nutrient requirements of the crops according to the real-time data and provides decision support for farmland management.

[0106] Feedback and adjustment: If the prediction error at a certain stage is large, the model parameters can be adjusted based on the feedback or the model can be retrained.

[0107] It should be noted that the present invention obtains the environmental data in the farmland in real time through the Internet of Things technology and conducts time series prediction based on these data. At different growth stages of crops, the influence of environmental factors (such as temperature, humidity, soil moisture, etc.) on crop requirements is different. By constructing a prediction model based on environmental data (such as regression models, neural networks, machine learning models, etc.), the irrigation and fertilization requirements of crops can be dynamically predicted at different growth stages. This process can predict the most suitable irrigation and fertilization strategies through environmental parameters without directly measuring the growth characteristics of crops by means of multi-dimensional analysis of environmental data and combining the growth laws and requirements of crops. As the crops grow, the environmental conditions change continuously, and the prediction model will dynamically adjust its parameters to optimize the irrigation and fertilization strategies in real time. This not only depends on a single data point, but comprehensively considers the long-term environmental data trends to ensure the high accuracy and adaptability of the irrigation and fertilization amounts at different stages.

[0108] S225. From the currently selected parameters of all environmental data subsets, select the subset with the least impact on crop growth for iterative update, and record the screening result with the greatest impact on crop growth; S226. Check whether the preset number of iterations is reached. If so, stop screening and record the environmental data with the greatest impact on crop growth as the high-quality individual.

[0109] Specifically, the screening technique is an improved fireworks algorithm. In the basic fireworks algorithm, the number of explosion sparks generated by an individual and the size of the explosion radius are completely determined by the difference in the fitness values between this individual and other individuals. In the later stage of algorithm optimization, when the population approaches the optimal value, the numerator term of the explosion operator approaches 0, that is, the explosion radius tends to 0, and the subsequent optimization process is basically ineffective, and its local optimization ability has certain limitations. Therefore, some improvements have been made to the basic fireworks algorithm, that is, the generation of the explosion radius of the optimal individual in the fireworks population is dynamically changed, rather than simply changed according to the fitness value. The improved fireworks algorithm has greater local exploration ability compared with the basic fireworks algorithm. Because its optimization radius is dynamically changed and gradually reduced, there is no problem of ineffective optimization in the improved algorithm, and the accuracy of its local optimization is greatly improved, thus achieving precise classification of environmental data in the behavioral feature space and improving the classification accuracy.

[0110] In this alternative embodiment, the following steps are included to optimize the high-quality individual using the feature optimization algorithm to obtain the key factors affecting crop growth: S231. Initialize the parameters of the feature optimization algorithm and the objective function of the factors affecting crop growth, define the initial optimization model, and set its objective function; S232. Randomly initialize the feature subset configuration within the parameter space of the factors affecting crop growth, construct the initial optimization model, and calculate the corresponding objective function; S233. Evaluate the initial optimization model using the training data, calculate the impact index of the current feature configuration on crop growth, and record the performance results; S234. According to the adjustment rules of the feature optimization algorithm, adjust the current feature parameter combination. If the new feature combination has the best performance, update the current configuration; otherwise, update the global optimum and adjust the optimization model; S235. If the optimal solution is not found during the optimization process, expand the feature selection range, dynamically adjust the search strategy, eliminate the least influential feature configuration, and obtain the key factors that have the greatest impact on crop growth.

[0111] Specifically, the feature optimization algorithm is an improved lightning search algorithm, and the lightning search algorithm is mainly implemented through a transitional discharger, a spatial discharger, and a leader discharger. The present invention improves the lightning search algorithm by updating the position of the leader discharger and changing the iterative manner of the discharger.

[0112] To facilitate the understanding of the above technical solution of the present invention, the following will detail how the present invention optimizes high-quality individuals using the feature optimization algorithm during the actual process to obtain the key factors affecting crop growth.

[0113] Step 1. Initialize the parameters of the optimization algorithm and define the objective function: 1) Initialize the parameters of the feature optimization algorithm, including the initial value of the feature combination, the setting of the objective function, and the coefficient for controlling the step size ( α and β ).

[0114] Suppose the key factors selected to affect crop growth include soil humidity ( g 1 ), air humidity ( g 2 ), and light intensity ( g 3 ), and the objective function is: Y = ( g 1 , g 2 , g 3 ) = w 1 × g 1 + w 2 × g 2 + w 3 × g 3 .

[0115] Among them, w 1 , w 2 , w 3 are the weights of each feature, and all weights are set to 1 during initialization.

[0116] For example: T a = [0.45, 0.60, 300] represents the current feature parameter combination, which includes soil humidity, air humidity, and light intensity.

[0117] = [0.50, 0.65, 350] is the global optimal feature combination (assuming the global optimal configuration is these values).

[0118] T x = [0.48, 0.62, 320] and T m = [0.47, 0.61, 310] are randomly selected feature parameter combinations.

[0119] The coefficient for controlling the local search step size α = 0.8, and the coefficient for controlling the local search range β = 0.6.

[0120] Step 2: Randomly initialize the feature subset configuration, construct the initial optimization model, and calculate the corresponding objective function: Randomly initialize the feature subset configuration and calculate the objective function. Select soil humidity ( g 1 ) and light intensity ( g 3 ) as the initial feature subset and calculate the objective function.

[0121] According to the formula of the adjustment rule, substitute the parameters: = [0.45, 0.60, 300] + 0.8×([0.50, 0.65, 350] - [0.45, 0.60, 300]) + 0.6×([0.48, 0.62, 320] - [0.47, 0.61, 310]).

[0122] Calculate term by term: = [0.45, 0.60, 300] + 0.8×[0.05, 0.05, 50] + 0.6×[0.01, 0.01, 10].

[0123] =[0.45, 0.60, 300] + [0.04, 0.04, 40] + [0.006, 0.006, 6].

[0124] =[0.496, 0.646, 346].

[0125] Therefore, the new feature combination is =[0.496, 0.646, 346].

[0126] Step 3: Evaluate the initial optimization model using the training data and calculate the impact index of the current feature configuration on crop growth: Evaluate the impact of the current feature configuration on crop growth. Assume that the training data shows that the impacts of soil humidity, air humidity, and light intensity are respectively: The impact of soil humidity on growth is 0.7.

[0127] The impact of air humidity on growth is 0.5.

[0128] The impact of light intensity on growth is 0.9.

[0129] Therefore, the current impact index is calculated as: Impact index = 0.7×0.496 + 0.5×0.646 + 0.9×346.

[0130] The calculation result is: Impact index = 0.346 + 0.323 + 311.4 = 311.676.

[0131] Step 4: According to the adjustment rules of the feature optimization algorithm, adjust the current feature parameter combination. If the new feature combination has the best performance, update the current configuration; otherwise, update the global optimum and adjust the optimization model: If the new feature combination has better performance than before, update the current configuration. If there is no improvement, update the global optimum configuration. Assume that during the adjustment process, it is found that the new feature combination brings a higher impact index (such as 311.676 is higher than the previous index), so update the current configuration.

[0132] Step 5: If the optimal solution is not found during the optimization process, expand the feature selection range, dynamically adjust the search strategy, eliminate the feature configuration with the smallest influence, and obtain the key factors that have the greatest impact on crop growth: If the optimal solution is still not found during the optimization process, expand the feature selection range. Assume that air temperature ( g 4 ) is introduced as a new feature and the objective function is recalculated.

[0133] Assume the new calculated configuration is as follows: =[0.45, 0.60, 300, 25] + 0.8×([0.05, 0.65, 350, 27] - [0.45, 0.60, 300, 25]) + 0.6×([0.48, 0.62, 320, 26] - [0.47, 0.61, 310, 24]).

[0134] Finally, after adjustment, new optimal feature configurations can be obtained, which have the greatest impact on crop growth.

[0135] It should be noted that when the optimization algorithm of the present invention expands the feature selection range, not only does it rely on the condition of "updating the configuration if the performance is better", but also clear evaluation indicators and convergence criteria are set. Specifically, the evaluation indicators may include prediction accuracy, the stability of feature selection, and the performance change after each iteration. The algorithm will track these indicators. When the performance improvement is lower than a certain threshold, it is considered that the algorithm is close to the optimal solution, and thus the iteration is stopped to avoid entering an ineffective loop. During the optimization process, the algorithm will perform local optimization through multiple iterations, and at the same time, the screening parameters will be adjusted in each iteration in order to find a better feature combination. Each time a new feature combination is selected, a performance evaluation will be carried out. If the performance of the new combination is better than the current combination, it will be updated to the new configuration. By continuously optimizing within a limited number of steps, the performance improvement in each step ensures that the algorithm advances towards the optimal solution and completes the search within a fixed number of steps. The optimization algorithm of the present invention introduces a Gaussian mutation mechanism. In some iteration steps, if the algorithm cannot further find a better solution, or the performance improvement of the current feature combination is small, feature expansion will be carried out according to the mutation range. This mutation not only changes the current feature combination but also may explore completely new combination methods, thereby jumping out of the local optimal solution and exploring a wider feature space to find a possible global optimal solution.

[0136] In this alternative embodiment, the formula for the adjustment rule is: ; In the formula, represents the new combination of adjusted feature parameters; T a represents the current combination of feature parameters; represents the combination of global optimal feature parameters; α represents the coefficient controlling the local search step size; β represents the coefficient controlling the local search range; T x and T m both represent randomly selected combinations of feature parameters.

[0137] In this alternative embodiment, a demand prediction model is constructed, and the demand prediction model is used to predict the crop growth demand at future times to obtain the optimal irrigation time and fertilization amount of the crops, including the following steps: S31. Obtain the key factors affecting the crop growth demand and divide them into a training set and a test set; S32. Initialize the parameters of the demand prediction model and determine the key parameters for constructing the demand prediction model; S33. Input the training set and the parameters of the initial demand prediction model into the demand prediction model, and perform iterative optimization based on the model optimization algorithm to output the optimal demand prediction model parameters; S34. Based on the optimal demand prediction model parameters, construct the final demand prediction model, input the test set into the final demand prediction model for verification, and use the final demand prediction model to predict the crop growth demand at future times to obtain the optimal irrigation time and fertilization amount of the crops.

[0138] It should be explained that, first, the key factors affecting the crop growth need to be obtained, and these factors usually include soil humidity, air temperature, light intensity, precipitation, etc. Then, historical data is collected, including the values of these key factors at different time points and their corresponding crop growth demand data.

[0139] Key factors: Assume that soil humidity, air temperature, light intensity, and precipitation are selected as the influencing factors.

[0140] Data division: The collected data is divided into a training set and a test set. Usually, the training set accounts for 70%-80%, and the test set accounts for 20%-30%. The training set is used for model training, and the test set is used for model verification and effect evaluation.

[0141] Select a suitable demand prediction model and initialize the parameters of the model. Common prediction models include regression models, support vector machines (SVMs), neural networks, etc. Assume that a regression model is used as the demand prediction model.

[0142] Initialize the model: Set the initial parameters of the regression model, such as initial weights, bias terms, etc.

[0143] Determine the key parameters: Determine the key parameters of the model, such as learning rate, regularization coefficient, number of training times, etc. These parameters will have a significant impact on the training effect and prediction ability of the model.

[0144] Use a randomly generated parameter set to initialize multiple different model schemes. Each scheme corresponds to a set of demand prediction model parameters, and these initial schemes are used for subsequent model training and optimization.

[0145] Generate an initial solution: For example, parameters such as weights, bias terms, and learning rates can be randomly initialized to generate multiple candidate solutions.

[0146] Solution evaluation: Evaluate each initial solution using the training set data, and calculate the prediction error (such as mean squared error MSE) or other evaluation metrics for each model.

[0147] Next, input the training set data into the demand prediction model, and iteratively optimize the initial parameters according to the optimization algorithm. Common optimization algorithms include gradient descent, genetic algorithm, particle swarm optimization, dandelion algorithm, etc.

[0148] Iterative optimization: Adjust the parameters of the model (such as weights, biases, etc.) through the model optimization algorithm to gradually reduce the prediction error of the model. After each iteration, evaluate the performance of the current model and compare it with the historical best result.

[0149] Output the best parameters: Through multiple rounds of iteration, a set of best demand prediction model parameters are finally obtained. These parameters can minimize the prediction error and improve the accuracy of the model.

[0150] Finally, use the best parameters obtained through the optimization algorithm to construct the final demand prediction model. Then, input the test set data into the final model for verification and evaluate its prediction performance.

[0151] Model verification: Verify the generalization ability of the model by calculating the prediction error of the model on the test set. If the model performs well on the test set, it indicates that it can effectively predict the demand of crops.

[0152] Predict demand: Use the final demand prediction model to predict future moments to obtain the best irrigation time and fertilization amount for crops. For example, if the model predicts that the future soil moisture is low and the temperature is high, it may recommend irrigation and increase the fertilization amount at that moment.

[0153] It should be noted that in the present invention, the demand prediction model is actually a numerical prediction model based on environmental data and crop growth characteristics, rather than directly generating "natural language suggestions". The core function of this model is to predict the numerical values of irrigation and fertilization (such as irrigation amount, fertilization amount, time point, etc.) based on the input environmental data (such as soil moisture, temperature, etc.), rather than generating natural language suggestions. The following is a specific explanation: 1) Difference between numerical prediction and suggestion generation Numerical prediction: The model generates precise irrigation amounts and fertilization amounts based on the input environmental data, such as soil moisture, temperature, light intensity, etc. For example: "At a future moment, it is recommended to irrigate 20 mm of water and fertilize 10 kg". This prediction is based on the model results of data analysis and environmental conditions.

[0154] Suggestion generation: If it is necessary to convert these prediction results into specific "suggestion" language expressions (e.g., "According to the prediction, irrigation should be increased currently and more fertilizers should be applied at this time"), although a language model (such as an LLM) can be used to generate natural language suggestions, this is not the core function or necessary requirement of this application.

[0155] 2) Core objective: The core objective of the present invention is to accurately predict the irrigation amount and fertilization amount required for crops, ensure the optimal allocation of farmland resources, and the generation of natural language expressions of suggestions is not an essential part of this model.

[0156] Model output: The output is specific numerical values of irrigation and fertilization amounts (e.g., irrigation 10 L / ㎡, fertilization 5 kg / ㎡), and the farmland management system can automatically perform irrigation and fertilization operations based on these values.

[0157] Automated execution: Without manual intervention or an additional language processing model, the predicted results can be directly executed through a control system, such as an automated irrigation system or a fertilizer applicator.

[0158] 3) Optional function: Natural language generation (the role of LLM): If it is necessary to provide natural language suggestions in the system (such as converting numerical results into easily understandable text information), a large language model (LLM) or a similar natural language processing module can be integrated. This part of the function belongs to an optional extension and is not an essential core function.

[0159] For example, on the user interface of the farmland management system, the system can generate natural language prompts according to the results predicted by the model, such as: "According to the current environmental prediction, the soil humidity is low and the temperature is high. It is recommended to irrigate immediately and increase the fertilization amount." The implementation of this function can be completed by calling the LLM, but it does not affect the implementation of the core prediction function.

[0160] It should be explained that the prediction model of the present invention processes and analyzes environmental data and crop growth characteristics, and generates the irrigation amount and fertilization amount for a specific moment based on a certain model algorithm (such as a regression model, a machine learning model, etc.). This process includes: 1) Input data: Environmental data: Such as soil humidity, temperature, light intensity, precipitation, etc.; Crop growth data: Such as the growth stage of the crop, leaf area index (LAI), chlorophyll content, etc.

[0161] 2) Prediction process: The model learns from historical data to identify the relationships between environmental conditions, crop growth status, and irrigation and fertilization amounts. Thus, given future environmental data, it can predict the most appropriate irrigation and fertilization amounts. For example: If it is predicted that the soil moisture is low, the model may recommend increasing irrigation; If the temperature is high and the soil moisture is moderate, the model may recommend increasing the fertilization amount or adjusting the irrigation strategy.

[0162] 3) Output results: The output will be the exact irrigation and fertilization amounts, which can directly control automated irrigation systems, fertilization systems, etc.

[0163] Final output: The model will provide irrigation and fertilization suggestions for a period of time in the future to ensure that crops receive sufficient water and nutrients under optimal growth conditions.

[0164] In this alternative embodiment, inputting the parameters of the training set and the initial demand prediction model into the demand prediction model and performing iterative optimization based on the model optimization algorithm, and outputting the optimal demand prediction model parameters includes the following steps: S331. Initialize the parameters of the demand prediction model and set the maximum number of iterations of the model optimization algorithm; S332. Input the parameters of the training set and the initial demand prediction model into the model, calculate the error of the prediction result as the fitness value; S333. Calculate the number of parameter configurations of the current demand prediction model according to the rules of the model optimization algorithm and adjust the parameter configuration of the demand prediction model; S334. Perform a quick sort on the current demand prediction model according to the fitness value and classify the demand prediction model into an optimal configuration and a secondary configuration; S335. Mutate and update the demand prediction model according to the fitness value to generate a new demand prediction model, and determine whether the model optimization algorithm has reached the maximum number of iterations. If so, stop and output the optimal demand prediction model parameters; otherwise, return to step S343 to continue optimization until the maximum number of iterations is reached.

[0165] It should be noted that first, initialize the relevant parameters of the demand prediction model and set the maximum number of iterations of the model optimization algorithm. Assume that the selected demand prediction model is a regression model, and it is necessary to initialize the parameters of the model (such as weights and bias terms) and set the maximum number of iterations.

[0166] Initializing model parameters: Assume that a regression model is selected, then initialize the weights of the model (e.g., the weights of soil moisture, temperature, and light intensity), as well as other model parameters (e.g., learning rate, bias, etc.).

[0167] Set the maximum number of iterations: Set the maximum number of iterations, for example, 1000 times. This means that if the model's parameters do not improve further after 1000 iterations, the optimization stops.

[0168] Input the training set data and the parameters of the initial demand prediction model into the model, calculate the prediction results of the model, and calculate the error based on the prediction results. The error is usually measured using the mean squared error (MSE) or other appropriate metrics.

[0169] Input the training set and initial parameters: Input the training set data (including soil moisture, temperature, light intensity, etc.) into the model and use the initialized model parameters for prediction.

[0170] Calculate the prediction error: Calculate the error (such as MSE) based on the difference between the predicted value and the actual value. The smaller the error, the closer the prediction result of the model is to the real data.

[0171] Fitness value: The error value will be used as the fitness value for the subsequent optimization process. The fitness value is used to measure the quality of the current parameter configuration of the model. The smaller the error, the higher the fitness value, and vice versa.

[0172] According to the rules of the model optimization algorithm, calculate the number of parameter configurations of the current demand prediction model, and adjust the model parameters according to the current fitness value.

[0173] Calculate the number of parameter configurations: In the optimization algorithm, the number of parameter configurations determines how many different versions of the model there are. Assuming the use of genetic algorithms or particle swarm optimization algorithms, this rule determines the number of models in each generation of iteration.

[0174] Adjust the model parameters: Adjust the parameters according to the current fitness value, usually through operations such as crossover and mutation in the algorithm (such as changing the weight value, adjusting the learning rate, etc.). This process aims to optimize the performance of the model so that it can obtain better prediction results in the next iteration.

[0175] Sort all demand prediction models according to the fitness value. After sorting, the models are divided into the optimal configuration and the auxiliary configuration.

[0176] Quick sort: Perform a quick sort according to the fitness value of each model, and select the model with the highest fitness value as the optimal configuration.

[0177] Optimal configuration and auxiliary configuration classification: Classify the model with the highest fitness value as the "optimal configuration", while the models with lower fitness values are used as "auxiliary configurations". The optimal configuration will be the focus of adjustment in the next step of optimization, while the auxiliary configurations are used as backup options.

[0178] Mutate and update the model using the optimal configuration and the auxiliary configuration to generate a new demand prediction model. Then, determine whether the maximum number of iterations has been reached. If so, stop the optimization and output the parameters of the final optimal demand prediction model.

[0179] Mutation and update: According to the optimal configuration, perform mutation operations (such as randomly adjusting some parameters of the model) and update operations (such as updating the weights of the model according to the fitness value). This process aims to further optimize the model.

[0180] Determine whether the maximum number of iterations has been reached: Check whether the current number of iterations has reached the preset maximum number. If the maximum number is reached, stop the optimization and output the current optimal model as the final demand prediction model.

[0181] Continue optimization: If the maximum number of iterations has not been reached, return to step S343 and continue to further optimize according to the current model parameters until the termination condition is met (i.e., the maximum number of iterations is reached).

[0182] Specifically, the model optimization algorithm is the dandelion optimization algorithm. The principle of the dandelion optimization algorithm: Imitate the sowing and reproduction characteristics of dandelions, adopt a diffuse parallel search for the optimal solution. The algorithm has high calculation accuracy and good robustness. In the dandelion optimization algorithm, the population consists of a group of dandelions, and each dandelion represents a feasible solution. These dandelions are divided into core dandelions and auxiliary dandelions according to certain rules, and different types of dandelions adopt different sowing schemes. After sowing, both the parent and offspring dandelions are used as candidate solutions. By continuously sowing and selecting the high-quality dandelions with high fitness values, when the convergence condition is finally met, the dandelion with the highest fitness in the dandelion population is regarded as the optimal solution.

[0183] In this alternative embodiment, the rule formula of the model optimization algorithm is: ; In the formula, P i represents the number of parameter configurations of the demand prediction model at the i th iteration; P max and P min represent the upper and lower limits of the number of parameter configurations respectively; z represents the total cycle delay; y represents the delay imbalance degree; represents the maximum fitness of the total cycle delay; represents the minimum fitness of the total cycle delay; represents the average fitness of the total cycle delay; δ represents the threshold parameter; represents the maximum fitness of the delay imbalance degree; The minimum fitness representing the delay imbalance degree; The average fitness representing the delay imbalance degree.

[0184] According to another embodiment of the present invention, as Figure 2 shown, an intelligent management system for agricultural planting based on the Internet of Things is further provided. The system includes: A data acquisition module 1 for acquiring environmental data in the farmland, extracting features from the environmental data, and obtaining environmental feature data; A data analysis module 2 for analyzing the environmental feature data by using a factor analysis algorithm to obtain the key factors affecting the growth of crops; A model prediction module 3 for constructing a demand prediction model and using the demand prediction model to predict the growth demand of crops at future moments to obtain the optimal irrigation time and fertilization amount of crops; Among them, the data acquisition module 1 is connected through the data analysis module 2 and the model prediction module 3.

[0185] In summary, by means of the above technical solutions of the present invention, the present invention can identify the key environmental factors affecting the growth of crops by using a factor analysis algorithm to analyze environmental feature data, helping agricultural managers understand which factors play a decisive role in crop growth. Combining these key factors, agricultural managers can make scientific decisions, conduct targeted land management and crop planting, avoid unnecessary resource consumption, and improve the success rate of crop growth. By constructing an accurate demand prediction model, the present invention can predict the demand of crops for resources such as water and fertilizers at future moments, helping agricultural managers reasonably arrange the irrigation and fertilization times. This precise regulation can effectively avoid over-irrigation and over-fertilization, not only improving the utilization efficiency of water resources and fertilizers, but also promoting the healthy growth of crops, thereby increasing the yield and quality of crops.

[0186] The above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An intelligent management method for agricultural planting based on the Internet of Things, characterized in that: include: S1. Obtain environmental data in the farmland, and extract features from the environmental data to obtain environmental feature data; S2. Analyze the environmental characteristic data using factor analysis algorithm to obtain the key factors affecting crop growth; S3. Build a demand forecasting model, and use it to predict the growth demand of crops in the future, and obtain the optimal irrigation time and fertilizer amount for crops; The S2 includes: S21, obtaining a sample set of environmental characteristic data, and sorting the sample set to select a data subset related to crop growth characteristics; S22. Based on the screening technology, the data subsets are screened and the environmental data with the greatest impact on crop growth are selected as high-quality individuals; The S22 includes: S221, initializing screening parameters, each parameter represents a candidate environment data subset configuration; S222, evaluating the screening parameters of each environmental data subset, and selecting the environmental data subset with the greatest impact as the central high-quality data subset; S223, adjusting the screening parameters of the non-central environmental data subset, and determining the number of new screening parameter sets to be generated according to the error of their impact on crop growth; S224, generating new environmental data subset parameters through Gaussian mutation, and generating a new screening parameter set according to the range of the mutation; S225. From all current environmental data subset screening parameters, select the subset with the least impact on crop growth for iterative update, and record the screening result with the greatest impact on crop growth; S226, checking whether the preset number of iterations has been reached, if so, stopping the screening, and recording the environmental data that has the greatest impact on crop growth as high-quality individuals.

2. According to claim 1, an intelligent agricultural planting management method based on the Internet of Things is characterized in that: The step of obtaining environmental data in the farmland and extracting features from the environmental data to obtain environmental feature data comprises the following steps: S11, obtaining the original environmental data in the farmland for data decomposition, and using signal separation technology to filter high-frequency noise to obtain denoised farmland environmental data; S12, using a dimensionality reduction analysis method to decompose the denoised farmland environmental data, extract each environmental characteristic component, and perform smoothing processing; S13, calculating the correlation index between each extracted environmental characteristic component and the original farmland environmental data, selecting the characteristics with the highest correlation, and eliminating the environmental components with the lowest correlation; S14, integrating the processed environmental characteristic components into a complete environmental characteristic data set to obtain environmental characteristic data.

3. The method for intelligent agricultural planting management based on the Internet of Things according to claim 2 is characterized in that: The method of decomposing the denoised farmland environmental data by using the dimensionality reduction analysis method, extracting each environmental characteristic component, and performing smoothing processing includes the following steps: S121, arranging the noisy farmland environmental data into a data matrix in chronological order, and performing singular value decomposition on the data matrix; S122, constructing a linear mapping matrix based on the decomposed data matrix, and performing dynamic pattern decomposition on it to identify various environmental characteristic components related to farmland environmental changes; S123. Use low-pass filtering technology to smooth the identified key patterns and eliminate short-term fluctuations and noise.

4. The method for intelligent agricultural planting management based on the Internet of Things according to claim 1, characterized in that: The S22 also includes: S23, using feature optimization algorithm to optimize high-quality individuals and obtain key factors affecting crop growth; The S23 includes: adjusting the current feature parameter combination according to the adjustment rules of the feature optimization algorithm, and if the new feature combination has the best performance, updating the current configuration; otherwise, updating the global optimum and adjusting the optimization model; if the optimal solution is not found during the optimization process, expanding the feature selection range, dynamically adjusting the search strategy, eliminating the feature configuration with the least influence, and obtaining the key factors that have the greatest impact on crop growth.

5. The method for intelligent agricultural planting management based on the Internet of Things according to claim 4 is characterized in that: According to the adjustment rules of the feature optimization algorithm, the current feature parameter combination is adjusted. If the new feature combination has the best performance, the current configuration is updated; otherwise, before updating the global optimum and adjusting the optimization model, the following is also included: S231, initializing the parameters of the feature optimization algorithm and the objective function of the factors affecting crop growth, defining an initial optimization model, and setting its objective function; S232. In the parameter space of factors affecting crop growth, randomly initialize the feature subset configuration, construct an initial optimization model, and calculate the corresponding objective function; S233. Evaluate the initial optimization model using the training data, calculate the impact index of the current feature configuration on crop growth, and record the performance results.

6. The method for intelligent agricultural planting management based on the Internet of Things according to claim 5 is characterized in that: The formula of the adjustment rule is: ; In the formula, Represents the adjusted new feature parameter combination; T a Indicates the current feature parameter combination; represents the global optimal feature parameter combination; α Represents the coefficient that controls the local search step size; β Represents the coefficient that controls the local search range; T x and T m All represent randomly selected feature parameter combinations.

7. The method for intelligent agricultural planting management based on the Internet of Things according to claim 1, characterized in that: The construction of the demand forecasting model and the use of the demand forecasting model to forecast the future growth demand of crops to obtain the optimal irrigation time and fertilizer amount for crops include the following steps: S31. Obtain the key factors that affect crop growth requirements and divide them into training sets and test sets; S32, initializing the parameters of the demand forecasting model, and determining the key parameters for constructing the demand forecasting model; S33, inputting the parameters of the training set and the initial demand forecasting model into the demand forecasting model, and performing iterative optimization based on the model optimization algorithm to output the optimal demand forecasting model parameters; S34. Based on the optimal demand forecasting model parameters, a final demand forecasting model is constructed, the test set is input into the final demand forecasting model for verification, and the final demand forecasting model is used to predict the crop growth demand in the future to obtain the optimal irrigation time and fertilizer amount for the crops.

8. The method for intelligent agricultural planting management based on the Internet of Things according to claim 7 is characterized in that: The step of inputting the parameters of the training set and the initial demand forecasting model into the demand forecasting model, and performing iterative optimization based on the model optimization algorithm to output the optimal demand forecasting model parameters includes the following steps: S331, initializing the parameters of the demand forecasting model and setting the maximum number of iterations of the model optimization algorithm; S332, input the parameters of the training set and the initial demand forecasting model into the model, and calculate the error of the forecasting result as the fitness value; S333. Calculate the number of parameter configurations of the current demand forecasting model according to the rules of the model optimization algorithm, and adjust the parameter configuration of the demand forecasting model; S334, quickly sorting the current demand forecasting models according to the fitness values, and classifying the demand forecasting models into optimal configurations and auxiliary configurations; S335. Mutate and update the demand forecasting model according to the fitness value to generate a new demand forecasting model, and determine whether the model optimization algorithm has reached the maximum number of iterations. If so, stop and output the optimal demand forecasting model parameters. Otherwise, return to step S343 to continue optimization until the maximum number of iterations is reached.

9. The method for intelligent agricultural planting management based on the Internet of Things according to claim 8, characterized in that: The rule formula of the model optimization algorithm is: ; In the formula, P i Indicates i The number of parameter configurations of the demand forecasting model at the iteration; P max and P min Respectively represent the upper and lower limits of the number of parameter configurations; z Indicates the total delay of the cycle; y Indicates the delay imbalance; represents the maximum fitness of the total delay of the cycle; represents the minimum fitness of the total delay of the cycle; represents the average fitness of the total delay of the cycle; δ represents the threshold parameter; represents the maximum fitness of the delay imbalance; represents the minimum fitness of the delay imbalance; represents the average fitness of the delay imbalance.

10. An intelligent agricultural planting management system based on the Internet of Things, used to implement the intelligent agricultural planting management method based on the Internet of Things as described in any one of claims 1 to 9, characterized in that: The system includes: A data acquisition module is used to acquire environmental data in the farmland and extract features from the environmental data to obtain environmental feature data; The data analysis module is used to analyze the environmental characteristic data using the factor analysis algorithm to obtain the key factors affecting the growth of crops; The model prediction module is used to build a demand prediction model and use it to predict the growth demand of crops in the future to obtain the optimal irrigation time and fertilizer amount for crops; Among them, the data acquisition module is connected through the data analysis module and the model prediction module.

Citation Information

Patent Citations

  • Intelligent plant growth environment adjusting device and method based on internet-of-things cloud platform

    CN107390753A

  • Edible mushroom breeding growth process monitoring method and system based on data analysis

    CN118551308A

  • Automatic environment regulation and control system for traditional Chinese medicinal material planting

    CN119861778A

Cited By

  • Intelligent control method and system for explosion-proof ultraviolet lamp based on serial port communication

    CN121194373A

  • Intelligent control method and system for explosion-proof ultraviolet lamp based on serial communication

    CN121194373B