A Part Feature Coding and Retrieval Method for Enterprise Design Resources

By converting part feature information into structured data and using clustering algorithms to generate part families, the problem of low part retrieval efficiency in the existing technology is solved, efficient sharing and utilization of part resource information is achieved, and the digital design level of the enterprise is improved. .

CN114461856BActive Publication Date: 2024-09-27TIANJIN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202210066570.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2024-09-27
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

Existing part coding technology cannot effectively improve the efficiency of part feature retrieval, resulting in low efficiency of information sharing and resource utilization, and cannot meet the high requirements of intelligent manufacturing.

Method used

The part feature encoding and retrieval method for enterprise design resources is adopted to convert the part feature information into structured data and store it through XML files. Hybrid coding rules and clustering algorithms are used to generate part families to improve retrieval efficiency. Specific steps include structured representation of part feature information, construction of coding rules, conversion of unstructured data into structured data, coding output and cluster analysis.

Benefits of technology

It achieves accurate expression and efficient retrieval of part feature information, improves the sharing and utilization level of part resource information, and improves the digital design and design efficiency of enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461856B
    Figure CN114461856B
Patent Text Reader

Abstract

The present invention relates to a part feature coding and retrieval method for enterprise design resources, comprising the following steps: (1) structured representation of part feature information; (2) construction of part feature coding rules: adopting a hybrid coding rule, with both tree structure coding rules and chain coding rules, characterizing the management features, shape features and material features of the part, and setting additional code positions for more accurate description of the part features; (3) inputting part feature information, for text-based unstructured data including process files, using natural language processing to convert the unstructured data into structured data; (4) realizing the output of XML files to part feature codes; (4) generating part families with similarities; and (5) retrieving part features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of manufacturing knowledge management, and specifically is a part feature coding and retrieval method for enterprise design resources. Background Art

[0002] Under the requirements of intelligent manufacturing, higher requirements are placed on the design resource organization and information sharing forms of enterprises. As the core and key of grouping technology, part coding technology is a key component for realizing part resource information sharing among enterprises and a data basis for realizing intelligent push of similar part resources. With the development of digital design, part coding methods play an increasingly important role in the implementation of digital design and manufacturing. It is an important condition for applying computers to process part information and an important basis for the integration of digital design and manufacturing systems. Summary of the invention

[0003] The present invention proposes a part feature coding and retrieval method for enterprise design resources that can improve the efficiency of part feature retrieval. The part feature information is converted into structured data and feature coding, and stored in XML files. A part family is generated through a clustering algorithm to improve the efficiency of part feature retrieval. The technical solution is as follows:

[0004] A part feature coding and retrieval method for enterprise design resources includes the following steps:

[0005] (1) Structured representation of part feature information: Build a part feature model and divide part features into management features, shape features, and material features. Management features include the company or workshop information to which the part belongs, the part information to which the part feature belongs, and the ID of the part feature; shape features include part feature type, dimensional parameters, roughness, and machining accuracy; material features include relevant property information of the material, which is a structured representation of part feature information.

[0006] (2) Construct part feature coding rules: adopt a hybrid coding rule, with both tree structure coding rules and chain coding rules, to describe the management characteristics, shape characteristics and material characteristics of parts, and set additional code positions to more accurately describe part features: the relationship between code positions in the tree structure is a subordinate relationship, except for the first code position, the meaning of other code positions is determined by the previous one; the code positions in the chain structure are in a parallel relationship, and each code position has an independent meaning;

[0007] (3) Input of part feature information:

[0008] According to the structural representation of the part feature information in step (1), the input part feature information is divided into input of structured data and input of unstructured data; for text-based unstructured data including process files, natural language processing is used to convert the unstructured data into structured data, which is stored in an XML file, wherein the root element of the XML file contains three sub-elements, which are used to represent management features, shape features and material features respectively;

[0009] (4) Using Java language to process the part feature information in the XML file and output the XML file to the part feature code, the method is as follows:

[0010] 1) For the management features of part features, they are divided into company / workshop ID, part ID and part feature ID:

[0011] For company / workshop ID and part ID: query the database to find the code corresponding to the company / workshop. If the code exists in the database, use the corresponding code. Otherwise, automatically generate a code for output and store it in the database. The same method is used for part ID.

[0012] For part feature ID: For the same part, the code corresponding to the part feature is generated in sequence by self-increment;

[0013] 2) For the shape features of part features, they are divided into feature type, dimensional parameters, roughness and machining accuracy:

[0014] Feature type: Create a basic feature type library for parts. If the input part feature type belongs to the basic type library, the corresponding code is generated, otherwise the feature type code is set to 0;

[0015] Size parameters: Use natural language processing to extract the numerical units within the size, generate corresponding codes based on the numerical units; process the numerical values ​​accordingly and map them into corresponding codes; if the number of digits in the numerical value is greater than 3, the level of the numerical unit is upgraded, and the numerical value is simplified by discarding the last digit; if the number of digits in the numerical value is less than 3, the level of the numerical unit is downgraded and the numerical value is further processed;

[0016] Roughness and machining accuracy: Generate corresponding codes according to the roughness and machining accuracy grade table;

[0017] 3) For the material characteristics of the parts, the material database is searched to generate the corresponding code. If the material does not exist in the database, the material is stored in the database and the material code is generated using the self-increment method;

[0018] (4) Use the KMeans algorithm to perform cluster analysis on part feature information and generate part families with similarities;

[0019] (5) When retrieving part features, first calculate the Euclidean distance between the target feature and the center of each cluster, select the cluster with the highest similarity, and then use this to calculate the Euclidean distance between the features within the cluster and the target feature, and select the part feature with the highest similarity.

[0020] Furthermore, step (2) is specifically as follows: the coding rule adopts decimal system, and is represented by a mixture of 0-9 numbers and letters, with a total of 21 digits, of which the 1st to 6th digits describe the management characteristics of the part, and this segment of code bits is a chain structure, and the meaning of each code bit is independent; the 7th to 15th digits describe the shape characteristics of the part, and this code bit is related to the management characteristic code bit in a tree structure, and its meaning depends on the type of part represented by the management characteristic; the 16th and 17th digits describe the material characteristics of the part, and this code bit is in a chain relationship with other code bits, and the meaning of each code bit is independent; the 18th to 21st digits are additional descriptive parameters used to describe the part characteristics in more detail.

[0021] Furthermore, in step (3), the method of converting unstructured data into structured data by natural language processing is as follows: constructing a part feature corpus, performing word segmentation on the text data using a statistically-based Chinese word segmentation method; performing word segmentation using the N-gram model idea; and converting the word segmentation results into structured data.

[0022] Furthermore, the method of step (4) is: perform part coding processing on the part feature data to generate a part feature matrix; use principal component analysis to reduce the dimension of the data to generate a two-dimensional vector matrix, and use the Matplotlib tool to draw the two-dimensional vector of the part feature into the coordinate system; consider the shape and material characteristics of the part features, and perform cluster analysis using the KMeans clustering algorithm.

[0023] The present invention has the following beneficial effects: the present invention converts part feature information into structured data and feature codes that can be read by a computer, constructs a part feature model and coding rules, realizes the precise expression of part features, and greatly improves the sharing degree of part resource information; uses a clustering algorithm to generate a part family, and uses the Euclidean distance to calculate the similarity of part features, which greatly improves the retrieval efficiency of part features and the utilization level of part resources, and improves the digital design level and design efficiency of the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 For the overall roadmap;

[0025] Figure 2 Coding schematic diagrams for part features;

[0026] Figure 3 It is an example diagram of the XML file of part feature information;

[0027] Figure 4 It is the distribution diagram of part feature vector. DETAILED DESCRIPTION

[0028] The present invention is described below in conjunction with the accompanying drawings and embodiments.

[0029] 1. Structured representation of part feature information

[0030] Part features can be structurally described by the following formula:

[0031] F={F Man ,F Sha ,F Mat}

[0032] F Man Represents management features, mainly including the company / workshop information to which the part belongs, the part information to which the part feature belongs, and the ID of the part feature;

[0033] F Sha Represents shape features, mainly including part feature type, dimensional parameters, roughness and processing accuracy;

[0034] F Mat Represents material characteristics, mainly including relevant property information of the material.

[0035] 2. Part feature coding rules

[0036] According to the part feature model in step 1, the part feature coding rules are constructed, which requires accurate representation of the management features, shape features and material features of the parts.

[0037] Part feature coding rules are a set of specific rules and regulations that use numbers, letters or symbols to describe and identify part features.

[0038] The coding rule adopted by the present invention is a hybrid coding rule, that is, a tree structure coding rule and a chain coding rule exist at the same time: the relationship between the code positions in the tree structure is a subordinate relationship, and except for the first code position, the meaning of other code positions is determined by the previous one; the code positions in the chain structure are in a parallel relationship, and each code position has an independent meaning.

[0039] The coding rules use the decimal system, which is represented by a mixture of 0-9 numbers and letters.

[0040] The coding rules are represented by 21 digits in total, of which the 1st to 6th digits describe the management characteristics of the part. This segment of code bits is a chain structure, and each code bit has an independent meaning; the 7th to 15th digits describe the shape characteristics of the part. This code bit is related to the management characteristic code bit in a tree structure, and its meaning depends on the type of part represented by the management characteristic; the 16th and 17th digits describe the material characteristics of the part. This code bit is in a chain relationship with other code bits, and each code bit has an independent meaning; the 18th to 21st digits are additional descriptive parameters used to describe the part characteristics in more detail. The specific meaning of each code bit is as follows: Figure 2 shown.

[0041] (1) The first and second digits indicate the company or workshop number to which the part belongs, using a mixture of numbers and letters.

[0042] (2) The third and fourth digits are the part ID, which indicates the part number to which the part feature belongs, and are represented by a mixture of numbers and letters;

[0043] (3) The fifth and sixth digits represent the part feature ID, which is represented by a mixture of numbers and letters;

[0044] (4) The seventh digit indicates the part feature type, for example, if the feature is a plane, the corresponding number is 1;

[0045] (5) The 8th to 11th digits represent the dimension parameter, where the 8th digit represents the numerical unit of the dimension parameter, for example, 1 represents the unit of um, and 2 represents the dimension unit of mm; the 9th to 11th digits can represent dimension numbers from 0 to 999. The specific meaning of the dimension parameter is associated with the 3rd digit. If the 3rd digit represents a plane, the specific meaning is length; if the 3rd digit represents an aperture, the specific meaning is the diameter of a circle;

[0046] (6) The 12th and 13th digits represent the roughness of the part, which refers to the unevenness of the machined surface with small spacing and tiny peaks and valleys. There are 14 levels in total, so the numbers 1-14 are used to represent different levels of roughness;

[0047] (7) The 14th and 15th digits represent machining accuracy. Machining accuracy refers to the degree of conformity between the actual size, shape, and position of the surface of the part after machining and the ideal geometric parameters required by the drawing. Machining accuracy is measured by tolerance grade, which has 20 levels. Therefore, numbers 1-20 are used to represent different levels of machining accuracy.

[0048] (8) The 16th and 17th digits represent the material type, which is represented by a mixture of numbers and letters. The mapping relationship between the code and the specific material is saved in the relevant database.

[0049] (9) Bits 18 to 21 are descriptive parameters. In order to better describe the part features, 4 code bits are reserved for a more detailed description of the part features. The meaning is set independently according to the feature type. If the code bit is not used, all are set to 0. For example, if the part feature is a hole, the code bit can be used to indicate whether it is a through hole (1 bit), the depth-to-diameter ratio of the hole (2 bits), and the fourth code bit is 0.

[0050] 3. Input of part feature information

[0051] According to the structural representation of the part feature information in step 1, the input part feature information needs to be converted into structural data. Therefore, the input information is divided into the input of structured data and the input of unstructured data.

[0052] For unstructured text data such as process documents, natural language processing is used to process them. A part feature corpus is constructed, and the Chinese word segmentation method based on statistics is used to segment text data. The N-gram model is used for word segmentation. Assume that the appearance of the nth word is only related to the previous n-1 words, but not to other words. For a given sentence T, the word sequence w1, w2, w3, ..., w n The probability of the whole sentence is the product of the probability of each word appearing, so the calculation formula of P(T) is as follows:

[0053] P(T)=P(w1w2w3...w n )=P(w1)P(w2|w1)P(w3|w1w2)...P(w n |w1w2...w n-1 )

[0054] In the existing corpus, the Bayesian theorem formula is used to derive the following formula to calculate the probability values ​​and obtain the word segmentation result that maximizes P(T).

[0055]

[0056] Using the above method, for the text "The gearbox part has a through hole with a diameter of 40 mm, a processing accuracy of IT10, a roughness of Ra6.4, and a material of aluminum alloy", the segmentation results are:

[0057] ['Gearbox', 'Part', 'has', 'diameter', '40', 'mm', 'through hole', 'machining', 'precision', 'IT10', 'roughness', 'Ra6.4', 'material', 'aluminum alloy']

[0058] The word segmentation results are processed and converted into structured data, and then converted into XML files using the Java programming language for storage to facilitate subsequent encoding processing.

[0059] XML is an extensible markup language, which is used to mark electronic files to make them structured, and provides a unified method to describe and exchange structured data that is independent of applications or vendors. Figure 3 As shown in the figure, the root element PartFeatures of the XML file contains three sub-elements, which are used to represent management features, shape features, and material features respectively:

[0060] (1) The manFeatures sub-element contains three sub-elements: companyInfo, partInfo, and partFeatureId;

[0061] (2) The sub-element shaFeatures contains four sub-elements: partFeatureType, dimensionParameters, roughness, and machiningAccuracy;

[0062] (3) The sub-element matFeatures contains the materialInfo sub-element.

[0063] 4. Parts code output

[0064] Java language is used to read XML files and create part feature entities, so as to perform numerical processing and coded output on the information of each part feature.

[0065] The management features of part features can be divided into company / workshop ID, part ID and part feature ID.

[0066] (1) For company / workshop ID and part ID: query the database to find the code corresponding to the company / workshop. If the code exists in the database, use the corresponding code. Otherwise, automatically generate a code for output and store it in the database. The same operation is performed for part ID.

[0067] (2) For part feature ID: For the same part, the code corresponding to the part feature is generated in sequence using a self-incrementing method.

[0068] The shape features of part features are mainly divided into feature type, dimensional parameters, roughness and processing accuracy.

[0069] (1) Feature type: Create a basic feature type library for parts. If the input part feature type belongs to the basic type library, a corresponding code is generated; otherwise, the feature type code is set to 0.

[0070] (2) Dimension parameters: First, use natural language processing to extract the numerical units within the dimension, and generate corresponding codes based on the numerical units; then process the numerical values ​​accordingly and map them into corresponding codes. If the number of digits in the numerical value is greater than 3, the level of the numerical unit is upgraded, and the numerical value is simplified and the last digit is discarded; if the number of digits in the numerical value is less than 3, the level of the numerical unit is downgraded and the numerical value is further processed. For example, if the dimension parameter is 1000mm, the generated code is 3100; if the dimension parameter is 0.1m, the generated code is 4010.

[0071] (3) Roughness and processing accuracy: Generate corresponding codes based on the roughness and processing accuracy grade table.

[0072] For the material characteristics of the parts, the material database is retrieved to generate the corresponding code. If the material does not exist in the database, the material is stored in the database and the material code is generated using a self-incrementing method.

[0073] According to the above data encoding method, Figure 3 The encoding of the XML file output is: A1A101220500812B30000.

[0074] 5. Extraction of part families and retrieval of part codes

[0075] A part family is a collection of parts with similar structures or processes. The KMeans clustering algorithm is used to cluster the part feature data and generate a part family to find similar part features.

[0076] KMeans algorithm is an iterative clustering analysis algorithm. Its main idea is to divide the sample set into K clusters according to the distance between samples, and the distance between points in the cluster is small, while the distance between clusters is large. Assume that the clusters are divided into (C1, C2, ... C k ), then our goal is to minimize the squared error E:

[0077]

[0078] where μ i It is cluster C i The mean vector of is expressed as:

[0079]

[0080] The similarity of parts depends only on the shape and material characteristics of the parts and has nothing to do with the management characteristics. Therefore, only the shape and material of the part features are considered during clustering. The following table shows some data.

[0081] Table 1 Part characteristics data

[0082]

[0083] First, the data is processed by part coding to generate a part feature matrix. Since the dimension of the part feature vector is high, principal component analysis (PCA) is used to reduce the dimension of the data to generate a two-dimensional vector matrix. The Matplotlib tool is used to plot the two-dimensional vector of the part feature into the coordinate system. The result is as follows: Figure 4 Finally, the KMeans clustering algorithm was used for cluster analysis, and it was found that when the number of clusters was 19, the silhouette coefficient was the highest, which was 0.60.

[0084] When retrieving part features, the Euclidean distance is used as the evaluation value of the similarity. The Euclidean distance is the "ordinary" (i.e. straight line) distance between two points in the Euclidean space. The smaller the value, the greater the similarity.

[0085]

[0086] First, calculate the distance between the target part feature and each cluster center, select the cluster with the highest similarity, further calculate the similarity between the target part feature and the feature value of the parts in the cluster, and select the feature value with the smallest Euclidean distance as the search result. For example, when searching the Fea31 part feature in the table above, the result with the highest similarity is Fea36, with a similarity value of 0.044.

Claims

1. A part feature coding and retrieval method for enterprise design resources, comprising the following steps: (1) Structured representation of part feature information: Build a part feature model and divide part features into management features, shape features, and material features. Management features include the company or workshop information to which the part belongs, the part information to which the part feature belongs, and the ID of the part feature. ; Shape features include part feature type, dimensional parameters, roughness, and machining accuracy; Material features include relevant material attribute information and a structured representation of part feature information; (2) Construct part feature coding rules: adopt a hybrid coding rule, with both tree structure coding rules and chain coding rules, to describe the management characteristics, shape characteristics and material characteristics of parts, and set additional code positions to more accurately describe part features; The relationship between code positions in the tree structure is a subordinate relationship. Except for the first code position, the meaning of other code positions is determined by the previous one. In the chain structure, the code positions are in a parallel relationship, and each code position has an independent meaning. (3) Input of part feature information: According to the structural representation of the part feature information in step (1), the input part feature information is divided into input of structured data and input of unstructured data; for text-based unstructured data including process files, natural language processing is used to convert the unstructured data into structured data, which is stored in an XML file, wherein the root element of the XML file contains three sub-elements, which are used to represent management features, shape features and material features respectively; (4) Using Java language to process the part feature information in the XML file and output the XML file to the part feature code, the method is as follows: 1) For the management features of part features, they are divided into company / workshop ID, part ID and part feature ID: For company / workshop ID and part ID: query the database to find the code corresponding to the company / workshop. If the code exists in the database, use the corresponding code. Otherwise, automatically generate a code for output and store it in the database. The same method is used for part ID. For part feature ID: For the same part, the code corresponding to the part feature is generated in sequence by self-increment; 2) For the shape features of part features, they are divided into feature type, dimensional parameters, roughness and machining accuracy: Feature type: Create a basic feature type library for parts. If the input part feature type belongs to the basic type library, the corresponding code is generated, otherwise the feature type code is set to 0; Size parameters: Use natural language processing to extract the numerical units within the size and generate corresponding codes based on the numerical units; The numerical value is processed accordingly and mapped into the corresponding code; if the number of digits of the numerical value is greater than 3, the level of the numerical unit is upgraded, and the numerical value is simplified and the last digit is discarded; if the number of digits of the numerical value is less than 3, the level of the numerical unit is downgraded and the numerical value is further processed; Roughness and machining accuracy: Generate corresponding codes according to the roughness and machining accuracy grade table; 3) For the material characteristics of the parts, the material database is searched to generate the corresponding code. If the material does not exist in the database, the material is stored in the database and the material code is generated using the self-increment method; (4) Use the KMeans algorithm to perform cluster analysis on part feature information and generate part families with similarities; (5) When retrieving part features, first calculate the Euclidean distance between the target feature and the center of each cluster, select the cluster with the highest similarity, and then use this to calculate the Euclidean distance between the features within the cluster and the target feature, and select the part feature with the highest similarity.

2. The part feature coding and retrieval method according to claim 1, It is characterized in that Step (2) is specifically as follows: the coding rule adopts decimal system, and is represented by a mixture of 0-9 numbers and letters, with a total of 21 digits, of which the 1st to 6th digits describe the management characteristics of the part. This segment of code bits is a chain structure, and the meaning of each code bit is independent; the 7th to 15th digits describe the shape characteristics of the part. This code bit is related to the management characteristic code bit in a tree structure, and its meaning depends on the type of part represented by the management characteristic; the 16th and 17th digits describe the material characteristics of the part. This code bit is in a chain relationship with other code bits, and the meaning of each code bit is independent; the 18th to 21st digits are additional descriptive parameters used to describe the part characteristics in more detail.

3. The part feature coding and retrieval method according to claim 1, It is characterized in that The method of converting unstructured data into structured data by natural language processing in step (3) is as follows: constructing a part feature corpus, using a statistical Chinese word segmentation method to perform word segmentation on the text data; using the N-gram model idea to perform word segmentation; and converting the word segmentation results into structured data.

4. The part feature coding and retrieval method according to claim 1, It is characterized in that The method of step (4) is as follows: perform part coding processing on the part feature data to generate a part feature matrix; use the principal component analysis method to reduce the dimension of the data to generate a two-dimensional vector matrix, and use the Matplotlib tool to draw the two-dimensional vector of the part feature into the coordinate system; consider the shape and material characteristics of the part features, and perform cluster analysis using the KMeans clustering algorithm.

Citation Information

Cited By

  • Model feature coding and retrieval management method and system for three-dimensional design engine

    CN122152822A

  • Model Feature Encoding and Retrieval Management Method and System for 3D Design Engines

    CN122152822B