A mold cost analysis method, system, device and storage medium

The mold cost analysis method that combines deep reinforcement learning and the Internet of Things solves the problems of lag, low accuracy and information islands in mold cost analysis, achieves dynamic and precise management of mold costs, and improves the market competitiveness and economic benefits of enterprises.

CN118552268BActive Publication Date: 2024-10-29RIDA INTELLIGENT MFG TECH RUGAO CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411025611.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-29
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing mold cost analysis methods have problems such as lag in cost control, low prediction accuracy, information islands and insufficient intelligence.

Method used

The deep reinforcement learning framework is combined with polynomial regression and exponential smoothing, combined with real-time data collection from the Internet of Things and digital twin models, to construct a mold cost prediction model. The cost prediction is optimized through proximal strategy optimization reinforcement learning algorithms to achieve dynamic management of mold costs.

Benefits of technology

It improves the accuracy and real-timeness of mold cost analysis, optimizes design and assembly hours, automatically analyzes purchase requisition data, optimizes procurement strategies, realizes comprehensive, dynamic and precise management of mold costs, and significantly improves the economic benefits and efficiency of enterprises. market competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552268B_ABST
    Figure CN118552268B_ABST
Patent Text Reader

Abstract

The present invention discloses a mold cost analysis method, system, equipment and storage medium, which relates to the field of cost control technology, including obtaining mold quotation information, mold quotation structure information, combining the Internet of Things real-time data collection and digital twin model to report the working hours of the mold design / assembly system, obtaining purchase request information, mold part quotation, mold processing data, and forming an initial data set; cleaning and standardizing the initial data set and saving it in a database; calculating the entire set of mold costs and profit and loss in the database through a cost prediction model. The present invention significantly improves the real-time, accuracy and intelligence level of mold cost analysis by integrating the Internet of Things real-time data collection, digital twin model and deep reinforcement learning framework, realizes dynamic optimization and fine management of cost structure, and greatly enhances the cost control ability and market competitiveness of enterprises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cost control, and in particular to a mold cost analysis method, system, equipment and storage medium. Background Art

[0002] As an important part of the modern industrial system, the mold manufacturing industry's cost control ability directly affects the company's market competitiveness and profitability. Traditional mold cost analysis methods mainly rely on manual experience, using static financial statements and simple mathematical models for cost estimation. This approach is not only time-consuming and labor-intensive, but also often lacks accuracy in complex and changing manufacturing environments. With the rapid development of information technology, especially the application of technologies such as big data, the Internet of Things, digital twins, and artificial intelligence, new solutions have been provided for mold cost analysis. These technologies can collect and process large amounts of production data in real time, and provide scientific basis for corporate decision makers by establishing more accurate cost prediction models, thereby achieving cost optimization.

[0003] The current mold cost analysis methods still have some limitations. First, most systems still rely on post-production data, that is, data is collected and analyzed after the production process is completed, which leads to delayed cost control and inability to adjust production strategies in time to cope with market changes. Second, traditional cost models often ignore the impact of dynamic factors, such as material price fluctuations, equipment maintenance costs, and uncertainty in production efficiency, which greatly reduces the accuracy and reliability of cost forecasts. Third, most existing analysis tools operate independently, data silos are serious, and information sharing between different departments is not smooth, affecting overall decision-making efficiency. Finally, although some companies have begun to try to introduce AI technology for cost forecasting, most applications are still in their infancy, lacking the integration of advanced algorithms such as deep learning and reinforcement learning, making it difficult to achieve intelligent and automated cost analysis. Summary of the invention

[0004] In view of the above existing problems, the present invention is proposed.

[0005] Therefore, the present invention provides a mold cost analysis method, system, device and storage medium to solve the problems of poor real-time performance of cost analysis, low prediction accuracy, information islands and insufficient intelligence.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a mold cost analysis method, which includes obtaining mold quotation information, mold quotation structure information, combining Internet of Things real-time data collection and digital twin models to report work hours in a mold design / assembly system, obtaining purchase request information, mold part quotations, and mold processing data to form an initial data set; cleaning and standardizing the initial data set and storing it in a database;

[0008] Using the deep reinforcement learning framework, combined with polynomial regression and exponential smoothing, a cost prediction model was constructed;

[0009] Through the cost prediction model, the cost of the entire mold in the database as well as the profit and loss situation are calculated.

[0010] As a preferred solution of the mold cost analysis method of the present invention, the specific steps of combining the real-time data collection of the Internet of Things and the digital twin model to report the working hours of the mold design / assembly system are as follows:

[0011] Install high-precision temperature sensors, pressure sensors, and displacement sensors on key equipment in the mold design and assembly workshop to collect real-time mold data;

[0012] Deploy the MQTT lightweight message queue transport protocol between devices and central servers;

[0013] Deploy edge computing nodes in the workshop to perform preliminary data cleaning and anomaly detection on real-time mold data to form standard real-time mold data;

[0014] Based on the mold cost database, use CAD / CAM software to create a three-dimensional digital model of the mold;

[0015] Using advanced simulation of finite element analysis and computational fluid dynamics, the three-dimensional digital model of the mold is simulated under actual working conditions to simulate the stress distribution, temperature changes and fluid flow, and predict the mold performance;

[0016] Integrate standard real-time mold data with the digital twin model and input real-time data into the model through the API interface;

[0017] Extract the model number, work section, type, output working hours, input time, customer order number, output value calculation output working hours × wage rate, and historical working hours and cost data of calculation date from the database as the training data set;

[0018] Select the proximal strategy optimization reinforcement learning algorithm and train the proximal strategy optimization reinforcement learning model through the training data set;

[0019] The prediction accuracy of the proximal policy optimization reinforcement learning model was evaluated using a cross-validation approach, and the model parameters were adjusted iteratively.

[0020] The design / team force reporting data is obtained through proximal strategy optimization reinforcement learning model optimization and saved in the database.

[0021] As a preferred solution of the mold cost analysis method of the present invention, the specific steps of obtaining purchase request information are as follows:

[0022] After obtaining the purchase request data through docking with the SAP system, it is parsed and marked as required. The parsed data contains the customer order number, customer material number, purchase request category, warehousing status, part number, and total number.

[0023] Calculate the unit price of the corresponding workpiece based on the parsed data, and then calculate the total price information;

[0024] Combined with the workpiece unit price and total price information in the purchase request data, the collection strategy is optimized through the proximal strategy optimization reinforcement learning model, and finally the optimized workpiece unit price and total price information are saved in the database for future use.

[0025] As a preferred solution of the mold cost analysis method of the present invention, the specific steps of combining the real-time data collection of the Internet of Things and the digital twin model to report the working hours of the mold design / assembly system are as follows:

[0026] The specific steps for obtaining the estimated data of the mold parts quotation and the mold processing data are as follows:

[0027] By connecting with the PMS system, we can obtain the customer order number, model number, order type, order nature, processing cost, material cost, management cost, tool cost, electrode cost, management cost ratio, and total cost, and finally save them in the database;

[0028] By connecting with the PMS system, we can obtain the customer order number, model number, output amount, and finally save them in the database.

[0029] As a preferred solution of the mold cost analysis method of the present invention, the initial data set is cleaned and standardized and stored in a database. The specific steps are:

[0030] Obtain mold quotation information, mold quotation structure information, mold design / assembly system work hours, purchase request information, mold part quotation, and mold processing data from multiple data sources of SAP / Xiker Cloud and PMS systems, integrate and standardize them, and store them in a dedicated mold cost analysis system database.

[0031] As a preferred solution of the mold cost analysis method of the present invention, the deep reinforcement learning framework is used to combine polynomial regression and exponential smoothing to build a cost prediction model. The cost of the entire set of molds in the database and the profit and loss situation are calculated by the cost prediction model. The specific steps are as follows:

[0032] Using the deep reinforcement learning framework, we combined polynomial regression and exponential smoothing to build a cost prediction model C p , the expression is:

[0033] ;

[0034] Among them, α is the weight coefficient of direct and indirect costs, T is the end time, C d (t) is the change of direct cost d over time t, C i (t) is the change of indirect cost i with time t, dt is the cumulative differential sign of the small increment of cost change with time, β is the weight coefficient of material cost, m is the number of material types, j is the index variable, γj is the decay rate of material j, t is time, C m (t) is the material cost C m Changes with time t;

[0035] Fusion of proximal strategy optimization algorithm and truncation function clip (r t (θ), 1- , 1+ ) to optimize the cost prediction model C p , the update rule expression of the proximal strategy optimization algorithm is:

[0036] ;

[0037] Among them, L cp is the loss function in the proximal strategy optimization algorithm, θ is the model parameter, represents the expected value about time t, r t (θ) is the strategy ratio of the model parameters, For advantage estimation, is the threshold for truncating the range;

[0038] Based on the optimized cost prediction model, the profit and loss of the entire mold is calculated by profit and loss, and the expression is:

[0039] ;

[0040] Among them, R is the quotation income and P represents the profit.

[0041] As a preferred solution of the mold cost analysis method of the present invention, the specific steps of obtaining mold quotation information are as follows:

[0042] Obtain order information including order type, order number, SAP material number, total order price, order category, and order quantity from SAP / Xike Cloud;

[0043] By obtaining the data in the order information, and then accessing the mold cost analysis system database to save the data, the database is searched when calculating the mold cost, and then the calculation is performed;

[0044] Check the business quotation data with the order number and SAP material number, including mold design fee, mold purchase fee, mold processing fee, mold assembly proofing fee, mold T0-TF fee, mold other fees, mold profit, and total price;

[0045] After obtaining the mold quotation information, it is saved in the mold cost database.

[0046] In the second aspect, the present invention provides a mold cost analysis system, including a data acquisition module, a digital twin module, a data set preprocessing module, a cost prediction modeling module and a profit and loss analysis sub-module; the data acquisition module is used to obtain mold quotation information, mold quotation structure information, purchase requisition information, mold part quotation, and mold processing data; the digital twin module is used to combine the Internet of Things real-time data acquisition and the digital twin model to report the working hours of the mold design / assembly system; the data set preprocessing module is used to clean and standardize the initial data set and save it in a database; the cost prediction modeling module is used to use a deep reinforcement learning framework, combined with polynomial regression and exponential smoothing, to construct a cost prediction model; the profit and loss analysis sub-module is used to calculate the cost of the entire set of molds and the profit and loss situation in the database through the cost prediction model.

[0047] In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the mold cost analysis method described in the first aspect of the present invention is implemented.

[0048] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the mold cost analysis method described in the first aspect of the present invention is implemented.

[0049] The beneficial effects of the present invention are as follows: the present invention obtains order information from SAP / XiKe Cloud, including key information such as order type, order number, SAP material number, etc., and saves it to the database, thereby ensuring the accuracy and real-time nature of the data and improving work efficiency; checking business quotation information and order-related expenses to ensure the accuracy of the mold cost structure; using Internet of Things sensors to collect mold data in real time, combining with digital twin models to perform advanced simulation analysis, and optimizing design and assembly hours; automatically parsing purchase request data, calculating the unit price and total price of workpieces, and optimizing procurement strategies; connecting to the PMS system to obtain mold part cost information and optimize the cost structure; constructing a cost prediction model, combining polynomial regression and exponential smoothing, optimizing model parameters, calculating mold costs and profits and losses, and realizing comprehensive, dynamic, and precise management of mold costs, helping enterprises to better control and manage costs, and bringing significant economic and social benefits to enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0051] Figure 1 This is a flow chart for obtaining mold quotation information in Example 1.

[0052] Figure 2 This is a flow chart for obtaining mold quotation structure data in Example 1.

[0053] Figure 3 This is a flow chart for obtaining the working hours of the mold design / assembly system in Example 1.

[0054] Figure 4 This is a flow chart for obtaining purchase request information in Example 1.

[0055] Figure 5 This is a flow chart for obtaining mold parts quotation in Example 1.

[0056] Figure 6 This is a flow chart for obtaining mold processing data in Example 1. DETAILED DESCRIPTION

[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0058] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0059] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0060] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, provides a mold cost analysis method, comprising the following steps:

[0061] S1. Get mold quotation information.

[0062] First, you need to obtain order information including order type, order number, SAP material number, total order price, order category, and order quantity from SAP / Xike Cloud;

[0063] Furthermore, a pre-configured API key or token is used to establish a secure connection with the SAP or Xike Cloud system for authentication and connection. According to the API documentation, a request format is constructed, and required data fields such as order type, order number, SAP material number, total order price, order category, and order quantity are specified. An HTTP GET request is sent to the specified API endpoint with the above-constructed request parameters, and a data response in JSON or XML format is received from the server to complete the acquisition of order information.

[0064] Parse the acquired order information and standardize the data. The specific steps are as follows: Use the JSON / XML parsing library to convert the response data into a Python dictionary or list structure, remove null values, invalid values, or data items with inconsistent formats, convert all numeric data into a unified numeric type, such as floating point numbers or integers, and ensure the consistency of all data field names and formats to facilitate subsequent data processing;

[0065] Save the standardized data to the mold cost analysis system database, use SQLAlchemy or ORM framework to establish a connection, construct SQL INSERT statements, insert the cleaned and standardized data into the corresponding database table, execute the INSERT statement, and check whether the data is successfully inserted. If there is an error, log it and try again;

[0066] By obtaining the data in the order information, and then accessing the mold cost analysis system database to save the data, the database will search for the data when calculating the mold cost, and then calculate it;

[0067] It should be noted that when searching the database again, it is necessary to construct an SQL SELECT statement to retrieve data related to a specific order or mold. When it is necessary to calculate the mold cost, execute the SELECT statement to obtain the required data and load the query results into memory for use by the cost calculation algorithm.

[0068] S2. Obtaining mold quotation structure information.

[0069] Furthermore, the business quotation data is checked against the order number and SAP material number to confirm the completeness of the data of this set of molds, including mold design fees, mold purchase fees, mold processing fees, mold assembly proofing fees, mold T0-TF fees, mold other fees, mold profit, and total price verification;

[0070] In order to ensure the consistency of data format, all currency units are converted into the same base unit, such as RMB, and missing values ​​are filled, such as using the mean or median as a substitute. The Z-score method is used to identify and process outliers. The formula is: ; Where x is the data point, μ is the mean, and σ is the standard deviation for outlier removal;

[0071] It should be noted that in addition to currency unit conversion, missing value filling and outlier detection, data type conversion (such as converting text numbers to numeric types) should also be considered. In addition, for the processing of missing values, in addition to filling with the mean or median, you can also consider using interpolation or prediction filling based on related variables to reduce the impact on the model's predictive ability.

[0072] Furthermore, based on historical cost data, a multivariate linear regression model is used to predict mold costs, and the mold cost structure model expression is constructed as follows:

[0073] ;

[0074] Among them, C is the cost, b is i is the regression coefficient, X i Train models for factors that affect cost (such as design complexity, material cost, etc.) and evaluate their predictive ability, using mean square error (MSE) or coefficient of determination (R2) as evaluation indicators;

[0075] It should be noted that before using the multiple linear regression model, variable screening should be performed to remove insignificant or highly collinear variables to avoid model overfitting. In addition, after the model training is completed, in addition to using MSE and R2 to evaluate the model performance, residual analysis should also be performed to check the independence of the residuals, zero mean and constant variance to ensure that the assumptions of the model are met;

[0076] Finally, use SQL statements to save the processed data into the mold cost database to ensure the integrity and accuracy of the data. Design the database table structure to ensure that each field has a clear definition and purpose, such as mold ID, design cost, procurement cost, etc., to facilitate subsequent calls and analysis;

[0077] It should be noted that when designing the database table structure, in addition to the basic cost-related fields, you should also consider adding a timestamp field to record the creation and update time of the data. This is very helpful for tracking cost change trends and version control. At the same time, considering the security and integrity of the data, appropriate permission control and backup mechanisms should be set up; when storing data, in addition to ensuring the integrity and accuracy of the data, the indexing and query efficiency of the data should also be considered. Reasonable use of indexes can significantly speed up subsequent data analysis and report generation, especially for large data sets.

[0078] S3. Combine IoT real-time data collection and digital twin models to report working hours in the mold design / assembly system.

[0079] Furthermore, high-precision temperature sensors, pressure sensors, and displacement sensors are installed on key equipment in the mold design and assembly workshops, and the sensors are ensured to cover key areas of the mold, such as the heating area, cooling area, and contact surface, to collect real-time mold data.

[0080] Deploy the MQTT lightweight message queue transmission protocol between the device and the central server to achieve low-latency, highly reliable data transmission. The publish / subscribe model of the MQTT protocol allows sensor data to be efficiently transmitted to the central data processing center;

[0081] Deploy edge computing nodes in the workshop to perform preliminary data cleaning and anomaly detection on real-time mold data to form standard real-time mold data;

[0082] Based on the mold cost database, use CAD / CAM software to create a three-dimensional digital model of the mold. The model should contain all the key components and process parameters of the mold to accurately reflect the performance of the actual mold;

[0083] Using advanced simulation of finite element analysis and computational fluid dynamics, the three-dimensional digital model of the mold is simulated under actual working conditions to simulate the stress distribution, temperature changes and fluid flow, and predict the mold performance and life;

[0084] It should be noted that when using finite element analysis and computational fluid dynamics for simulation, the boundary conditions and initial conditions need to be described in detail, which is crucial to the prediction results;

[0085] Integrate standard real-time mold data with the digital twin model, input real-time data into the model through the API interface, and achieve real-time synchronization between the physical entity and the virtual model, thereby providing real-time feedback and predictive analysis;

[0086] Extract the model number, work section, type, output working hours, input time, customer order number, output value calculation (output working hours × wage rate), and historical working hours and cost data of the calculation date from the database as the training data set;

[0087] Select the proximal strategy optimization reinforcement learning algorithm and train the proximal strategy optimization reinforcement learning model through the training data set;

[0088] Use cross-validation to evaluate the prediction accuracy of the proximal policy optimization reinforcement learning model, and iteratively adjust model parameters to optimize prediction accuracy and improve the accuracy of the model in predicting work hours.

[0089] Preferably, when optimizing the reinforcement learning model for the proximal strategy of the evaluation model, not only the prediction accuracy should be considered, but also the generalization ability and robustness of the model;

[0090] Through the proximal strategy optimization reinforcement learning model, the design / assembly force report data is optimized to predict the future mold assembly time requirements, provide decision support for production scheduling and cost control, and save it in the database for continuous monitoring and improvement of the efficiency of the mold assembly process;

[0091] It should be noted that by real-time monitoring of the temperature, pressure and displacement of key areas of the mold, accurate data collection is ensured; the MQTT protocol is used to efficiently transmit data to the central processing center, and the initial data processing of the edge computing node forms a rapid response mechanism, which effectively improves data quality and processing speed. With the help of CAD / CAM software to build a three-dimensional digital model and finite element analysis, computational fluid dynamics simulation technology, it can not only predict the performance and life of the mold, but also provide real-time feedback and predictive analysis of the mold status through integration with real-time data, greatly enhancing the accuracy and predictability of decision-making. In addition, through the training and optimization of the proximal strategy optimization reinforcement learning algorithm, the system can accurately predict future work hours based on historical work hours and cost data, providing strong support for production scheduling and cost control, while also promoting the continuous optimization and efficiency improvement of the mold assembly process.

[0092] S4. Obtain purchase request information.

[0093] Furthermore, the system is connected to the SAP system and uses enterprise-level identity authentication mechanisms, such as OAuth 2.0 (this mechanism is not only used for authentication, but also for authorization, ensuring that only authorized systems and users can access sensitive data in the SAP system). A secure connection is established with the SAP system, and after obtaining the purchase request data, it is parsed and marked as required. The parsed data contains customer order number, customer material number, purchase request category, warehousing status, part number, total number, etc., and a request is initiated to the SAP system API endpoint;

[0094] It should be noted that after parsing the data, ensure that the marked data field names are consistent with the naming conventions used internally in the system to avoid confusion in subsequent processing; for example, if the system uses customerOrderID as the field name for the customer order number, then the same naming should be used during the parsing process;

[0095] Calculate the unit price of the corresponding workpiece based on the parsed data, and then calculate the total price information;

[0096] Furthermore, the unit price and total price information of the workpiece in the purchase request data are combined, and the acquisition strategy is optimized through the proximal strategy optimization reinforcement learning model. Finally, the optimized unit price and total price information of the workpiece are saved in the database for later analysis and reporting.

[0097] Preferably, the Proximal Policy Optimization (PPO) algorithm is used, with the unit price and total price information of the workpiece in the purchase request data as input features, and the model is trained through historical data. The PPO algorithm aims to minimize the loss function through policy iteration, thereby optimizing the decision-making strategy of the model. The loss function can be defined as:

[0098] ;

[0099] Among them, rθ is the strategy ratio, A is the advantage function, B is the behavior strategy, is the clipping threshold;

[0100] K-fold cross validation was used to evaluate the prediction accuracy of the model, and model optimization was performed by adjusting hyperparameters (such as learning rate, batch size, clipping threshold, etc.) to improve prediction accuracy;

[0101] Preferably, when using k-fold cross-validation for model evaluation, it is important to ensure that the partitioning of the dataset does not introduce bias, for example, ensuring the continuity or randomness of the training and test sets in time series, depending on the characteristics of the data. In addition, hyperparameter tuning should follow a systematic approach such as grid search or random search to find the best parameter combination;

[0102] It should be noted that before saving the optimized workpiece unit price and total price information to the database, a data quality check should be performed to ensure the accuracy and consistency of the data. In addition, data archiving should follow good data governance practices, including but not limited to data lifecycle management, data backup and recovery strategies, and data security measures;

[0103] It should also be noted that through the above steps, the automated processing, cost calculation, price optimization and database archiving of purchase request data are realized, which greatly improves the efficiency and accuracy of supply chain management. The application of the proximal strategy optimization reinforcement learning model enables the system to dynamically adjust the pricing strategy according to market changes, thereby enhancing the company's market competitiveness. At the same time, the real-time update and storage of data provides a solid data foundation for subsequent decision-making analysis, and promotes the effective allocation of enterprise resources and cost control.

[0104] S5. Obtain estimated data for mold parts quotation and mold processing data.

[0105] Furthermore, by using the OAuth 2.0 authentication mechanism and connecting with the PMS system, the customer order number, model number, order type, order nature, processing cost, material cost, management cost, tool cost, electrode cost, management cost ratio, and total cost are obtained and finally saved in the database. At the same time, it is necessary to compare the quotations of different suppliers to determine the best procurement plan;

[0106] By connecting with the PMS system, we can obtain the customer order number, mold number, output amount, and the mold processing time, processing fee, labor cost, equipment cost, etc. obtained from the actual processing flow within the enterprise, and finally save them in the database;

[0107] Preferably, the content of the PMS system includes production management, order management, electrode management, shipment management, tool magazine management, etc., which provides a data source for the mold cost analysis system. The data of the PMS system comes from processing data and data from front-end business. The basic data of the workpiece is confirmed by comparing the actual work report on site with the estimated working hours, including working hours, processing cycle, tool cost, etc. Then, the PMS system will calculate and compare the above data to obtain data such as workpiece single piece and provide it to the mold cost analysis system;

[0108] It should be noted that by connecting with the PMS system and using the OAuth 2.0 authentication mechanism, it is possible to efficiently and securely obtain mold parts quotation estimate data and mold processing data, including customer order number, mold number, various cost data, processing time, fees, labor costs and equipment costs, etc. After being standardized, these data are saved in the mold cost database for cost analysis, supplier quotation comparison and procurement decision-making. The PMS system integrates production management, order management and other data to provide a rich and accurate data source for the mold cost analysis system, ensuring the accuracy of cost analysis and the scientific nature of decision-making.

[0109] S6. Use the deep reinforcement learning framework, combined with polynomial regression and exponential smoothing, to build a cost prediction model. Through the cost prediction model, calculate the cost of the entire set of molds in the database as well as the profit and loss situation.

[0110] Furthermore, mold quotation data, mold quotation structure data, mold design / assembly system work hours, purchase request data, mold part quotation, and mold processing data are obtained from multiple data sources of SAP / Xike Cloud and PMS systems, integrated and standardized, and stored in a dedicated mold cost analysis system database;

[0111] The cost prediction model is constructed by combining polynomial regression and exponential smoothing, and the expression is:

[0112] ;

[0113] Among them, C p is the total cost of predicting p, α is the weight coefficient of direct and indirect costs, T is the end time, C d (t) is the change of direct cost d over time t, C i (t) is the change of indirect cost i with time t, dt is the cumulative differential sign of the small increment of cost change with time, β is the weight coefficient of material cost, m is the number of material types, j is the index variable, γj is the decay rate of material j, t is time, C m (t) is the material cost C m Changes with time t;

[0114] Preferably, polynomial regression can handle complex nonlinear relationships, while exponential smoothing can quickly adapt to short-term fluctuations in data. The combination of the two can provide a more comprehensive model that can capture both long-term trends and short-term changes; polynomial regression may be sensitive to outliers, while exponential smoothing, due to its weighted nature, can mitigate the impact of outliers and improve the robustness of the overall model; combining the two methods can improve the accuracy of predictions, especially when there are both long-term trends and short-term fluctuations in the data; the flexibility of polynomial regression combined with the real-time nature of exponential smoothing can create a prediction model that can handle historical data and respond quickly to new information;

[0115] Fusion of proximal strategy optimization algorithm and truncation function clip (r t (θ), 1- , 1+ ) to optimize the cost prediction model, the proximal strategy optimization algorithm update rule expression is:

[0116] ;

[0117] Among them, L cp is the loss function in the proximal strategy optimization algorithm, θ is the model parameter, represents the expected value about time t, r t (θ) is the strategy ratio of the model parameters, For advantage estimation, is the threshold for truncating the range;

[0118] Preferably, the "clip" function avoids large jumps that may occur during the strategy update process by limiting the range of rewards or action probability ratios, which helps prevent the strategy from suddenly deviating from the optimal path and maintain the stability of the training process; by limiting the step size of the strategy update, PPO can effectively prevent the strategy from overreacting to a single experience sample, reduce the risk of overfitting, and enable the strategy to perform well in a more diverse environment; by reasonably controlling the amplitude of the strategy update, the PPO algorithm can converge to the optimal strategy faster, especially in the learning process in a complex environment. This control is crucial to improving learning efficiency; limiting the update amplitude can not only avoid drastic fluctuations in the strategy, but also help the strategy The PPO algorithm introduces the "clip" function to reduce the problem of high sensitivity to hyperparameters, making the algorithm more robust and reducing the difficulty of parameter adjustment. By limiting the amplitude of policy updates, the PPO algorithm encourages policies to perform well in different environments, rather than just excelling on training data, which enhances the generalization ability of policies. In summary, the fusion of the PPO algorithm and the truncation function "clip" significantly improves the stability and efficiency of the training process, accelerates the convergence speed, and improves the performance and generalization ability of the final policy by limiting the amplitude of policy updates. It is an important and effective technology in modern reinforcement learning.

[0119] Based on the optimized cost prediction model, the profit and loss of the entire mold is calculated by profit and loss, and the expression is:

[0120] ;

[0121] Among them, R is the quotation income and P represents the profit;

[0122] It should be noted that by integrating multiple data sources, building a standardized mold cost database, combining polynomial regression and exponential smoothing to optimize cost prediction, and using the PPO algorithm and truncation function to enhance model training stability and generalization ability, we can achieve intelligent and precise prediction of mold costs and profits and losses, greatly improve enterprise cost management and decision-making efficiency, and promote the intelligent transformation of the manufacturing industry.

[0123] This embodiment also provides a mold cost analysis system, including: a data acquisition module, a digital twin module, a data set preprocessing module, a cost prediction modeling module and a profit and loss analysis submodule; the data acquisition module is used to obtain mold quotation information, mold quotation structure information, purchase request information, mold part quotation, and mold processing data; the digital twin module is used to combine the real-time data acquisition of the Internet of Things and the digital twin model to report the working hours of the mold design / assembly system; the data set preprocessing module is used to clean and standardize the initial data set and save it in a database; the cost prediction modeling module is used to use a deep reinforcement learning framework, combined with polynomial regression and exponential smoothing, to construct a cost prediction model; the profit and loss analysis submodule is used to calculate the cost of the entire set of molds and the profit and loss situation in the database through the cost prediction model.

[0124] This embodiment also provides a computer device, which is suitable for the mold cost analysis method, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the mold cost analysis method proposed in the above embodiment.

[0125] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0126] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the mold cost analysis method proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0127] In summary, the present invention realizes the precise prediction and dynamic optimization of mold costs by automatically integrating multi-source data such as SAP / XiKe Cloud and PMS system, supplemented by cutting-edge technologies such as real-time monitoring of the Internet of Things, digital twins, and proximal strategy optimization. The core of the solution lies in automated data acquisition and processing, high-standard data cleaning, mold performance prediction, intelligent prediction of working hours, accurate cost calculation, and cost prediction and profit and loss analysis driven by deep reinforcement learning. This method significantly improves the efficiency and accuracy of cost analysis, enhances the decision-making power and market adaptability of enterprises, especially through the integration of polynomial regression, exponential smoothing and PPO algorithms, which enhances the robustness and generalization of the model, creates significant economic benefits for enterprises, leads the transformation of manufacturing industry to intelligent and efficient, solves the bottleneck of traditional cost control, and has great theoretical value and broad application prospects.

[0128] Example 2, referring to Table 1, is the second example of the present invention. To further verify the advancement of the present invention, experimental simulation data of the mold cost analysis method is provided.

[0129] A typical precision mold manufacturing company was selected as the research object. The company produces about 1,000 sets of various molds each year and divides them into five categories: mold A, mold B, mold C, mold D and mold E as the experimental objects of this experiment. It involves multiple industries such as automobiles, home appliances, and medical care. Before the implementation of the present invention, the company mainly relied on traditional manual experience for cost estimation, which had large errors and uncertainties.

[0130] First, we collected quotation information, quotation structure information, purchase request information, parts quotation and processing data of all mold projects in the past year, totaling more than 900 records. These data were imported into the newly developed mold cost analysis system. The system automatically identified and classified the data, laying the foundation for subsequent analysis.

[0131] Next, high-precision temperature sensors, pressure sensors, and displacement sensors were installed on key equipment in the mold design and assembly workshops to continuously collect real-time mold data. The MQTT lightweight message queue transmission protocol was used to ensure real-time data transmission to the central server. At the same time, edge computing nodes were deployed for preliminary data cleaning and anomaly detection to improve data quality.

[0132] Secondly, while collecting data, CAD / CAM software is used to create a three-dimensional digital model of the mold. Finite element analysis and advanced simulation of computational fluid dynamics are combined to simulate the performance of the mold under actual working conditions. Real-time data is input into the model through the API interface to realize the digital twin of the mold.

[0133] Furthermore, the system adopts a proximal strategy to optimize the reinforcement learning algorithm and conducts model training based on historical working hours and cost data to optimize mold design / assembly reporting hours, reduce manual intervention, and improve efficiency.

[0134] Finally, the cost and profit and loss of the entire mold were calculated using the model and compared with traditional methods.

[0135] The details are shown in Table 1 below:

[0136] Table 1 Experimental record table

[0137]

[0138] Through the comparative analysis of the above table data, we can clearly see the significant improvements brought about by the content of the present invention. In terms of mold cost estimation, the average error rate of the traditional method is 11.7%, while after adopting the method of the present invention, the average error rate is reduced to 2.2%. This means that through the mold cost analysis method of the present invention, the accuracy of cost estimation has increased by about 4.3 times; in terms of profitability, since the cost estimation is more accurate, the company can set prices more reasonably, thereby improving the overall profitability level. For example, mold A may be priced too high under the traditional method due to overestimation of costs, resulting in a decline in competitiveness; under the method of the present invention, the pricing is closer to market acceptance, which not only guarantees profit margins but also enhances market competitiveness.

[0139] The mold cost analysis method and system of the present invention also effectively reduce the risk of project losses due to inaccurate cost estimation, and the profitability of all mold projects has been improved, without any losses due to cost estimation errors; by combining advanced technologies such as real-time data collection of the Internet of Things, digital twin models, and deep reinforcement learning, the accuracy of mold cost estimation has been significantly improved, which has brought obvious economic benefits and market competitiveness to the enterprise, fully demonstrating its innovation and practicality.

[0140] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A mold cost analysis method, characterized in that: include, Obtain mold quotation information and mold quotation structure information, combine IoT real-time data collection and digital twin models to report work hours in the mold design / assembly system, obtain purchase request information, mold part quotation, mold processing data, and form an initial data set; Cleaning and standardizing the initial data set and storing it in a database; Using the deep reinforcement learning framework, combined with polynomial regression and exponential smoothing, a cost prediction model was constructed; Calculate the cost and profit and loss of the entire mold set in the database through the cost prediction model; The deep reinforcement learning framework is combined with polynomial regression and exponential smoothing to build a cost prediction model. The cost of the entire mold set in the database and the profit and loss situation are calculated by the cost prediction model. The specific steps are as follows: Using the deep reinforcement learning framework, we combined polynomial regression and exponential smoothing to build a cost prediction model C p , the expression is: ; Among them, α is the weight coefficient of direct and indirect costs, T is the end time, C d (t) is the change of direct cost d over time t, C i (t) is the change of indirect cost i with time t, dt is the cumulative differential sign of the small increment of cost change with time, β is the weight coefficient of material cost, m is the number of material types, j is the index variable, γj is the decay rate of material j, t is time, C m (t) is the material cost C m Changes with time t; Fusion of proximal strategy optimization algorithm and truncation function clip (r t (θ), 1- , 1+ ) to optimize the cost prediction model C p , the update rule expression of the proximal strategy optimization algorithm is: ; Among them, L cp is the loss function in the proximal strategy optimization algorithm, θ is the model parameter, represents the expected value about time t, r t (θ) is the strategy ratio of the model parameters, For advantage estimation, is the threshold for truncating the range; Based on the optimized cost prediction model, the profit and loss of the entire mold is calculated by profit and loss, and the expression is: ; Among them, R is the quotation income and P represents the profit.

2. The mold cost analysis method according to claim 1, characterized in that: The specific steps of combining IoT real-time data collection and digital twin model to report working hours for mold design / assembly system are as follows: Install high-precision temperature sensors, pressure sensors, and displacement sensors on key equipment in the mold design and assembly workshop to collect real-time mold data; Deploy the MQTT lightweight message queue transport protocol between devices and central servers; Deploy edge computing nodes in the workshop to perform preliminary data cleaning and anomaly detection on real-time mold data to form standard real-time mold data; Based on the mold cost database, use CAD / CAM software to create a three-dimensional digital model of the mold; Using advanced simulation of finite element analysis and computational fluid dynamics, the three-dimensional digital model of the mold is simulated under actual working conditions to simulate the stress distribution, temperature changes and fluid flow, and predict the mold performance; Integrate standard real-time mold data with the digital twin model and input real-time data into the model through the API interface; Extract the model number, work section, type, output working hours, input time, customer order number, output value calculation output working hours × wage rate, and historical working hours and cost data of calculation date from the database as the training data set; Select the proximal strategy optimization reinforcement learning algorithm and train the proximal strategy optimization reinforcement learning model through the training data set; The prediction accuracy of the proximal policy optimization reinforcement learning model was evaluated using a cross-validation approach, and the model parameters were adjusted iteratively. The design / team force reporting data is obtained through proximal strategy optimization reinforcement learning model optimization and saved in the database.

3. The mold cost analysis method according to claim 2, characterized in that: The specific steps for obtaining purchase requisition information are as follows: After obtaining the purchase request data through docking with the SAP system, it is parsed and marked as required. The parsed data contains the customer order number, customer material number, purchase request category, warehousing status, part number, and total number. Calculate the unit price of the corresponding workpiece based on the parsed data, and then calculate the total price information; Combined with the workpiece unit price and total price information in the purchase request data, the collection strategy is optimized through the proximal strategy optimization reinforcement learning model, and finally the optimized workpiece unit price and total price information are saved in the database for future use.

4. The mold cost analysis method according to claim 3, characterized in that: The specific steps for obtaining the estimated data of the mold parts quotation and the mold processing data are as follows: By connecting with the PMS system, we can obtain the customer order number, model number, order type, order nature, processing cost, material cost, management cost, tool cost, electrode cost, management cost ratio, and total cost, and finally save them in the database; By connecting with the PMS system, we can obtain the customer order number, model number, output amount, and finally save them in the database.

5. The mold cost analysis method according to claim 4, characterized in that: The initial data set is cleaned and standardized and stored in the database. The specific steps are as follows: Obtain mold quotation information, mold quotation structure information, mold design / assembly system work hours, purchase request information, mold part quotation, and mold processing data from multiple data sources of SAP / Xiker Cloud and PMS systems, integrate and standardize them, and store them in a dedicated mold cost analysis system database.

6. The mold cost analysis method according to claim 5, characterized in that: The specific steps of obtaining mold quotation information and mold quotation information are as follows: Obtain order information including order type, order number, SAP material number, total order price, order category, and order quantity from SAP / Xike Cloud; By obtaining the data in the order information, and then accessing the mold cost analysis system database to save the data, the database is searched when calculating the mold cost, and then the calculation is performed; Check the business quotation data with the order number and SAP material number, including mold design fee, mold purchase fee, mold processing fee, mold assembly proofing fee, mold T0-TF fee, mold other fees, mold profit, and total price; After obtaining the mold quotation information, it is saved in the mold cost database.

7. A mold cost analysis system, based on the mold cost analysis method according to any one of claims 1 to 6, characterized in that: Including data acquisition module, digital twin module, data set preprocessing module, cost prediction modeling module and profit and loss analysis submodule; The data acquisition module is used to obtain mold quotation information, mold quotation structure information, purchase request information, mold parts quotation, and mold processing data; The digital twin module is used to combine the real-time data collection of the Internet of Things and the digital twin model to report the working hours of the mold design / assembly system; The data set preprocessing module is used to clean and standardize the initial data set and store it in a database; The cost prediction modeling module is used to construct a cost prediction model by using a deep reinforcement learning framework combined with polynomial regression and exponential smoothing; The profit and loss analysis submodule is used to calculate the cost and profit and loss of the entire mold set in the database through a cost prediction model.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the mold cost analysis method described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the mold cost analysis method described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Internet of vehicles edge computing unloading multi-objective decision-making method based on digital twinning

    CN116782296A

  • Intelligent auxiliary bid evaluation method and system

    CN117787569A