Part process planning model generation method and device and part process planning method

By constructing a directed reference adjacency graph and a graph encoder-decoder structure, a part process planning model is generated, which solves the problems of inaccurate process planning results and lack of flexibility in the existing technology, and achieves more flexibility and accuracy. Process planning results.

CN118585784APending Publication Date: 2024-09-03HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410724292.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing part process planning model generation methods generate process planning results that are inaccurate, lack flexibility, and ignore part datum information.

Method used

Construct a directed benchmark adjacency graph containing part manufacturing feature information and processing benchmark information, generate node embedding vectors through a graph encoder, and input them into a multi-layer perceptron for aggregation, and then generate process steps through a graph decoder with an attention mechanism Tag sequences are trained to obtain the part process planning model.

Benefits of technology

It achieves flexibility and accuracy when processing new types of parts, can freely combine and generate process step sequences, and improves the accuracy and efficiency of process planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585784A
    Figure CN118585784A
Patent Text Reader

Abstract

The invention provides a part process planning model generation method and device and a part process planning method, and belongs to the technical field of process planning, and the method comprises the steps: constructing a directed reference adjacency graph containing part manufacturing feature information and machining reference information; generating a node embedding vector of each node in the directed reference adjacency graph based on a graph encoder; feeding the node embedding vector to a multi-layer perceptron based on a graph encoder for aggregation to obtain a graph embedding vector; inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step tag sequence; and performing back propagation based on a loss function value determined by the process step label sequence to train a graph encoder and a graph decoder to obtain a part process planning model. According to the part process planning model obtained through training of the graph encoder and the graph decoder, the problem that a process planning result generated by an existing part process planning model generation method is inaccurate can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of process planning, and in particular to a method and device for generating a part process planning model, and a part process planning method. Background Art

[0002] Process planning is the bridge between design and production. The technical requirements of part manufacturing features and the relationship between features determine the process resources and process of part processing, which has an important impact on part process planning. Manufacturing feature information determines the technical requirements of the processing process and is an important information carrier for part manufacturing. Therefore, it is necessary to plan the process route according to the processing features.

[0003] At present, the main methods for generating feature process routes are node classification models or multi-classification models. The main process of the node classification model is as follows: nodes are used to represent the roughness, processing accuracy, and size information of manufacturing features, edges are used to describe their positional dependencies, and node classification tasks are used to obtain process route labels for each manufacturing feature of the part. The main process of the multi-classification model is as follows: first, B-rep data with precise topological and geometric features of the part is extracted from the part CAD model, and a graph neural network is used to model and process it to obtain a fixed vector representing the part information, and then the part CAD model classification is obtained through a multi-layer perceptron, and then the process route information of similar parts can be obtained.

[0004] The above-mentioned method for generating feature process routes requires pre-setting typical process route labels for parts or part manufacturing features. After being processed by the neural network, each part or part manufacturing feature corresponds to a process route label. Therefore, the generated process route is a fixed sequence of process steps, and the process step sequence cannot be freely combined. It is not flexible when processing new parts, and the generated results are inaccurate. Moreover, these two methods ignore the part reference information, which is not conducive to generating accurate process route results. In summary, the process planning results generated by the existing part process planning model generation method are inaccurate. Summary of the invention

[0005] In view of this, it is necessary to provide a part process planning model generation method, device and part process planning method to solve the technical problem that the process planning results generated by the existing part process planning model generation method are inaccurate.

[0006] In order to solve the above problems, on the one hand, the present invention provides a method for generating a part process planning model, comprising: Construct a directed datum adjacency graph containing part manufacturing feature information and processing datum information; Generate a node embedding vector for each node in the directed reference adjacency graph based on a graph encoder; Based on the graph encoder, the node embedding vector is fed into a multi-layer perceptron for aggregation to obtain a graph embedding vector; Inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; Back propagation is performed based on the loss function value determined based on the process step label sequence to train the graph encoder and the graph decoder to obtain a part process planning model.

[0007] In a possible implementation, back propagation is performed based on the loss function value determined based on the process step label sequence to obtain a part process planning model, including: Obtaining a process step corresponding to a part process specification, and binding the process step to a preset label value to obtain a process step bound to the preset label value; Calculating a loss function value based on the process step label sequence and the process steps bound with the preset label values; Back propagation is performed based on the loss function value to obtain a part process planning model.

[0008] In a possible implementation, based on the process step label sequence and the process step bound with the preset label value, calculating the loss function value includes: Based on the process step label sequence and the process steps bound with the preset label values, calculating the cross entropy loss of each process step; The cross entropy loss of each process step is summed to obtain the loss function value.

[0009] In a possible implementation, a directed datum adjacency graph including part manufacturing feature information and processing datum information is constructed, including: Obtaining a node feature vector for representing part manufacturing feature information and a reference matrix for representing processing reference information of each part manufacturing feature; Based on the node feature vectors and the reference matrix, the part is constructed as a directed reference adjacency graph.

[0010] In a possible implementation, feeding the node embedding vector into a multi-layer perceptron for aggregation based on the graph encoder to obtain a graph embedding vector includes: Determining a node neighborhood vector of each node in the directed reference adjacency graph based on a graph encoder and using an aggregation function; Based on the node neighborhood vector and node feature vector of each node, the node embedding vector of each node is obtained.

[0011] In a possible implementation, the aggregation function is used to aggregate the forward nodes and the backward nodes in the directed reference adjacency graph respectively to obtain the node neighborhood vector of each node.

[0012] In a possible implementation, the aggregation function is any one of a mean aggregation function, an LSTM aggregation function, and a pooling aggregation function.

[0013] On the other hand, the present invention also provides a part process planning method, comprising: Constructing a directed datum adjacency graph to be planned that includes part manufacturing feature information and processing datum information; Inputting the directed reference adjacency graph to be planned into a part process planning model to obtain a process planning result of the corresponding part; The part process planning model is obtained based on any of the above-mentioned part process planning model generation methods.

[0014] On the other hand, the present invention also provides a device for generating a part process planning model, comprising: A construction module, used for constructing a directed datum adjacency graph including part manufacturing feature information and processing datum information; A first vector generation module, configured to generate a node embedding vector of each node in the directed reference adjacency graph based on a graph encoder; A second vector generation module is used to feed the node embedding vector into a multi-layer perceptron for aggregation based on the graph encoder to obtain a graph embedding vector; A decoding module, used for inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; The model generation module is used to perform back propagation based on the loss function value determined based on the process step label sequence to train the graph encoder and the graph decoder to obtain a part process planning model.

[0015] On the other hand, the present invention also provides an electronic device, including a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps of the part process planning model generation method as described in any one of the above, or the steps of the above-mentioned part process planning method.

[0016] The beneficial effect of adopting the above-mentioned implementation method is: the part process planning model generation method, device and part process planning method provided by the present invention generate node embedding vectors of each node in the directed reference adjacency graph through a graph encoder, and then feed the node embedding vectors to a multilayer perceptron for aggregation, and decode them through a graph decoder to obtain a process step label sequence. The process step label sequence obtained in this way does not require pre-setting of typical process route labels of parts or part manufacturing features, so that the part process planning model finally trained can realize free combination to generate a process step sequence, has flexibility when processing new parts, and can obtain more flexible and accurate process planning results, thereby solving the technical problem of inaccurate process planning results generated by existing part process planning model generation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 A flowchart of an embodiment of a method for generating a part process planning model provided by the present invention; Figure 2 A flowchart of another embodiment of the method for generating a part process planning model provided by the present invention; Figure 3 A flowchart of an embodiment of a part process planning method provided by the present invention; Figure 4 A principle block diagram of an embodiment of a device for generating a part process planning model provided by the present invention; Figure 5 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0020] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more than two.

[0021] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or equipment comprising a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or equipment.

[0022] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0023] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0024] The present invention provides a method and device for generating a part process planning model and a part process planning method, which are respectively described below.

[0025] like Figure 1 As shown, the present invention provides a method for generating a part process planning model, which comprises: S101, constructing a directed datum adjacency graph including part manufacturing feature information and processing datum information; S102, generating a node embedding vector for each node in the directed reference adjacency graph based on a graph encoder; S103, feeding the node embedding vector into a multi-layer perceptron for aggregation based on the graph encoder to obtain a graph embedding vector; S104, inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; S105. Back-propagation is performed based on the loss function value determined based on the process step label sequence to train the graph encoder and the graph decoder to obtain a part process planning model.

[0026] It can be understood that the present invention provides a method for generating a process route using an encoder-decoder structure, so that different process step sequences can be generated according to different characteristics of parts, thereby obtaining a more flexible and accurate process planning result.

[0027] The operating system of the model training environment selected in this embodiment is Windows 11, developed using the Tensorflow1.8.0 deep learning framework and python 3.7 environment, and trained and tested on a workstation equipped with an Intel Core i9-13900KS CPU and NVIDIAGeForce RTX4090 GPU. In this embodiment, the initial learning rate is set to 0.001, and the ADAM optimizer training model is used. Specifically, this embodiment uses average aggregation to embed nodes; graph embedding is performed using the maximum pooling method; the decoder uses a unidirectional LSTM network, and the greedy search method is used for decoding.

[0028] In some embodiments, back propagation is performed based on the loss function value determined based on the process step label sequence to obtain a part process planning model, including: Obtaining a process step corresponding to a part process specification, and binding the process step to a preset label value to obtain a process step bound to the preset label value; Calculating a loss function value based on the process step label sequence and the process steps bound with the preset label values; Back propagation is performed based on the loss function value to obtain a part process planning model.

[0029] It is understandable that the content of each process step includes the process name (such as rough milling), the equipment used (such as X52K), and the tool used (such as cylindrical milling cutter). Each process step can correspond to a continuous integer one by one. A one-hot vector is assigned to each process step. The length of the vector is equal to the total number of process steps N. The element at the process step index is 1, and the other elements are 0.

[0030] In some embodiments, based on the process step label sequence and the process step bound with the preset label value, calculating the loss function value includes: Based on the process step label sequence and the process steps bound with the preset label values, calculating the cross entropy loss of each process step; The cross entropy loss of each process step is summed to obtain the loss function value.

[0031] It is understandable that an LSTM (Long Short-Term Memory) network, a GRU (Gated Recurrent Unit) network, or an RNN (Recurrent Neural Network) network can be used as a decoder, and the sum of the cross entropy losses of each process step can be used as the loss function value.

[0032] In some embodiments, constructing a directed datum adjacency graph including part manufacturing feature information and processing datum information includes: Obtaining a node feature vector for representing part manufacturing feature information and a reference matrix for representing processing reference information of each part manufacturing feature; Based on the node feature vectors and the reference matrix, the part is constructed as a directed reference adjacency graph.

[0033] It can be understood that the accuracy information includes dimensional tolerance and geometric tolerance. Geometric tolerance can be divided into straightness, parallelism, coaxiality, and cylindricity; when the manufacturing feature belongs to the rotation type, the inner diameter, outer diameter, and length describe the dimensional information. When the manufacturing feature belongs to the box type, the length, width, and height are used to describe the dimensional information. The above information can summarize each manufacturing feature into a feature vector with a fixed length.

[0034] In some embodiments, feeding the node embedding vector into a multi-layer perceptron for aggregation based on the graph encoder to obtain the graph embedding vector includes: Determining a node neighborhood vector of each node in the directed reference adjacency graph based on a graph encoder and using an aggregation function; Based on the node neighborhood vector and node feature vector of each node, the node embedding vector of each node is obtained.

[0035] The aggregation function is used to aggregate the forward nodes and the backward nodes in the directed reference adjacency graph respectively to obtain the node neighborhood vector of each node.

[0036] The aggregation function is any one of a mean aggregation function, an LSTM aggregation function and a pooling aggregation function.

[0037] In some embodiments, the method for process planning using a graph neural network and an encoder-decoder structure provided by the present invention includes the following steps: Step 1: During the model training phase, all parts in the parts library are processed: the size, roughness, precision and other information of the part manufacturing features are represented by node feature vectors; the processing reference information of each manufacturing feature in the part process specification is represented by a reference matrix; and the parts are constructed as a directed reference adjacency graph based on the reference matrix and feature vectors.

[0038] Step 2: During the training phase, count the process steps in all part process specifications that contain process resources and process operation information, and correspond different process steps to label values ​​one by one. The process steps bound to label values ​​can be used for subsequent calculation of loss function values.

[0039] Step 3: During the training phase, a node embedding module in the graph encoder (i.e., graph neural network) is constructed: the node neighborhood vector of each node in the directed benchmark adjacency graph is calculated through an aggregation function, and the node feature vector and node neighborhood vector of each node are input into the multi-layer perceptron to obtain the node embedding vector of each node.

[0040] Step 4: During the training phase, the graph embedding module in the graph encoder is constructed: all node embedding vectors are fed into a multi-layer perceptron and aggregated to obtain a graph embedding vector.

[0041] Step 5: In the training phase, the graph embedding vectors of all parts and all node embedding vectors are respectively input into the recurrent neural network with attention mechanism for decoding. The recurrent neural network (i.e., graph decoder) will output the process step label sequence, calculate the loss function for back propagation, train the graph encoder and graph decoder, and obtain the process planning network model based on the trained graph encoder and graph decoder.

[0042] Step 6: Process a new part (i.e., the part to be process-planned): Use eigenvectors to represent the size, roughness, precision, and other information of the part's manufacturing features; Use a datum matrix to represent the processing datum information of each manufacturing feature; Construct the part into a directed datum adjacency graph based on the datum matrix and eigenvector. Input the directed datum adjacency graph into the process planning network model to obtain the process planning result for the new part.

[0043] Furthermore, in step 1, the accuracy information includes dimensional tolerance and geometric tolerance. Geometric tolerance can be divided into straightness, parallelism, coaxiality, and cylindricity; when the manufacturing feature belongs to the rotation type, the inner diameter, outer diameter, and length describe the dimensional information. When the manufacturing feature belongs to the box type, the length, width, and height are used to describe the dimensional information. The above information can summarize each manufacturing feature into a feature vector with a fixed length.

[0044] According to the directed reference relationship between manufacturing features, the reference matrix is ​​obtained as follows:

[0045] In the formula is the reference relationship matrix between manufacturing features, n is the number of manufacturing features of the part, For the i Features and j The relationship between the features. If it is 1, it means i The first feature is j The datum when processing a feature; if it is 0, there is no datum relationship.

[0046] By connecting manufacturing feature nodes according to the datum relationship, a directed datum adjacency graph of the part can be obtained.

[0047] Further, in step 2, the content of each process step includes the process name (such as rough milling), the equipment used (such as X52K), and the tool used (such as cylindrical milling cutter). Each process step can correspond to a continuous integer one by one. A single hot vector is assigned to each process step, and the length of the vector is equal to the total number of process steps N. The element at the process step index is 1, and the other elements are 0.

[0048] Furthermore, in step 3, the mean aggregation function, LSTM aggregation function, and pooling aggregation function can be used to aggregate the information of neighbor nodes.

[0049] Furthermore, in step 4, the node embedding vectors may be aggregated using a maximum pooling aggregation function, a minimum pooling aggregation function, and an average pooling aggregation function to obtain a graph embedding vector.

[0050] Furthermore, in step 5, an LSTM network, a GRU (gated recurrent unit) network, or an RNN (recurrent neural network) network may be used as a decoder, and the sum of the cross entropy losses of each process step may be used as the loss function value.

[0051] Furthermore, in step 6, a greedy search method or a beam search method may be used to gradually decode and obtain the process step labels.

[0052] The method provided by the present invention follows the encoder-decoder structure, solves the problem that the existing process planning method based on graph neural network generates a fixed sequence of process steps, and each process planning generates a new sequence of process steps according to the part information. In addition, the model utilizes the part processing benchmark information, improves the accuracy of process planning, and can also improve the efficiency of part process planning. Experimental results show that the accuracy of this method reaches 95.28%. The effectiveness of this method in the field of process planning is verified.

[0053] In other embodiments, Figure 2 The specific implementation process is as follows: In this embodiment, a total of 329 historical processing files of machined parts were collected from manufacturing plants and laboratories to construct a data set. The types of manufacturing features in the data set include cylindrical surfaces, conical surfaces, through holes, blind holes, planes, through slots, blind slots, bosses, chamfers, fillets, threads, gears, etc. The input of the process planning model is the part manufacturing feature vector and the reference matrix, and the output is the process step sequence of the part. On the basis of summarizing the historical process data, the processing features of the parts are divided into 12 categories (such as outer cylindrical surfaces, through holes, etc.), and the processing operation labels are divided into 79 categories (including process content, equipment, tools, etc.). For example, the process steps of some processing operation labels, label 1, include rough milling top surface, X52K, cylindrical milling cutter, label 2, process steps include rough milling bottom surface, X5032, YG6 carbide end mill, label 3, process steps include chamfering, hexagonal turret lathe, 45-degree chamfering tool. The data set is randomly divided into two subsets: training and test data sets (accounting for 60% and 40% respectively). After preprocessing the data set, the processing feature process routing planning network is trained using the training data set, and is validated using the test data set.

[0054] In the training phase, this embodiment summarizes the manufacturing feature information of each part into a node feature vector, which includes feature type, size, roughness level, dimensional tolerance level and geometric tolerance level. According to the reference information between the manufacturing features of the parts, the reference adjacency graph of each part is constructed.

[0055] This embodiment uses an average aggregation function in the node embedding module to aggregate the forward nodes and backward nodes of each node in the part reference adjacency graph, taking the forward node aggregation as an example:

[0056] in, is the forward node neighborhood vector of node vj, is the node feature vector of node vj, are all the forward nodes of node vj. Input the node feature vector and the forward node neighborhood vector of each node into the multilayer perceptron, and the calculation method is as follows:

[0057] Among them, || is the concatenation operation, is the forward node neighborhood vector of node vj, and the forward node embedding vector of the node is obtained The backward node is processed in the same way to obtain the backward node embedding vector of the node , concatenate the forward node embedding vector and the backward node embedding vector of each node vj to obtain the node embedding vector of vj .

[0058] This embodiment uses the maximum pooling aggregation function in the graph embedding module, and the formula is as follows:

[0059] in, is the node embedding vector of node vi, V represents all nodes of the base adjacency graph, and G represents the graph embedding vector of the part.

[0060] In the training phase, this embodiment uses an LSTM network with an attention mechanism as a decoder. Given the graph embedding vector and the node embedding vector, the process step probability distribution of each decoding step can be estimated, and the process step label with the highest probability is selected as the output. The process planning ends when the LSTM network outputs the terminator. The cross entropy of each output process step label and the actual process step label is calculated, and the loss function value is obtained by summing them up, and the model parameters are adjusted by back propagation.

[0061] In summary, the method for generating a part process planning model provided by the present invention includes: constructing a directed reference adjacency graph containing part manufacturing feature information and processing reference information; generating node embedding vectors for each node in the directed reference adjacency graph based on a graph encoder; feeding the node embedding vectors into a multilayer perceptron for aggregation based on the graph encoder to obtain a graph embedding vector; inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; and performing back propagation based on the loss function value determined based on the process step label sequence to train the graph encoder and the graph decoder to obtain a part process planning model.

[0062] The part process planning model generation method provided by the present invention generates a node embedding vector of each node in the directed reference adjacency graph through a graph encoder, and then feeds the node embedding vector to a multilayer perceptron for aggregation, and decodes it through a graph decoder, thereby obtaining a process step label sequence. The process step label sequence obtained in this way does not require pre-setting of typical process route labels of parts or part manufacturing features, so that the part process planning model finally trained can realize free combination to generate a process step sequence, has flexibility when processing new parts, and can obtain a more flexible and accurate process planning result, thereby solving the technical problem of inaccurate process planning results generated by the existing part process planning model generation method.

[0063] like Figure 3 As shown, the present invention also provides a part process planning method, which includes: S301, constructing a directed reference adjacency graph to be planned that includes part manufacturing feature information and processing reference information; S302, inputting the directed reference adjacency graph to be planned into a part process planning model to obtain a process planning result of the corresponding part; The part process planning model is obtained based on the above-mentioned part process planning model generation method.

[0064] It is understandable that in the reasoning stage, this embodiment uses a typical part as an example and adopts a greedy search algorithm. Each step selects the local optimal working step in the current state, and finally generates a sequence of process steps, and finally generates a process route, for example, including: rough milling of the bottom surface, X52K, cylindrical milling cutter, rough milling of the side, X52K, external cylindrical milling cutter, reaming of the center hole, Z515, φ20mm reamer, drilling of small holes, Z515, φ8mm twist drill, fine milling of the bottom surface, X52K, end milling cutter. Each line represents a time unit, and the process route is decoded into a sequence of 5 process steps. Each process step includes the name of the process, the equipment used, and the tool used.

[0065] like Figure 4 As shown, the present invention also provides a part process planning model generation device 400, which includes: A construction module 401 is used to construct a directed reference adjacency graph including part manufacturing feature information and processing reference information; A first vector generation module 402, configured to generate a node embedding vector of each node in the directed reference adjacency graph based on a graph encoder; A second vector generation module 403 is used to feed the node embedding vector into a multi-layer perceptron for aggregation based on the graph encoder to obtain a graph embedding vector; A decoding module 404, configured to input the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; The model generation module 405 is used to perform back propagation based on the loss function value determined based on the process step label sequence to train the graph encoder and the graph decoder to obtain a part process planning model.

[0066] The part process planning model generation device provided in the above embodiment can implement the technical solution described in the above part process planning model generation method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above part process planning model generation method embodiment, which will not be repeated here.

[0067] like Figure 5 As shown, the present invention also provides an electronic device 500. The electronic device 500 includes a processor 501, a memory 502 and a display 503. Figure 5Only some components of the electronic device 500 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0068] In some embodiments, the memory 502 may be an internal storage unit of the electronic device 500, such as a hard disk or memory of the electronic device 500. In other embodiments, the memory 502 may also be an external storage device of the electronic device 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 500.

[0069] Furthermore, the memory 502 may include both an internal storage unit of the electronic device 500 and an external storage device. The memory 502 is used to store application software installed in the electronic device 500 and various data.

[0070] In some embodiments, the processor 501 can be a central processing unit (CPU), a microprocessor or other data processing chip, which is used to run the program code or process data stored in the memory 502, such as the part process planning model generation method or the part process planning method in the present invention.

[0071] In some embodiments, the display 503 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 503 is used to display information on the electronic device 500 and to display a visual user interface. The components 501-503 of the electronic device 500 communicate with each other via a system bus.

[0072] In some embodiments of the present invention, when the processor 501 executes the part process planning model generation program in the memory 502, the following steps may be implemented: Construct a directed datum adjacency graph containing part manufacturing feature information and processing datum information; Generate a node embedding vector for each node in the directed reference adjacency graph based on a graph encoder; Based on the graph encoder, the node embedding vector is fed into a multi-layer perceptron for aggregation to obtain a graph embedding vector; Inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; Back-propagation is performed based on the loss function value determined based on the process step label sequence to obtain a part process planning model; In some embodiments of the present invention, when the processor 501 executes the part process planning program in the memory 502, the following steps may be implemented: Constructing a directed datum adjacency graph to be planned that includes part manufacturing feature information and processing datum information; Inputting the directed reference adjacency graph to be planned into a part process planning model to obtain a process planning result of the corresponding part; The part process planning model is obtained based on the above-mentioned part process planning model generation method.

[0073] It should be understood that: when the processor 501 executes the part process planning model generation program or the part process planning program in the memory 502, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiment above.

[0074] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 500 mentioned, and the electronic device 500 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 500 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0075] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the method for generating a part process planning model provided by the above methods, the method comprising: Construct a directed datum adjacency graph containing part manufacturing feature information and processing datum information; Generate a node embedding vector for each node in the directed reference adjacency graph based on a graph encoder; Based on the graph encoder, the node embedding vector is fed into a multi-layer perceptron for aggregation to obtain a graph embedding vector; Inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; Back-propagation is performed based on the loss function value determined based on the process step label sequence to obtain a part process planning model; In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for part process planning provided by the above methods is implemented, and the method comprises: Constructing a directed datum adjacency graph to be planned that includes part manufacturing feature information and processing datum information; Inputting the directed reference adjacency graph to be planned into a part process planning model to obtain a process planning result of the corresponding part; The part process planning model is obtained based on the above-mentioned part process planning model generation method.

[0076] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0077] The above is a detailed introduction to the part process planning model generation method, device and part process planning method provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for generating a part process planning model, characterized in that: include: Construct a directed datum adjacency graph containing part manufacturing feature information and processing datum information; Generate a node embedding vector for each node in the directed reference adjacency graph based on a graph encoder; Based on the graph encoder, the node embedding vector is fed into a multi-layer perceptron for aggregation to obtain a graph embedding vector; Inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; Back propagation is performed based on the loss function value determined based on the process step label sequence to train the graph encoder and the graph decoder to obtain a part process planning model.

2. The method for generating a part process planning model according to claim 1, characterized in that: Back propagation is performed based on the loss function value determined based on the process step label sequence to obtain a part process planning model, including: Obtaining a process step corresponding to a part process specification, and binding the process step to a preset label value to obtain a process step bound to the preset label value; Calculating a loss function value based on the process step label sequence and the process steps bound with the preset label values; Back propagation is performed based on the loss function value to obtain a part process planning model.

3. The method for generating a part process planning model according to claim 2, characterized in that: Based on the process step label sequence and the process steps bound with the preset label values, calculating the loss function value includes: Based on the process step label sequence and the process steps bound with the preset label values, calculating the cross entropy loss of each process step; The cross entropy loss of each process step is summed to obtain the loss function value.

4. The method for generating a part process planning model according to claim 1, characterized in that: Construct a directed datum adjacency graph containing part manufacturing feature information and processing datum information, including: Obtaining a node feature vector for representing part manufacturing feature information and a reference matrix for representing processing reference information of each part manufacturing feature; Based on the node feature vectors and the reference matrix, the part is constructed as a directed reference adjacency graph.

5. The method for generating a part process planning model according to claim 1, characterized in that: Based on the graph encoder, the node embedding vector is fed into a multi-layer perceptron for aggregation to obtain a graph embedding vector, including: Determining a node neighborhood vector of each node in the directed reference adjacency graph based on a graph encoder and using an aggregation function; Based on the node neighborhood vector and node feature vector of each node, the node embedding vector of each node is obtained.

6. The method for generating a part process planning model according to claim 5, characterized in that: The aggregation function is used to aggregate the forward nodes and the backward nodes in the directed reference adjacency graph respectively to obtain the node neighborhood vector of each node.

7. The method for generating a part process planning model according to claim 5, characterized in that: The aggregation function is any one of a mean aggregation function, an LSTM aggregation function and a pooling aggregation function.

8. A part process planning method, characterized in that: include: Constructing a directed datum adjacency graph to be planned that includes part manufacturing feature information and processing datum information; Inputting the directed reference adjacency graph to be planned into a part process planning model to obtain a process planning result of the corresponding part; The part process planning model is obtained based on the part process planning model generation method described in any one of claims 1-7.

9. A device for generating a part process planning model, characterized in that: include: A construction module, used for constructing a directed datum adjacency graph including part manufacturing feature information and processing datum information; A first vector generation module, configured to generate a node embedding vector of each node in the directed reference adjacency graph based on a graph encoder; A second vector generation module is used to feed the node embedding vector into a multi-layer perceptron for aggregation based on the graph encoder to obtain a graph embedding vector; A decoding module, used for inputting the graph embedding vector and the node embedding vector into a graph decoder with an attention mechanism for decoding to obtain a process step label sequence; The model generation module is used to perform back propagation based on the loss function value determined based on the process step label sequence to train the graph encoder and the graph decoder to obtain a part process planning model.

10. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps of the part process planning model generation method as described in any one of claims 1 to 7, or the steps of the part process planning method as described in claim 8.

Citation Information

Cited By

  • Multi-information fusion processing feature recognition method and device based on graph neural network

    CN119646729A