Agricultural product supply forecasting system and method based on online trading platform
By collecting and processing data in the agricultural product supply prediction system, extracting features and building a deep neural network model, the data quality and model complexity problems in the existing technology are solved, and more accurate agricultural product supply prediction and model optimization are achieved.
Patent Information
- Application Number
- CN202410689902.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-05-30
AI Technical Summary
The existing agricultural product supply forecasting system based on online trading platforms failed to effectively consider data quality and model complexity, resulting in inaccurate prediction results.
By collecting historical transaction information, meteorological information and market trend data, missing value processing, outlier value detection and data quality monitoring, extracting sales volume, price and seasonal characteristics, building a deep neural network model for prediction, and optimizing through actual sales data Model to improve prediction accuracy.
More accurate agricultural product supply forecasts are achieved, the effectiveness and efficiency of the prediction model are improved, and data quality and model optimization are ensured.
Smart Images

Figure CN118261637B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of supply forecasting, and in particular to a system and method for forecasting agricultural product supply based on an online trading platform. Background Art
[0002] With the development of science and technology, many supply forecasting studies use big data technology and machine learning algorithms to analyze and forecast historical data. By accurately forecasting supply, the system can help farmers and buyers better match supply and demand, avoid waste and shortages, and reduce transaction risks, allowing market participants to make more informed decisions and improve efficiency. However, most of them do not consider the issues of data quality and model complexity.
[0003] For example, a Chinese patent with publication number CN117408784A discloses an agricultural product supply forecasting system applied to an online trading platform, which relates to the technical field of agricultural product supply forecasting. It solves the technical problem that the prior art makes a separate forecast of the demand for agricultural products without comprehensively considering the mutual influence between agricultural products; and after obtaining the forecast results, the forecast results are not corrected according to the real-time situation, resulting in inaccurate forecast results. The present invention divides a number of agricultural products according to set periods, and when the agricultural products in the same period influence each other, the mutual influence coefficient between the agricultural products is calculated; the real-time output and historical sales of agricultural products, as well as the real-time output and mutual influence coefficient of agricultural products that have mutual influence with the agricultural products are integrated into a forecast input sequence, the forecast input sequence is input into a supply forecasting model to obtain the forecast sales, and the correction coefficient of the sales is calculated. When the correction coefficient is greater than the coefficient threshold, the forecast sales are corrected, which is conducive to making the forecast result more accurate.
[0004] For example, a Chinese patent with publication number CN117495019A discloses a method and system for collaborative scheduling of agricultural products based on an agricultural product supply chain, which relates to the field of product scheduling technology. The method includes: establishing a real-time life cycle of the supply chain of agricultural products, then setting the initial node association value, performing node monitoring, generating abnormal reporting data, matching the initial node association value, performing radiation aggregation analysis of the central node according to the matching results, establishing a solution space, performing quality demand prediction and screening according to the solution space, generating screening results, entering Alibaba results to perform multi-dimensional decision evaluation, and finally performing intra-chain scheduling of the supply chain. This application mainly solves the problem that scheduling and optimization cannot be performed according to the characteristics of agricultural products themselves, the response speed of the supply chain is slow, and the quality of agricultural products is reduced. By applying the prediction and screening results, the scheduling plan is determined, thereby achieving better social and economic benefits. The optimized operation of the agricultural product supply chain is realized, and the efficiency and response speed are improved.
[0005] The above patents have the problem raised by the background technology: most of them do not consider the problem of data quality and model complexity. To solve this problem, the present invention proposes a system and method for predicting agricultural product supply based on an online trading platform. Summary of the invention
[0006] Some simplifications or omissions may be made in this section and the abstract and title of the present application to avoid obscuring the purpose of this section, the abstract and the title of the invention, and such simplifications or omissions shall not be used to limit the scope of the present invention.
[0007] In view of the above-mentioned problems existing in the existing agricultural product supply forecasting system and method based on the online trading platform, the present invention is proposed.
[0008] Therefore, the object of the present invention is to provide a system and method for forecasting agricultural product supply based on an online trading platform.
[0009] To solve the above technical problems, the present invention provides the following technical solutions: collecting data of historical transaction information, weather information and market trend information, cleaning and processing the data;
[0010] Analyze the data and extract features, including sales volume, price, and seasonality;
[0011] Based on the analysis of the data, we extract features including sales volume, price, and seasonality, and evaluate the correlation between the features and supply forecasts. The function expression for evaluating the correlation is as follows:
[0012] ;
[0013] In the formula, Indicated by sales volume ,price and seasonality Correlation with forecasted supply, Indicates Sales volume, represents the average sales volume, Indicates Price, represents the average price, Indicates Seasonality, represents the average seasonality, Indicates The forecast supply, represents the predicted average supply;
[0014] Build a forecast model for agricultural product supply and use historical data to train the model;
[0015] The agricultural product supply forecasting model is constructed by integrating the characteristics of sales volume, price and seasonality. The function expression of the agricultural product supply forecasting model is as follows:
[0016] ;
[0017] In the formula, represents the predicted supply of agricultural products, Indicates the prediction processing of the fused features. Indicates the fusion processing of the extracted features. represents the sales volume of agricultural products, represents the price of agricultural products, Indicates the seasonality of agricultural products;
[0018] Forecast future supply conditions, generate forecast results, and display the forecast results;
[0019] To predict future supply, the rules for generating forecast results are as follows:
[0020] Evaluate the forecast results of agricultural product supply forecast models, including calculating the coefficient of determination and relative error values;
[0021] If the value of the determination coefficient is close to 1 and the relative error is less than or equal to 5%, the forecasting effect of the agricultural product supply forecasting model is judged to be excellent;
[0022] If the value of the determination coefficient is close to 0 or the relative error is greater than 5%, the forecasting effect of the agricultural product supply forecasting model is judged to be unqualified;
[0023] Explain the prediction results with excellent prediction effects, and present the prediction results of the agricultural product supply prediction model by drawing comparison charts of predicted values and true values and residual charts;
[0024] Intelligently optimize agricultural product supply forecasting models that fail to meet forecasting requirements;
[0025] Collect actual sales data, compare it with the forecast results, and continuously optimize the model based on the feedback information;
[0026] Collect actual sales data, compare it with the forecast results, and perform intelligent optimization on the agricultural product supply forecast model with unsatisfactory forecast results. The function expression of intelligent optimization is as follows:
[0027] ;
[0028] In the formula, Indicates the current sales volume, price and seasonality of agricultural products Select the current forecast for agricultural product supply The value function of Indicates the supply of agricultural products for the current forecast After receiving the instant reward, represents the discount factor, which is used to balance the importance of current rewards and future rewards. Indicates the maximum evaluation within the brackets. Indicates the supply of agricultural products for the current forecast The sales volume, price and seasonal status of the next agricultural product to enter later, Indicates in status The best forecast of agricultural product supplies under .
[0029] As a preferred solution of the agricultural product supply forecasting method based on the online trading platform of the present invention, firstly, the collected data is processed for missing values, and the function expression of the missing value processing is as follows:
[0030] ;
[0031] In the formula, Indicates historical transaction information , weather information and market trend information The corresponding missing value filling values are Indicates historical transaction information , weather information and market trend information The corresponding means are, Indicates the collected historical transaction information , weather information and market trend information The corresponding values are missing. Indicates the collected historical transaction information , weather information and market trend information The corresponding values are Indicates the collected historical transaction information , weather information and market trend information The corresponding values are not missing.
[0032] As a preferred solution of the agricultural product supply prediction method based on the online trading platform of the present invention, wherein: the collected data is then subjected to outlier detection, and the function expression of the outlier detection is as follows:
[0033] ;
[0034] In the formula, Indicates the collected historical transaction information , weather information and market trend information The abnormal scores of the corresponding values, Indicates the collected historical transaction information , weather information and market trend information The distances from the corresponding value points to the outlier points, Indicates the collected historical transaction information , weather information and market trend information The average distances from the corresponding value points to the outlier points.
[0035] As a preferred solution of the agricultural product supply forecasting method based on the online trading platform described in the present invention, the collected data is finally subjected to data quality monitoring, and the data quality monitoring rules are as follows:
[0036] Monitor data integrity, data accuracy and data consistency respectively, and implement abnormal notification mechanism;
[0037] Set a data integrity threshold. If each field contains more than or equal to 90% non-null values, the data integrity is qualified.
[0038] If each field contains less than 90% non-null values, the data integrity fails and an exception notification is issued;
[0039] Set data accuracy rules and set a value threshold for each field. If the total number of field values that do not meet the value threshold is less than or equal to 85%, the data accuracy is qualified;
[0040] If the total number of field values that meet the numerical threshold is greater than 85%, the data accuracy fails and an exception notification is issued;
[0041] Set data consistency check rules to check the source of the data and the data type of each field. If the source of the data matches and the data type corresponding to each field is the same, the data consistency is qualified;
[0042] If the source of the data does not match or the data types corresponding to each field are different, the data consistency fails and an exception notification is issued.
[0043] The agricultural product supply forecasting system based on the online trading platform includes: data collection module, feature engineering module, forecasting model module, result display module and feedback optimization module;
[0044] The data collection module is used to collect historical transaction information, weather information and market trend information, clean and process the data;
[0045] The feature engineering module is used to analyze the data and extract features, including sales volume, price, and seasonality;
[0046] The forecasting model module is used to build a forecasting model for agricultural product supply and train the model using historical data;
[0047] The result display module is used to predict future supply conditions, generate forecast results, and display the forecast results;
[0048] The feedback optimization module is used to collect actual sales data, compare it with the predicted results, and continuously optimize the model based on the feedback information.
[0049] A computer device includes a memory for storing instructions and a processor for executing the instructions, so that the device implements a method for predicting agricultural product supply based on an online trading platform.
[0050] A computer-readable storage medium stores a computer program, which, when executed, implements a method for predicting agricultural product supply based on an online trading platform.
[0051] Beneficial effects of the present invention: The present invention collects data on historical transaction information, meteorological information and market trend information, cleans and processes the data, ensures the integrity of the data by performing missing value processing on the collected data, ensures the accuracy of the collected data by performing outlier detection on the collected data, and ensures the data quality by performing data quality monitoring on the collected data; analyzes the data, extracts features, including sales volume, price and seasonality, and determines the effectiveness of feature extraction by evaluating the correlation between the features and supply forecasts; constructs an agricultural product supply forecasting model, uses historical data to train the model, and constructs an agricultural product supply forecasting model using a deep neural network by integrating the features of the sales volume, price and seasonality of the agricultural product as input, thereby achieving a more comprehensive agricultural product supply forecast; predicts future supply conditions, generates forecast results, and displays the forecast results, and effectively determines whether the agricultural product supply forecasting model needs to be intelligently optimized by evaluating the forecasting effect of the agricultural product supply forecasting model; collects actual sales data, compares it with the forecast results, continuously optimizes the model based on feedback information, and continuously improves the forecasting accuracy and effect based on actual conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0053] Figure 1A method flow chart of the method for predicting agricultural product supply based on an online trading platform of the present invention;
[0054] Figure 2 A schematic diagram of data quality monitoring rules of the agricultural product supply forecasting method based on an online trading platform of the present invention;
[0055] Figure 3 It is a schematic diagram of generating prediction results based on the agricultural product supply prediction method of the online trading platform of the present invention;
[0056] Figure 4 This is a system structure diagram of the agricultural product supply forecasting system based on the online trading platform of the present invention. DETAILED DESCRIPTION
[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0058] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention can also be implemented in other ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0059] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0060] Example 1
[0061] In this embodiment, a method flow chart of a method for predicting agricultural product supply based on an online trading platform is provided, such as Figure 1 As shown in the figure, the agricultural product supply forecasting method based on the online trading platform includes:
[0062] S1. Collect data on historical transaction information, weather information and market trend information, clean and process the data to ensure data quality and consistency.
[0063] First, the collected data is processed for missing values. The function expression for missing value processing is as follows:
[0064] ;
[0065] In the formula, Indicates historical transaction information , weather information and market trend information The corresponding missing value filling values are Indicates historical transaction information , weather information and market trend information The corresponding means are, Indicates the collected historical transaction information , weather information and market trend information The corresponding values are missing. Indicates the collected historical transaction information , weather information and market trend information The corresponding values are Indicates the collected historical transaction information , weather information and market trend information The corresponding values are not missing.
[0066] In specific applications, historical transaction information, weather information and market trend information for twelve months of a year are collected. For missing values, the mean method can be used to fill in the missing values. For values that are not missing, the following outlier detection and data quality monitoring are performed.
[0067] Then, outlier detection is performed on the collected data. The function expression of outlier detection is as follows:
[0068] ;
[0069] In the formula, Indicates the collected historical transaction information , weather information and market trend information The abnormal scores of the corresponding values, Indicates the collected historical transaction information , weather information and market trend information The distances from the corresponding value points to the outlier points, Indicates the collected historical transaction information , weather information and market trend information The average distances from the corresponding value points to the outlier points.
[0070] In specific applications, we first find a group of outliers, then calculate the distance and average distance between normal value points and outlier points, and use the above formula to calculate the anomaly score of the corresponding value of the data. If the anomaly score The closer it is to 1, the higher the possibility that it is an outlier. If it is smaller than 0.5, it is a normal value. If the abnormal score If it is around 0.5, the data does not contain obvious outliers.
[0071] Finally, the collected data is monitored for data quality. The rules for data quality monitoring are as follows: Figure 2 The specific explanation is as follows:
[0072] Monitor data integrity, data accuracy and data consistency respectively, and implement abnormal notification mechanism;
[0073] Set a data integrity threshold. If each field contains more than or equal to 90% non-null values, the data integrity is qualified.
[0074] If each field contains less than 90% non-null values, the data integrity fails and an exception notification is issued;
[0075] Data integrity refers to whether there are null values in the fields of the collected data, and to query the reasons for the null values. It is necessary to perform multiple query sampling on the collected data;
[0076] Set data accuracy rules and set a value threshold for each field. If the total number of field values that do not meet the value threshold is less than or equal to 85%, the data accuracy is qualified;
[0077] If the total number of field values that meet the numerical threshold is greater than 85%, the data accuracy fails and an exception notification is issued;
[0078] For example, if the sales volume in a certain year in the historical transaction information is greater than the total sales volume, or the temperature in the weather information is too high or too low, or the market trend information shows a turbulent sales trend, then there may be a problem in the data collection, and the collected data needs to be rechecked;
[0079] Set data consistency check rules to check the source of the data and the data type of each field. If the source of the data matches and the data type corresponding to each field is the same, the data consistency is qualified;
[0080] If the source of the data does not match or the data types corresponding to each field are different, the data consistency fails and an exception notification is issued.
[0081] For example, compare the collection sources of historical transaction information, weather information and market trend information to see if they all match, and check whether the data types of the corresponding fields in the three are the same, for example, whether the price fields are all displayed in currency format, whether the time fields are all displayed in date format, and so on.
[0082] S2. Analyze the data and extract features, including sales volume, price, and seasonality. Determine the effectiveness of feature extraction by evaluating the correlation between features and supply forecasts.
[0083] Based on the analysis of the data, we extract features including sales volume, price, and seasonality, and evaluate the correlation between the features and supply forecasts. The function expression for evaluating the correlation is as follows:
[0084] ;
[0085] In the formula, Indicated by sales volume ,price and seasonality Correlation with forecasted supply, Indicates Sales volume, represents the average sales volume, Indicates Price, represents the average price, Indicates Seasonality, represents the average seasonality, Indicates The forecast supply, Represents the predicted average supply.
[0086] In the specific application, the correlation between the extracted sales volume, price and seasonal characteristics and the predicted supply volume is calculated respectively, and the relationship between sales volume and predicted supply volume, price and predicted supply volume, and seasonality and predicted supply volume is studied. The numerical rule of seasonality is specified as follows:
[0087] If the sales volume in the current month is greater than that in the previous month, it is considered a sales increase, and the seasonality of the current month is recorded as 1;
[0088] If the sales volume in the current month is less than that in the previous month, it is considered a sales decline and the seasonality of the current month is recorded as 0.
[0089] S3. Build a forecast model for agricultural product supply, use historical data to train the model, adjust parameters to improve forecast accuracy, and make more comprehensive forecasts for agricultural product supply.
[0090] The agricultural product supply forecasting model is constructed by integrating the characteristics of sales volume, price and seasonality. The function expression of the agricultural product supply forecasting model is as follows:
[0091] ;
[0092] In the formula, represents the predicted supply of agricultural products, Indicates the prediction processing of the fused features. Indicates the fusion processing of the extracted features. represents the sales volume of agricultural products, represents the price of agricultural products, Indicates the seasonality of agricultural products.
[0093] In specific applications, the sales volume, price and seasonality of agricultural products are integrated to form a comprehensive feature representation. Here, a multimodal fusion network is used to fuse the features of different modes to ensure that the fused features can capture the correlation and complementarity between different modes. The fused features are used as input to build an agricultural product supply prediction model. Here, a deep neural network can be used to build an agricultural product supply prediction model. The collected data is then divided into training set, validation set and test set, and model training and parameter adjustment are performed. The hyperparameters of the agricultural product prediction model are optimized according to actual conditions, including learning rate, regularization term, number of hidden layer nodes, etc.
[0094] S4. Forecast future supply conditions, generate forecast results, and display the forecast results for easy understanding and reference by users.
[0095] Forecast future supply conditions and generate forecast results using rules such as Figure 3 The specific explanation is as follows:
[0096] Evaluate the forecast results of agricultural product supply forecast models, including calculating the coefficient of determination and relative error values;
[0097] If the value of the determination coefficient is close to 1 and the relative error is less than or equal to 5%, the forecasting effect of the agricultural product supply forecasting model is judged to be excellent;
[0098] If the value of the determination coefficient is close to 0 or the relative error is greater than 5%, the forecasting effect of the agricultural product supply forecasting model is judged to be unqualified;
[0099] Explain the prediction results with excellent prediction effects, and present the prediction results of the agricultural product supply prediction model by drawing comparison charts of predicted values and true values and residual charts;
[0100] Intelligently optimize agricultural product supply forecasting models that fail to meet forecasting requirements;
[0101] Among them, the determination coefficient measures the degree to which the agricultural product supply forecast model explains the data variance. The value range is between 0 and 1. The closer it is to 1, the better the fit of the agricultural product supply forecast model. The relative error refers to the relative error between the calculated predicted value and the true value, which can reflect the degree of deviation of the predicted result from the true value.
[0102] In specific applications, the prediction results of the agricultural product supply forecasting model are evaluated by calculating the determination coefficient and relative error. According to the rules for generating prediction results, the agricultural product supply forecasting models with excellent and unsatisfactory prediction results are visually explained and intelligently optimized respectively.
[0103] S5. Collect actual sales data, compare it with the forecast results, and continuously optimize the model based on feedback information to improve forecast accuracy and effectiveness.
[0104] Collect actual sales data, compare it with the forecast results, and perform intelligent optimization on the agricultural product supply forecast model with unsatisfactory forecast results. The function expression of intelligent optimization is as follows:
[0105] ;
[0106] In the formula, Indicates the current sales volume, price and seasonality of agricultural products Select the current forecast for agricultural product supply The value function of Indicates the supply of agricultural products for the current forecast After receiving the instant reward, represents the discount factor, which is used to balance the importance of current rewards and future rewards. Indicates the maximum evaluation within the brackets. Indicates the supply of agricultural products for the current forecast The sales volume, price and seasonal status of the next agricultural product to enter later, Indicates in status The best forecast of agricultural product supplies under .
[0107] In specific applications, the status is a vector containing the current sales volume, price and seasonality information of agricultural products. It can be designed based on the difference between supply and actual demand and cost factors. By training the above formula, the optimal strategy for selecting different actions under different states can be learned, thereby realizing intelligent decision-making strategies. Combined with real-time environmental feedback and historical data, decisions can be adjusted in real time according to the current state to achieve more effective agricultural product supply forecasts.
[0108] Example 2
[0109] In this embodiment, a system structure diagram of an agricultural product supply forecasting system based on an online trading platform is provided, such as Figure 4 As shown, the agricultural product supply prediction system based on the online trading platform includes a data collection module, a feature engineering module, a prediction model module, a result display module and a feedback optimization module.
[0110] The data collection module is used to collect data on historical transaction information, weather information and market trend information, clean and process the data, and ensure data quality and consistency.
[0111] First, collect historical transaction information, meteorological information and market trend information for twelve months in a year. For missing values, the mean method can be used to fill in the missing values. For values that are not missing, perform the following outlier detection and data quality monitoring; then find a group of outliers, and then calculate the distance and average distance between the normal value point and the outlier point respectively, and calculate the anomaly score of the corresponding data value through the above formula. If the anomaly score is closer to 1, the possibility that it is an outlier is higher. If the anomaly score is smaller than 0.5, it is a normal value. If the anomaly score is around 0.5, the data does not contain obvious outliers; finally, monitor the data quality, and monitor the data quality with the help of data integrity, data accuracy and data consistency respectively.
[0112] The feature engineering module is used to analyze the data and extract features, including sales volume, price, and seasonality.
[0113] The correlation between the extracted sales volume, price and seasonal characteristics and the supply forecast is calculated respectively, and the relationship between sales volume and supply forecast, price and supply forecast, and seasonality and supply forecast is studied. The numerical rule of seasonality is stipulated as follows:
[0114] If the sales volume in the current month is greater than that in the previous month, it is considered a sales increase, and the seasonality of the current month is recorded as 1;
[0115] If the sales volume in the current month is less than that in the previous month, it is considered a sales decline and the seasonality of the current month is recorded as 0.
[0116] The forecasting model module is used to build an agricultural product supply forecasting model, train the model using historical data, and adjust parameters to improve forecasting accuracy.
[0117] The sales volume, price and seasonality characteristics of agricultural products are fused to form a comprehensive feature representation. Here, a multimodal fusion network is used to fuse the features of different modes to ensure that the fused features can capture the correlation and complementarity between different modes. The fused features are used as input to build an agricultural product supply prediction model. Here, a deep neural network can be used to build an agricultural product supply prediction model. The collected data is then divided into training set, validation set and test set, and model training and parameter adjustment are performed. The hyperparameters of the agricultural product prediction model are optimized according to actual conditions, including learning rate, regularization term, number of hidden layer nodes, etc.
[0118] The result display module is used to predict future supply conditions, generate forecast results, and display the forecast results for easy understanding and reference by users.
[0119] The prediction results of the agricultural product supply forecasting model are evaluated by calculating the determination coefficient and relative error. According to the rules for generating the prediction results, the agricultural product supply forecasting models with excellent and unsatisfactory prediction results are visually explained and intelligently optimized respectively.
[0120] The feedback optimization module is used to collect actual sales data, compare it with the forecast results, and continuously optimize the model based on feedback information to improve forecast accuracy and effectiveness.
[0121] state is a vector containing the current sales volume, price and seasonality information of agricultural products. It can be designed based on the difference between supply and actual demand and cost factors. By training the above formula, the optimal strategy for selecting different actions under different states can be learned, thereby realizing intelligent decision-making strategies. Combined with real-time environmental feedback and historical data, decisions can be adjusted in real time according to the current state to achieve more effective agricultural product supply forecasts.
[0122] Example 3
[0123] In this embodiment, a computer device is provided, including a memory and a processor, the memory is used to store instructions, and the processor is used to execute the instructions, so that the computer device executes the steps of implementing the above-mentioned agricultural product supply prediction method based on an online trading platform.
[0124] Example 4
[0125] In this embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed, the steps of the above-mentioned agricultural product supply forecasting method based on the online trading platform are implemented.
[0126] The computer-readable storage medium includes: a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media for storing program codes.
[0127] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. Agricultural product supply forecasting method based on online trading platform, Features: include, Collect data on historical transaction information, weather information, and market trend information, and clean and process the data; Analyze the data and extract features, including sales volume, price, and seasonality; Based on the analysis of the data, the features including sales volume, price and seasonality are extracted, and the correlation between the features and the supply forecast is evaluated. The function expression for evaluating the correlation is as follows: ; In the formula, Indicated by sales volume ,price and seasonality Correlation with forecasted supply, Indicates Sales volume, represents the average sales volume, Indicates Price, represents the average price, Indicates Seasonality, represents the average seasonality, Indicates The forecast supply, represents the predicted average supply; Build a forecasting model for agricultural product supply and train the model using historical data; The agricultural product supply forecasting model is constructed by integrating the characteristics of sales volume, price and seasonality. The function expression of the agricultural product supply forecasting model is as follows: ; In the formula, represents the predicted supply of agricultural products, Indicates the prediction processing of the fused features. Indicates the fusion processing of the extracted features. represents the sales volume of agricultural products, represents the price of agricultural products, Indicates the seasonality of agricultural products; Forecast future supply conditions, generate forecast results, and display the forecast results; To predict future supply, the rules for generating forecast results are as follows: Evaluate the forecast results of agricultural product supply forecast models, including calculating the coefficient of determination and relative error values; If the value of the determination coefficient is close to 1 and the relative error is less than or equal to 5%, the forecasting effect of the agricultural product supply forecasting model is judged to be excellent; If the value of the determination coefficient is close to 0 or the relative error is greater than 5%, the forecasting effect of the agricultural product supply forecasting model is judged to be unqualified; Explain the prediction results with excellent prediction effects, and present the prediction results of the agricultural product supply prediction model by drawing comparison charts of predicted values and true values and residual charts; Intelligently optimize agricultural product supply forecasting models that fail to meet forecasting requirements; Collect actual sales data, compare it with the forecast results, and continuously optimize the model based on the feedback information; Collect actual sales data, compare it with the forecast results, and perform intelligent optimization on the agricultural product supply forecast model with unsatisfactory forecast results. The function expression of intelligent optimization is as follows: ; In the formula, Indicates the current sales volume, price and seasonality of agricultural products Select the current forecast for agricultural product supply The value function of Indicates the supply of agricultural products for the current forecast After receiving the instant reward, represents the discount factor, which is used to balance the importance of current rewards and future rewards. Indicates the maximum evaluation within the brackets. Indicates the supply of agricultural products for the current forecast The sales volume, price and seasonal status of the next agricultural product to enter later, Indicates in status The best forecast of agricultural product supplies under .
2. The agricultural product supply forecasting method based on the online trading platform according to claim 1, Features: First, the collected data is processed for missing values. The function expression for missing value processing is as follows: ; In the formula, Indicates historical transaction information , weather information and market trend information The corresponding missing value filling values are Indicates historical transaction information , weather information and market trend information The corresponding means are, Indicates the collected historical transaction information , weather information and market trend information The corresponding values are missing. Indicates the collected historical transaction information , weather information and market trend information The corresponding values are, Indicates the collected historical transaction information , weather information and market trend information The corresponding values are not missing.
3. The agricultural product supply forecasting method based on the online trading platform as claimed in claim 2, Features: Then, outlier detection is performed on the collected data. The function expression of outlier detection is as follows: ; In the formula, Indicates the collected historical transaction information , weather information and market trend information The abnormal scores of the corresponding values, Indicates the collected historical transaction information , weather information and market trend information The distances from the corresponding value points to the outlier points, Indicates the collected historical transaction information , weather information and market trend information The average distances from the corresponding value points to the outlier points.
4. The agricultural product supply forecasting method based on the online trading platform as claimed in claim 3, Features: Finally, the collected data is subjected to data quality monitoring. The rules for data quality monitoring are as follows: Monitor data integrity, data accuracy and data consistency respectively, and implement abnormal notification mechanism; Set a data integrity threshold. If each field contains more than or equal to 90% non-null values, the data integrity is qualified. If each field contains less than 90% non-null values, the data integrity fails and an exception notification is issued; Set data accuracy rules and set a value threshold for each field. If the total number of field values that do not meet the value threshold is less than or equal to 85%, the data accuracy is qualified; If the total number of field values that meet the numerical threshold is greater than 85%, the data accuracy fails and an exception notification is issued; Set data consistency check rules to check the source of the data and the data type of each field. If the source of the data matches and the data type corresponding to each field is the same, the data consistency is qualified; If the source of the data does not match or the data types corresponding to each field are different, the data consistency fails and an exception notification is issued.
5. A system for predicting the supply of agricultural products based on an online trading platform, used to implement the method for predicting the supply of agricultural products based on an online trading platform as claimed in any one of claims 1 to 4, Features: include, Data collection module, feature engineering module, prediction model module, result display module and feedback optimization module; The data collection module is used to collect historical transaction information, weather information and market trend information, clean and process the data; The feature engineering module is used to analyze the data and extract features, including sales volume, price, and seasonality; The forecasting model module is used to build a forecasting model for agricultural product supply and train the model using historical data; The result display module is used to predict future supply conditions, generate forecast results, and display the forecast results; The feedback optimization module is used to collect actual sales data, compare it with the predicted results, and continuously optimize the model based on the feedback information.
6. A computer device, Features: include, A memory for storing instructions; A processor is used to execute the instructions so that the device implements the agricultural product supply prediction method based on an online trading platform as described in any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed, the method for predicting agricultural product supply based on an online trading platform as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Agricultural product supply prediction system applied to online transaction platform
CN117408784A
Agricultural product supply chain-based agricultural product collaborative scheduling method and system
CN117495019A
Hardware fitting supply prediction method and system based on deep learning
CN116843378A
Smart agricultural trade management system
CN118071382A
Cited By
Construction method of special agricultural product price prediction model
CN119722121A
