A component cost estimation method based on long short-term memory network
By combining the tree convolutional neural network and the long short-term memory network, the component cost tree is established, which solves the problem of traditional cost estimation relying on human experience, achieves fast and accurate cost estimation of components, and improves the accuracy and efficiency of the estimation.
Patent Information
- Application Number
- CN202410926142.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional parts and components rapid cost estimating technology relies on human experience, resulting in long and inaccurate cost estimation cycles, and cannot meet the needs of manufacturing companies for rapid and accurate cost estimation.
Using a method based on long short-term memory network, combined with tree convolutional neural network (TreeCNN) and long short-term memory network (LSTM), by establishing a parts cost tree, performing transfer learning and data training, the cost of non-standard parts can be quickly estimated. Accurate estimates.
It improves the accuracy and reliability of cost estimation results, can efficiently process a large number of parts cost estimates, has higher efficiency and robustness, and with the accumulation and update of data and knowledge, the cost estimation capabilities and performance.
Smart Images

Figure CN118469618B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of workpiece cost estimation, and in particular relates to a component cost estimation method based on a long short-term memory network. Background Art
[0002] The personalized customization of non-standard parts faces fierce market competition and rising production cost pressures, and responding to external demands quickly and in real time has become a key means to increase profits and reduce costs. In this regard, the rapid cost estimation technology of non-standard parts plays an important role. It can quickly provide manufacturers with product cost estimates, allowing manufacturers to estimate costs more accurately and better meet customer needs. Therefore, manufacturing companies are increasingly in need of rapid cost estimation for personalized customization of non-standard parts.
[0003] Traditional rapid cost estimation technology mainly relies on human experience, and the cost estimation cycle is long and inaccurate. In recent years, with the rapid development of artificial intelligence and machine learning technology, a new solution has been provided for personalized rapid cost estimation in the manufacturing industry, providing manufacturing companies with more timely response speed and more accurate cost estimation solutions in the fierce market competition. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a component cost estimation method based on long short-term memory network, which solves the problem that cost estimation relies on human experience, the cost estimation cycle is long and the estimation results are inaccurate.
[0005] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: a component cost estimation method based on long short-term memory network, comprising the following steps:
[0006] S1: Establish a component cost tree based on the existing component product characteristics and the corresponding actual component cost estimation data;
[0007] S2: Based on the component cost tree, transfer learning is performed using the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN to obtain a neural network with cost estimation knowledge;
[0008] S3: training a neural network with cost estimation knowledge according to the non-standard parts data and its corresponding cost estimation data to obtain a trained neural network;
[0009] S4: Use the trained neural network to analyze non-standard parts and obtain cost estimation results for non-standard parts.
[0010] The beneficial effects of the present invention are as follows: the present invention combines the tree convolutional neural network TreeCNN with the long short-term memory network LSTM, so that the long short-term memory network LSTM can process the tree-structured component cost data, and through the knowledge training of component cost estimation knowledge transfer and the data training of specific component cost data, the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN can quickly and accurately estimate the costs of various components, thereby improving the accuracy and reliability of the cost estimation results, and can efficiently process the cost estimates of a large number of components, with higher efficiency and robustness. At the same time, with the continuous accumulation and updating of component data and knowledge, the present invention can improve the ability and performance of component cost estimation.
[0011] Further: the component cost tree includes: component cost as a primary data node, material cost as a secondary data node, processing cost as a secondary data node and additional cost as a secondary data node;
[0012] The material cost includes: the blank volume as the third-level data node, the material density as the third-level data node and the material value as the third-level data node;
[0013] The processing cost includes: special processing cost as a third-level data node and machine processing cost as a third-level data node;
[0014] The special processing costs include: the total cost of surface treatment as a fourth-level data node, the total cost of painting as a fourth-level data node, and the total cost of heat treatment as a fourth-level data node;
[0015] The total surface treatment cost includes: the surface treatment cost as a fifth-level data node and the surface treatment protection cost as a fifth-level data node;
[0016] The machining cost includes: a rough machining cost as a fourth-level data node and a fine machining cost as a fourth-level data node;
[0017] The finishing cost includes: normal finishing cost as a fifth-level data node, hole processing cost as a fifth-level data node, and difficult feature processing cost as a fifth-level data node;
[0018] The additional costs include: ST threaded hole costs as tertiary data nodes, management costs as tertiary data nodes, engraving costs as tertiary data nodes, fitter costs as tertiary data nodes and actual demand costs as tertiary data nodes.
[0019] The beneficial effect of the above further scheme is: by establishing a component cost tree, it is convenient for the subsequent long short-term memory network LSTM to perform knowledge transfer for component cost estimation, and improves the ability of the long short-term memory network LSTM to predict component cost estimation.
[0020] Further: the specific steps of S2 are as follows:
[0021] S201: According to the component cost tree, a tree convolutional neural network TreeCNN is used to capture the features between the data nodes in the component cost tree through local connection, convolution and aggregation operations;
[0022] S202: Based on the characteristics between the data nodes in the component cost tree, a long short-term memory network LSTM is used to perform transfer learning and generate predicted component cost estimation data;
[0023] S203: Calculate the error between the predicted component cost estimation data and the actual component cost estimation data, and determine whether the error is minimized. If so, complete transfer learning to obtain a neural network with cost estimation knowledge. Otherwise, adjust the parameters of the long short-term memory network LSTM and return to S202.
[0024] The beneficial effects of the above further scheme are: by processing the component cost tree through the tree convolutional neural network TreeCNN, the long short-term memory network LSTM can process the tree-structured component cost tree, which is convenient for the knowledge transfer of component cost estimation, so that the long short-term memory network LSTM has the knowledge of component cost estimation and improves the accuracy of component cost prediction.
[0025] Further: the tree convolutional neural network TreeCNN includes: an input layer, a tree convolutional layer, a pooling layer, a fully connected layer and an output layer connected in sequence;
[0026] The input layer is used to input the component cost tree;
[0027] The tree convolution layer is used to convolve each data node in the component cost tree according to the local connection to obtain a feature representation of each data node in the component cost tree;
[0028] The pooling layer is used to reduce the data dimension of the component cost tree and extract key features in the component cost tree;
[0029] The fully connected layer is used to aggregate the feature representation and key features of each data node in the component cost tree to obtain the features between each data node in the component cost tree;
[0030] The output layer is used to output the features between the data nodes in the component cost tree.
[0031] The beneficial effect of the above further scheme is: using the tree convolutional neural network TreeCNN to process the component cost tree can extract the feature representation of the tree structure data, which is convenient for the long short-term memory network LSTM to perform knowledge transfer.
[0032] Further: the specific steps of S3 are as follows:
[0033] S301: Collecting non-standard component data and corresponding cost estimation data;
[0034] S302: Using non-standard component data as data nodes and corresponding cost estimation data as actual labels of the data nodes to establish a cost tree training set;
[0035] S303: using the data nodes in the cost tree training set as inputs of a neural network with cost estimation knowledge, and performing prediction using maximum a posteriori probability estimation to obtain a predicted label of the data node;
[0036] S304: Use the negative log-likelihood loss function to calculate the error between the predicted label of the data node and the actual label of the data node, and determine whether the error is minimized. If so, complete the training of the neural network with cost estimation knowledge to obtain a trained neural network. Otherwise, update the parameters of the neural network with cost estimation knowledge and return to S303.
[0037] The beneficial effect of the above further scheme is: through the non-standard parts data and its corresponding cost estimation data, the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN is trained data-driven, so that it can quickly and accurately estimate the cost of non-standard parts based on their information.
[0038] Further: the expression of the maximum a posteriori probability estimation in S303 is as follows:
[0039]
[0040] in, For a given data set Conditional parameters The posterior distribution of is the likelihood function, are the parameters of the neural network with cost estimation knowledge, is the prior distribution of the parameter, is the predicted label of the data node, For the The predicted labels of data nodes, for the summation symbol;
[0041] The expression of the negative log-likelihood loss function in S304 is as follows:
[0042]
[0043] in, is the negative log-likelihood loss, is the number of data nodes, For the The true label of each data node, For probability.
[0044] The beneficial effect of the above further scheme is: through the maximum a posteriori probability estimation and the negative log-likelihood loss function, a judgment criterion is provided for whether the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN has completed training, ensuring that the neural network model can accurately and efficiently estimate the cost of components. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a flow chart of a component cost estimation method based on long short-term memory network;
[0046] Figure 2 A schematic diagram of the component cost tree. DETAILED DESCRIPTION
[0047] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0048] like Figure 1 As shown, in one embodiment of the present invention, the present invention provides a component cost estimation method based on a long short-term memory network, comprising the following steps:
[0049] S1: Establish a component cost tree based on the existing component product characteristics and the corresponding actual component cost estimation data;
[0050] S2: Based on the component cost tree, transfer learning is performed using the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN to obtain a neural network with cost estimation knowledge;
[0051] S3: training a neural network with cost estimation knowledge according to the non-standard parts data and its corresponding cost estimation data to obtain a trained neural network;
[0052] S4: Use the trained neural network to analyze non-standard parts and obtain cost estimation results for non-standard parts.
[0053] In S1, the schematic diagram of the component cost tree is as follows Figure 2 As shown, the component cost tree includes: component cost as a primary data node, material cost as a secondary data node, processing cost as a secondary data node, and additional cost as a secondary data node;
[0054] The material cost includes: the blank volume as the third-level data node, the material density as the third-level data node and the material value as the third-level data node;
[0055] The processing cost includes: the special processing cost as a third-level data node and the machining cost as a third-level data node;
[0056] Special processing costs include: total cost of surface treatment as a fourth-level data node, total cost of painting as a fourth-level data node, and total cost of heat treatment as a fourth-level data node;
[0057] The total surface treatment cost includes: the surface treatment cost as a fifth-level data node and the surface treatment protection cost as a fifth-level data node;
[0058] The machining cost includes: the rough machining cost as the fourth-level data node and the fine machining cost as the fourth-level data node;
[0059] The finishing cost includes: normal finishing cost as a fifth-level data node, hole processing cost as a fifth-level data node, and difficult feature processing cost as a fifth-level data node;
[0060] Additional costs include: ST threaded hole cost as a third-level data node, management cost as a third-level data node, engraving cost as a third-level data node, fitter cost as a third-level data node and actual demand cost as a third-level data node.
[0061] In one embodiment of the present invention, the actual demand cost needs to be adjusted accordingly according to the different parts. If a cost of a part does not belong to any cost in the part cost tree except the actual demand cost, the cost is attributed to the actual demand cost. The aggregate calculation expression of each data node in the part cost tree is as follows:
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070] in, is the parts cost, is the material cost, is the processing cost, For additional cost, is the blank volume, is the material density, is the material value, is the special processing cost, is the machining cost, is the total cost of surface treatment, is the total cost of painting, is the total cost of heat treatment, is the surface treatment cost, To protect the cost of surface treatment, is the surface treatment area, is the surface treatment unit price, is the rough processing cost, is the finishing cost, is the ST thread hole cost, To manage costs, For the cost of engraving, For the fitter cost, The actual demand cost.
[0071] The specific steps of S2 are as follows:
[0072] S201: According to the component cost tree, a tree convolutional neural network TreeCNN is used to capture the features between the data nodes in the component cost tree through local connection, convolution and aggregation operations;
[0073] Among them, the tree convolutional neural network TreeCNN includes: an input layer, a tree convolution layer, a pooling layer, a fully connected layer and an output layer connected in sequence;
[0074] Input layer, used to input component cost tree;
[0075] The tree convolution layer is used to convolve each data node in the component cost tree according to the local connection to obtain the feature representation of each data node in the component cost tree;
[0076] The pooling layer is used to reduce the data dimension of the component cost tree and extract key features in the component cost tree;
[0077] The fully connected layer is used to aggregate the feature representation and key features of each data node in the component cost tree to obtain the features between each data node in the component cost tree;
[0078] The output layer is used to output the features between the data nodes in the component cost tree.
[0079] In one embodiment of the present invention, the tree convolutional neural network TreeCNN obtains the feature representation of each data node in the component cost tree by selecting primary data nodes, secondary data nodes or other data nodes for local connection and convolution operation, and reduces the data dimension through pooling operation, and then captures the local and overall features of each data node in the component cost tree through aggregation operation. After multiple iterations, the tree convolutional neural network TreeCNN learns the feature representation of each data node in the component cost tree layer by layer, and generates features between each data node in the component cost tree.
[0080] S202: Based on the characteristics between the data nodes in the component cost tree, a long short-term memory network LSTM is used to perform transfer learning and generate predicted component cost estimation data;
[0081] S203: Calculate the error between the predicted component cost estimation data and the actual component cost estimation data, and determine whether the error is minimized. If so, complete transfer learning to obtain a neural network with cost estimation knowledge. Otherwise, adjust the parameters of the long short-term memory network LSTM and return to S202.
[0082] In one embodiment of the present invention, by combining the long short-term memory network LSTM with the tree convolutional neural network TreeCNN, the knowledge in the cost estimation knowledge base can be migrated to the long short-term memory network LSTM in the form of tree structured data; after multiple iterations and training, the error between the predicted cost estimation data and the actual cost estimation data is minimized by adjusting the parameters of the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN; in the process of iteration and training, the long short-term memory network LSTM gradually learns and masters the patterns and rules of cost estimation knowledge, and completes the cost estimation knowledge migration from the rule-based cost estimation system to the data-driven neural network model; the long short-term memory network LSTM can effectively process tree structured data through the tree convolutional neural network TreeCNN, thereby improving the accuracy and efficiency of the personalized customization cost estimation system for non-standard parts.
[0083] In one embodiment of the present invention, the transfer learning method of the long short-term memory network LSTM is a prior art, and its specific implementation is as follows:
[0084] A1: Use the features between the data nodes in the component cost tree in S202 as the data set of the source domain;
[0085] A2: According to the data set of the source domain, the LSTM network is trained on the source domain to obtain the LSTM network trained on the source domain. The cross entropy loss function and the stochastic gradient descent training method can be used to train the LSTM network.
[0086] A3: Migrate the LSTM network trained in the source domain to the target domain, and adjust and optimize the parameters of the LSTM network to obtain the LSTM network trained in the target domain. The adjustment and optimization can be performed using the mini-batch stochastic gradient descent method;
[0087] A4: According to the characteristics between the data nodes in the component cost tree in S202, the long short-term memory network LSTM trained on the target domain is used for processing to obtain the predicted component cost estimation data.
[0088] In one embodiment of the present invention, in S203, the mean square error, the root mean square error and the common index can be used as the error between the predicted component cost estimation data and the actual component cost estimation data, wherein the root mean square error is taken as an example. In this embodiment, the expression of the root mean square error is as follows:
[0089]
[0090] in, is the root mean square error, Estimate the number of data points in the data for predicted component costs, The actual component cost estimate data data points, The first part of the predicted component cost estimate data data points, Estimates the ordinal number of the data point in the data for the predicted component cost.
[0091] The specific steps of S3 are as follows:
[0092] S301: Collecting non-standard component data and corresponding cost estimation data, wherein the non-standard component data includes but is not limited to design parameters, material properties, manufacturing processes, and historical cost data, and collecting the historical cost estimation data of these non-standard components as a benchmark for subsequent training and verification;
[0093] S302: Using non-standard component data as data nodes and corresponding cost estimation data as actual labels of the data nodes to establish a cost tree training set;
[0094] S303: The data nodes in the cost tree training set are used as inputs of a neural network with cost estimation knowledge, and predictions are performed using maximum a posteriori probability estimation to obtain prediction labels of the data nodes, wherein the calculation expression of the maximum a posteriori probability estimation is as follows:
[0095]
[0096] in, For a given data set Conditional parameters The posterior distribution of is the likelihood function, are the parameters of the neural network with cost estimation knowledge, is the prior distribution of the parameter, is the predicted label of the data node, For the The predicted labels of data nodes, for the summation symbol;
[0097] S304: Calculate the error between the predicted label of the data node and the actual label of the data node using the negative log-likelihood loss function, and determine whether the error is minimized. If so, complete the training of the neural network with cost estimation knowledge to obtain a trained neural network. Otherwise, update the parameters of the neural network with cost estimation knowledge, and return to S303, where the expression of the negative log-likelihood loss function is as follows:
[0098]
[0099] in, is the negative log-likelihood loss, is the number of data nodes, For the The true label of each data node, For probability.
[0100] Through the above steps, we can obtain a component cost estimation model based on the LSTM transfer learning method. This model can utilize the existing cost estimation knowledge and continuously improve the accuracy of component cost estimation through neural network training and adjustment.
[0101] The beneficial effects of the present invention are as follows: the present invention combines the tree convolutional neural network TreeCNN with the long short-term memory network LSTM, so that the long short-term memory network LSTM can process the tree-structured component cost data, and through the knowledge training of component cost estimation knowledge transfer and the data training of specific component cost data, the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN can quickly and accurately estimate the costs of various components, thereby improving the accuracy and reliability of the cost estimation results, and can efficiently process the cost estimates of a large number of components, with higher efficiency and robustness. At the same time, with the continuous accumulation and updating of component data and knowledge, the present invention can improve the ability and performance of component cost estimation.
Claims
1. A component cost estimation method based on long short-term memory network, characterized in that: The following steps are involved: S1: Establish a component cost tree based on the existing component product characteristics and the corresponding actual component cost estimation data; S2: Based on the component cost tree, transfer learning is performed using the long short-term memory network LSTM combined with the tree convolutional neural network TreeCNN to obtain a neural network with cost estimation knowledge; S3: training a neural network with cost estimation knowledge according to the non-standard parts data and the corresponding actual cost estimation data to obtain a trained neural network; S4: Analyze non-standard parts using the trained neural network to obtain cost estimation results for non-standard parts; The component cost tree includes: component cost as a primary data node, material cost as a secondary data node, processing cost as a secondary data node, and additional cost as a secondary data node; The material cost includes: the blank volume as the third-level data node, the material density as the third-level data node and the material value as the third-level data node; The processing cost includes: special processing cost as a third-level data node and machine processing cost as a third-level data node; The special processing costs include: the total cost of surface treatment as a fourth-level data node, the total cost of painting as a fourth-level data node, and the total cost of heat treatment as a fourth-level data node; The total surface treatment cost includes: the surface treatment cost as a fifth-level data node and the surface treatment protection cost as a fifth-level data node; The machining cost includes: a rough machining cost as a fourth-level data node and a fine machining cost as a fourth-level data node; The finishing cost includes: normal finishing cost as a fifth-level data node, hole processing cost as a fifth-level data node, and difficult feature processing cost as a fifth-level data node; The additional costs include: ST threaded hole costs as tertiary data nodes, management costs as tertiary data nodes, engraving costs as tertiary data nodes, fitter costs as tertiary data nodes and actual demand costs as tertiary data nodes.
2. The component cost estimation method based on long short-term memory network according to claim 1 is characterized in that: The specific steps of S2 are as follows: S201: According to the component cost tree, a tree convolutional neural network TreeCNN is used to capture the features between the data nodes in the component cost tree through local connection, convolution and aggregation operations; S202: Based on the characteristics between the data nodes in the component cost tree, a long short-term memory network LSTM is used to perform transfer learning and generate predicted component cost estimation data; S203: Calculate the error between the predicted component cost estimation data and the actual component cost estimation data, and determine whether the error is minimized. If so, complete transfer learning to obtain a neural network with cost estimation knowledge. Otherwise, adjust the parameters of the long short-term memory network LSTM and return to S202.
3. The component cost estimation method based on long short-term memory network according to claim 2 is characterized in that: The tree convolutional neural network TreeCNN includes an input layer, a tree convolution layer, a pooling layer, a fully connected layer and an output layer connected in sequence; The input layer is used to input the component cost tree; The tree convolution layer is used to convolve each data node in the component cost tree according to the local connection to obtain a feature representation of each data node in the component cost tree; The pooling layer is used to reduce the data dimension of the component cost tree and extract key features in the component cost tree; The fully connected layer is used to aggregate the feature representation and key features of each data node in the component cost tree to obtain the features between each data node in the component cost tree; The output layer is used to output the features between the data nodes in the component cost tree.
4. The component cost estimation method based on long short-term memory network according to claim 1 is characterized in that: The specific steps of S3 are as follows: S301: Collecting non-standard component data and corresponding cost estimation data; S302: Using non-standard component data as data nodes and corresponding cost estimation data as actual labels of the data nodes to establish a cost tree training set; S303: using the data nodes in the cost tree training set as inputs of a neural network with cost estimation knowledge, and performing prediction using maximum a posteriori probability estimation to obtain a predicted label of the data node; S304: Use the negative log-likelihood loss function to calculate the error between the predicted label of the data node and the actual label of the data node, and determine whether the error is minimized. If so, complete the training of the neural network with cost estimation knowledge to obtain a trained neural network. Otherwise, update the parameters of the neural network with cost estimation knowledge and return to S303.
5. The component cost estimation method based on long short-term memory network according to claim 4 is characterized in that: The expression of the maximum a posteriori probability estimation in S303 is as follows: in, For a given data set Conditional parameters The posterior distribution of is the likelihood function, are the parameters of the neural network with cost estimation knowledge, is the prior distribution of the parameter, is the predicted label of the data node, For the The predicted labels of data nodes, for the summation symbol; The expression of the negative log-likelihood loss function in S304 is as follows: in, is the negative log-likelihood loss, is the number of data nodes, For the The true label of each data node, For probability.
