Manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning
By adopting knowledge mining and self-supervised learning methods in the aviation manufacturing industry, building a manufacturing process knowledge base and using a dual-channel attention mechanism, the problems of information overload and insufficient acquisition of deep vector space information are solved, and a highly accurate manufacturing process is achieved Sequence recommendation improves the generalization ability and efficiency of the model.
Patent Information
- Application Number
- CN202411056391.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-02
AI Technical Summary
The existing technology has information overload problems in process design in aviation manufacturing, high computational complexity and low efficiency, insufficient acquisition of deep vector space information, and sequence matching algorithms cannot effectively learn the distribution of data, especially in data with small sample sizes. Sequence matching cannot be performed effectively.
Using the manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning, the part features and manufacturing process sequences are read through CATIA secondary development and XPath, and the manufacturing process knowledge base is constructed using the Prefixspan sequence mode mining algorithm, and combined with dual-channel attention and The self-supervised learning of deep structured semantic models are recommended for recommendation training, part features and frequent manufacturing process sequence vectors are obtained, and similarity calculations and sorting are recommended.
It improves the knowledge base construction efficiency and model learning ability, enhances the attention to the extraction of deep data features and implicit information, and realizes highly accurate manufacturing process sequence recommendation under skewed distribution data.
Smart Images

Figure CN118885668A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of manufacturing process design, and in particular to a manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning. Background Art
[0002] Due to the continuous development of the aviation manufacturing industry, a high degree of informatization and automation has been achieved in the product design and manufacturing links of the entire process. Process design is a key link to ensure product quality and production efficiency in the modern aviation manufacturing industry. At the same time, with the continuous advancement of aviation technology, the types and complexity of parts are increasing, and traditional process design relying on the experience of process engineers cannot solve the "information overload" phenomenon. Knowledge-driven process design, as a new design model in process design, can effectively solve the "information overload" phenomenon and improve the intelligence of process design. It has gradually emerged in the aviation manufacturing industry.
[0003] At present, some studies have systematized and structured discrete process information by organizing and summarizing existing process data to form a shared and reusable knowledge base, thereby improving the efficiency and quality of process designers and ensuring the consistency and stability of process design. However, the computational complexity is high and the efficiency is low in the process of building the knowledge base; some studies only focus on extracting new shallow features of parts and do not conduct in-depth research on the acquisition of important information in deep vector space; some studies do not take into account the skewed distribution of data when recommending sequences, which makes it impossible for the sequence matching algorithm to learn the distribution of all data well, and it is impossible to effectively perform sequence matching for data with a small sample size. Summary of the invention
[0004] Purpose of the invention: The present invention proposes a manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning to achieve highly accurate manufacturing process sequence recommendation.
[0005] Technical solution: The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning described in the present invention comprises the following steps:
[0006] (1) Based on the part instance model information and related XML file information, the instance information is read through CATIA secondary development and XPath, and the part features and manufacturing process sequences of the instance model and related XML files are collected to build the initial manufacturing data set;
[0007] (2) Based on the Prefixspan sequence pattern mining algorithm, rule mining is performed to obtain frequent manufacturing process sequences and build a manufacturing process knowledge base;
[0008] (3) Based on the constructed manufacturing process knowledge base, a deep structured semantic model based on dual-channel attention and self-supervised learning is used as a learner to perform recommendation training on manufacturing process sequences and construct a manufacturing process sequence recommendation model;
[0009] (4) Obtaining updated part feature vectors and frequent manufacturing process sequence vectors based on the manufacturing process sequence recommendation model;
[0010] (5) Calculate the similarity between the part feature vector and the frequent manufacturing process sequence vector, sort the frequent manufacturing process sequences by priority according to the similarity value, and then recommend them.
[0011] Furthermore, the part instance model information in step (1) includes part geometric property characteristics and material property characteristic information.
[0012] Furthermore, the relevant XML file information in step (1) includes part manufacturing process characteristics and manufacturing process sequence information.
[0013] Furthermore, the initial manufacturing data set in step (1) is specifically described as:
[0014] IMD={IMI i},i∈[1,k]
[0015] IMI i ={GF i ,MaF i ,MF i ,MS i}
[0016] Among them, IMD is the initial manufacturing dataset, IMI i represents the i-th initial manufacturing instance in the initial manufacturing dataset, k represents the number of instances in the initial manufacturing set, and GF i Represents the geometric attribute features of the i-th instance, MaF i represents the material property characteristics of the i-th instance, MF i represents the manufacturing process characteristics of the i-th instance, MS i Represents the manufacturing process sequence corresponding to the i-th instance.
[0017] Furthermore, the implementation process of step (2) is as follows:
[0018] (21) Set the initial manufacturing process database MSD and the minimum support threshold σ and the minimum confidence threshold θ of the sequential pattern mining index as follows:
[0019] MSD={MS i |MS i ∈IMI i},i∈[1,k]
[0020] Among them, MSD is the initial manufacturing process database, MS i represents the manufacturing process sequence corresponding to the i-th instance;
[0021] (22) Scan the database, count the frequencies of all individual process steps, and obtain all frequent 1-item sets F1, whose support and confidence satisfy the minimum support threshold σ, as follows:
[0022] F1={S i ∣support(S i )≥σ},i∈n
[0023]
[0024] Among them, S i Indicates a process step, support(S i ) represents each process step S i support level;
[0025] (23) According to (22), each frequent 1-item set S i , build its prefix projection database S Si , as follows:
[0026]
[0027] Among them, S Si Indicates that all i A prefix projection database of subsequences of prefixes;
[0028] (24) Based on the prefix projection database S Si , for the current prefix S i , from S Si Extract all frequent itemsets S i ′, so that S i S i ′ satisfies the minimum support threshold σ and the minimum confidence threshold θ, and constructs a new prefix projection database. The calculation method is as follows:
[0029] F Si ={S i ′|support(S i S i ′)≥σ,confidence(S i →S i ′)≥θ}
[0030]
[0031] Among them, FSi Indicates that for the current prefix S i From S Si Extract all frequent itemsets S i ′,S SiSi ′ indicates that S i S i ′ is the prefix projection database, confidence(S i →S i ′) represents the generated frequent pattern S i S i ' confidence level;
[0032] (25) Continue (24) to generate a new frequent pattern sequence. When the latest prefix projection database is empty, stop the recursion and return the frequent manufacturing process sequence that meets the requirements. Associate the frequent manufacturing process sequence with the part instance containing the frequent sequence to build a manufacturing process knowledge base, as follows:
[0033] PMKD = {FPS n ,CFPS n},n∈[1,m]
[0034] CFPS n ={IMI n -MS n}
[0035] Among them, FPS is the frequent manufacturing process sequence, and CFPS is the part instance that does not contain the manufacturing process sequence, that is, the manufacturing capacity of the frequent manufacturing process sequence.
[0036] Furthermore, the implementation process of step (3) is as follows:
[0037] (31) Part instance feature PF based on BERT pre-training model i The corresponding frequent manufacturing process sequence FPS i After vector conversion and embedding through all L layers, a high-dimensional vector representation is obtained. The BERT pre-training model formula is as follows:
[0038] H(0)=E+P+S
[0039] H (l-1)′ =LayerNorm(H (l-1) +MultiHead_Attention(H (l-1) ))
[0040] FFN(H (l-1)′ )=max(0,H (l-1)′ W1 (l-1) +b1 (l-1) )W2 (l-1)+b2 (l-1)
[0041] H (l) =LayerNorm(H (l-1) +FFN(H (l-1)′ ))
[0042] Among them, E, P, S represent the word embedding, position embedding and segment embedding of the input data respectively, and H (l-1) Represents the input of the l-1th layer of the model, LayerNorm represents the layer normalization operation, MulitiHead_Attention represents the multi-head attention operation, FFN represents the feedforward neural network, W1 (l-1) ,W2 (l-1) is the weight matrix of the model's l-1 layer, b1 (l-1) ,b2 (l-1) is the bias of the l-1th layer;
[0043] (32) PF i With FPS i The high-dimensional vector representation of adopts a dual-channel attention mechanism to update the vector. The formula is as follows:
[0044]
[0045] Among them, z i Represents the input vector that needs to be updated, BTL represents the bottleneck structure layer, AvgPool and MaxPool represent the average pooling operation and the maximum pooling operation respectively, σ represents the Sigmoid nonlinear activation function, and BN represents batch normalization;
[0046] (33) The representation of the updated vector is learned by a self-supervised learning mechanism, and the loss function of the model is established based on joint training, which is as follows:
[0047] L total =L rec ({PF i ,FPS i})+αL self ({FPS i})
[0048] L rec =max{0,cos(PF i ,FPS j )-cos(PF i ,FPS i )+margin}
[0049]
[0050] s(zi ,z i ′)= <z i ,z i ′i> / (||z i ||·||z i ′||)
[0051] Among them, L total is the total loss function, L rec is the loss function of the manufacturing process sequence recommendation method, L self is the self-supervised learning loss function, α is the regularization coefficient, margin represents the minimum distance interval between positive and negative sample pairs, cos represents the cosine similarity calculation, and z i represents the vector of the ith frequent manufacturing sequence after being updated through the above steps, z i ′ represents the updated vector of the ith frequent manufacturing sequence after feature masking, (z i , z i ′) represents a positive sample pair, (z i , z j ′) represents the negative sample pair, τ is the temperature coefficient, which is used to adjust the distribution of similarity scores, 〈z i , z i ′〉 indicates z i and z i ′ performs inner product, ‖z i ‖ represents z i The norm of
[0052] (34) According to the loss value obtained in (33), the gradient of each layer is calculated, and the parameters of each layer of the network are corrected by the obtained gradient to ensure the accuracy of the algorithm;
[0053] (35) Repeat (33). When the training process reaches the upper limit of the specified number of iterations or meets the error constraint, the training process ends; otherwise, the training continues.
[0054] Furthermore, the implementation process of step (4) is as follows:
[0055] According to the manufacturing process sequence recommendation model, the input features of the part to be designed and the frequent manufacturing process sequence are vector updated as follows:
[0056] VPF,VFPS=RCEM(PF,FPS)
[0057] Among them, RCEM is the manufacturing process sequence recommendation model, PF and FPS represent the characteristics of the part to be designed and the frequent manufacturing process sequence, and VPF and VFPS represent the characteristics of the part to be designed and the frequent manufacturing process sequence after the vector is updated.
[0058] Furthermore, the implementation process of step (5) is as follows:
[0059] The similarity between the features of the part to be designed and the frequent manufacturing process sequence after the vector update is calculated by cosine similarity, as follows:
[0060] SIM = {FPS i ,cos(VFPS i ,VPF)},i∈[1,k]
[0061] Among them, SIM represents the frequent manufacturing process sequence and its similarity with the part features; the similarity between the features of the part to be designed and each frequent manufacturing process sequence is compared, and the recommendations are made after sorting them according to the similarity priority.
[0062] Furthermore, the GF i ,MaF i , M.F. i Features included are:
[0063] GF i ={L i ,TH i ,OD i ,BO i ,BA i}
[0064] F i ={MNa i ,MG i ,MSp i ,MSt i}
[0065] MF i ={OT i ,WLD i ,PCK i ,CUT i ,SPT i}
[0066] Among them, GF i Including length, wall thickness, outer diameter, bending ovality, bending angle; MaF i Contains material name, material grade, material specification, and material status; MF i Including oxidation treatment, welding, pickling, cutting and painting.
[0067] Beneficial effects: Compared with the prior art, the present invention has the following beneficial effects:
[0068] 1. The present invention utilizes data mining in the manufacturing process sequence recommendation method in the face of large amounts of complex data, thereby improving the efficiency of knowledge base construction and the learning ability of the model under tilted data distribution;
[0069] 2. Compared with the existing methods, the present invention not only improves the efficiency of knowledge base construction, but also considers the extraction of deep important data features. The dual-channel attention mechanism is used to make the model pay more attention to the implicit information of the data, thereby improving the generalization ability of the model;
[0070] 3. The present invention continues model training under skewed distributed data, combines self-supervised learning to strengthen the model's characterization learning of a small number of samples, and ultimately achieves highly accurate manufacturing process sequence recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 is a flow chart of the present invention;
[0072] Figure 2 It is a flow chart of a process sequence matching algorithm based on a deep structured semantic model of dual-channel attention and self-supervised learning proposed in the present invention;
[0073] Figure 3 It is an algorithm flow chart of the vector encoding model based on the dual-channel attention mechanism proposed in the present invention. DETAILED DESCRIPTION
[0074] The present invention is further described in detail below with reference to the accompanying drawings.
[0075] like Figure 1 As shown, the present invention provides a manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning. The present invention constructs a manufacturing process sequence recommendation model around the construction of a knowledge base, the tilted distribution of data, and the acquisition of important information, and specifically includes the following steps:
[0076] Step 1: Based on the part instance model and related XML files, the instance information is read through CATIA secondary development and XPath, and the part features and manufacturing process sequences of the instance model and related XML files are collected to build the initial manufacturing data set. The part instance model information includes part geometric attribute features, material attribute features and other information. The related XML file information includes part manufacturing process features, manufacturing process sequence and other information. At the same time, the data is extracted to build the initial manufacturing data set, which is specifically described as follows:
[0077] IMD={IMI i},i∈[1,k]
[0078] IMI i ={GF i ,MaF i ,MF i ,MS i}
[0079] Among them, IMD is the initial manufacturing dataset, IMIi represents the i-th initial manufacturing instance in the initial manufacturing dataset, k represents the number of instances in the initial manufacturing set, and GF i Represents the geometric attribute features of the i-th instance, MaF i represents the material property characteristics of the i-th instance, MF i represents the manufacturing process characteristics of the i-th instance, MS i represents the manufacturing process sequence corresponding to the i-th instance. i ,MaF i , M.F. i Features included are:
[0080] GF i ={L i ,TH i ,OD i ,BO i ,BA i}
[0081] F i ={MNa i ,MG i ,MSp i ,MSt i}
[0082] MF i ={OT i ,WLD i ,PCK i ,CUT i ,SPT i}
[0083] Among them, GF i Including length (L), wall thickness (TH), outer diameter (OD), bending ovality (BO), bending angle (BA); MaF i Contains material name (MNa), material grade (MG), material specification (MSp), material state (MSt); MF i Including oxidation treatment (OT), welding (WLD), pickling (PCK), cutting (CUT), and painting (SPT).
[0084] Step 2: Perform rule mining based on the Prefixspan sequence pattern mining algorithm to obtain frequent manufacturing process sequences and build a manufacturing process knowledge base. Specifically:
[0085] The initial manufacturing process database MSD and the minimum support threshold σ and the minimum confidence threshold θ of the sequence pattern mining index are set. The thresholds are selected based on multiple experiments to select values that are representative and not excessive for the patterns that can be mined. The specific values are as follows:
[0086] MSD={MS i |MS i ∈IMI i},i∈[1,k]
[0087] Among them, MSD is the initial manufacturing process database, MS i Represents the manufacturing process sequence corresponding to the i-th instance.
[0088] Scan the database, count the frequencies of all individual process steps, and obtain all frequent 1-item sets F1, whose support and confidence meet the minimum support threshold σ, as follows:
[0089] F1={S i ∣support(S i )≥σ},i∈n
[0090]
[0091] Among them, S i Indicates a process step, support(S i ) represents each process step S i support.
[0092] According to each frequent 1-item set S i , build its prefix projection database S Si , as follows:
[0093]
[0094] Among them, S Si Indicates that all i A prefix projection database of subsequences of prefixes.
[0095] According to the obtained prefix projection database S Si , for the current prefix S i , from S Si Extract all frequent itemsets S i ′, so that S i S i ′ satisfies the minimum support threshold σ and the minimum confidence threshold θ, and constructs a new prefix projection database. The calculation method is as follows:
[0096] F Si ={S i ′|support(S i S i ′)≥σ,confidence(S i →S i ′)≥θ}
[0097]
[0098] Among them, F Si Indicates that for the current prefix S i From S Si Extract all frequent itemsets S i ′,S SiSi ′ indicates that S i S i ′ is the prefix projection database, confidence(S i →S i ′) represents the generated frequent pattern S i S i ’ confidence level.
[0099] Continue to generate new frequent pattern sequences. When the latest prefix projection database is empty, stop the recursion and return the frequent manufacturing process sequence that meets the requirements. Associate the frequent manufacturing process sequence with the part instance containing the frequent sequence to build a manufacturing process knowledge base, as follows:
[0100] PMKD = {FPS n ,CFPS n},n∈[1,m]
[0101] CFPS n ={IMI n -MS n}
[0102] Among them, FPS is the frequent manufacturing process sequence, and CFPS is the part instance that does not contain the manufacturing process sequence, that is, the manufacturing capacity of the frequent manufacturing process sequence.
[0103] Step 3: Based on the manufacturing process knowledge base constructed in step 2, a deep structured semantic model based on dual-channel attention and self-supervised learning is used as a learner to perform recommendation training on the manufacturing process sequence and build a manufacturing process sequence recommendation model. Figure 2 As shown:
[0104] According to the frequent manufacturing process sequence and the manufacturing capability of the frequent manufacturing process sequence obtained in step 2, the part instance feature PF is obtained. i The corresponding frequent manufacturing process sequence FPS i , based on the BERT pre-trained model for PF i With FPS i After vector transformation and embedding through all L layers, a high-dimensional vector representation is obtained. The formula is as follows:
[0105] H(0)=E+P+S
[0106] H (l-1)′=LayerNorm(H (l-1) +MultiHead_Attention(H (l-1) ))
[0107] FFN(H (l-1)′ )=max(0,H (l-1) ∪W1 (l-1) +b1 (l-1) )W2 (l-1) +b2 (l-1)
[0108] H (l) =LayerNorm(H (l-1)′ +FFN(H (l-1)′ ))
[0109] Among them, E, P, S represent the word embedding, position embedding and segment embedding of the input data respectively, and H (l-1) Represents the input of the l-1th layer of the model, LayerNorm represents the layer normalization operation, MulitiHead_Attention represents the multi-head attention operation, FFN represents the feedforward neural network, W1 (l-1) ,W2 (l-1) is the weight matrix of the model's l-1 layer, b1 (l-1) ,b2 (l-1) is the bias of the l-1th layer.
[0110] like Figure 3 As shown, according to PF i With FPS i The high-dimensional vector representation of adopts a dual-channel attention mechanism to update the vector. The formula is as follows:
[0111]
[0112] Among them, z i It represents the input vector that needs to be updated, BTL represents the bottleneck structure layer, AvgPool and MaxPool represent the average pooling operation and the maximum pooling operation respectively, σ represents the Sigmoid nonlinear activation function, and BN represents batch normalization.
[0113] The representation of the updated vector is learned using a self-supervised learning method, and the loss function of the model is established based on multi-task training, as follows:
[0114] L total =L rec ({PF i ,FPS i})+αL self ({FPS i})
[0115] L rec =max{0,cos(PF i ,FPS j )-cos(PF i ,FPS i )+margin}
[0116]
[0117] s(z i ,z i ′)= <z i ,z i ′> / (||z i ||·||z i ′||)
[0118] Among them, L total is the total loss function, L rec is the loss function of the manufacturing process sequence recommendation method, L self is the self-supervised learning loss function, α is the regularization coefficient, margin represents the minimum distance interval between positive and negative sample pairs, cos represents the cosine similarity calculation, and z i represents the vector of the ith frequent manufacturing sequence after being updated through the above steps, z i ′ represents the vector of the ith frequent manufacturing sequence after feature masking after the above steps are updated, (z i , z i ′) represents a positive sample pair, (z i , z j ′) represents the negative sample pair, τ is the temperature coefficient, which is used to adjust the distribution of similarity scores, 〈z i , z i ′〉 indicates z i and z i ′ performs inner product, ‖z i ‖ represents z i The norm of .
[0119] According to the obtained loss value, the gradient of each layer is calculated, and the parameters of each layer network are corrected by the obtained gradient to ensure the accuracy of the algorithm. Repeat the above process. When the training process reaches the upper limit of the specified number of iterations or meets the error constraint condition, the training process ends, otherwise continue training.
[0120] Step 4: Obtain updated part feature vectors and frequent manufacturing process sequence vectors based on the deep structured semantic model of dual-channel attention and self-supervised learning. Specifically:
[0121] According to the manufacturing process sequence recommendation model obtained in step 3, the input features of the part to be designed and the frequent manufacturing process sequence are vector updated as follows:
[0122] VPF,VFPS=RCEM(PF,FPS)
[0123] Among them, RCEM is the manufacturing process sequence recommendation model, PF and FPS represent the characteristics of the part to be designed and the frequent manufacturing process sequence, and VPF and VFPS represent the characteristics of the part to be designed and the frequent manufacturing process sequence after the vector is updated.
[0124] Step 5: Calculate the similarity between the part feature vector obtained in step 4 and the frequent manufacturing process sequence vector, and recommend the frequent manufacturing process sequences after sorting their priorities according to the similarity values. Specifically:
[0125] The similarity between the features of the part to be designed and the frequent manufacturing process sequence after the vector update is calculated by cosine similarity, as follows:
[0126] SIM = {FPS i ,cos(VFPS i ,VPF)},i∈[1,k]
[0127] SIM represents the frequent manufacturing process sequence and its similarity with the part features. Finally, the similarity between the features of the part to be designed and the frequent manufacturing process sequences is compared, and the recommendations are made after sorting them according to the similarity priority.
[0128] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning, characterized in that: The following steps are involved: (1) Based on the part instance model information and related XML file information, the instance information is read through CATIA secondary development and XPath, and the part features and manufacturing process sequences of the instance model and related XML files are collected to build the initial manufacturing data set; (2) Based on the Prefixspan sequence pattern mining algorithm, rule mining is performed to obtain frequent manufacturing process sequences and build a manufacturing process knowledge base; (3) Based on the constructed manufacturing process knowledge base, a deep structured semantic model based on dual-channel attention and self-supervised learning is used as a learner to perform recommendation training on manufacturing process sequences and construct a manufacturing process sequence recommendation model; (4) Obtaining updated part feature vectors and frequent manufacturing process sequence vectors based on the manufacturing process sequence recommendation model; (5) Calculate the similarity between the part feature vector and the frequent manufacturing process sequence vector, sort the frequent manufacturing process sequences by priority according to the similarity value, and then recommend them.
2. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 1, characterized in that: The part instance model information in step (1) includes part geometric property characteristics and material property characteristic information.
3. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 1, characterized in that: The relevant XML file information in step (1) includes part manufacturing process characteristics and manufacturing process sequence information.
4. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 1, characterized in that: The initial manufacturing data set in step (1) is specifically described as: IMD=IMI i },i∈[1,k] IMI i ={GF i ,MaF i ,MF i ,MS i } Among them, IMD is the initial manufacturing dataset, IMI i represents the i-th initial manufacturing instance in the initial manufacturing dataset, k represents the number of instances in the initial manufacturing set, and GF i Represents the geometric attribute features of the i-th instance, MaF i represents the material property characteristics of the i-th instance, MF i represents the manufacturing process characteristics of the i-th instance, MS i Represents the manufacturing process sequence corresponding to the i-th instance.
5. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 1, characterized in that: The implementation process of step (2) is as follows: (21) Set the initial manufacturing process database MSD and the minimum support threshold σ and the minimum confidence threshold θ of the sequential pattern mining index as follows: MSD={MS i |MS i ∈IMI i },i∈[1,k] Among them, MSD is the initial manufacturing process database, MS i represents the manufacturing process sequence corresponding to the i-th instance; (22) Scan the database, count the frequencies of all individual process steps, and obtain all frequent 1-item sets F1, whose support and confidence satisfy the minimum support threshold σ, as follows: F1={S i ∣support(S i )≥σ},i∈n Among them, S i Indicates a process step, support(S i ) represents each process step S i support level; (23) According to (22), each frequent 1-item set S i , build its prefix projection database S Si , as follows: Among them, S Si Indicates that all i A prefix projection database of subsequences of prefixes; (24) Based on the prefix projection database S Si , for the current prefix S i , from S Si Extract all frequent itemsets S i ′, so that S i S i ′ satisfies the minimum support threshold σ and the minimum confidence threshold θ, and constructs a new prefix projection database. The calculation method is as follows: F Si ={S i ′∣support(S i S i ′)≥σ,confidence(S i →S i ′)≥θ} Among them, F Si Indicates that for the current prefix S i From S Si Extract all frequent itemsets S i ′,S SiSi′ Indicated by S i S i ′ is the prefix projection database, confidence(S i →S i ′) represents the generated frequent pattern S i S i ' confidence level; (25) Continue (24) to generate a new frequent pattern sequence. When the latest prefix projection database is empty, stop the recursion and return the frequent manufacturing process sequence that meets the requirements. Associate the frequent manufacturing process sequence with the part instance containing the frequent sequence to build a manufacturing process knowledge base, as follows: PMKD={FPS n ,CFPS n },n∈[1,m] CFPS n ={IMI n =MS n } Among them, FPS is the frequent manufacturing process sequence, and CFPS is the part instance that does not contain the manufacturing process sequence, that is, the manufacturing capacity of the frequent manufacturing process sequence.
6. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 1, characterized in that: The implementation process of step (3) is as follows: (31) Part instance feature PF based on BERT pre-training model i The corresponding frequent manufacturing process sequence FPS i After vector conversion and embedding through all L layers, a high-dimensional vector representation is obtained. The BERT pre-training model formula is as follows: H(0)=E+P+S H (l-1)′ =LayerNorm(H (l-1) +MultiHead_Attention(H (l-1) )) FFN(H (l-1) ′)=max(0,H (l-1) ′W1 (l-1) +b1 (l-1) )W2 (l-1) +b2 (l-1) H (l) =LayerNorm(H (l-1)′ +FFN(H (l-1)′ )) Among them, E, P, S represent the word embedding, position embedding and segment embedding of the input data respectively, and H (l-1) Represents the input of the l-1th layer of the model, LayerNorm represents the layer normalization operation, MulitiHead_Attention represents the multi-head attention operation, FFN represents the feedforward neural network, W1 (l-1) ,W2 (l-1) is the weight matrix of the model's l-1 layer, b1 (l-1) ,b2 (l-1) is the bias of the l-1th layer; (32) PF i With FPS i The high-dimensional vector representation of adopts a dual-channel attention mechanism to update the vector. The formula is as follows: Among them, z i Represents the input vector that needs to be updated, BTL represents the bottleneck structure layer, AvgPool and MaxPool represent the average pooling operation and the maximum pooling operation respectively, σ represents the Sigmoid nonlinear activation function, and BN represents batch normalization; (33) The representation of the updated vector is learned by a self-supervised learning mechanism, and the loss function of the model is established based on joint training, which is as follows: L total =L rec ({PF i ,FPS i })+αL self ({FPS i }) L rec =max{0,cos(PF i ,FPS j )-cos(PF i ,FPS i )+margin} s(z i ,With' i )= <z i ,With i > / (||from i ||||z′ i ||) Among them, L total is the total loss function, L rec is the loss function of the manufacturing process sequence recommendation method, L self is the self-supervised learning loss function, α is the regularization coefficient, margin represents the minimum distance interval between positive and negative sample pairs, cos represents the cosine similarity calculation, and z i represents the vector of the ith frequent manufacturing sequence after being updated through the above steps, z i ′ represents the updated vector of the ith frequent manufacturing sequence after feature masking, (z i , z i ′) represents a positive sample pair, (z i , z j ′) represents the negative sample pair, τ is the temperature coefficient, which is used to adjust the distribution of similarity scores, 〈z i , z i ′〉 indicates z i and z i ′ performs inner product, ‖z i ‖ represents z i The norm of (34) According to the loss value obtained in (33), the gradient of each layer is calculated, and the parameters of each layer of the network are corrected by the obtained gradient to ensure the accuracy of the algorithm; (35) Repeat (33). When the training process reaches the upper limit of the specified number of iterations or meets the error constraint, the training process ends; otherwise, the training continues.
7. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 1, characterized in that: The implementation process of step (4) is as follows: According to the manufacturing process sequence recommendation model, the input features of the part to be designed and the frequent manufacturing process sequence are vector updated as follows: VPF,VFPS=RCEM(PF,FPS) Among them, RCEM is the manufacturing process sequence recommendation model, PF and FPS represent the characteristics of the part to be designed and the frequent manufacturing process sequence, and VPF and VFPS represent the characteristics of the part to be designed and the frequent manufacturing process sequence after the vector is updated.
8. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 1, characterized in that: The implementation process of step (5) is as follows: The similarity between the features of the part to be designed and the frequent manufacturing process sequence after the vector update is calculated by cosine similarity, as follows: SIM={FPS i ,cos(VFPS i ,VPF)},i∈[1,k] Among them, SIM represents the frequent manufacturing process sequence and its similarity with the part features; the similarity between the features of the part to be designed and each frequent manufacturing process sequence is compared, and the recommendations are made after sorting them according to the similarity priority.
9. The manufacturing process sequence recommendation method based on knowledge mining and self-supervised learning according to claim 4, characterized in that: The GF i ,MaF i , M.F. i Features included are: GF i ={L i ,TH i ,OD i ,BO i ,BA i } MaF i ={MNa i ,MG i ,MSp i ,MSt i } MF i ={OT i ,WLD i ,PCK i ,CUT i ,SPT i } Among them, GF i Including length, wall thickness, outer diameter, bending ovality, bending angle; MaF i Contains material name, material grade, material specification, and material status; MF i Including oxidation treatment, welding, pickling, cutting and painting.
Citation Information
Patent Citations
Method for knowledge extraction and evolution in machine parts processing technological procedure
CN105224953A
Machining process route knowledge mining method and system
CN113449397A
Part process design method and system based on knowledge graph, medium and equipment
CN116956750A
Knowledge distillation and multi-task self-supervised learning-based skeleton behavior identification method
CN117152788A
Intelligent process method, system and equipment for machined parts and medium
CN117972813A
