Product formula material management method and system based on artificial intelligence
Through artificial intelligence-based material management methods, particle swarm optimization and genetic algorithms are used to automatically predict material consumption in the baking industry, solving the problems of tedious and inaccurate data processing in traditional methods and achieving high efficiency and accuracy in material management.
Patent Information
- Application Number
- CN202411110002.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-14
AI Technical Summary
Traditional material management methods in the baking industry are inefficient and inaccurate due to cumbersome data processing and human errors, making it difficult to effectively predict future material consumption.
Adopting an artificial intelligence-based product formula material management method, by obtaining formula information, historical sales data and inventory change data of baked products, combined with particle swarm optimization and genetic algorithms, a prediction model is built to automatically predict material consumption, and based on production plan data Calculate dynamic adjustment factors to optimize material requirements.
It improves the efficiency and accuracy of data processing, can intelligently predict future material consumption, optimize material demand in real time, reduces manual intervention, and improves the flexibility and accuracy of material management.
Smart Images

Figure CN118627867B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to a product formula material management method and system based on artificial intelligence. Background Art
[0002] In recent years, artificial intelligence-based material management methods have become increasingly popular in the industry. With the help of technologies such as big data and machine learning, these methods have shown significant advantages in predicting material demand, optimizing inventory management, and improving production efficiency. Especially in the baking industry, where products are diverse, raw materials are complex, and baking process parameters are numerous, the importance of an intelligent and efficient material management strategy has become increasingly prominent.
[0003] However, in the process of processing, traditional data processing methods mostly rely on tedious manual analysis and calculation, which not only consumes a lot of time and human resources, but also makes it difficult to avoid human errors. In the baking field, the diversity of raw materials and the huge amount of data processing make the inefficiency of traditional methods a bottleneck restricting the timeliness and accuracy of material management. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a product formula material management method and system based on artificial intelligence, which can more accurately predict future material consumption.
[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0006] In a first aspect, a product formula material management method based on artificial intelligence, the method comprising:
[0007] Obtain recipe information for baked products, including raw material types, amounts, baking time and temperature, as well as historical sales data, inventory change data, and production plan data;
[0008] Analyze historical sales data and calculate key indicators for each bakery product;
[0009] Analyze historical sales data and inventory change data based on key indicators to predict future material consumption;
[0010] Calculate dynamic adjustment factors based on production plan data;
[0011] Calculate the adjusted material demand based on future material consumption and dynamic adjustment factors;
[0012] The procurement process is triggered based on the adjusted material requirements.
[0013] Furthermore, the recipe information of baked products is obtained, including the type of raw materials, dosage, baking time and temperature, as well as historical sales data, inventory change data and production plan data, including:
[0014] Set the size of the particle group. Each particle represents a raw material combination and dosage scheme. The size of the particle group represents the number of particles.
[0015] Randomly initialize the position and speed of each particle. The position represents the ratio of the raw materials, and the speed represents the direction and step size of the ratio adjustment.
[0016] For each particle, according to the raw material ratio it represents, combined with the baking time and temperature parameters, simulate and produce the baked product;
[0017] Define the evaluation function used to evaluate the quality of each particle;
[0018] According to the evaluation function, the speed and position of the particle are updated, and the steps are repeated until the preset number of iterations is reached to obtain the final global solution, which is the final raw material ratio scheme;
[0019] The final solution is combined with the existing historical sales data, inventory change data, and production plan data to obtain combined data.
[0020] Furthermore, the calculation formula of the evaluation function is:
[0021] ;
[0022] in, and is the weight coefficient; It is The weight of the raw materials, It is The amount of raw materials used, is the deviation term; It is The weight of historical sales features, It is The value of the historical sales feature; Is the production The time required to plant raw materials, Is the production Energy consumption required for each raw material; and is the weight of the production efficiency factor; Is the raw material index, used to traverse all raw material types, From 1 to Change, representing the kinds of raw materials; is the historical sales feature index, which is used to traverse all historical sales features. From 1 to Change, representing the Historical sales characteristics; is the total number of historical sales features; It is the total number of raw materials, indicating how many different raw materials are used in the product.
[0023] Furthermore, historical sales data was analyzed to calculate key indicators for each bakery product, including:
[0024] Determine the number of clusters K, randomly select K data points as the initial cluster centers, assign data points to the corresponding cluster centers to form K clusters, recalculate the centroid of each cluster, and use the centroid of the cluster as the new cluster center. Repeat the steps until the preset number of iterations is reached;
[0025] Analyze the sales characteristics of different clusters, including sales time and sales volume, to obtain clustering results;
[0026] According to the clustering results, the key indicators corresponding to each baked product are obtained.
[0027] Furthermore, key indicators include average sales volume and sales growth rate; based on key indicators, historical sales data and inventory change data are analyzed to predict future material consumption, including:
[0028] Arrange historical sales data and inventory change data in chronological order to form a time series data set;
[0029] Calculate average sales volume and sales growth rate for each bakery product;
[0030] Build a forecast model for material consumption trends based on average sales volume and sales growth rate;
[0031] Initialize the prediction model and determine the prediction model parameters;
[0032] Randomly generate a set of initial solutions of prediction model parameters as individuals of the population;
[0033] Define the fitness function used to evaluate the quality of each individual;
[0034] According to the fitness function, the corresponding individuals are determined to enter the next generation, the determined individuals are randomly paired, and some prediction model parameters of the individuals are exchanged. The steps are repeated until the preset number of iterations is reached to obtain the final prediction model parameters;
[0035] Determine the final prediction model according to the final prediction model parameters;
[0036] Based on real-time sales data and inventory data and the final forecast model, future material consumption can be predicted.
[0037] Furthermore, the calculation formula of the fitness function is:
[0038] ;
[0039] in, is the fitness value of the individual; is the number of data points used for evaluation; is the actual observed material consumption; It is the material consumption predicted using the final prediction model parameters; is the decay rate, a positive number; is the current time; It is The time of each data point; is an index variable used to traverse all data points in the data set. middle, Change from 1 to , represents the index of each data point in the dataset; is the base of natural logarithms.
[0040] Furthermore, according to the production plan data, the dynamic adjustment factors are calculated, including:
[0041] According to the production plan data, Calculate dynamic adjustment factors;
[0042] in, and is the adjustment coefficient; is the current inventory; is the target inventory level; is the average sales volume over the most recent period; is the long-term average sales volume; , and is the basic weight coefficient; is the number of unfinished production plans; is the total production plan quantity; is the number of products in the current production batch; is the maximum number of products in a production batch; is the utilization rate of the production line; is a dynamic adjustment factor.
[0043] Furthermore, based on the future material consumption and dynamic adjustment factors, the adjusted material demand is calculated, including:
[0044] Multiply the future material consumption by the dynamic adjustment factor , to obtain the adjusted material requirement.
[0045] Second, the product formula material management system based on artificial intelligence includes:
[0046] The acquisition module is used to obtain the recipe information of baked products, including the type of raw materials, dosage, baking time and temperature, as well as historical sales data, inventory change data and production plan data; analyze the historical sales data to calculate the key indicators of each baked product; analyze the historical sales data and inventory change data based on the key indicators to predict future material consumption;
[0047] The processing module is used to calculate the dynamic adjustment factor according to the production plan data; calculate the adjusted material demand according to the future material consumption and the dynamic adjustment factor; and trigger the procurement process according to the adjusted material demand.
[0048] According to a third aspect, a computing device includes:
[0049] one or more processors;
[0050] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described.
[0051] In a fourth aspect, a computer-readable storage medium stores a program, and when the program is executed by a processor, the method described is implemented.
[0052] The above scheme of the present invention includes at least the following beneficial effects.
[0053] This method greatly improves the efficiency and accuracy of data processing by acquiring and integrating recipe information, historical sales data, inventory change data, and production plan data of bakery products. By analyzing historical sales data, key sales indicators of each bakery product, such as sales trends, can be automatically identified. Based on key indicators, future material consumption can be intelligently predicted; this method can combine production plan data, dynamically calculate adjustment factors, and optimize material demand forecasts in real time, making material management more flexible and accurate; this method can process and analyze large-scale data sets, including structured and unstructured data. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a flow chart of a product formula material management method based on artificial intelligence provided by an embodiment of the present invention.
[0055] Figure 2 It is a schematic diagram of an artificial intelligence-based product formula material management system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0057] like Figure 1 As shown, an embodiment of the present invention proposes a product formula material management method based on artificial intelligence, and the method includes the following steps:
[0058] Step 11, obtaining the recipe information of the baked product, including the type of raw materials, dosage, baking time and temperature, as well as historical sales data, inventory change data and production plan data;
[0059] Step 12, analyzing historical sales data and calculating key indicators for each bakery product;
[0060] Step 13: Analyze historical sales data and inventory change data based on key indicators to predict future material consumption;
[0061] Step 14, calculating the dynamic adjustment factor according to the production plan data;
[0062] Step 15, calculating the adjusted material demand according to the future material consumption and the dynamic adjustment factor;
[0063] Step 16: trigger the procurement process based on the adjusted material demand.
[0064] In the embodiment of the present invention, step 11 ensures that all relevant data are collected centrally; the automated data collection mechanism reduces manual input errors and improves the accuracy and completeness of the data. In addition, the ability to process multiple types of data (such as recipe information, sales data, etc.) at the same time shows the diversity and inclusiveness of the method in data processing. Step 12: By analyzing historical sales data, the sales of products, including best-selling products, can be understood. Key sales indicators are automatically identified, which is more accurate and efficient than traditional manual analysis methods. Step 13: The forecasting model can capture complex patterns and trends in the data, thereby providing more accurate forecasts than traditional statistical models. Step 14: Through production planning, the method can more flexibly adjust material demand forecasts to adapt to production changes. The calculation of dynamic adjustment factors takes into account a variety of production factors, which requires the data processing system to quickly and accurately integrate and analyze multiple data sources. Step 15: Ensure that the material demand forecast is closely integrated with the production plan and market dynamics, improve the practicality and accuracy of the forecast, and can process and analyze a large amount of data in real time to quickly generate accurate material demand forecasts. Step 16: Automated procurement process triggering reduces the need for manual intervention and improves procurement efficiency and response speed.
[0065] In a preferred embodiment of the present invention, the above step 11 may include:
[0066] Step 111, setting the size of the particle group, each particle represents a raw material combination and dosage scheme, and the size of the particle group represents the number of particles;
[0067] Step 112, randomly initializing the position and speed of each particle, the position represents the ratio of the raw materials, and the speed represents the direction and step length of the ratio adjustment;
[0068] Step 113, for each particle, according to the raw material ratio represented by it, combined with baking time and temperature parameters, simulate and produce a baked product;
[0069] Step 114, defining an evaluation function for evaluating the quality of each particle;
[0070] Step 115, according to the evaluation function, update the speed and position of the particle, repeat the steps until the preset number of iterations is reached to obtain the final global solution, and the final solution is the final raw material ratio scheme;
[0071] Step 116, combining the final solution with the existing historical sales data, inventory change data and production plan data to obtain combined data.
[0072] In an embodiment of the present invention, in step 111, by setting the size of the particle swarm, the breadth and depth of the search space can be controlled. A larger particle swarm can increase the diversity of the search and help find the global optimal solution; while a smaller particle swarm can speed up the search. In step 112, the position and speed of the particles are randomly initialized to help avoid falling into the local optimal solution and increase the randomness and globality of the search. This initialization method can ensure that the search process starts from multiple different starting points and increase the probability of finding the global optimal solution. In step 113, by simulating the production of baked products, the effect of the raw material ratio can be evaluated without actually baking. This greatly reduces the experimental cost and time cost, while improving the efficiency of the raw material ratio optimization. In step 114, by evaluating the function, it can be ensured that the search process is carried out in the desired direction, and the design of the evaluation function directly affects the quality of the final raw material ratio scheme. In step 115, by continuously updating the speed and position of the particles, the optimal solution can be gradually approached. This step realizes the dynamic adjustment and optimization of the search process, which helps to find the global optimal solution in a complex search space. At the same time, by setting an appropriate number of iterations, the depth and accuracy of the search can be controlled. Step 116, combining the optimized raw material ratio scheme with the existing historical sales data, inventory change data and production plan data.
[0073] In a preferred embodiment of the present invention, the evaluation function The calculation formula is:
[0074] ;
[0075] in, and is the weight coefficient; It is The weight of the raw materials, It is The amount of raw materials used, is the deviation term; It is The weight of historical sales features, It is The value of the historical sales feature; Is the production The time required to plant raw materials, Is the production Energy consumption required for each raw material; and is the weight of the production efficiency factor; Is the raw material index, used to traverse all raw material types, From 1 to Change, representing the kinds of raw materials; is the historical sales feature index, which is used to traverse all historical sales features. From 1 to Change, representing the Historical sales characteristics; is the total number of historical sales features; It is the total number of raw materials, indicating how many different raw materials are used in the product.
[0076] In the embodiment of the present invention, the function can simultaneously process multi-dimensional data, including raw material information (type, amount, production time and energy consumption), sales data (historical sales characteristics and their weights), and production efficiency factors, etc. This multi-dimensional data processing capability makes the evaluation more comprehensive and accurate. and , and the raw material weight , Sales feature weight and production efficiency weight and , and the influence of different factors in the evaluation can be flexibly adjusted. By programming to implement this evaluation function, a large amount of data can be automatically processed and the evaluation results can be quickly given, which greatly improves the efficiency and accuracy of data processing and reduces the errors and time costs of manual calculations.
[0077] In a preferred embodiment of the present invention, the above step 12, analyzing the historical sales data and calculating the key indicators of each baked product, may include:
[0078] Step 121, determine the number of clusters K, randomly select K data points as initial cluster centers, assign data points to corresponding cluster centers to form K clusters, recalculate the centroid of each cluster, and use the centroid of the cluster as the new cluster center. Repeat the steps until the preset number of iterations is reached;
[0079] Step 122, analyzing the sales characteristics of different clusters, including sales time and sales volume, to obtain clustering results;
[0080] Step 123: Obtain key indicators corresponding to each baked product based on the clustering results.
[0081] In an embodiment of the present invention, the number of clusters K is determined by the silhouette coefficient method, and combined with the K-means clustering algorithm, the data can be automatically divided into different clusters. This automated classification greatly improves the efficiency of data processing and reduces the subjectivity and error rate of manual classification. Based on the clustering results, the key sales indicators of each baked product, such as average sales volume, peak sales period, etc., can be accurately extracted. Cluster analysis can classify similar sales data points into one category, thereby reducing information redundancy and making data analysis more efficient and centralized.
[0082] In another preferred embodiment of the present invention, the above-mentioned determination of the number of clusters K may include:
[0083] Determine an initial K value range, for example, from 2 to a certain upper limit (this upper limit can be set according to the size of the data set and business needs). Iterate and calculate the silhouette coefficient:
[0084] For each value of K in the range of K values, do the following:
[0085] Randomly select K data points as the initial cluster centers, use the K-means algorithm to assign the data points to the nearest cluster center to form K clusters, recalculate the centroid of each cluster, and use the centroid as the new cluster center. Repeat the above steps until the preset number of iterations is reached, and calculate the silhouette coefficient under the current K value. The silhouette coefficient is an indicator to measure the quality of clustering. Its value range is between -1 and 1. The larger the value, the better the clustering effect. According to the calculated silhouette coefficient, select the K value with the largest silhouette coefficient as the final number of clusters, output the final K value, and the corresponding clustering result.
[0086] In a preferred embodiment of the present invention, in the above step 13, the key indicators include average sales volume and sales growth rate; according to the key indicators, analyzing historical sales data and inventory change data to predict future material consumption may include:
[0087] Step 131, arranging the historical sales data and inventory change data in chronological order to form a time series data set;
[0088] Step 132, calculating the average sales volume and sales growth rate of each baked product;
[0089] Step 133, constructing a prediction model for material consumption trend based on the average sales volume and sales growth rate;
[0090] Step 134, initializing the prediction model and determining the prediction model parameters;
[0091] Step 135, randomly generating a set of initial solutions of prediction model parameters as individuals of the population;
[0092] Step 136, defining a fitness function for evaluating the quality of each individual;
[0093] Step 137, determining the corresponding individuals to enter the next generation according to the fitness function, randomly pairing the determined individuals, and exchanging some prediction model parameters of the individuals, repeating the steps until a preset number of iterations is reached to obtain the final prediction model parameters;
[0094] Step 138, determining the final prediction model according to the final prediction model parameters;
[0095] Step 139, predicting future material consumption based on the real-time sales data and inventory data and the final forecasting model.
[0096] In an embodiment of the present invention, by arranging the historical sales data and inventory change data in chronological order (step 131), a clear and orderly time series data set is formed. This data organization method helps to reveal the trend of data changes over time. The average sales volume and sales growth rate of each baked product are calculated (step 132). These two key indicators can directly reflect the sales status of the product and changes in market demand, and provide an important reference for predicting material consumption. The material consumption trend prediction model (step 133) constructed based on the average sales volume and sales growth rate can more accurately capture market dynamics, thereby more accurately predicting future material consumption. Through a series of optimization steps (steps 134 to 138), including initializing the prediction model, determining model parameters, and using genetic algorithms to tune parameters, the optimal prediction model is finally obtained. This method can ensure the prediction accuracy and stability of the model. Combined with real-time sales data and inventory data (step 139), the model can update the prediction results in real time to adapt to the rapid changes in the market.
[0097] In a preferred embodiment of the present invention, the calculation formula of the fitness function is:
[0098] ;
[0099] in, is the fitness value of the individual; is the number of data points used for evaluation; is the actual observed material consumption; It is the material consumption predicted using the final prediction model parameters; is the decay rate, a positive number; is the current time; It is The time of each data point; is an index variable used to traverse all data points in the data set. middle, Change from 1 to , represents the index of each data point in the dataset; is the base of natural logarithms.
[0100] In the embodiment of the present invention, the function introduces a time decay factor , making recent data points have a greater impact on the fitness value. This design is particularly important when processing time series data, because it can capture the trend of data changes over time and give higher weight to recent data, thereby more accurately reflecting the current state. The part is a standard squared error term, which is used to quantify the gap between the predicted value and the actual observed value. This error measurement method is intuitive and easy to calculate, which helps to accurately evaluate the performance of the prediction model. Through the time decay function, the fitness function assigns different weights to data at different time points. This design is very useful when dealing with time-related data because it can automatically adjust the importance of data points to adapt to changes in data over time. is an adjustable parameter that controls the speed of time decay, which allows the function to adapt to different types of data sets and time series characteristics, providing greater flexibility. This function considers all data points in the entire data set and uses the summation symbol The errors are accumulated for all data points, which ensures that the evaluation is comprehensive and not limited to a certain point in time or a certain part of the data.
[0101] In a preferred embodiment of the present invention, the above step 14, calculating the dynamic adjustment factor according to the production plan data, may include:
[0102] According to the production plan data, Calculate dynamic adjustment factors;
[0103] in, and is the adjustment coefficient; is the current inventory; is the target inventory level; is the average sales volume over the most recent period; is the long-term average sales volume; , and is the basic weight coefficient; is the number of unfinished production plans; is the total production plan quantity; is the number of products in the current production batch; is the maximum number of products in a production batch; is the utilization rate of the production line; is a dynamic adjustment factor.
[0104] In the embodiment of the present invention, the formula comprehensively considers multiple variables related to production, sales and inventory, such as current inventory, target inventory, average sales, production plan completion, production batch size and production line utilization, etc. This multi-dimensional data fusion enables the dynamic adjustment factor to more comprehensively and accurately reflect the actual situation of the production environment. , , , , ) are all adjustable, and these parameters can be adjusted according to the actual situation and changes in the market environment to obtain the most suitable dynamic adjustment factor. Since the variables involved in the formula, such as the current inventory and the average sales volume in the recent period, are real-time or recent data, the calculated dynamic adjustment factor can reflect the changes in the production environment in a timely manner. The formula dynamically adjusts the weights of inventory and sales by comparing the current inventory and the target inventory, as well as the average sales volume in the recent period and the long-term average sales volume.
[0105] In a preferred embodiment of the present invention, the above step 15, calculating the adjusted material demand according to the future material consumption and the dynamic adjustment factor, may include:
[0106] Multiply the future material consumption by the dynamic adjustment factor , to obtain the adjusted material requirement.
[0107] In the embodiment of the present invention, by dynamically adjusting the factor to correct the future material consumption, the future material demand can be predicted more accurately. This accuracy can reduce the risk of product surplus or shortage, which not only improves the efficiency of data processing, but also reduces the possibility of errors.
[0108] In another preferred embodiment of the present invention, the above step 16 may include:
[0109] Collect and analyze the adjusted material demand data, which is calculated based on future material consumption and dynamic adjustment factors; determine specific procurement requirements based on the adjusted material demand, including material types, quantities and delivery dates, and communicate with production, sales and other departments to ensure that procurement requirements match actual needs. Develop a detailed procurement plan, including procurement time, procurement method (such as open bidding, inquiry procurement, etc.), supplier selection, etc., taking into account factors such as inventory conditions, supplier delivery dates, and prices. Generate a purchase order based on the procurement plan, clarify key information such as material specifications, quantities, prices, and delivery dates. The purchase order should be reviewed and confirmed by relevant departments before it can be sent to the supplier.
[0110] like Figure 2As shown, the embodiment of the present invention also provides a product formula material management system 20 based on artificial intelligence, including:
[0111] The acquisition module 21 is used to acquire the recipe information of the baked product, including the type of raw materials, the amount, the baking time and temperature, as well as the historical sales data, the inventory change data and the production plan data; analyze the historical sales data to calculate the key indicators of each baked product; analyze the historical sales data and the inventory change data according to the key indicators to predict the future material consumption;
[0112] The processing module 22 is used to calculate the dynamic adjustment factor according to the production plan data; calculate the adjusted material demand according to the future material consumption and the dynamic adjustment factor; and trigger the procurement process according to the adjusted material demand.
[0113] It should be noted that the system is a system corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0114] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0115] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
Claims
1. A product formula material management method based on artificial intelligence, characterized in that: The method comprises the following steps: Obtain recipe information for baked products, including raw material types, amounts, baking time and temperature, as well as historical sales data, inventory change data, and production plan data; Analyze historical sales data and calculate key indicators for each bakery product; Analyze historical sales data and inventory change data based on key indicators to predict future material consumption; Calculate dynamic adjustment factors based on production plan data; Calculate the adjusted material demand based on future material consumption and dynamic adjustment factors; Trigger the procurement process based on the adjusted material requirements; Obtain recipe information for baked products, including raw material types, amounts, baking time and temperature, as well as historical sales data, inventory change data, and production plan data, including: Set the size of the particle group. Each particle represents a raw material combination and dosage scheme. The size of the particle group represents the number of particles. Randomly initialize the position and speed of each particle. The position represents the ratio of the raw materials, and the speed represents the direction and step size of the ratio adjustment. For each particle, according to the raw material ratio it represents, combined with the baking time and temperature parameters, simulate and produce the baked product; Define the evaluation function used to evaluate the quality of each particle; According to the evaluation function, the speed and position of the particle are updated, and the steps are repeated until the preset number of iterations is reached to obtain the final global solution, which is the final raw material ratio scheme; Combine the final solution with the existing historical sales data, inventory change data, and production plan data to obtain combined data; The calculation formula of the evaluation function is: ; in, is the weight coefficient; It is The weight of the raw materials, It is The amount of raw materials used, is the deviation term; It is The weight of historical sales features, It is The value of the historical sales feature; Is the production The time required to plant raw materials, Is the production Energy consumption required for each raw material; is the weight of the production efficiency factor; Is the raw material index, used to traverse all raw material types, From 1 to Change, representing the kinds of raw materials; is the historical sales feature index, which is used to traverse all historical sales features. From 1 to Change, representing the Historical sales characteristics; is the total number of historical sales features; is the total number of raw materials, indicating how many different raw materials are used in the product; Historical sales data is analyzed to calculate key metrics for each bakery product, including: Determine the number of clusters K, randomly select K data points as the initial cluster centers, assign data points to the corresponding cluster centers to form K clusters, recalculate the centroid of each cluster, and use the centroid of the cluster as the new cluster center. Repeat the steps until the preset number of iterations is reached; Analyze the sales characteristics of different clusters, including sales time and sales volume, to obtain clustering results; According to the clustering results, the key indicators corresponding to each baked product are obtained; Key indicators include average sales volume and sales growth rate; based on key indicators, historical sales data and inventory change data are analyzed to predict future material consumption, including: Arrange historical sales data and inventory change data in chronological order to form a time series data set; Calculate average sales volume and sales growth rate for each bakery product; Build a forecast model for material consumption trends based on average sales volume and sales growth rate; Initialize the prediction model and determine the prediction model parameters; Randomly generate a set of initial solutions of prediction model parameters as individuals of the population; Define the fitness function used to evaluate the quality of each individual; According to the fitness function, the corresponding individuals are determined to enter the next generation, the determined individuals are randomly paired, and some prediction model parameters of the individuals are exchanged. The steps are repeated until the preset number of iterations is reached to obtain the final prediction model parameters; Determine the final prediction model according to the final prediction model parameters; Based on real-time sales data and inventory data and the final forecast model, predict future material consumption; The calculation formula of the fitness function is: ; in, is the fitness value of the individual; is the number of data points used for evaluation; is the actual observed material consumption; It is the material consumption predicted using the final prediction model parameters; is the decay rate, a positive number; is the current time; It is The time of each data point; is an index variable used to traverse all data points in the data set. middle, Change from 1 to , represents the index of each data point in the dataset; is the base of natural logarithms; Calculate dynamic adjustment factors based on production plan data, including: According to the production plan data, Calculate dynamic adjustment factors; in, is the adjustment coefficient; is the current inventory; is the target inventory level; is the average sales volume over the most recent period; is the long-term average sales volume; is the basic weight coefficient; is the number of unfinished production plans; is the total production plan quantity; is the number of products in the current production batch; is the maximum number of products in a production batch; is the utilization rate of the production line; It is a dynamic adjustment factor. Based on the future material consumption and the dynamic adjustment factor, the adjusted material demand is calculated, including: Multiply the future material consumption by the dynamic adjustment factor , to obtain the adjusted material requirement.
2. Product formula material management system based on artificial intelligence, characterized by: Applied in the method as claimed in claim 1, comprising: The acquisition module is used to obtain the recipe information of baked products, including the type of raw materials, dosage, baking time and temperature, as well as historical sales data, inventory change data and production plan data; analyze the historical sales data to calculate the key indicators of each baked product; analyze the historical sales data and inventory change data based on the key indicators to predict future material consumption; The processing module is used to calculate the dynamic adjustment factor according to the production plan data; calculate the adjusted material demand according to the future material consumption and the dynamic adjustment factor; and trigger the procurement process according to the adjusted material demand.
3. A computing device, characterized in that: include: one or more processors; A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 1.
