CN115033800A - Knowledge graph-based numerical control machining cutter recommendation method - Google Patents
Knowledge graph-based numerical control machining cutter recommendation method Download PDFInfo
- Publication number
- CN115033800A CN115033800A CN202210806187.9A CN202210806187A CN115033800A CN 115033800 A CN115033800 A CN 115033800A CN 202210806187 A CN202210806187 A CN 202210806187A CN 115033800 A CN115033800 A CN 115033800A
- Authority
- CN
- China
- Prior art keywords
- tool
- relationship
- machining
- attribute
- similarity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003754 machining Methods 0.000 title claims abstract description 142
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000008569 process Effects 0.000 claims abstract description 29
- 238000012545 processing Methods 0.000 claims abstract description 18
- 239000000463 material Substances 0.000 claims description 61
- 239000011159 matrix material Substances 0.000 claims description 24
- 230000006870 function Effects 0.000 claims description 17
- 238000005259 measurement Methods 0.000 claims description 17
- 238000010276 construction Methods 0.000 claims description 9
- 239000013598 vector Substances 0.000 claims description 9
- 238000005520 cutting process Methods 0.000 claims description 7
- 238000004519 manufacturing process Methods 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 claims description 5
- 230000007246 mechanism Effects 0.000 claims description 3
- 239000000203 mixture Substances 0.000 claims description 3
- 230000009191 jumping Effects 0.000 claims description 2
- 230000003746 surface roughness Effects 0.000 claims description 2
- 238000004364 calculation method Methods 0.000 claims 1
- 238000007781 pre-processing Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 8
- 238000004088 simulation Methods 0.000 description 5
- 238000011524 similarity measure Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013016 damping Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010438 heat treatment Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000003466 welding Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 229910001018 Cast iron Inorganic materials 0.000 description 1
- 241000512668 Eunectes Species 0.000 description 1
- 229910000831 Steel Inorganic materials 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 239000011248 coating agent Substances 0.000 description 1
- 238000000576 coating method Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000003801 milling Methods 0.000 description 1
- 229910021652 non-ferrous alloy Inorganic materials 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 238000007514 turning Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/36—Creation of semantic tools, e.g. ontology or thesauri
- G06F16/367—Ontology
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Animal Behavior & Ethology (AREA)
- Computational Linguistics (AREA)
- Numerical Control (AREA)
Abstract
Description
技术领域technical field
本发明属于数控加工领域,涉及一种数控加工刀具推荐方法,具体涉及一种基于知识图谱的数控加工刀具推荐方法,可用于数控加工刀具的精确推荐。The invention belongs to the field of numerical control machining, and relates to a method for recommending numerically controlled machining tools, in particular to a method for recommending numerically controlled machining tools based on a knowledge map, which can be used for accurate recommendation of numerically controlled machining tools.
背景技术Background technique
数控加工是指数字信息控制零件和刀具位移的机械加工方法,它是解决零件品种多变、批量小、形状复杂、精度高等问题和实现高效化和自动化加工的有效途径。刀具是数控加工的重要组成部分,它对加工表面的几何形状、尺寸精确度、表面质量及加工成本等方面有很大的影响。随着机械加工技术的进步,工业产品不断向结构复杂、尺寸精度高等方面发展,刀具的种类和数量越来越繁多,给机械加工和工艺设计人员合理推荐刀具带来了困难。数控加工刀具的推荐一般依赖于过往数控加工的历史数据之间的内在联系,推荐的过程通常依赖人工经验,具有精确性不足、适用性差等缺点。在刀具的推荐过程中,要涉及到工件材料、工件结构、加工设备、加工精度、热处理等许多原始资料和工艺特征信息,这些数据之间交错复杂,很少有一一对应的关系。Numerical control machining refers to a machining method in which digital information controls the displacement of parts and tools. It is an effective way to solve the problems of variable variety of parts, small batches, complex shapes, and high precision and to achieve efficient and automated machining. Tool is an important part of CNC machining, which has a great influence on the geometry, dimensional accuracy, surface quality and machining cost of the machined surface. With the advancement of machining technology, industrial products continue to develop towards complex structures and high dimensional accuracy, and the types and quantities of tools are becoming more and more numerous, which brings difficulties to mechanical processing and process designers to reasonably recommend tools. The recommendation of CNC machining tools generally relies on the internal relationship between the historical data of past CNC machining, and the recommended process usually relies on manual experience, which has shortcomings such as insufficient accuracy and poor applicability. In the process of tool recommendation, many raw materials and process feature information such as workpiece material, workpiece structure, processing equipment, machining accuracy, heat treatment, etc. are involved. These data are intertwined and complex, and there is rarely a one-to-one correspondence.
为了考虑到参数之间的耦合关系,田长乐等于2020年8月在《计算机集成制造系统》第26卷第8期上发表的论文《碳排放约束下基于特征的刀具选配与切削参数集成优化》中,提出一种基于加工特征的刀具选配推荐方法。该方法在分析刀具磨损影响的基础上,设计零件加工特征信息库、刀具信息库和案例库,构建了基于加工特征的刀具选配优化模型;设计了基于K近邻和MOPSO混合优化算法对模型进行求解,模型的最优解即是刀具的推荐结果。但是,该方法主要从零件的加工特征分析刀具的推荐,没有考虑到刀具的几何参数对推荐结果的影响。In order to take into account the coupling relationship between parameters, Tian Changle et al. published the paper "Feature-based tool selection and cutting parameter integration optimization under carbon emission constraints" in "Computer Integrated Manufacturing Systems", Volume 26, Issue 8 in August 2020 ", a tool selection recommendation method based on machining features is proposed. On the basis of analyzing the influence of tool wear, this method designs a part machining feature information library, tool information library and case library, and builds a tool selection optimization model based on machining features; The optimal solution of the model is the recommended result of the tool. However, this method mainly analyzes the tool recommendation from the machining characteristics of the part, and does not consider the influence of the tool's geometric parameters on the recommended results.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服上述现有技术存在的缺陷,提出了一种基于知识图谱的数控加工刀具推荐方法,用于提高刀具推荐的准确度。The purpose of the present invention is to overcome the above-mentioned defects in the prior art, and propose a method for recommending a numerically controlled machining tool based on a knowledge map, which is used to improve the accuracy of tool recommendation.
为实现上述目的,本发明采取的技术方案包括如下步骤:To achieve the above object, the technical scheme adopted by the present invention comprises the following steps:
(1)对数控加工原始数据进行预处理:(1) Preprocess the raw data of CNC machining:
使用箱线图法对从工艺参数数据库中读取刀具、零件、材料、加工过程中的异常值进行检测,并通过经验值替换所检测出的异常值,得到预处理后的数据集;Use the boxplot method to detect the abnormal values of tools, parts, materials, and machining processes read from the process parameter database, and replace the detected abnormal values with empirical values to obtain a preprocessed data set;
(2)构建数控加工的本体模型:(2) Construct the ontology model of CNC machining:
根据数控加工刀具、零件、材料、加工过程的特征和功能,确定数控加工刀具、零件、材料、加工过程各自的层次关系;梳理数刀具、零件、材料、加工过程的特征信息,得到刀具、零件、材料、加工过程的属性,最终得到包含刀具、零件、材料、加工过程的层次关系和属性的本体模型;According to the characteristics and functions of CNC machining tools, parts, materials, and machining processes, determine the respective hierarchical relationships of CNC machining tools, parts, materials, and machining processes; , properties of materials and machining processes, and finally obtain an ontology model that includes the hierarchical relationships and properties of tools, parts, materials, and machining processes;
(3)构建数控加工的知识图谱:(3) Build a knowledge map of CNC machining:
(3a)使用网络本体语言,并根据步骤(2)中刀具、零件、材料、加工过程的本体模型,构建以预处理后的数据集中的刀具、零件、材料的名称及加工过程中工序、加工特征为节点,以预处理后的数据集中的刀具、零件、材料、加工过程关联为节点关系,以刀具、零件、材料固有的特征属性为节点属性的知识图谱模式层;(3a) Using the network ontology language, and according to the ontology model of the tools, parts, materials, and machining processes in step (2), construct the names of the tools, parts, and materials in the preprocessed data set, and the processes and machining processes in the process. The feature is the node, and the relationship between the tool, part, material, and processing process in the preprocessed data set is the node relationship, and the inherent feature attribute of the tool, part, and material is the knowledge graph mode layer of the node attribute;
(3b)使用网络本体语言,将预处理后的数据集中的刀具、零件、材料、加工过程的数据信息作为内容,填入到知识图谱模式层对应类型的节点属性中,得到数控加工知识图谱的数据层;(3b) Using the network ontology language, the data information of the tools, parts, materials, and processing processes in the preprocessed data set is used as the content, and is filled into the node attributes of the corresponding type of the knowledge map mode layer to obtain the CNC machining knowledge map. data layer;
(4)构建数控加工单向加权知识图谱:(4) Constructing a one-way weighted knowledge map of CNC machining:
(4a)根据数控加工知识图谱中节点属性和零件与刀具之间的关系,对知识图谱中的属性相同的节点,即对零件与零件、刀具与刀具进行相似性度量,建立零件与零件、刀具与刀具的相似性度量准则,并根据零件、刀具每个属性的重要性设置对应的权重集;根据建立的相似性度量准则分别计算零件、刀具的每一个节点属性所对应的相似性关系矩阵;用每一个节点属性的相似性关系矩阵和对应的权重计算出节点间多元相似性关系矩阵;(4a) According to the node attributes and the relationship between parts and tools in the CNC machining knowledge map, measure the similarity between parts and parts, tools and tools for nodes with the same attributes in the knowledge map, and establish parts and parts and tools. The similarity measurement criterion with the tool, and the corresponding weight set is set according to the importance of each attribute of the part and the tool; the similarity relationship matrix corresponding to each node attribute of the part and the tool is calculated according to the established similarity measurement criterion; Calculate the multivariate similarity relationship matrix between nodes by using the similarity relationship matrix of each node attribute and the corresponding weight;
(4b)将多元相似性关系矩阵中的数值视作数控加工知识图谱节点之间的关系权重,之后将数控加工知识图谱中存在关系的节点间的关系权重看作向量,对于节点间的单向关系,直接将向量的大小作为节点间关系的权重;对于节点间的双向关系,将向量的和作为节点间关系的权重,最终得到面向刀具推荐的数控加工单向加权知识图谱;(4b) The value in the multivariate similarity relationship matrix is regarded as the relationship weight between the nodes of the CNC machining knowledge map, and then the relationship weight between the nodes with the relationship in the CNC machining knowledge map is regarded as a vector. For the relationship between nodes, the size of the vector is directly used as the weight of the relationship between nodes; for the two-way relationship between nodes, the sum of the vectors is used as the weight of the relationship between nodes, and finally the one-way weighted knowledge map of CNC machining for tool recommendation is obtained;
(5)获取数控加工刀具的推荐结果:(5) Obtain the recommended results of CNC machining tools:
使用PPR算法,并根据数控加工单向加权知识图谱搭建数控加工刀具推荐模型,然后将待加工零件节点作为推荐模型的输入,计算刀具节点的PR值,再将PR值最高的刀具节点作为推荐的刀具。Use the PPR algorithm and build a CNC machining tool recommendation model according to the CNC machining one-way weighted knowledge graph, then use the part node to be processed as the input of the recommended model, calculate the PR value of the tool node, and then use the tool node with the highest PR value as the recommended tool node. knives.
本发明与现有技术相比,具有如下优点:Compared with the prior art, the present invention has the following advantages:
本发明通过数控加工的本体模型构建数控加工的知识图谱,并通过该知识图谱所构建的数控加工单向加权知识图谱,使用PPR算法计算刀具节点与待加工零件节点的相关度,再将相关度最高的刀具节点作为推荐的刀具,充分考虑了刀具几何参数在刀具推荐过程中的影响,有效提高了刀具推荐的准确度。The invention constructs the knowledge graph of numerical control machining through the ontology model of numerical control machining, and uses the PPR algorithm to calculate the correlation degree between the tool node and the part node to be processed through the unidirectional weighted knowledge graph of numerical control machining constructed by the knowledge graph, and then calculates the correlation degree by using the PPR algorithm. The highest tool node is used as the recommended tool, which fully considers the influence of tool geometric parameters in the tool recommendation process, which effectively improves the accuracy of tool recommendation.
附图说明Description of drawings
图1是本发明的实现流程图;Fig. 1 is the realization flow chart of the present invention;
图2是本发明中数控加工知识图谱构建总体框图;Fig. 2 is the general block diagram of the numerical control machining knowledge graph construction in the present invention;
图3是本发明中刀具层次关系示意图;Fig. 3 is a schematic diagram of the hierarchical relationship of cutters in the present invention;
图4是本发明中零件层次关系示意图;Fig. 4 is a schematic diagram of the hierarchical relationship of parts in the present invention;
图5是本发明中材料层次关系示意图;Fig. 5 is a schematic diagram of the hierarchical relationship of materials in the present invention;
图6是本发明中加工过程层次关系示意图;Fig. 6 is a schematic diagram of the hierarchical relationship of the processing process in the present invention;
图7是本发明中数控加工知识图谱模式视图;Fig. 7 is the numerical control machining knowledge map pattern view in the present invention;
图8是本发明中构建的单向加权知识图谱示意图;8 is a schematic diagram of a one-way weighted knowledge graph constructed in the present invention;
图9是本发明与现有技术的推荐效果仿真对比图。FIG. 9 is a simulation comparison diagram of the recommended effect of the present invention and the prior art.
具体实施方式Detailed ways
下面结合附图和具体实施例,对本发明作进一步详细描述。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
参照图1,本发明包括如下步骤:1, the present invention includes the following steps:
步骤1)对数控加工原始数据进行预处理:Step 1) Preprocess the raw data of CNC machining:
使用箱线图法从工艺参数数据库中读取刀具、零件、材料、加工过程中的异常值进行检测,用四分位间IQR表示下四分位数Q1和上四分位数Q3的间距,数值大小在Q3+1.5×IQR和Q1-1.5×IQR之间的值为正常值,其余为异常值;根据历史加工数据和专家经验确定的经验值替换异常值,得到预处理后的数据集;Use the boxplot method to read the abnormal values of tools, parts, materials, and machining processes from the process parameter database for detection, and use the inter - quartile IQR to represent the lower quartile Q1 and the upper quartile Q3 . Spacing, values between Q 3 +1.5×IQR and Q 1 -1.5×IQR are normal values, and the rest are outliers; outliers are replaced by empirical values determined according to historical processing data and expert experience, and the preprocessed data set;
步骤2)构建数控加工的本体模型:Step 2) Construct the ontology model of CNC machining:
根据数控加工刀具、零件、材料、加工过程的特征和功能,确定数控加工刀具、零件、材料、加工过程各自的层次关系;梳理数刀具、零件、材料、加工过程的特征信息,得到刀具、零件、材料、加工过程的属性,最终得到包含刀具、零件、材料、加工过程的层次关系和属性的本体模型;According to the characteristics and functions of CNC machining tools, parts, materials, and machining processes, determine the respective hierarchical relationships of CNC machining tools, parts, materials, and machining processes; , properties of materials and machining processes, and finally obtain an ontology model that includes the hierarchical relationships and properties of tools, parts, materials, and machining processes;
步骤2a)根据加工工艺对数控加工刀具进行分类,刀具可分为车刀、铣刀、孔加工刀具、往复运动加工刀具、齿轮加工刀具、螺纹刀具、整体刀具、机夹可转位刀具、机夹可重磨刀具、焊接刀具、焊接机夹式刀具,然后对加工工艺分类后的每种刀具进行功能分类,得到数控加工刀具的层次关系,如图2所示;同时根据刀具的包括刀具名称、刀具编号、刀具角度、刀具直径、刀具耐用度、刀具寿命的属性信息,建立进行功能分类后每一种刀具的属性关系,得到包含刀具层次关系和属性关系的本体模型;Step 2a) Classify the CNC machining tools according to the processing technology. The tools can be divided into turning tools, milling tools, hole processing tools, reciprocating processing tools, gear processing tools, thread tools, integral tools, machine-clamped indexable tools, machine tools. Clamp regrindable tools, welding tools, welding machine clip-type tools, and then classify the functions of each tool after the classification of the processing technology to obtain the hierarchical relationship of the CNC machining tools, as shown in Figure 2; at the same time, according to the tool name, including the tool name , tool number, tool angle, tool diameter, tool durability, tool life attribute information, establish the attribute relationship of each tool after functional classification, and obtain the ontology model including the tool hierarchical relationship and attribute relationship;
步骤2b)根据形状特征对零件进行分类,零件可分为轴类零件、盘套类零件、支架箱体类零件、六面体类零件、机身机座类零件,然后对形状特征分类后的每种零件根据零件构成进行分类,得到零件的层次关系,如图3所示;同时根据零件的包括尺寸、加工精度和加工表面质量的属性信息,建立按照零件构成进行分类后每一种零件的属性关系,得到包含零件层次结构和属性关系本体模型;Step 2b) Classify the parts according to the shape features. The parts can be divided into shaft parts, disc sleeve parts, bracket box parts, hexahedron parts, and fuselage base parts. The parts are classified according to the part composition, and the hierarchical relationship of the parts is obtained, as shown in Figure 3; at the same time, according to the attribute information of the parts including size, machining accuracy and machined surface quality, the attribute relationship of each part after classification according to the part composition is established. , get ontology model including part hierarchy and attribute relationship;
步骤2c)根据种类对刀具材料和零件材料进行分类,并对种类分类后的每种材料进行制造工艺进行分类,刀具材料可分为涂层材料、硬质合金、超硬刀具材料、陶瓷;零件的材料可分为钢、铸铁、有色合金,最终得到材料的层次关系,如图4所示;同时根据材料的包括强度、硬度、刚度、塑性、冲击韧性的属性信息,建立根据材料的制造工艺进行分类后每一种材料的属性关系,得到包含材料层次结构和属性关系本体模型;Step 2c) Classify the tool material and the part material according to the type, and classify the manufacturing process of each material after the type classification. The tool material can be divided into coating material, cemented carbide, superhard tool material, ceramics; parts The material can be divided into steel, cast iron, non-ferrous alloy, and finally the hierarchical relationship of the material is obtained, as shown in Figure 4; at the same time, according to the attribute information of the material including strength, hardness, stiffness, plasticity, and impact toughness, the manufacturing process according to the material is established. After classifying the attribute relationship of each material, an ontology model including material hierarchy and attribute relationship is obtained;
步骤2d)将加工过程分为工序、工步、加工要素、切削速度、背吃刀量、进给量,并将加工要素分为内圆、外圆、平面、成形面、沟槽、螺纹、锥面、齿形,得到加工过程的层次结构,如图5所示;同时将切削速度、背吃刀量、进给量的数值作为各自的属性,将各加工要素的形状特征参数作为加工要素的属性,得到包含加工过程层次结构和属性本体模型;Step 2d) Divide the machining process into processes, work steps, machining elements, cutting speed, back-cut amount, and feed amount, and divide the machining elements into inner circle, outer circle, plane, forming surface, groove, thread, Cone surface and tooth shape, the hierarchical structure of the machining process is obtained, as shown in Figure 5; at the same time, the values of cutting speed, back cut amount, and feed amount are used as their respective attributes, and the shape feature parameters of each machining element are used as machining elements. Attributes, get the process hierarchy and attribute ontology model;
步骤3)构建数控加工的知识图谱:Step 3) Build a knowledge map of CNC machining:
数控加工知识图谱的构建分为模式层的构建和数据层的构建,流程如图6所示;The construction of the CNC machining knowledge map is divided into the construction of the model layer and the construction of the data layer, and the process is shown in Figure 6;
步骤3a)使用网络本体语言,并根据步骤(2)中刀具、零件、材料、加工过程的本体模型,构建以预处理后的数据集中的刀具、零件、材料的名称及加工过程中工序、加工特征为节点,以预处理后的数据集中的刀具、零件、材料、加D工过程关联为节点关系,以刀具、零件、材料固有的特征属性为节点属性的知识图谱模式层,如图7所示;Step 3a) Using the network ontology language, and according to the ontology model of the tools, parts, materials, and machining processes in step (2), construct the names of the tools, parts, and materials in the preprocessed data set, and the processes and machining processes in the process. The feature is the node, and the relationship between the tool, part, material, and machining process in the preprocessed data set is the node relationship, and the inherent feature attribute of the tool, part, and material is the knowledge graph mode layer of the node attribute, as shown in Figure 7. Show;
步骤3b)使用网络本体语言,将预处理后的数据集中的刀具、零件、材料、加工过程的数据信息作为内容,填入到知识图谱模式层对应类型的节点属性中,得到数控加工知识图谱的数据层;Step 3b) Using the network ontology language, the data information of the tools, parts, materials, and processing processes in the preprocessed data set is used as the content, and is filled into the node attributes of the corresponding type of the knowledge map mode layer to obtain the CNC machining knowledge map. data layer;
步骤4)构建数控加工单向加权知识图谱:Step 4) Constructing a one-way weighted knowledge graph of CNC machining:
步骤4a)计算节点间多元相似性关系矩阵:Step 4a) Calculate the multivariate similarity relationship matrix between nodes:
步骤4a1)知识图谱模式层中包含个节点P={p1,…,pd,…,pD}和M个节点属性S={s1,…,sm,…,sM},根据P和S确定节点间相似性关系的相似性度量准则a={a1,…,am,…,aM},然后通过每个准则am对应的函数Pm(pi,pj)确定第i个节点pi和第j个节点pj关于属性sm的相似性关系,形成相似性度量函数集P={p1,p2,p3,p4,p5},其中:Step 4a1) The knowledge graph schema layer contains nodes P={p 1 ,...,p d ,...,p D } and M node attributes S={s 1 ,...,s m ,...,s M }, according to P and S determine the similarity measurement criterion a={a 1 ,..., am ,...,a M } of the similarity relationship between nodes, and then use the function P m ( pi ,p j ) corresponding to each criterion a m Determine the similarity relationship between the i-th node p i and the j-th node p j with respect to the attribute s m , and form a similarity measurement function set P={p 1 ,p 2 ,p 3 ,p 4 ,p 5 }, where:
其中,1、0分别表示pi对pj存在相似性关系、不存在相似性关系;Among them, 1 and 0 respectively indicate that there is a similarity relationship between p i and p j , and there is no similarity relationship;
步骤4a2)通过相似性邻接矩阵Am(i,j)表示相似性关系Pm(pi,pj):Am(i,j)=Pm(pi,pj),得到a对应的相似性邻接矩阵集合A={A1,…,Am,…,AM},当Am(i,j)与Am(j,i)都为1,表示节点pi、pj的相似性关系是相互的;Step 4a2) The similarity relationship P m (pi ,p j ) is represented by the similarity adjacency matrix A m (i,j): A m ( i ,j)=P m (p i ,p j ), and a corresponds to The similarity adjacency matrix set A={A 1 ,...,A m ,...,A M }, when A m (i,j) and A m (j,i) are both 1, it means that the nodes p i , p j The similarity relationship of is mutual;
步骤4a3)根据机理知识和数控加工工艺确定属性集S={s1,…,sm,…,sM}中每个属性sm的权重值wm,得到S对应的和为1的权重值集W={w1,…,wm,…,wM},并通过相似性邻接矩阵Am及其对应的权重值wm计算多准则约束下节点间的相似性关系矩阵Ap:Step 4a3) Determine the weight value w m of each attribute s m in the attribute set S={s 1 ,...,s m ,...,s M } according to the mechanism knowledge and the numerical control machining process, and obtain the weight corresponding to S and the sum is 1 The value set W={w 1 ,...,w m ,...,w M }, and the similarity relationship matrix A p between nodes under the multi-criteria constraint is calculated by the similarity adjacency matrix Am and its corresponding weight value w m :
步骤4a4)通过零件的材料、特征尺寸、加工精度、表面粗糙度、形状位置精度表示零件的特征属性S1={s11,s12,s13,s14,s15},并从名称相似性、结构相似性(外形形状相似性、尺寸相似性、精度相似性)、材料相似性(材料种类相似性、毛坯形式像思想、热处理相似性)和工艺相似性(加工方法相似性、使用设备相似性、工序顺序相似性、夹具相似性、量具相似性)分别确定每个属性的相似性度量准则a1={a11,a12,a13,a14,a15},然后根据a1形成相似性度量函数集P1={p11,p12,p13,p14,p15},根据各属性的重要性设定a1对应的权重值集W1={w11,w12,w13,w14,w15};Step 4a4) The feature attribute S 1 = {s 11 , s 12 , s 13 , s 14 , s 15 } of the part is represented by the material, feature size, machining accuracy, surface roughness, and shape position accuracy of the part, and similar from the name Similarity in structure, similarity in structure (similarity in shape, size, accuracy), material similarity (similarity in material type, blank form like idea, similarity in heat treatment), and similarity in process (similarity in processing method, use of equipment) similarity, process sequence similarity, fixture similarity, gage similarity) to determine the similarity measure criterion a 1 ={a 11 ,a 12 ,a 13 ,a 14 ,a 15 } for each attribute respectively, and then according to a 1 A similarity measurement function set P 1 ={p 11 ,p 12 ,p 13 ,p 14 ,p 15 } is formed, and a weight value set corresponding to a 1 is set according to the importance of each attribute W 1 ={w 11 ,w 12 ,w 13 ,w 14 ,w 15 };
步骤4a5)通过刀具材料、刀具直径、刀具长度、前角γo、后角αo、主偏角κr、刃倾角λs、副偏角κ'r、副后角α'o表示刀具的特征属性S2={s21,s22,s23,s24,s25,s26,s27,s28,s29},并从刀具材料相似性(强度、硬度、刚度、塑性、冲击韧性)和刀具切削加工机理(刀具直径、刀具长度、刀具角度对零件数控加工的影响)分别确定每个属性的相似性度量准则a2={a21,a22,a23,a24,a25,a26,a27,a28,a29},然后根据a2形成相似性度量函数集P2={p21,p22,p23,p24,p25,p26,p27,p28,p29},根据各属性的重要性设定a2对应的权重值集W2={w21,w22,w23,w24,w25,w26,w27,w28,w29};Step 4a5) Represent the tool's diameter by tool material, tool diameter, tool length, rake angle γ o , clearance angle α o , entering angle κ r , edge inclination angle λ s , secondary deflection angle κ' r , secondary clearance angle α' o Feature property S 2 ={s 21 ,s 22 ,s 23 ,s 24 ,s 25 ,s 26 ,s 27 ,s 28 ,s 29 }, and from tool material similarity (strength, hardness, stiffness, plasticity, impact Toughness) and tool cutting machining mechanism (the influence of tool diameter, tool length, tool angle on CNC machining of parts) to determine the similarity measure criterion a 2 ={a 21 ,a 22 ,a 23 ,a 24 ,a respectively for each attribute 25 ,a 26 ,a 27 ,a 28 ,a 29 }, and then form a similarity measure function set P 2 ={p 21 ,p 22 ,p 23 ,p 24 ,p 25 ,p 26 , p 27 , p 28 , p 29 }, according to the importance of each attribute, set the weight value set W 2 corresponding to a 2 ={w 21 ,w 22 ,w 23 ,w 24 ,w 25 ,w 26 ,w 27 ,w 28 , w 29 };
步骤4a6)根据零件的相似性度量函数集P1和刀具的相似性度量函数集P2,分别计算零件、刀具的节点属性所对应的相似性关系矩阵,然后根据各属性所对应的权重,根据步骤(4a3),计算出节点间多元相似性关系矩阵,将多元相似性关系矩阵中的数值视作数控加工知识图谱节点之间的关系权重。Step 4a6) According to the similarity measurement function set P 1 of the part and the similarity measurement function set P 2 of the tool, calculate the similarity relationship matrix corresponding to the node attributes of the part and the tool respectively, and then according to the corresponding weight of each attribute, according to In step (4a3), a multivariate similarity relationship matrix between nodes is calculated, and the value in the multivariate similarity relationship matrix is regarded as the relationship weight between the nodes of the CNC machining knowledge graph.
步骤4b)构建单向加权知识图谱的示意图如图8所示。将多元相似性关系矩阵中的数值视作数控加工知识图谱节点之间的关系权重,之后将数控加工知识图谱中存在关系的节点间的关系权重看作向量,对于节点间的单向关系,直接将向量的大小作为节点间关系的权重;对于节点间的双向关系,将向量的和作为节点间关系的权重,最终得到面向刀具推荐的数控加工单向加权知识图谱,该图谱不仅包含了零件的特征信息,在构建的过程中也充分考虑了刀具的几何参数,包括刀具直径、刀具长度、前角γo、后角αo、主偏角κr、刃倾角λs、副偏角κ'r、副后角α'o;Step 4b) A schematic diagram of constructing a one-way weighted knowledge graph is shown in Figure 8. The numerical value in the multivariate similarity relationship matrix is regarded as the relationship weight between the nodes of the CNC machining knowledge map, and then the relationship weight between the nodes with the relationship in the CNC machining knowledge map is regarded as a vector. For the one-way relationship between nodes, directly The size of the vector is used as the weight of the relationship between nodes; for the two-way relationship between nodes, the sum of the vectors is used as the weight of the relationship between nodes, and finally a unidirectional weighted knowledge map of CNC machining for tool recommendation is obtained. Feature information, the geometric parameters of the tool are also fully considered in the construction process, including tool diameter, tool length, rake angle γ o , clearance angle α o , leading angle κ r , edge inclination angle λ s , secondary angle κ' r , secondary relief angle α'o;
步骤5)获取数控加工刀具的推荐结果:Step 5) Get the recommended results for CNC machining tools:
步骤5a)根据步骤(4)建立的数控加工单向加权知识图谱,将节点间关系的权重作为节点间跳转的概率,构建基于PPR算法的数控加工刀具推荐模型;Step 5a) According to the one-way weighted knowledge map of CNC machining established in step (4), the weight of the relationship between nodes is used as the probability of jumping between nodes, and a PPR algorithm-based CNC machining tool recommendation model is constructed;
步骤5b)PPR算法共有三个超参数:阻尼系数ζ、收敛精度为α、最大迭代次数Max。为了确定超参数的数值,将已加工零件节点作为输入,计算每个刀具节点的PR值,将PR值最高的刀具节点作为推荐的刀具,对比推荐结果是否和实际刀具相同并计算准确度。阻尼系数ζ的作用是保证PPR算法迭代的稳定性,避免结果出现中断或者发散的情况,其经验值为0.85;设置ζ=0.85,首先不设置最大迭代次数Max的上限,当收敛精度α达到0.000001时刀具节点的推荐结果和刀具推荐准确度不再变化;再设置收敛精度α=0.000001,当最大迭代次数Max达到100后,刀具节点推荐结果和刀具推荐准确度不再变化;因此,初始化PPR算法的ζ=0.85、α=0.000001、Max=100;Step 5b) The PPR algorithm has three hyperparameters: the damping coefficient ζ, the convergence accuracy α, and the maximum number of iterations Max. In order to determine the value of the hyperparameters, the processed part nodes are used as input, the PR value of each tool node is calculated, and the tool node with the highest PR value is used as the recommended tool, and the recommended result is compared with the actual tool and the accuracy is calculated. The function of the damping coefficient ζ is to ensure the stability of the iteration of the PPR algorithm and avoid the interruption or divergence of the results. Its empirical value is 0.85; set ζ = 0.85, first do not set the upper limit of the maximum number of iterations Max, when the convergence accuracy α reaches 0.000001 The recommended result of the tool node and the recommended accuracy of the tool will not change; then set the convergence accuracy α = 0.000001, when the maximum number of iterations Max reaches 100, the recommended result of the tool node and the recommended accuracy of the tool will not change; therefore, initialize the PPR algorithm ζ=0.85, α=0.000001, Max=100;
步骤5c)将待加工零件节点作为数控加工刀具推荐模型的输入,计算每个刀具节点的PR值;经过100次迭代,每个刀具节点两次迭代计算的PR值的绝对差值小于0.000001,将PR值最高的刀具节点作为推荐的刀具。Step 5c) Use the part node to be processed as the input of the CNC machining tool recommendation model, and calculate the PR value of each tool node; after 100 iterations, the absolute difference of the PR value calculated by the two iterations of each tool node is less than 0.000001. The tool node with the highest PR value is the recommended tool.
传统机器学习算法模型以零件材料、尺寸、加工精度等为特征,准确度在达到某一阈值之后很难再次提升,即使是增加数据量也不会有更大的提升。本发明的刀具推荐模型的构建基于知识图谱,增加数据量可以有效丰富数据信息,有利于推荐精度的提升。The traditional machine learning algorithm model is characterized by part material, size, machining accuracy, etc. After reaching a certain threshold, the accuracy is difficult to improve again, even if the amount of data is increased, there will be no greater improvement. The construction of the tool recommendation model of the present invention is based on the knowledge map, and increasing the amount of data can effectively enrich the data information, which is beneficial to the improvement of the recommendation accuracy.
以下结合仿真实验对本发明的技术效果进行说明:The technical effects of the present invention are described below in conjunction with simulation experiments:
1、仿真条件和内容:1. Simulation conditions and content:
仿真采用AMD Ryzen 7 5800H with Radeon Graphics 3.20GHz处理器,编译器使用PyCharm(Community Edition)version:11.0.11+9-b1504.13 amd64,编译语言使用Python 3.8.5,编译环境为anaconda version:conda 4.10.1;The simulation uses AMD Ryzen 7 5800H with Radeon Graphics 3.20GHz processor, the compiler uses PyCharm (Community Edition) version: 11.0.11+9-b1504.13 amd64, the compilation language uses Python 3.8.5, and the compilation environment is anaconda version:conda 4.10.1;
对本发明和现有的基于加工特征的刀具选配推荐方法的推荐精度进行对比仿真,其结果如图9所示。The recommended accuracy of the present invention and the existing tool selection recommendation method based on machining characteristics is compared and simulated, and the results are shown in Figure 9.
2、仿真结果分析:2. Analysis of simulation results:
参照图9,图中的纵坐标为刀具推荐精度,从图中可以看出,本发明的推荐精度为93.23%,现有技术的推荐精度为85.76%,两者相差7.47%,说明本发明与现有技术相比,有效提高了推荐精度。Referring to Figure 9, the ordinate in the figure is the recommended precision of the tool. It can be seen from the figure that the recommended precision of the present invention is 93.23%, and the recommended precision of the prior art is 85.76%, and the difference between the two is 7.47%. Compared with the prior art, the recommendation accuracy is effectively improved.
综上所述,本发明以数控加工领域知识图谱的构建和应用为研究目标,提出基于知识图谱的数控加工刀具推荐方法,包含对数控加工原始数据进行预处理、构建数控加工的本体模型、构建数控加工的知识图谱、构建数控加工单向加权知识图谱、获取数控加工刀具的推荐结果。整个方案设计严谨、完整,推荐参数精度高,实现对数控加工刀具的精确推荐。To sum up, the present invention takes the construction and application of a knowledge map in the field of CNC machining as a research goal, and proposes a method for recommending CNC machining tools based on the knowledge map, which includes preprocessing the original data of CNC machining, constructing an ontology model of CNC machining, and constructing The knowledge map of CNC machining, the construction of one-way weighted knowledge map of CNC machining, and the recommendation results of CNC machining tools. The design of the whole scheme is rigorous and complete, and the recommended parameters are highly accurate, so as to realize the accurate recommendation of CNC machining tools.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210806187.9A CN115033800B (en) | 2022-07-08 | 2022-07-08 | Numerical control machining tool recommendation method based on knowledge graph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210806187.9A CN115033800B (en) | 2022-07-08 | 2022-07-08 | Numerical control machining tool recommendation method based on knowledge graph |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115033800A true CN115033800A (en) | 2022-09-09 |
CN115033800B CN115033800B (en) | 2024-07-26 |
Family
ID=83128161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210806187.9A Active CN115033800B (en) | 2022-07-08 | 2022-07-08 | Numerical control machining tool recommendation method based on knowledge graph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115033800B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115952361A (en) * | 2023-03-15 | 2023-04-11 | 中国科学院大学 | Dynamic recommendation system and method based on LSTM network and PPR algorithm |
CN116047921A (en) * | 2023-04-03 | 2023-05-02 | 成都飞机工业(集团)有限责任公司 | Cutting parameter optimization method, device, equipment and medium |
CN118820606A (en) * | 2024-09-04 | 2024-10-22 | 鹏城实验室 | Offensive and defensive tool intelligent recommendation method, device, electronic device and storage medium |
CN119347534A (en) * | 2024-12-25 | 2025-01-24 | 深圳鼎信德新材料科创有限公司 | A dry processing analysis method for special-shaped parts of carbon fiber composite materials |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110310721A (en) * | 2018-03-27 | 2019-10-08 | 九阳股份有限公司 | A kind of method and device of knowledge based map construction recipe recommendation strategy |
CN112214685A (en) * | 2020-09-27 | 2021-01-12 | 电子科技大学 | A Personalized Recommendation Method Based on Knowledge Graph |
CN112307220A (en) * | 2020-10-30 | 2021-02-02 | 北京邮电大学 | Data classification model for knowledge graph in numerical control machining field |
WO2022032679A1 (en) * | 2020-08-14 | 2022-02-17 | Siemens Aktiengesellschaft | Method and device for intelligently providing recommendation information |
-
2022
- 2022-07-08 CN CN202210806187.9A patent/CN115033800B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110310721A (en) * | 2018-03-27 | 2019-10-08 | 九阳股份有限公司 | A kind of method and device of knowledge based map construction recipe recommendation strategy |
WO2022032679A1 (en) * | 2020-08-14 | 2022-02-17 | Siemens Aktiengesellschaft | Method and device for intelligently providing recommendation information |
CN112214685A (en) * | 2020-09-27 | 2021-01-12 | 电子科技大学 | A Personalized Recommendation Method Based on Knowledge Graph |
CN112307220A (en) * | 2020-10-30 | 2021-02-02 | 北京邮电大学 | Data classification model for knowledge graph in numerical control machining field |
Non-Patent Citations (3)
Title |
---|
YANG DUAN等: "A novel cutting tool selection approach based on a metal cutting process knowledge graph", 《THE INTERNATIONAL JOURNAL OF ADVANCED》, vol. 112, 14 January 2021 (2021-01-14), pages 3201 - 3214, XP037359786, DOI: 10.1007/s00170-021-06606-5 * |
李征: "基于知识图谱的工艺路线推荐方法研究", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 02, 15 February 2022 (2022-02-15), pages 138 - 1214 * |
谢生同: "基于知识图谱的机加工艺参数推荐方法研究", 《西安电子科技大学硕士学位论文》, 7 June 2024 (2024-06-07), pages 1 - 79 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115952361A (en) * | 2023-03-15 | 2023-04-11 | 中国科学院大学 | Dynamic recommendation system and method based on LSTM network and PPR algorithm |
CN116047921A (en) * | 2023-04-03 | 2023-05-02 | 成都飞机工业(集团)有限责任公司 | Cutting parameter optimization method, device, equipment and medium |
CN116047921B (en) * | 2023-04-03 | 2023-08-04 | 成都飞机工业(集团)有限责任公司 | Cutting parameter optimization method, device, equipment and medium |
CN118820606A (en) * | 2024-09-04 | 2024-10-22 | 鹏城实验室 | Offensive and defensive tool intelligent recommendation method, device, electronic device and storage medium |
CN119347534A (en) * | 2024-12-25 | 2025-01-24 | 深圳鼎信德新材料科创有限公司 | A dry processing analysis method for special-shaped parts of carbon fiber composite materials |
Also Published As
Publication number | Publication date |
---|---|
CN115033800B (en) | 2024-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115033800A (en) | Knowledge graph-based numerical control machining cutter recommendation method | |
CN103235556B (en) | The complex parts digital control processing manufacture method of feature based | |
Zhou et al. | Prediction and control of surface roughness for the milling of Al/SiC metal matrix composites based on neural networks | |
CN114297802A (en) | Multi-objective optimization method for laser cutting technological parameters of thin plate | |
Wang et al. | Performance-based optimal selection of cutting conditions and cutting tools in multipass turning operations using genetic algorithms | |
KR102465451B1 (en) | Process knowledge push method based on machining characteristics | |
Waiyagan et al. | Intelligent feature based process planning for five-axis mill-turn parts | |
Lin et al. | Cost-tolerance analysis model based on a neural networks method | |
CN104267671A (en) | Intelligent selection method and system for numerical control machining tools | |
Jawahir et al. | Towards integration of hybrid models for optimized machining performance in intelligent manufacturing systems | |
Yin et al. | A knowledge resources fusion method based on rough set theory for quality prediction | |
CN104077432A (en) | Process-adjustment choosing analysis method based on multidimensional correlation function | |
Wu et al. | Optimal shape design of an extrusion die using polynomial networks and genetic algorithms | |
Wang et al. | Performance-based predictive models and optimization methods for turning operations and applications: Part 3—optimum cutting conditions and selection of cutting tools | |
Phokha et al. | Optimization of rubber sheet rolling machine parameters using a Taguchi-based TOPSIS linear programming model | |
Dutta et al. | Optimum process parameters for efficient and quality thin wall machining using firefly algorithm | |
Mukhlisa | DETERMINATION OF GEOMETRIC PARAMETERS OF PREVIOUSLY UNTREATED ZONES | |
Yin | A partitioning grinding method for complex-shaped stone based on surface machining complexity | |
Bolar et al. | Sustainable thin-wall machining: holistic analysis considering the energy efficiency, productivity, and product quality | |
US11567484B1 (en) | Apparatus and method for analyzing machinability of a part for manufacture | |
Wang et al. | Optimization of the tool selection based on big data | |
Yıldız et al. | Development of a feature based CAM system for rotational parts | |
Konnur et al. | Analysis of CNC turning parameters and simultaneous optimisation of surface roughness and material removal rate by MOGA for AISI 4340 alloy steel | |
Rustamova | DETERMINATION OF GEOMETRIC PARAMETERS OF PREVIOUSLY UNTREATED ZONES | |
Xie et al. | Efficient Cutting Power Modeling of Three-Axis Milling Based on Transfer Learning and Neural Network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |