Internet-based agricultural planting consultation service system

Through the Internet-based agricultural planting consulting service system, the Pearson correlation coefficient, random forest model, collaborative filtering and particle swarm optimization algorithm are used to solve the problems of unsystematic data processing and inaccurate prediction in traditional planting decision-making, and realize scientific and personalized Optimized planting plan and efficient resource allocation.

CN118691109APending Publication Date: 2024-09-24KUNMING ESSENCE DRIVE CONSULTING SERVICE CO LTD
View PDF 0 Cites 8 Cited by

Patent Information

Application Number
CN202410648611.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-24

Smart Images

  • Figure CN118691109A
    Figure CN118691109A
Patent Text Reader

Abstract

The invention discloses an agricultural planting consultation service system based on the Internet, and relates to the technical field of agricultural information query, and the system comprises the following components: a data collection module which uses an API interface to obtain climate data from an Internet meteorological service, establishes a data sharing protocol with a soil detection mechanism, and sends the data sharing protocol to a database; the decision support module adopts a collaborative filtering algorithm, can recommend similar planting schemes for farmers based on the planting history of the farmers and the real-time growth data of crops, realizes personalized agricultural planting consultation service, and combines the real-time growth data and environmental data of the crops through a particle swarm optimization algorithm, so that the real-time growth data of the crops and the environmental data are provided for the farmers. According to the method, the optimal sowing time, the optimal fertilizing amount and the optimal irrigation plan can be determined, optimal allocation and efficient utilization of resources are achieved, the crop yield and possible risks are predicted through the ARIMA model, peasant households are helped to know the trend of the crop yield and the possible risks in advance, and therefore more reasonable planting decisions are made, and risk losses are reduced.
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 information query, and in particular to an agricultural planting consulting service system based on the Internet. Background Art

[0002] In the traditional agricultural planting decision-making process, farmers can only formulate planting plans based on their own experience and intuition. This experience-based method is highly subjective and uncertain, and often cannot accurately predict the growth and yield of crops. At the same time, due to the lack of scientific data support, farmers often find it difficult to fully consider various factors when formulating planting plans, such as climate, soil, and crop types, resulting in planting plans that are not optimized and efficient enough.

[0003] In terms of the extraction and processing of crop growth characteristics, traditional methods often lack systematicity and efficiency. For example, for the processing of climate data and soil analysis data, traditional methods can only perform simple statistical analysis and cannot deeply explore the deep relationship between these data and crop growth. For the collection and processing of real-time crop growth data, traditional methods often rely on manual observation and recording, which is not only inefficient, but also easily affected by human factors, resulting in inaccurate and unreliable data.

[0004] Therefore, an Internet-based agricultural planting consulting service system was developed. Summary of the invention

[0005] The purpose of the present invention is to make up for the shortcomings of the prior art and provide an Internet-based agricultural planting consulting service system. The Pearson correlation coefficient is used to accurately extract the correlation characteristics between climate and soil data and crop growth, and a random forest model is constructed to predict crop growth. The decision support module uses a collaborative filtering algorithm to recommend personalized planting plans, and combines a particle swarm optimization algorithm to determine the optimal sowing, fertilization and irrigation plans. The system also uses an ARIMA model to predict crop yields and potential risks, and provides farmers with scientific and accurate agricultural planting consulting to optimize resource allocation, increase crop yields and reduce risks.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: an agricultural planting consulting service system based on the Internet, the system comprises the following components:

[0007] Data collection module: Use API interfaces to obtain climate data from Internet meteorological services, establish data sharing agreements with soil testing agencies, regularly obtain soil analysis data, and deploy multiple sensors in farmland to collect crop growth data in real time;

[0008] Data processing module: Through data cleaning, duplicate data is removed, missing values ​​are processed, data normalization is used to convert data of different scales into a unified scale, the Pearson correlation coefficient is used to select features that have a significant impact on crop growth, and climate data and soil analysis data are learned through the random forest model to establish a crop growth model, and crop growth is predicted based on the model;

[0009] Decision support module: Based on the analysis results of the data processing module, it provides farmers with personalized planting plans and suggestions, and can automatically recommend the best sowing time, fertilizer application amount and irrigation plan. At the same time, it can also predict crop yields and possible risks in real time and give countermeasures in advance;

[0010] User interaction module: This module provides a user-friendly interface to facilitate farmers to interact with the system. Farmers can use this module to input farmland information, query planting plans, and receive real-time reminders;

[0011] Security module: According to the importance and sensitivity of the data, select the appropriate encryption algorithm to encrypt the user passwords, transaction data, and personal privacy information in the system to ensure security during storage and transmission. Define administrators and ordinary users in the system, assign corresponding permissions to each role, clarify which functional modules and data each role can access, set firewall rules, limit illegal external access to the system, and prevent data leakage and illegal access.

[0012] Furthermore, the data collection module is connected to the Internet meteorological service through an API interface to obtain the latest temperature, rainfall and wind direction in real time, establish a long-term cooperative relationship with a soil testing agency, obtain the analysis results of the key indicators of soil fertility (nitrogen, phosphorus, potassium content), acidity (pH value), organic matter content and soil moisture of the farmland, deploy temperature and humidity sensors, soil moisture sensors, and spectral sensors in the farmland, monitor the key indicators of crop growth rate, leaf color, leaf area index (LAI) and crop height through sensors, use drone aerial photography data and sensor data to complement each other, and obtain the overall growth of the farmland and crop distribution.

[0013] Furthermore, the data processing module uses the Pearson correlation coefficient to extract features related to crop growth from the original data, such as climate data (temperature, humidity, rainfall), soil analysis data (pH value, nutrient content), and for each feature, calculates the Pearson correlation coefficient between the feature and the target variable. The Pearson correlation coefficient formula is: Where: x i and iare the feature value and crop growth value of the ith sample, x and y are the means of the feature and crop growth values, respectively, and n is the number of samples. The correlation between the feature and crop growth is evaluated according to the absolute value of the Pearson correlation coefficient. The closer the absolute value is to 1, the stronger the correlation is, and the closer the absolute value is to 0, the weaker the correlation is. A threshold is set (such as |r|>0.5), and the features whose correlation coefficient with the target variable exceeds the threshold are selected as the features of the crop growth model. The data set is divided into a training set and a test set according to different features for the construction of a random forest model.

[0014] Furthermore, the data processing module uses a random forest model to predict crop growth, uses the training set to build multiple decision trees to form a random forest, and uses the test set data to evaluate the performance of the model using the mean square error (MSE). Where n is the number of test set samples, y i is the actual value of the ith sample, It is the model's predicted growth status for the ith sample. The smaller the MSE, the better the model's prediction performance. The parameters of the random forest (such as the number of decision trees and the maximum depth of each tree) are adjusted according to the evaluation results to optimize the performance of the model. The collected real-time climate data and soil analysis data are input into the random forest model to predict the crop growth target. During the test, each decision tree will output a prediction result. The final prediction result of the random forest is the mode of all decision tree prediction results, that is, the most common situation in which the predicted crop growth target occurs.

[0015] Furthermore, the specific steps of constructing each decision tree in the random forest are as follows:

[0016] (1) In the training set consisting of climate data and soil analysis data, sampling with replacement is used to form a training subset, which will be used to build a decision tree;

[0017] (2) When constructing each node of the decision tree, one of the climate data or soil fertility characteristics is randomly selected from the data set as a candidate split feature;

[0018] (3) By calculating the information gain, the optimal partitioning feature is selected to divide the data set into different categories and the data set into two or more subsets. The information gain formula is: Where: T is the training data set, A is a feature, H(T) is the entropy of the data set T, values(A) is all possible values ​​of feature A, T v is a subset of T whose feature A takes value v, |T| and |T v ∣T and T respectively vThe number of samples, H(T v ) is a subset T v Entropy of

[0019] (4) Repeat steps (1), (2), and (3) until the stopping condition is met, such as reaching the maximum depth, and a decision tree is constructed.

[0020] Furthermore, the decision support module compares the planting history of different farmers through collaborative filtering to find similar planting plans based on the analysis results of the data processing module, recommends planting plans to farmers, combines crop growth models and real-time data, determines the optimal sowing time, fertilizer application amount and irrigation plan through particle swarm optimization, provides problem diagnosis and suggestions in the planting process, combines real-time crop growth data and environmental data, and uses the ARIMA model to predict crop yields and possible risks.

[0021] Furthermore, the collaborative filtering is used to compare the planting histories of different farmers to recommend similar planting plans. A user-crop matrix is ​​constructed by taking farmers as rows and crop types as columns. Each element in the matrix represents the user's yield or satisfaction with the crop. The cosine similarity in the collaborative filtering algorithm is used to calculate the similarity between users. For a target farmer, the k most similar farmers are found. Based on the planting histories of these k similar farmers, a planting plan is recommended for the target farmer. The most popular crop types, sowing times, fertilizer amounts, and irrigation plans among these similar farmers are recommended. The real-time growth data and environmental data of the crops are combined to further optimize the recommendation results. The mathematical formula of cosine similarity is: Among them: A=(A 1 ,A 2 ,…,A n )、B=(B 1 ,B 2 ,…,B n ) represent a planting feature (such as crop type, sowing time, and fertilizer amount), A·B is the dot product of vectors A and B, and |A| and |B| are the moduli of vectors A and B, respectively.

[0022] Furthermore, the decision support module determines the optimal sowing time, fertilizer application amount and irrigation plan through particle swarm optimization, and the specific steps of particle swarm optimization are:

[0023] (1) For each particle, the position and velocity of each particle are randomly initialized. The position vector represents the parameters of sowing time, fertilizer application amount and irrigation plan. The number of particles N, the number of iterations and inertia weight w, the learning factors c1 and c2 are set, and the individual optimal position pBest of each particle is initialized. i is the current position, and the global optimal position Gbest is the best position among all particles;

[0024] (2) define a fitness function to evaluate the quality of each particle position based on predicted crop yield, resource utilization efficiency, or cost-effectiveness;

[0025] (3) If the current particle’s fitness is better than its historical optimal fitness, update pBest i is the current position, traverse all particles, if the fitness of a particle is better than the current global optimal fitness, update Gbest to the position of the particle;

[0026] (4) Update the speed and position of each particle according to the formula: Speed ​​update formula: v i (t+1)=w·v i (t)+c 1 ·r 1 ·(pBest i -x i (t))+c 2 ·r 2 ·(gBest i -x i (t)) Position update formula: x i (t+1)=x i (t)+v i (t+1), where the number of particles N, the number of iterations and the inertia weight w, and the learning factors c1 and c2;

[0027] (5) If the updated particle position exceeds the boundary of the search space, it is restricted to the boundary by truncation and reflection;

[0028] (6) Check whether the termination conditions are met. If the termination conditions are met, the maximum number of iterations or the global optimal solution is reached, and there is no obvious improvement in multiple consecutive iterations, then stop the iteration and output the global optimal solution. Otherwise, return to step 2 to continue iterating.

[0029] Furthermore, the ARIMA model is used to predict crop yields and possible risks. The ADF test method is used to test the stationarity of the collected crop yields and other related time series data. If the data is not stationary, it is stabilized by differential operation. The time series diagram is observed to preliminarily determine the trend and periodicity of the data. The autocorrelation function (ACF) and partial autocorrelation function (PACF) are calculated. According to the graphical characteristics of ACF and PACF, the order p (number of autoregressive terms) and q (number of moving average terms) of the ARIMA model are preliminarily determined. The least squares method is used to estimate the parameters of the ARIMA model, the model's fit and prediction accuracy are tested, and the already fitted ARIMA model is used to predict future crop yields and possible risks. The mathematical formula of the ARIMA model is: y tis the future crop yield and possible risk at time t, c term or intercept, p is the autoregressive coefficient, q is the moving average coefficient, ∈ t is the white noise error term.

[0030] Furthermore, the user interaction module understands the farmers' usage habits, needs and expectations through user surveys. The development team implements the user interface based on the design drawings, allowing farmers to input farmland information and query planting plans, receiving farmers' input of geographic location and crop types, verifying and cleaning the input data to ensure data accuracy and consistency, and displaying query results to farmers in the form of charts based on farmers' query requests (such as planting plans). According to farmers' feedback and interaction habits, the display method and order of results are optimized, and according to farmers' needs and system settings, weather changes and crop growth conditions are sent to farmers, and farmers' feedback and suggestions are received and processed to improve the system's functions and interfaces.

[0031] Compared with the existing technology, this Internet-based agricultural planting consulting service system has the following beneficial effects:

[0032] 1. The present invention uses the Pearson correlation coefficient to conduct in-depth analysis and processing of the original data, and can accurately extract features closely related to crop growth, such as climate data and soil analysis data, thereby effectively removing irrelevant or redundant information and improving the efficiency of data processing. By setting reasonable thresholds and selecting features with strong correlation with the target variable as features of the crop growth model, the validity of the model input can be ensured, and the accuracy of crop growth prediction can be further improved. With the help of the random forest model and the integrated advantages of multiple decision trees, the crop growth situation can be accurately predicted, providing farmers with more reliable production guidance.

[0033] 2. The decision support module of the patent of the present invention adopts a collaborative filtering algorithm, which can recommend similar planting plans to farmers based on the farmers' planting history and real-time crop growth data, thereby realizing personalized agricultural planting consulting services. Through the particle swarm optimization algorithm, combined with the real-time growth data of crops and environmental data, it can determine the optimal sowing time, fertilizer application amount and irrigation plan, realize the optimal allocation and efficient utilization of resources, and use the ARIMA model to predict crop yields and possible risks, helping farmers to understand the crop yield trends and possible risks in advance, so as to make more reasonable planting decisions and reduce risk losses.

[0034] Other advantages, objectives and features of the present invention will be set forth in part in the following description and, in part, will be apparent to those skilled in the art based on an examination of the following or may be taught from the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 The present invention is a flow chart of a machine tool maintenance system and method based on human-machine dialogue. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] In the first aspect, an agricultural planting consulting service system based on the Internet includes the following components:

[0039] Data collection module: Use API interfaces to obtain climate data from Internet meteorological services, establish data sharing agreements with soil testing agencies, and regularly obtain soil analysis data. Deploy a variety of sensors in farmland to collect crop growth data in real time;

[0040] Data processing module: Through data cleaning, duplicate data is removed, missing values ​​are processed, data normalization is used to convert data of different scales into a unified scale, the Pearson correlation coefficient is used to select features that have a significant impact on crop growth, and climate data and soil analysis data are learned through the random forest model to establish a crop growth model, and real-time prediction of crop growth is made based on the model;

[0041] Decision support module: Based on the analysis results of the data processing module, collaborative filtering is used to recommend similar planting plans by comparing the planting history of different farmers. Planting plans are recommended to farmers. Combined with crop growth models and real-time data, problem diagnosis and suggestions in the planting process are provided. The optimal sowing time, fertilizer application amount and irrigation plan are determined through particle swarm optimization, real-time crop growth data and environmental data, and the ARIMA model is used to predict crop yields and possible risks.

[0042] User interaction module: This module provides a user-friendly interface to facilitate farmers to interact with the system. Farmers can use this module to input farmland information, query planting plans, and receive real-time reminders;

[0043] Security module: This module ensures the system's data security and user privacy protection, and prevents data leakage and illegal access through technical means such as data encryption and access control.

[0044] Embodiment 1:

[0045] This embodiment provides an Internet-based agricultural planting consulting service system, which accurately extracts key features of crop growth through the Pearson correlation coefficient, builds a random forest model to predict crop growth, and the decision support module uses collaborative filtering and particle swarm optimization algorithms to provide farmers with personalized planting plans and resource allocation suggestions. At the same time, the ARIMA model is used to predict crop yields and risks, providing farmers with scientific decision-making support and achieving efficient resource utilization and yield optimization.

[0046] In the specific implementation, the data collection module is connected to the Internet meteorological service in real time through the API interface to continuously obtain the latest meteorological data, including temperature, rainfall and wind direction. At the same time, it has established a long-term cooperative relationship with the soil testing agency to regularly obtain detailed analysis reports of farmland soil, covering key indicators such as soil fertility (nitrogen, phosphorus, potassium content), acidity (pH value), organic matter content and soil moisture. In order to more accurately monitor the growth of crops, temperature and humidity sensors, soil moisture sensors and spectral sensors are deployed in the farmland. These sensors can monitor and collect key growth data such as crop growth rate, leaf color, leaf area index (LAI) and crop height in real time. In addition, in order to obtain more comprehensive farmland information, drones are used for regular aerial photography to obtain the overall growth of farmland and crop distribution data.

[0047] Data processing module, using Pearson correlation coefficient The module extracts features related to crop growth from the raw data. After calculation, the module finds that temperature, rainfall, soil pH and soil nitrogen content are strongly correlated with crop growth (the absolute value of the Pearson correlation coefficient is greater than 0.5). Therefore, these features are selected as the key features for building a crop growth model. Based on these key features, the data processing module divides the data set into a training set and a test set.

[0048] The random forest algorithm is used to build a crop growth model. During the construction process, the module generates multiple training subsets from the training set consisting of climate data and soil analysis data using a sampling method with replacement, and builds multiple decision trees based on these subsets. During the construction of each decision tree, climate or soil fertility characteristics are randomly selected as partition nodes, and the optimal partition feature is selected by calculating the information gain. The mathematical formula for information gain is: When the stopping condition is met (such as reaching the maximum depth), the decision tree is constructed. Finally, the module inputs the collected climate data and soil analysis data into the random forest model to predict the growth of crops. During the testing phase, each decision tree will output a prediction result, and the final prediction result of the random forest is the mode of all decision tree prediction results, that is, the prediction result with the most occurrences. In this way, the base can accurately predict the growth of crops and provide farmers with scientific planting guidance and management suggestions, thereby optimizing resource allocation and improving agricultural production efficiency.

[0049] The decision support module collects farmers' planting history data, crop growth model data, real-time growth data and environmental data through the data processing module. The system takes farmers as rows and crop types as columns to construct a user-crop matrix. Each element in the matrix represents the farmer's planting characteristics such as the yield or satisfaction of a certain crop. The cosine similarity formula in the collaborative filtering algorithm is used to calculate the user-crop matrix. Calculate the similarity between farmers, find the k most similar farmers to the target farmer, and recommend planting plans for the target farmer based on the planting history of these k similar farmers, including crop types, sowing time, fertilizer application amount and irrigation plan. At the same time, combine the real-time growth data of crops and environmental data to further optimize the recommendation results.

[0050] The optimal sowing time, fertilizer application amount and irrigation plan are determined by particle swarm optimization. The position and speed of each particle are randomly initialized, and the number of particles N, the number of iterations, the inertia weight w, the learning factors c1 and c2 and other parameters are set. The fitness function is defined based on the predicted crop yield, resource utilization efficiency or cost-effectiveness, and the pros and cons of each particle position are evaluated. If the fitness of the current particle is better than its historical optimal fitness, it is updated to the current position. If the fitness of a particle is better than the current global optimal fitness, the global optimal position Gbest is updated. According to the speed update formula: v i (t+1)=w·v i (t)+c 1 ·r 1 ·(pBest i -x i (t))+c 2 ·r 2 ·(gBest i -x i (t)), position update formula: x i (t+1)=x i (t)+v i(t+1) Update the speed and position of each particle. If the updated particle position exceeds the boundary of the search space, it is restricted to the boundary by truncation and reflection. If the maximum number of iterations is reached or the global optimal solution has no obvious improvement in multiple consecutive iterations, the iteration is stopped and the global optimal solution, i.e., the optimal sowing time, fertilizer amount and irrigation plan, is output.

[0051] The ADF test method is used to test the stationarity of the collected crop yield and other related time series data. If the data is not stationary, it is stabilized by differential operation. The time series diagram is observed to preliminarily determine the trend and periodicity of the data. The autocorrelation function (ACF) and partial autocorrelation function (PACF) are calculated. According to the graphical characteristics of ACF and PACF, the order p and q of the ARIMA model are preliminarily determined. The least squares method is used to estimate the parameters of the ARIMA model, and the model's fit and prediction accuracy are tested. The ARIMA model that has been fitted is used. The mathematical formula of the ARIMA model is: Forecast future crop yields and possible risks.

[0052] The user interaction module has a deep understanding of farmers' usage habits, needs and expectations through extensive user surveys. Based on the survey results, the development team has designed an intuitive and easy-to-use user interface. After entering the system, farmers can easily enter farmland information (such as area, soil type), geographical location and crop types. The system will strictly verify and clean the input data to ensure the accuracy and consistency of the data. Farmers can query planting plans as needed. The system will provide farmers with personalized planting suggestions based on the crop types, geographical locations and other information entered by farmers, combined with agricultural data and expert experience. The query results are displayed in the form of charts to facilitate farmers' understanding and operation. The system will continuously optimize the display method and order of results based on farmers' feedback and interaction habits. At the same time, we encourage farmers to provide valuable suggestions for improving the functions and interfaces of the system. According to farmers' needs and system settings, the system will regularly push weather changes and crop growth status information to farmers to help farmers adjust their planting strategies in a timely manner.

[0053] The security module uses advanced encryption algorithms to encrypt sensitive information in the system. This includes user passwords, transaction data, and personal privacy information to ensure security during storage and transmission. In the system, two roles, administrator and ordinary user, are defined, and corresponding permissions are assigned to each role. Administrators can access all functional modules and data, while ordinary users can only access content within their authority. This permission management mechanism ensures the security and integrity of the data. In order to prevent external illegal access and data leakage, we have set up strict firewall rules, which limit external access to the system and monitor any suspicious activities. At the same time, through access control policies, we ensure that only authorized users can access the system.

[0054] Embodiment 2:

[0055] An Internet-based agricultural planting consulting service system in this embodiment places special emphasis on a decision support module, which combines advanced collaborative filtering, particle swarm optimization, and ARIMA model technologies to provide farmers with personalized planting plan recommendations, planting process problem diagnosis, and yield prediction and risk analysis.

[0056] The farmer wants to try planting new crop varieties. After he logs into the system and inputs his own farmland information, geographical location, and historical data of crops planted before, the system immediately starts the collaborative filtering algorithm in the decision support module, and by building a user-crop matrix and using cosine similarity calculation, finds the 10 farmers with the most similar planting habits to the user. Based on the planting history of these 10 farmers, the system recommends the most popular crop types, sowing times, fertilizer amounts, and irrigation plans to the user. Not only that, the system also combines the current climate conditions, soil conditions, and real-time growth data of crops to further optimize the recommendation results. In the end, the user chooses to plant corn and adopts the planting plan recommended by the system.

[0057] After deciding to plant corn, the user wants to further optimize the sowing time, fertilizer amount and irrigation plan. The system uses the particle swarm optimization algorithm to randomly initialize a group of particles for each parameter, and sets the number of particles, number of iterations and other related parameters. During the iteration process, the system evaluates the pros and cons of each particle position based on the predicted corn yield and resource utilization efficiency, and continuously updates the speed and position of the particles. After many iterations, the system found the best sowing time (the 15th day of spring), fertilizer amount (200 kg per mu) and irrigation plan (irrigation twice a week). These optimized planting plans not only increase corn yields, but also reduce production costs.

[0058] In order to help users better plan their planting plans, the system also uses the ARIMA model to predict corn yields and analyzes possible risk factors. First, the system performs an ADF test on corn yield data over the years and finds that the data has a seasonal fluctuation trend. After making the data stable through differential operations, the system observes the time series graph and calculates the values ​​of ACF and PACF. Based on the graphical features of ACF and PACF, the system selects the appropriate ARIMA model order and estimates the parameters of the model using the least squares method. After testing the model's fit and prediction accuracy, the system predicts that corn production in the coming year will increase by 8% over the previous year. At the same time, the system also analyzes possible risk factors, such as high temperatures and droughts in summer that may have an adverse effect on corn growth. Based on the information provided by the system, the user is prepared to deal with risks in advance and takes corresponding measures to reduce risks. In the end, he successfully obtained a bumper corn yield and achieved good economic benefits.

[0059] Embodiment three:

[0060] Based on the first and second embodiments, the specific process steps of the system are as follows:

[0061] 1. Obtain meteorological data and soil analysis data in real time, deploy sensors to monitor crop growth, and use drones to obtain overall farmland information;

[0062] 2. Use the Pearson correlation coefficient to extract features related to crop growth and then construct a data set;

[0063] 3. Use the data set to build multiple decision trees to form a random forest;

[0064] 4. Compare the similarity of planting history of different farmers through collaborative filtering to recommend planting plans for farmers;

[0065] 5. Combine real-time crop growth data and environmental data to use the ARIMA model to predict crop yields and possible risks;

[0066] 6. Combine real-time crop growth data and environmental data to use the ARIMA model to predict crop yields and possible risks;

[0067] 7. Receive farmland information and query requests, display planting plans and other information, and send notifications of weather changes and crop growth;

[0068] 8. Encrypt data and set permissions for users based on the importance and sensitivity of the data.

[0069] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. An Internet-based agricultural planting consulting service system, characterized in that: The system consists of the following components: Data collection module: Use API interfaces to obtain climate data from Internet meteorological services, establish data sharing agreements with soil testing agencies, regularly obtain soil analysis data, and deploy multiple sensors in farmland to collect crop growth data in real time; Data processing module: Through data cleaning, duplicate data is removed, missing values ​​are processed, data normalization is used to convert data of different scales into a unified scale, the Pearson correlation coefficient is used to select features that have a significant impact on crop growth, and climate data and soil analysis data are learned through the random forest model to establish a crop growth model, and crop growth is predicted based on the model; Decision support module: Based on the analysis results of the data processing module, it provides farmers with personalized planting plans and suggestions, and can automatically recommend the best sowing time, fertilizer application amount and irrigation plan. At the same time, it can also predict crop yields and possible risks in real time and give countermeasures in advance; User interaction module: This module provides a user-friendly interface to facilitate farmers to interact with the system. Farmers can use this module to input farmland information, query planting plans, and receive real-time reminders; Security module: According to the importance and sensitivity of the data, select the appropriate encryption algorithm to encrypt the user passwords, transaction data, and personal privacy information in the system to ensure security during storage and transmission. Define administrators and ordinary users in the system, assign corresponding permissions to each role, clarify which functional modules and data each role can access, set firewall rules, limit illegal external access to the system, and prevent data leakage and illegal access.

2. According to claim 1, an Internet-based agricultural planting consulting service system is characterized in that: The data collection module is connected to the Internet meteorological service through an API interface to obtain the latest temperature, rainfall and wind direction in real time, establish a long-term cooperative relationship with a soil testing agency, obtain the analysis results of key indicators of soil fertility (nitrogen, phosphorus, potassium content), acidity (pH value), organic matter content and soil moisture of the farmland, deploy temperature and humidity sensors, soil moisture sensors, and spectral sensors in the farmland, monitor the key indicators of crop growth rate, leaf color, leaf area index (LAI) and crop height through sensors, use drone aerial photography data to complement the sensor data, and obtain the overall growth of the farmland and crop distribution.

3. The Internet-based agricultural planting consulting service system according to claim 1 is characterized in that: The data processing module uses the Pearson correlation coefficient to extract features related to crop growth from the original data, such as climate data (temperature, humidity, rainfall), soil analysis data (pH value, nutrient content), and for each feature, calculates the Pearson correlation coefficient between the feature and the target variable. The Pearson correlation coefficient formula is: Where: x i and i are the feature value and crop growth value of the ith sample, x and y are the means of the feature and crop growth values, respectively, and n is the number of samples. The correlation between the feature and crop growth is evaluated according to the absolute value of the Pearson correlation coefficient. The closer the absolute value is to 1, the stronger the correlation is, and the closer the absolute value is to 0, the weaker the correlation is. A threshold is set (such as |r|>0.5), and the features whose correlation coefficient with the target variable exceeds the threshold are selected as the features of the crop growth model. The data set is divided into a training set and a test set according to different features for the construction of a random forest model.

4. The Internet-based agricultural planting consulting service system according to claim 1, characterized in that: The data processing module uses a random forest model to predict crop growth, uses the training set to build multiple decision trees to form a random forest, and uses the test set data to evaluate the performance of the model using the mean square error (MSE) Where n is the number of test set samples, y i is the actual value of the ith sample, It is the model's predicted growth status for the ith sample. The smaller the MSE, the better the model's prediction performance. The parameters of the random forest (such as the number of decision trees and the maximum depth of each tree) are adjusted according to the evaluation results to optimize the performance of the model. The collected real-time climate data and soil analysis data are input into the random forest model to predict the crop growth target. During the test, each decision tree will output a prediction result. The final prediction result of the random forest is the mode of all decision tree prediction results, that is, the most common situation in which the predicted crop growth target occurs.

5. The wholesale channel marketing system according to claim 4, characterized in that: The specific steps of constructing each decision tree in the random forest are as follows: (1) In the training set consisting of climate data and soil analysis data, sampling with replacement is used to form a training subset, which will be used to build a decision tree; (2) When constructing each node of the decision tree, one of the climate data or soil fertility characteristics is randomly selected from the data set as a candidate split feature; (3) By calculating the information gain, the optimal partitioning feature is selected to divide the data set into different categories and the data set into two or more subsets. The information gain formula is: Where: T is the training data set, A is a feature, H(T) is the entropy of the data set T, values(A) is all possible values ​​of feature A, T v is a subset of T whose feature A takes value v, |T| and |T v ∣T and T respectively v The number of samples, H(T v ) is a subset T v Entropy of (4) Repeat steps (1), (2), and (3) until the stopping condition is met, such as reaching the maximum depth, and a decision tree is constructed.

6. The Internet-based agricultural planting consulting service system according to claim 1, characterized in that: The decision support module compares the planting history of different farmers through collaborative filtering to find similar planting plans based on the analysis results of the data processing module, recommends planting plans to farmers, combines crop growth models and real-time data, determines the optimal sowing time, fertilizer application amount and irrigation plan through particle swarm optimization, provides problem diagnosis and suggestions in the planting process, combines real-time crop growth data and environmental data, and uses the ARIMA model to predict crop yields and possible risks.

7. The Internet-based agricultural planting consulting service system according to claim 6, characterized in that: The collaborative filtering is used to compare the planting history of different farmers to recommend similar planting plans. A user-crop matrix is ​​constructed by taking farmers as rows and crop types as columns. Each element in the matrix represents the user's yield or satisfaction with the crop. The cosine similarity in the collaborative filtering algorithm is used to calculate the similarity between users. For a target farmer, the k most similar farmers are found. Based on the planting history of these k similar farmers, planting plans are recommended for the target farmer. The most popular crop types, sowing times, fertilizer amounts, and irrigation plans among these similar farmers are recommended. The real-time growth data and environmental data of the crops are combined to further optimize the recommendation results. The mathematical formula of cosine similarity is: Where: A=(A1,A2,…,A n )、B=(B1,B2,…,B n ) represent a planting feature (such as crop type, sowing time, and fertilizer amount), A·B is the dot product of vectors A and B, and |A| and |B| are the moduli of vectors A and B, respectively.

8. The Internet-based agricultural planting consulting service system according to claim 6, characterized in that: The decision support module determines the optimal sowing time, fertilizer application amount and irrigation plan through particle swarm optimization, and the specific steps of particle swarm optimization are as follows: (1) For each particle, the position and velocity of each particle are randomly initialized. The position vector represents the parameters of sowing time, fertilizer application amount and irrigation plan. The number of particles N, the number of iterations and inertia weight w, the learning factors c1 and c2 are set, and the individual optimal position pBest of each particle is initialized. i is the current position, and the global optimal position Gbest is the best position among all particles; (2) define a fitness function to evaluate the quality of each particle position based on predicted crop yield, resource utilization efficiency, or cost-effectiveness; (3) If the current particle’s fitness is better than its historical optimal fitness, update pBest i is the current position, traverse all particles, if the fitness of a particle is better than the current global optimal fitness, update Gbest to the position of the particle; (4) Update the speed and position of each particle according to the formula: Speed ​​update formula: v i (t+1)=w·v i (t)+c1·r1·(pBest i -x i (t))+c2·r2·(gBest i -x i (t)) Position update formula: x i (t+1)=x i (t)+v i (t+1), where the number of particles N, the number of iterations and the inertia weight w, and the learning factors c1 and c2; (5) If the updated particle position exceeds the boundary of the search space, it is restricted to the boundary by truncation and reflection; (6) Check whether the termination conditions are met. If the termination conditions are met, the maximum number of iterations or the global optimal solution is reached, and there is no obvious improvement in multiple consecutive iterations, then stop the iteration and output the global optimal solution. Otherwise, return to step 2 to continue iterating.

9. The Internet-based agricultural planting consulting service system according to claim 6, characterized in that: The ARIMA model is used to predict crop yields and possible risks. The ADF test method is used to test the stationarity of the collected crop yields and other related time series data. If the data is not stationary, it is stabilized by differential operation. The time series diagram is observed to preliminarily determine the trend and periodicity of the data. The autocorrelation function (ACF) and partial autocorrelation function (PACF) are calculated. According to the graphical characteristics of ACF and PACF, the order p (number of autoregressive terms) and q (number of moving average terms) of the ARIMA model are preliminarily determined. The least squares method is used to estimate the parameters of the ARIMA model, and the model's fit and prediction accuracy are tested. The fitted ARIMA model is used to predict future crop yields and possible risks. The mathematical formula of the ARIMA model is: y t is the future crop yield and possible risk at time t, c term or intercept, p is the autoregressive coefficient, q is the moving average coefficient, ∈ t is the white noise error term.

10. The Internet-based agricultural planting consulting service system according to claim 1, characterized in that: The user interaction module understands farmers' usage habits, needs and expectations through user surveys. The development team implements the user interface based on the design drawings, allowing farmers to input farmland information and query planting plans. The module receives farmers' input of geographic location and crop types, verifies and cleans the input data to ensure data accuracy and consistency, and displays query results to farmers in the form of charts based on farmers' query requests (such as planting plans). The display method and order of results are optimized based on farmers' feedback and interaction habits. Weather changes and crop growth conditions are sent to farmers based on farmers' needs and system settings. Farmers' feedback and suggestions are received and processed to improve the system's functions and interfaces.

Citation Information

Cited By

  • Rice planting equipment with high enzyme activity and planting method thereof

    CN119422585A

  • Intelligent management method and system for rubber production based on Internet of Things technology

    CN119477590A

  • Self-adaptive management system for picking in orchard

    CN119578772A

  • Multi-platform live broadcasting room data visualization and optimization decision support method and system

    CN119988708A

  • Three-one decision simulation method and device, equipment and storage medium

    CN120764391A