Training method for production efficiency improvement model, production efficiency improvement method and device

Through the combination of genetic algorithm and neural network, a production efficiency improvement model is constructed, which solves the problem of inaccurate prediction of the change trend of factors affecting production efficiency in the existing technology, and improves the prediction accuracy and model performance of production efficiency.

CN118428708BActive Publication Date: 2024-09-24ZHONGKE YUNGU TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410884240.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-24
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The change trend prediction of factors affecting production efficiency in the existing technology is not accurate enough, resulting in low production efficiency.

Method used

The training method based on genetic algorithm and neural network is used to obtain the objects that affect workshop production efficiency, construct samples, and generate a production efficiency improvement model through evolutionary processing and neural network training to predict demand.

Benefits of technology

It improves the accuracy and precision of production efficiency prediction, prevents the model from falling into the local optimal solution, and improves the prediction performance of the production efficiency improvement model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428708B
    Figure CN118428708B
Patent Text Reader

Abstract

The present application relates to the technical field of production management, and provides a training method, a production efficiency improvement method and a device for a production efficiency improvement model. The method includes: obtaining multiple influencing objects that affect the production efficiency of a workshop; constructing corresponding multiple first samples according to multiple key factors of the influencing objects and historical demand parameters within a preset time period; selecting a first sample from multiple first samples based on a genetic algorithm, and performing evolutionary processing on the selected first sample to obtain an evolved first sample; when multiple historical factor values ​​in the evolved first sample are all in the corresponding target data interval, determining the evolved first sample as a second sample; training a preset neural network according to multiple first samples and second samples; when the preset neural network meets the training completion conditions, determining that the preset neural network training is completed, so as to obtain a production efficiency improvement model with higher prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of production management, and specifically to a training method for a production efficiency improvement model, a production efficiency improvement method, a production efficiency improvement device and a storage medium. Background Art

[0002] Improving production efficiency is an important aspect of factory workshop management, which directly affects the production and sales of enterprises and the realization of their economic benefits. Traditional mechanical factory production efficiency prediction is based on experience or professional knowledge, and collects information through expert discussions and questionnaires, so as to subjectively judge and predict the changing trends of factors affecting the production efficiency of the workshop. It also predicts the changing trends of factors affecting production efficiency through analysis of market trends, output changes, technological progress and other factors, thereby improving production efficiency.

[0003] However, in the prior art, the factors affecting production efficiency are complex and diverse. For example, differences in material inventory and equipment capacity may affect the production efficiency of the workshop. Moreover, for a certain factor affecting production efficiency, there are also many factors that affect the factor. For example, material inventory will be affected by market trends, policy changes, competitive situations and other factors. Some important factors among these factors may be non-quantitative, which can easily lead to fluctuations in material inventory and thus affect production efficiency. If the changing trend of the factors affecting production efficiency is predicted by the above method, the time cost is high and the prediction is not accurate enough, resulting in low workshop production efficiency. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a training method for a production efficiency improvement model, a production efficiency improvement method, a production efficiency improvement device and a storage medium, so as to solve the problem of low production efficiency in the prior art due to inaccurate prediction of the changing trend of factors affecting production efficiency.

[0005] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a training method for a production efficiency improvement model, comprising:

[0006] Obtain multiple influencing objects that affect workshop production efficiency;

[0007] For any impact object, construct multiple first samples corresponding to the impact object according to multiple key factors of the impact object and historical demand parameters within a preset time period;

[0008] Selecting a first sample from the plurality of first samples based on a genetic algorithm, and performing evolutionary processing on the selected first sample to obtain an evolved first sample;

[0009] When the multiple historical factor values ​​in the first sample after the evolution processing are all within the corresponding target data interval, the first sample after the evolution processing is determined as the second sample;

[0010] For each sample in the plurality of first samples and second samples, inputting the historical factor value of each key factor in the sample into a preset neural network, so that the preset neural network outputs the historical demand parameter in each sample, so as to train the preset neural network;

[0011] When the preset neural network meets the training completion condition, it is determined that the preset neural network training is completed to obtain a production efficiency improvement model.

[0012] In an embodiment of the present application, for any influencing object, multiple first samples corresponding to the influencing object are constructed according to the key factors of the influencing object and the historical demand parameters within a preset time period, including: when the influencing object is the material inventory of materials required in a workshop, determining the inventory key factors affecting the material inventory; constructing multiple first samples corresponding to the material inventory according to the inventory key factors and the historical demand inventory corresponding to each material required in the workshop on each historical date within a preset time period; wherein each first sample corresponding to the material inventory includes a historical date, the historical factor value of each inventory key factor corresponding to any material on any historical date, and the historical demand inventory of any material on any historical date.

[0013] In an embodiment of the present application, when the influencing object is the material inventory of materials required in the workshop, determining the inventory key factors affecting the material inventory includes: when the influencing object is the material inventory of materials required in the workshop, obtaining the historical demand inventory corresponding to each material required in the workshop at each historical date within a preset time period, and a plurality of inventory influencing factors affecting the material inventory; constructing a plurality of first data groups based on the plurality of inventory influencing factors, wherein each first data group includes any historical date and the historical factor value corresponding to each inventory influencing factor at the historical date; for each first data group, preprocessing the plurality of historical factor values ​​in the first data group, and determining the preprocessed first data group as the second data group; determining the correlation between each inventory influencing factor and the historical demand inventory based on the historical demand inventory of all historical dates and all the second data groups; and determining the inventory key factors affecting the material inventory from the plurality of inventory influencing factors based on all the correlations.

[0014] In an embodiment of the present application, the method also includes: for each historical date included in the first sample corresponding to the influencing object, determining the parameter difference between the historical planning parameters and the historical demand parameters under the historical date; for each first sample corresponding to the influencing object, if the parameter difference corresponding to the first sample is less than a preset value, determining the first sample as a candidate sample; and determining the target data interval for each key factor based on the historical factor value of each key factor in all candidate samples.

[0015] In an embodiment of the present application, determining the target data interval for each key factor based on the historical factor value of each key factor in all candidate samples includes: for each key factor, determining the maximum historical factor value and the minimum historical factor value from all historical factor values ​​corresponding to the key factor in all candidate samples; determining the target data interval for each key factor based on the maximum historical factor value and the minimum historical factor value corresponding to each key factor.

[0016] In an embodiment of the present application, selecting a first sample from multiple first samples based on a genetic algorithm includes: for each sample in the multiple first samples, determining the fitness of the sample according to the historical demand parameters in the sample and the historical factor values ​​corresponding to each key factor; determining the maximum fitness from all the fitnesses, and determining the first sample corresponding to the maximum fitness as the selected first sample.

[0017] In an embodiment of the present application, the training method also includes: when the preset neural network does not meet the training completion conditions, determining the second sample as the first sample, and returning to the step of selecting a first sample from multiple first samples based on a genetic algorithm to perform evolutionary processing on the re-selected first sample until the preset neural network meets the training completion conditions.

[0018] A second aspect of the present application provides a method for improving production efficiency, comprising:

[0019] Obtain the current factor value of each key factor corresponding to any object to be tested in the workshop on any test date;

[0020] Obtaining a production efficiency improvement model according to the above-mentioned production efficiency improvement model training method;

[0021] The current factor value of each key factor corresponding to the object to be tested on the date to be tested is input into the production efficiency improvement model, so as to output the predicted demand of the object to be tested on the date to be tested through the production efficiency improvement model.

[0022] A third aspect of the present application provides a production efficiency improvement device, comprising:

[0023] a memory configured to store instructions; and

[0024] The processor is configured to call instructions from the memory and implement the above-mentioned training method of the production efficiency improvement model or the above-mentioned production efficiency improvement method when executing the instructions.

[0025] A fourth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned production efficiency improvement model training method, or the above-mentioned production efficiency improvement method.

[0026] Through the above technical scheme, multiple influencing objects that affect the production efficiency of the workshop are obtained; for any influencing object, multiple first samples corresponding to the influencing object are constructed according to multiple key factors of the influencing object and historical demand parameters within a preset time period; a first sample is selected from the multiple first samples based on a genetic algorithm, and the selected first sample is subjected to evolutionary processing to obtain the first sample after evolutionary processing; when multiple historical factor values ​​in the first sample after evolutionary processing are all in the corresponding target data interval, the first sample after evolutionary processing is determined as the second sample; for each sample in the multiple first samples and the second samples, the historical factor value of each key factor in the sample is input into a preset neural network, so that the preset neural network outputs the historical demand parameters in each sample to train the preset neural network; when the preset neural network meets the training completion conditions, it is determined that the preset neural network training is completed to obtain a production efficiency improvement model, which can prevent the production efficiency improvement model from falling into a local optimal solution, improve the possibility of the production efficiency improvement model finding a global optimal solution, make the prediction performance of the production efficiency improvement model better, the prediction accuracy is higher, and the subsequent production efficiency is improved.

[0027] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:

[0029] Figure 1 A schematic diagram of a process flow of a method for training a production efficiency improvement model according to an embodiment of the present application is schematically shown;

[0030] Figure 2 A schematic diagram of a process flow of a method for training a production efficiency improvement model according to another embodiment of the present application is shown;

[0031] Figure 3 A schematic diagram of establishing a genetic algorithm to optimize a BP neural network according to an embodiment of the present application is schematically shown;

[0032] Figure 4 The flowchart of the method for improving production efficiency according to the embodiment of the present application is schematically shown;

[0033] Figure 5 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0035] It should be noted that if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0036] Figure 1 The flowchart of the training method of the production efficiency improvement model according to the embodiment of the present application is schematically shown. Figure 1 As shown, in one embodiment of the present application, a training method for a production efficiency improvement model is provided, comprising the following steps:

[0037] Step 101: Acquire multiple influencing objects that affect workshop production efficiency.

[0038] When improving production efficiency, a production efficiency improvement model can be first trained. The processor can obtain multiple influencing objects that affect the production efficiency of the workshop. Among them, the influencing object refers to a factor that has an impact on the production efficiency of the workshop. For example, the influencing object may include the material inventory of materials required for workshop production, and may also include the production capacity of each equipment during workshop production.

[0039] Step 102: for any influencing object, construct a plurality of first samples corresponding to the influencing object according to a plurality of key factors of the influencing object and historical demand parameters within a preset time period.

[0040] For any influencing object, the processor may construct a plurality of first samples corresponding to the influencing object according to a plurality of key factors of the influencing object and historical demand parameters within a preset time period.

[0041] In an embodiment of the present application, for any influencing object, multiple first samples corresponding to the influencing object are constructed according to the key factors of the influencing object and the historical demand parameters within a preset time period, including: when the influencing object is the material inventory of materials required in a workshop, determining the inventory key factors affecting the material inventory; constructing multiple first samples corresponding to the material inventory according to the inventory key factors and the historical demand inventory corresponding to each material required in the workshop on each historical date within a preset time period; wherein each first sample corresponding to the material inventory includes a historical date, the historical factor value of each inventory key factor corresponding to any material on any historical date, and the historical demand inventory of any material on any historical date.

[0042] In the case where the influencing object is the material inventory of the materials required in the workshop, the processor can determine the inventory key factors that affect the material inventory. In an embodiment of the present application, in the case where the influencing object is the material inventory of the materials required in the workshop, determining the inventory key factors that affect the material inventory includes: in the case where the influencing object is the material inventory of the materials required in the workshop, obtaining the historical demand inventory corresponding to each material required in the workshop at each historical date within a preset time period, and multiple inventory influencing factors affecting the material inventory; constructing multiple first data groups based on multiple inventory influencing factors, wherein each first data group includes any historical date and the historical factor value corresponding to each inventory influencing factor at the historical date; for each first data group, preprocessing the multiple historical factor values ​​in the first data group, and determining the preprocessed first data group as the second data group; determining the correlation between each inventory influencing factor and the historical demand inventory according to the historical demand inventory of all historical dates and all second data groups; determining the inventory key factors that affect the material inventory from the multiple inventory influencing factors according to all the correlations.

[0043] When determining the key inventory factors affecting the material inventory, the processor can obtain the historical demand inventory corresponding to each material on each historical date within a preset time period, as well as multiple inventory influencing factors affecting the material inventory. Among them, the multiple inventory influencing factors may include time, material on hand, allocated production line quantity, planned inventory, safety inventory, work-in-progress quantity, production cycle, material type, and the number of suppliers supplying materials. The processor can construct multiple first data groups based on the multiple inventory influencing factors, wherein each first data group includes any historical date and the historical factor value corresponding to each influencing factor on the historical date.

[0044] For each first data group, the processor can preprocess multiple historical factor values ​​in the first data group, and determine the preprocessed first data group as the second data group. Preprocessing includes removing outliers and filling missing values. The processor can determine the key inventory factors affecting material inventory from a variety of influencing factors based on the historical demand inventory of all historical dates and all the second data groups. Specifically, the correlation between each influencing factor and the historical demand inventory can be determined based on the historical demand inventory of all historical dates and all the second data groups. Afterwards, the influencing factors with a correlation within a certain range can be selected as the key inventory factors affecting material inventory. For example, time, allocated production line quantity, material on hand, planned inventory quantity, and production cycle can be determined as key inventory factors affecting material inventory.

[0045] In the case of determining the inventory key factors affecting the material inventory, the processor may construct a plurality of first samples according to the key factors and the historical demand inventory corresponding to each material on each historical date within a preset time period. Each first sample corresponding to the material inventory includes a historical date, the historical factor value of each inventory key factor corresponding to any material on any historical date, and the historical demand inventory of any material on any historical date.

[0046] Specifically, the processor can obtain multiple historical dates and the historical factor values ​​corresponding to each inventory influencing factor on each historical date. For each historical date, the processor can remove the historical factor values ​​corresponding to non-inventory key factors from the historical factor values ​​corresponding to each inventory influencing factor on the historical date, and use the remaining historical factor values ​​of the inventory key factors and the historical demand inventory corresponding to the historical date as a training sample. After that, the processor can normalize each training sample to obtain the corresponding first sample, thereby constructing multiple first samples. It can be seen that the value of each data in each first sample refers to the corresponding value after the data normalization process.

[0047] The above scheme is how to construct multiple samples corresponding to the material inventory when the influencing object is the material inventory of the materials required in the workshop. If the influencing object is the equipment capacity during workshop production, the key capacity factors affecting the equipment capacity can be determined first, and multiple first samples corresponding to the equipment capacity can be constructed based on the key capacity factors and the historical demand capacity corresponding to each equipment required in the workshop on each historical date within a preset time period. The steps of determining multiple first samples of material inventory as described above can be used to construct multiple first samples corresponding to the equipment capacity, which will not be repeated here.

[0048] Step 103: selecting a first sample from the plurality of first samples based on a genetic algorithm, and performing evolutionary processing on the selected first sample to obtain an evolved first sample.

[0049] The processor may select a first sample from the plurality of first samples based on a genetic algorithm, and perform evolution processing on the selected first sample to obtain the evolved first sample. Specifically, at least one historical factor value in the selected first sample may be subjected to evolution processing of at least one of inheritance, mutation, and crossover.

[0050] In an embodiment of the present application, selecting a first sample from multiple first samples based on a genetic algorithm includes: for each sample in the multiple first samples, determining the fitness of the sample according to the historical demand parameters in the sample and the historical factor values ​​corresponding to each key factor; determining the maximum fitness from all the fitnesses, and determining the first sample corresponding to the maximum fitness as the selected first sample.

[0051] For each sample in the plurality of first samples, the processor may determine the fitness of the sample according to the historical demand parameters in the sample and the historical factor values ​​corresponding to each key factor. For example, if the sample is a sample corresponding to the material inventory, when determining the fitness of the sample corresponding to the material inventory, the planned material inventory under the historical date of the sample may be determined according to the historical factor values ​​corresponding to the material on hand and the historical factor values ​​corresponding to the planned inventory in the sample. Afterwards, the sum of squared errors of the sample may be determined according to the obtained planned material inventory and the historical demand inventory in the sample. Then, the inverse of the sum of squared errors of the sample may be determined as the fitness of the sample.

[0052] When the fitness of each sample in the plurality of first samples is determined, the processor may determine the maximum fitness from all the fitnesses, and may determine the first sample corresponding to the maximum fitness as the selected first sample. That is, the processor may select the sample with the maximum fitness from the plurality of first samples based on the genetic algorithm, and use the sample as the selected first sample.

[0053] Step 104: when the multiple historical factor values ​​in the first sample after the evolution processing are all within the corresponding target data interval, the first sample after the evolution processing is determined as the second sample.

[0054] The processor can determine whether multiple historical factor values ​​in the first sample after evolution processing are all in the corresponding target data interval. In the embodiment of the present application, the method also includes: for each historical date included in the first sample corresponding to the influencing object, determining the parameter difference between the historical planning parameter and the historical demand parameter under the historical date; for each first sample corresponding to the influencing object, if the parameter difference corresponding to the first sample is less than a preset value, determining the first sample as a candidate sample; determining the target data interval for each key factor according to the historical factor value of each key factor in all candidate samples.

[0055] The processor may determine the target data interval for each key factor based on all historical demand parameters and all historical planning parameters in the plurality of first samples. For example, if the first sample is a sample corresponding to material inventory, each first sample corresponds to a historical planned inventory quantity, which is determined based on the historical factor value of the material on hand and the historical factor value of the planned inventory quantity in each first sample.

[0056] For each historical date included in each first sample, the processor may determine the parameter difference between the historical planning parameter and the historical demand parameter under the historical date. For each first sample, when the parameter difference corresponding to the first sample is less than a preset value, the processor may determine the first sample as a candidate sample. The processor may determine the target data interval for each key factor according to the historical factor value of each key factor in all candidate samples.

[0057] In an embodiment of the present application, determining the target data interval for each key factor based on the historical factor value of each key factor in all candidate samples includes: for each key factor, determining the maximum historical factor value and the minimum historical factor value from all historical factor values ​​corresponding to the key factor in all candidate samples; determining the target data interval for each key factor based on the maximum historical factor value and the minimum historical factor value corresponding to each key factor.

[0058] For each key factor, the processor can determine the maximum historical factor value and the minimum historical factor value from all historical factor values ​​corresponding to the key factor in all candidate samples. The processor can determine the target data interval for each key factor based on the maximum historical factor value and the minimum historical factor value corresponding to each key factor.

[0059] When the multiple historical factor values ​​in the first sample after the evolutionary processing are all in the corresponding target data interval, the processor can determine the first sample after the evolutionary processing as the second sample. In the embodiment of the present application, the training method also includes: when any historical factor value in the first sample after the evolutionary processing is not in the corresponding target data interval, returning to the step of selecting a first sample from multiple first samples based on the genetic algorithm until the multiple historical factor values ​​in the first sample after the evolutionary processing are all in the corresponding target data interval.

[0060] When any historical factor value in the first sample after evolutionary processing is not in the corresponding target data interval, the processor can return to the step of selecting a first sample from multiple first samples based on the genetic algorithm. Specifically, a first sample corresponding to the maximum fitness among all fitness values ​​less than the maximum fitness can be selected from multiple first samples, and evolutionary processing can be performed on the re-selected first sample until multiple historical factor values ​​in the first sample after evolutionary processing are all in the corresponding target data interval, and the first sample after evolutionary processing is determined as the second sample.

[0061] Step 105: For each sample in the plurality of first samples and second samples, the historical factor value of each key factor in the sample is input into a preset neural network, so that the preset neural network outputs the historical demand parameters in each sample to train the preset neural network.

[0062] For each of the first and second samples, the processor may input the historical factor value of each key factor in the sample into a preset neural network, so that the preset neural network outputs the historical demand parameter in each sample to train the preset neural network. The preset neural network may be a BP neural network.

[0063] Step 106: When the preset neural network meets the training completion condition, determine that the preset neural network training is completed to obtain a production efficiency improvement model.

[0064] When the preset neural network meets the training completion condition, the processor can determine that the preset neural network training is completed to obtain a production efficiency improvement model. The training completion condition includes that the number of iterations reaches a preset number and / or the prediction accuracy reaches a preset accuracy.

[0065] In an embodiment of the present application, the training method also includes: when the preset neural network does not meet the training completion conditions, determining the second sample as the first sample, and returning to the step of selecting a first sample from multiple first samples based on a genetic algorithm to perform evolutionary processing on the re-selected first sample until the preset neural network meets the training completion conditions.

[0066] In the case that the preset neural network does not meet the training completion conditions, the aforementioned multiple first samples can be updated according to the second sample, and then the processor can perform the next training on the preset neural network. Specifically, the fitness of each sample in the updated multiple first samples can be used to re-determine the first sample corresponding to the maximum fitness, and the re-selected first sample can be subjected to evolutionary processing to obtain the re-determined first sample after evolutionary processing. After that, the target data interval of each key factor can be re-determined, and then the samples for the preset neural network in the next training round can be determined, so that the preset neural network completes the training for the next training round until the preset neural network meets the training completion conditions.

[0067] In the above scheme, since the material demand involves multiple parameters and there is no specific function expression between the parameters, the commonly used method is to optimize the parameters under the premise of fixed expressions. Therefore, the present application uses the genetic algorithm to optimize the parameters combined with the BP neural network model for prediction based on the genetic algorithm's ability to search quickly and independently of the problem. It can find the optimal solution without knowing the specific function expression.

[0068] like Figure 2 As shown, another training method for a production efficiency improvement model is provided. The training method is carried out by taking the material inventory as an example. The training method includes the following steps:

[0069] 1. Establishing a key factor model. Specifically, establishing a key factor model may include the following steps:

[0070] Step 1-1: First, determine the factors closely related to inventory management based on the actual situation of material inventory management. Among them, the influencing factors include safety inventory, work-in-progress, material type, time, allocated production line quantity, material on hand, planned inventory quantity and production cycle.

[0071] Step 1-2: Collect data based on influencing factors. For example, you can collect data corresponding to safety stock, work-in-progress, material type, time, allocated production line quantity, material on-hand quantity, planned inventory quantity, and production cycle.

[0072] Step 1-3: The collected data can be preprocessed, including removing outliers and / or filling missing values.

[0073] Step 1-4: Correlation analysis can be performed to establish a relationship model, that is, to determine the key factors that affect material demand. Among them, key factors may include time, allocated production line quantity, material inventory, planned inventory quantity, and production cycle.

[0074] 2. Training the BP neural network. Specifically, training the BP neural network includes the following steps:

[0075] Step 2-1: The data is accurate. The influencing factors of non-critical factors in the collected influencing factors can be eliminated to obtain a new table. Among them, the new table brings together all key indicators, and each row of data includes the influencing factors of each key factor and the corresponding demand forecast value. Among them, the demand forecast value refers to the actual demand for the corresponding type of material in each data group at the corresponding time. Afterwards, the data in the new table can be divided into input data and output data, where the input data is the variable used to predict the output data. Specifically, 80% of the data in the new table can be used as training data, and 20% of the data can be used as verification data. Next, the time, allocated production line quantity, safety inventory, work-in-progress quantity, and production cycle in each row of data can be used as the input of the BP neural network, and the demand forecast value can be used as the output of the BP neural network.

[0076] Step 2-2: Data normalization. That is, normalize the input data and output data, and convert the input data and output data into a unified range, for example, between 0 and 1. Data normalization helps improve the training speed and accuracy of the neural network.

[0077] Step 2-3: Network architecture design. Specifically, determine the structure of the BP neural network, including the number of nodes in the input layer, hidden layer, and output layer. In this solution, the number of nodes in the input layer of the BP neural network is 5, the number of nodes in the hidden layer is 1, and the number of nodes in the output layer is 1.

[0078] Step 2-4: Training model. Forward propagation: The normalized input data is calculated through each layer of the neural network to obtain the output result. Backward propagation: The error back propagation algorithm is used to adjust the weights and thresholds of the neural network according to the error between the output result and the expected result to reduce the error. Forward propagation and back propagation can be repeated to continuously adjust the weights and thresholds of the neural network until the preset training stop condition of the BP neural network is reached. The preset training stop condition can be reaching the maximum number of training rounds and / or the error is reduced to a certain level.

[0079] Step 2-5: Evaluate the model. Use the test data to evaluate the trained model, calculate the error between the predicted result and the actual result, and evaluate the accuracy and generalization ability of the model.

[0080] 3. Establish a genetic algorithm to optimize the BP neural network. Figure 3 As shown, establishing a genetic algorithm to optimize the BP neural network includes the following steps:

[0081] Step 3-1: The data is accurate, and the data interval is obtained. Specifically, according to the associated indicators corresponding to the values ​​with higher target indicator achievement rates, the corresponding data interval is obtained. Among them, the target indicator achievement rate is determined based on the difference between the planned material inventory and the actual material demand. If the difference is larger, the target indicator achievement rate is lower, and if the difference is smaller, the target indicator achievement rate is higher. Among them, the planned material inventory is the sum of the planned inventory and the current inventory.

[0082] Step 3-2: Fitness function. For each row of data, the inverse of the sum of squared errors can be taken as the fitness corresponding to the row of data. The smaller the error, the greater the fitness, and the larger the error, the smaller the fitness. This is used to screen and pass on the population with high fitness to the next generation. The error is the difference between the planned inventory of materials and the actual material demand.

[0083] Step 3-3: Crossover, mutation and genetic operations. Use the crossover, mutation and genetic operations of the genetic algorithm to evolve the population with high fitness and generate the next generation of population.

[0084] Step 3-4: Determine whether the accuracy meets the requirements, that is, determine whether each data in the next generation population generated must be in the corresponding data interval. If the accuracy meets the requirements, that is, at least one data in the next generation population generated is not in the corresponding data interval, repeat Step 3-2 and Step 3-3 until the specified accuracy or evolutionary generation is reached.

[0085] Step 3-5: The next generation group that meets the conditions can be used as the optimized value to input into the BP neural network for training to obtain the predicted value. The above scheme can directly select the data group with the best correlation for the inventory prediction result through the genetic algorithm.

[0086] Step 3-6: If the predicted value meets the current requirements, for example, the error between the predicted value and the actual value is within a certain range, the result can be output to confirm that the BP neural network optimization is completed. If the predicted value does not meet the requirements, for example, the error between the predicted value and the actual value is not within a certain range, return to Step 3-2 until the error of the BP neural network meets the requirements, and the BP neural network optimization and training is confirmed to be completed.

[0087] 4. Predict material inventory through BP neural network.

[0088] Through the above technical scheme, multiple influencing objects that affect the production efficiency of the workshop are obtained; for any influencing object, multiple first samples corresponding to the influencing object are constructed according to multiple key factors of the influencing object and historical demand parameters within a preset time period; a first sample is selected from the multiple first samples based on a genetic algorithm, and the selected first sample is subjected to evolutionary processing to obtain the first sample after evolutionary processing; when multiple historical factor values ​​in the first sample after evolutionary processing are all in the corresponding target data interval, the first sample after evolutionary processing is determined as the second sample; for each sample in the multiple first samples and the second samples, the historical factor value of each key factor in the sample is input into a preset neural network, so that the preset neural network outputs the historical demand parameters in each sample to train the preset neural network; when the preset neural network meets the training completion conditions, it is determined that the preset neural network training is completed to obtain a production efficiency improvement model, which can prevent the production efficiency improvement model from falling into a local optimal solution, improve the possibility of the production efficiency improvement model finding a global optimal solution, make the prediction performance of the production efficiency improvement model better, the prediction accuracy is higher, and the subsequent production efficiency is improved.

[0089] Figure 1 and 2 FIG. 1 is a flow chart of a method for training a production efficiency improvement model in one embodiment. It should be understood that although Figure 1 and 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 and 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0090] Figure 4 The flowchart of the method for improving production efficiency according to the embodiment of the present application is schematically shown. Figure 4 As shown, in one embodiment of the present application, a method for improving production efficiency is provided, comprising the following steps:

[0091] Step 401: Obtain the current factor value of each key factor corresponding to any object to be tested in the workshop on any test date.

[0092] Step 402: Obtain a production efficiency improvement model according to the above-mentioned production efficiency improvement model training method.

[0093] Step 403: input the current factor value of each key factor corresponding to the object to be tested on the date to be tested into the production efficiency improvement model, so as to output the predicted demand of the object to be tested on the date to be tested through the production efficiency improvement model.

[0094] Among them, the objects to be tested may include materials to be tested and equipment to be tested, etc. The processor can obtain the current factor value of each key factor corresponding to any object to be tested in the workshop on any date to be tested, and can predict the demand of the object to be tested on the date to be tested according to the production efficiency improvement model obtained by the above training method. Specifically, the processor can input the current factor value of each key factor corresponding to the object to be tested on the date to be tested into the production efficiency improvement model, so as to output the predicted demand of the object to be tested on the date to be tested through the production efficiency improvement model.

[0095] For example, when predicting the material inventory, the processor can obtain the current factor value of each key factor corresponding to any material to be tested in the workshop on any date to be tested, and can predict the inventory of the material to be tested on the date to be tested according to the production efficiency improvement model obtained by the above training method. Specifically, the processor can input the current factor value of each key factor corresponding to the material to be tested on the date to be tested into the production efficiency improvement model, so as to output the predicted demand inventory of the material to be tested on the date to be tested through the production efficiency improvement model.

[0096] Through the above technical scheme, the current factor value of each key factor corresponding to any object to be tested in the workshop on any date to be tested is obtained, and the production efficiency improvement model is obtained according to the above-mentioned training method of the production efficiency improvement model. The current factor value of each key factor corresponding to the object to be tested on the date to be tested is input into the production efficiency improvement model, so as to output the predicted demand of the object to be tested on the date to be tested through the production efficiency improvement model, so that the demand prediction for the object to be tested is more accurate, thereby improving subsequent production efficiency.

[0097] In one embodiment, a production efficiency improvement device is provided, comprising:

[0098] a memory configured to store instructions; and

[0099] The processor is configured to call instructions from the memory and implement the above-mentioned training method of the production efficiency improvement model or the above-mentioned production efficiency improvement method when executing the instructions.

[0100] In one embodiment, a storage medium is provided, on which a program is stored, and when the program is executed by a processor, the training method of the production efficiency improvement model or the production efficiency improvement method described above is implemented.

[0101] In one embodiment, a processor is provided, and the processor is used to run a program, wherein when the program is run, the training method of the production efficiency improvement model or the production efficiency improvement method described above is executed.

[0102] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected via a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data such as multiple first samples and second samples. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a training method for the above-mentioned production efficiency improvement model, or the above-mentioned production efficiency improvement method is implemented.

[0103] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0104] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining multiple influencing objects that affect the production efficiency of a workshop; for any influencing object, constructing multiple first samples corresponding to the influencing object according to multiple key factors of the influencing object and historical demand parameters within a preset time period; selecting a first sample from the multiple first samples based on a genetic algorithm, and performing evolutionary processing on the selected first sample to obtain an evolved first sample; when multiple historical factor values ​​in the evolved first sample are all in the corresponding target data interval, determining the evolved first sample as a second sample; for each sample in the multiple first samples and the second samples, inputting the historical factor value of each key factor in the sample into a preset neural network, so that the preset neural network outputs the historical demand parameters in each sample to train the preset neural network; when the preset neural network meets the training completion conditions, determining that the preset neural network training is completed to obtain a production efficiency improvement model.

[0105] In an embodiment of the present application, for any influencing object, multiple first samples corresponding to the influencing object are constructed according to the key factors of the influencing object and the historical demand parameters within a preset time period, including: when the influencing object is the material inventory of materials required in a workshop, determining the inventory key factors affecting the material inventory; constructing multiple first samples corresponding to the material inventory according to the inventory key factors and the historical demand inventory corresponding to each material required in the workshop on each historical date within a preset time period; wherein each first sample corresponding to the material inventory includes a historical date, the historical factor value of each inventory key factor corresponding to any material on any historical date, and the historical demand inventory of any material on any historical date.

[0106] In an embodiment of the present application, when the influencing object is the material inventory of materials required in the workshop, determining the inventory key factors affecting the material inventory includes: when the influencing object is the material inventory of materials required in the workshop, obtaining the historical demand inventory corresponding to each material required in the workshop at each historical date within a preset time period, and a plurality of inventory influencing factors affecting the material inventory; constructing a plurality of first data groups based on the plurality of inventory influencing factors, wherein each first data group includes any historical date and the historical factor value corresponding to each inventory influencing factor at the historical date; for each first data group, preprocessing the plurality of historical factor values ​​in the first data group, and determining the preprocessed first data group as the second data group; determining the correlation between each inventory influencing factor and the historical demand inventory based on the historical demand inventory of all historical dates and all the second data groups; and determining the inventory key factors affecting the material inventory from the plurality of inventory influencing factors based on all the correlations.

[0107] In an embodiment of the present application, the method also includes: for each historical date included in the first sample corresponding to the influencing object, determining the parameter difference between the historical planning parameters and the historical demand parameters under the historical date; for each first sample corresponding to the influencing object, if the parameter difference corresponding to the first sample is less than a preset value, determining the first sample as a candidate sample; and determining the target data interval for each key factor based on the historical factor value of each key factor in all candidate samples.

[0108] In an embodiment of the present application, determining the target data interval for each key factor based on the historical factor value of each key factor in all candidate samples includes: for each key factor, determining the maximum historical factor value and the minimum historical factor value from all historical factor values ​​corresponding to the key factor in all candidate samples; determining the target data interval for each key factor based on the maximum historical factor value and the minimum historical factor value corresponding to each key factor.

[0109] In an embodiment of the present application, selecting a first sample from multiple first samples based on a genetic algorithm includes: for each sample in the multiple first samples, determining the fitness of the sample according to the historical demand parameters in the sample and the historical factor values ​​corresponding to each key factor; determining the maximum fitness from all the fitnesses, and determining the first sample corresponding to the maximum fitness as the selected first sample.

[0110] In an embodiment of the present application, the training method also includes: when the preset neural network does not meet the training completion conditions, determining the second sample as the first sample, and returning to the step of selecting a first sample from multiple first samples based on a genetic algorithm to perform evolutionary processing on the re-selected first sample until the preset neural network meets the training completion conditions.

[0111] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of a training method for initializing a production efficiency improvement model.

[0112] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0113] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0114] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0115] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0116] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0117] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0118] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0119] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0120] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A training method for a production efficiency improvement model, It is characterized in that The training method comprises: Obtain multiple influencing objects that affect workshop production efficiency; For any impact object, construct a plurality of first samples corresponding to the impact object according to a plurality of key factors of the impact object and historical demand parameters within a preset time period; Selecting a first sample from the plurality of first samples based on a genetic algorithm, and performing evolutionary processing on the selected first sample to obtain an evolved first sample; When the multiple historical factor values ​​in the first sample after the evolution processing are all within the corresponding target data interval, determining the first sample after the evolution processing as the second sample; For each sample in the plurality of first samples and the second samples, inputting the historical factor value of each key factor in the sample into a preset neural network, so that the preset neural network outputs the historical demand parameter in each sample, so as to train the preset neural network; When the preset neural network meets the training completion condition, determining that the training of the preset neural network is completed to obtain a production efficiency improvement model; The target data interval is determined by: For each historical date included in the first sample corresponding to the impact object, determine a parameter difference between a historical planning parameter and a historical demand parameter on the historical date; For each first sample corresponding to the affected object, when a parameter difference corresponding to the first sample is less than a preset value, determining the first sample as a candidate sample; Determine the target data interval for each key factor based on the historical factor value of each key factor in all candidate samples; The step of determining the target data interval for each key factor according to the historical factor value of each key factor in all candidate samples includes: For each key factor, determine the maximum historical factor value and the minimum historical factor value from all historical factor values ​​corresponding to the key factor in all candidate samples; The target data interval for each key factor is determined according to the maximum historical factor value and the minimum historical factor value corresponding to each key factor.

2. The training method for the production efficiency improvement model according to claim 1, It is characterized in that The step of constructing, for any one of the influencing objects, a plurality of first samples corresponding to the influencing object according to the key factors of the influencing object and the historical demand parameters within a preset time period includes: When the affected object is the material inventory of materials required in the workshop, determine the key inventory factors affecting the material inventory; Constructing a plurality of first samples corresponding to the material inventory according to the inventory key factors and the historical demand inventory corresponding to each material required in the workshop on each historical date within a preset time period; Each first sample corresponding to the material inventory includes a historical date, a historical factor value of each inventory key factor corresponding to any material on any historical date, and a historical demand inventory of any material on any historical date.

3. The training method for the production efficiency improvement model according to claim 2, It is characterized in that When the affected object is the material inventory of materials required in the workshop, determining the key inventory factors affecting the material inventory includes: When the influencing object is the material inventory of materials required in the workshop, the historical demand inventory corresponding to each material required in the workshop on each historical date within a preset time period and multiple inventory influencing factors affecting the material inventory are obtained; Constructing a plurality of first data groups based on the plurality of inventory influencing factors, wherein each first data group includes any one historical date and a historical factor value corresponding to each inventory influencing factor on the historical date; For each first data group, preprocessing a plurality of historical factor values ​​in the first data group, and determining the preprocessed first data group as a second data group; Determine the correlation between each inventory influencing factor and the historical demand inventory amount based on the historical demand inventory amounts of all historical dates and all the second data groups; According to all the correlations, the key inventory factors affecting the material inventory are determined from the multiple inventory influencing factors.

4. The training method for the production efficiency improvement model according to claim 1, It is characterized in that The selecting a first sample from the plurality of first samples based on a genetic algorithm comprises: For each sample in the plurality of first samples, determining the fitness of the sample according to the historical demand parameters in the sample and the historical factor values ​​corresponding to each key factor; The maximum fitness is determined from all fitnesses, and the first sample corresponding to the maximum fitness is determined as the selected first sample.

5. The training method for the production efficiency improvement model according to claim 1, It is characterized in that The training method further comprises: In the case that the preset neural network does not meet the training completion condition, the second sample is determined as the first sample, and the process returns to the step of selecting a first sample from the multiple first samples based on the genetic algorithm to perform evolutionary processing on the re-selected first sample until the preset neural network meets the training completion condition.

6. A method for improving production efficiency, It is characterized in that The method comprises: Obtain the current factor value of each key factor corresponding to any object to be tested in the workshop on any test date; Obtaining a production efficiency improvement model according to the production efficiency improvement model training method according to any one of claims 1 to 5; The current factor value of each key factor corresponding to the object to be tested on the date to be tested is input into the production efficiency improvement model, so as to output the predicted demand of the object to be tested on the date to be tested through the production efficiency improvement model.

7. A production efficiency improvement device, It is characterized in that The device comprises: a memory configured to store instructions; and A processor is configured to call the instructions from the memory and to implement the training method for the production efficiency improvement model according to any one of claims 1 to 5, or the production efficiency improvement method according to claim 6 when executing the instructions.

8. A machine-readable storage medium, It is characterized in that The machine-readable storage medium stores instructions for causing a machine to execute the method for training a production efficiency improvement model according to any one of claims 1 to 5, or the method for improving production efficiency according to claim 6.

Citation Information

Patent Citations

  • Intelligent optimization method for operation process of oil pumping unit

    CN104680257A

  • Inventory prediction method based on improved BP neural network

    CN108520380A

  • Supply chain inventory management method and device, storage medium and processor

    CN111667207A

  • Traffic equipment residual life prediction method and device

    CN112446157A

  • Soil testing and formulated fertilization method based on deep learning and weighting type multi-factor evaluation

    CN113435707A